|
@ -649,8 +649,12 @@ public class PrenatalInspectorPreCardService extends BaseService {
|
|
|
if(StringUtils.isNotBlank(preCard.getHeight())&&StringUtils.isNotBlank(preCard.getWeight())){
|
|
|
//先判断体征数据是否变更
|
|
|
DevicePatientHealthIndex index = healthIndexDao.findLastData(patientCode, 3);
|
|
|
String height = index.getValue2();
|
|
|
String weight = index.getValue1();
|
|
|
String height = null;
|
|
|
String weight = null;
|
|
|
if(index!=null){
|
|
|
height = index.getValue2();
|
|
|
weight = index.getValue1();
|
|
|
}
|
|
|
if(!preCard.getHeight().equals(height)||!preCard.getWeight().equals(weight)){
|
|
|
//更新体征数据
|
|
|
JSONObject json = new JSONObject();
|
|
@ -663,7 +667,6 @@ public class PrenatalInspectorPreCardService extends BaseService {
|
|
|
e.printStackTrace();
|
|
|
logger.error("预建卡时 保存体征数据失败。。。");
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
}
|