|
@ -108,7 +108,9 @@ public class PatientHealthIndexService extends BaseService {
|
|
|
}
|
|
|
|
|
|
patientHealthIndexDao.save(result);
|
|
|
verifyHealthIndex(result.getId());
|
|
|
if ("1".equals(result.getType()) || "2".equals(result.getType())) {
|
|
|
verifyHealthIndex(result.getId());
|
|
|
}
|
|
|
}
|
|
|
else{
|
|
|
throw new Exception("Result not exit!");
|
|
@ -471,6 +473,7 @@ public class PatientHealthIndexService extends BaseService {
|
|
|
for (DevicePatientHealthIndex item : list) {
|
|
|
String data = item.getValue1();
|
|
|
String dataType = item.getValue2();
|
|
|
String deviceSn = item.getDeviceSn()==null?"":item.getDeviceSn();
|
|
|
String recordDate = DateUtil.dateToStr(item.getRecordDate(), DateUtil.YYYY_MM_DD_HH_MM_SS);
|
|
|
Long id = item.getId();
|
|
|
if (data != null && dataType != null) {
|
|
@ -478,36 +481,43 @@ public class PatientHealthIndexService extends BaseService {
|
|
|
obj.put("value1", data);
|
|
|
obj.put("time1", recordDate);
|
|
|
obj.put("id1", id);
|
|
|
obj.put("deviceSn1", deviceSn);
|
|
|
hadData = true;
|
|
|
} else if (dataType.equals("2")) {
|
|
|
obj.put("value2", data);
|
|
|
obj.put("time2", recordDate);
|
|
|
obj.put("id2", id);
|
|
|
obj.put("deviceSn2", deviceSn);
|
|
|
hadData = true;
|
|
|
} else if (dataType.equals("3")) {
|
|
|
obj.put("value3", data);
|
|
|
obj.put("time3", recordDate);
|
|
|
obj.put("id3", id);
|
|
|
obj.put("deviceSn3", deviceSn);
|
|
|
hadData = true;
|
|
|
} else if (dataType.equals("4")) {
|
|
|
obj.put("value4", data);
|
|
|
obj.put("time4", recordDate);
|
|
|
obj.put("id4", id);
|
|
|
obj.put("deviceSn4", deviceSn);
|
|
|
hadData = true;
|
|
|
} else if (dataType.equals("5")) {
|
|
|
obj.put("value5", data);
|
|
|
obj.put("time5", recordDate);
|
|
|
obj.put("id5", id);
|
|
|
obj.put("deviceSn5", deviceSn);
|
|
|
hadData = true;
|
|
|
} else if (dataType.equals("6")) {
|
|
|
obj.put("value6", data);
|
|
|
obj.put("time6", recordDate);
|
|
|
obj.put("id6", id);
|
|
|
obj.put("deviceSn6", deviceSn);
|
|
|
hadData = true;
|
|
|
} else if (dataType.equals("7")) {
|
|
|
obj.put("value7", data);
|
|
|
obj.put("time7", recordDate);
|
|
|
obj.put("id7", id);
|
|
|
obj.put("deviceSn7", deviceSn);
|
|
|
hadData = true;
|
|
|
}
|
|
|
}
|