|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yihu.device.entity.DevicePatientHealthIndex;
|
|
|
import com.yihu.es.entity.FollowupContentESDO;
|
|
|
import com.yihu.wlyy.entity.followup.Followup;
|
|
|
import com.yihu.wlyy.entity.followup.FollowupDrugs;
|
|
|
import com.yihu.wlyy.entity.patient.prescription.Prescription;
|
|
@ -358,7 +359,28 @@ public class PrescriptionFollowupContentService extends BaseService {
|
|
|
imBloodSugarValue = obj.getString("value7");
|
|
|
}
|
|
|
|
|
|
followUpService.esSaveFollowupProjectData(followup_id, "3", followupProjectData);
|
|
|
|
|
|
|
|
|
|
|
|
FollowupContentESDO followupContentESDO = followUpService.esGetFollowupProjectData(followup_id,"3");
|
|
|
|
|
|
if(followupContentESDO != null){
|
|
|
followUpService.esSaveFollowupProjectData(followup_id, "3", followupProjectData);
|
|
|
}else{
|
|
|
FollowupContentESDO newfollowupContentESDO = JSON.parseObject(followupProjectData, FollowupContentESDO.class);
|
|
|
if(StringUtils.isNotBlank(newfollowupContentESDO.getRANDOM_BLOOD_SUGAR())){
|
|
|
followupContentESDO.setRANDOM_BLOOD_SUGAR(newfollowupContentESDO.getRANDOM_BLOOD_SUGAR());
|
|
|
}
|
|
|
|
|
|
if(StringUtils.isNotBlank(newfollowupContentESDO.getNO_BS_FPG())){
|
|
|
followupContentESDO.setNO_BS_FPG(newfollowupContentESDO.getNO_BS_FPG());
|
|
|
}
|
|
|
|
|
|
if(StringUtils.isNotBlank(newfollowupContentESDO.getBS_FPG())){
|
|
|
followupContentESDO.setBS_FPG(newfollowupContentESDO.getBS_FPG());
|
|
|
}
|
|
|
followUpService.esSaveFollowupContentESDAO(followupContentESDO);
|
|
|
}
|
|
|
|
|
|
//是否需要发送IM消息
|
|
|
if(sendIM){
|
|
@ -490,7 +512,18 @@ public class PrescriptionFollowupContentService extends BaseService {
|
|
|
org.json.JSONObject jsonObject = jsonArray.getJSONObject(0);
|
|
|
|
|
|
followupProjectData = "{'BP_D':'"+jsonObject.getString("value1")+"','BP_U':'"+jsonObject.getString("value2")+"'}";
|
|
|
followUpService.esSaveFollowupProjectData(followup_id, "2", followupProjectData);
|
|
|
|
|
|
|
|
|
FollowupContentESDO followupContentESDO = followUpService.esGetFollowupProjectData(followup_id,"2");
|
|
|
|
|
|
if(followupContentESDO != null){
|
|
|
followUpService.esSaveFollowupProjectData(followup_id, "2", followupProjectData);
|
|
|
}else{
|
|
|
followupContentESDO.setBP_D(jsonObject.getString("value1"));
|
|
|
followupContentESDO.setBP_U(jsonObject.getString("value2"));
|
|
|
followUpService.esSaveFollowupContentESDAO(followupContentESDO);
|
|
|
}
|
|
|
|
|
|
|
|
|
//是否需要发送IM消息
|
|
|
if(sendIM){
|