|
@ -403,7 +403,8 @@ public class SynergyManageService extends BaseJpaService {
|
|
resultMap.put("patientName",workorderMap.get("service_patient_name"));//居民姓名
|
|
resultMap.put("patientName",workorderMap.get("service_patient_name"));//居民姓名
|
|
Integer callNum = customerLogDao.callNumByWorkorder(workorderMap.get("servicerCode")+"");
|
|
Integer callNum = customerLogDao.callNumByWorkorder(workorderMap.get("servicerCode")+"");
|
|
resultMap.put("callNum",callNum);//已呼叫次数
|
|
resultMap.put("callNum",callNum);//已呼叫次数
|
|
Patient patient =patientDao.findByCode(workorderMap.get("service_patient_code")+"");
|
|
|
|
|
|
resultMap.putAll(this.getPatientInfo(workorderMap.get("service_patient_code") + ""));
|
|
|
|
/*Patient patient =patientDao.findByCode(workorderMap.get("service_patient_code")+"");
|
|
Integer sex = patient.getSex();
|
|
Integer sex = patient.getSex();
|
|
String sexName ="";
|
|
String sexName ="";
|
|
if(sex==1){
|
|
if(sex==1){
|
|
@ -438,7 +439,7 @@ public class SynergyManageService extends BaseJpaService {
|
|
for(SignPatientLabelInfo one:labelServeType){
|
|
for(SignPatientLabelInfo one:labelServeType){
|
|
serveType+=","+one.getLabelName();
|
|
serveType+=","+one.getLabelName();
|
|
}
|
|
}
|
|
resultMap.put("serveType",StringUtils.isNotEmpty(serveType)?serveType.substring(1):"");//服务类型
|
|
|
|
|
|
resultMap.put("serveType",StringUtils.isNotEmpty(serveType)?serveType.substring(1):"");//服务类型*/
|
|
return resultMap;
|
|
return resultMap;
|
|
}else{
|
|
}else{
|
|
throw new Exception("没有任务");
|
|
throw new Exception("没有任务");
|
|
@ -565,17 +566,23 @@ public class SynergyManageService extends BaseJpaService {
|
|
resultMap.put("hospitalName", result.get("hospital_name"));//所属社区
|
|
resultMap.put("hospitalName", result.get("hospital_name"));//所属社区
|
|
Integer callNum = customerLogDao.callNumByWorkorder((String) result.get("code"));
|
|
Integer callNum = customerLogDao.callNumByWorkorder((String) result.get("code"));
|
|
resultMap.put("callNum",callNum);//已呼叫次数
|
|
resultMap.put("callNum",callNum);//已呼叫次数
|
|
|
|
resultMap.putAll(this.getPatientInfo(patientCode));
|
|
|
|
return resultMap;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Map<String,Object> getPatientInfo(String patientCode){
|
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
Patient patient = patientDao.findByCode(patientCode);
|
|
Patient patient = patientDao.findByCode(patientCode);
|
|
Integer sex = patient.getSex();
|
|
Integer sex = patient.getSex();
|
|
String sexName = "";
|
|
String sexName = "";
|
|
if(sex==1){
|
|
|
|
sexName="男";
|
|
|
|
}else if(sex==2){
|
|
|
|
sexName="女";
|
|
|
|
|
|
if(sex == 1){
|
|
|
|
sexName = "男";
|
|
|
|
}else if(sex == 2){
|
|
|
|
sexName = "女";
|
|
}else{
|
|
}else{
|
|
sexName="未知";
|
|
|
|
|
|
sexName = "未知";
|
|
}
|
|
}
|
|
resultMap.put("sex",sexName);//性别
|
|
|
|
|
|
resultMap.put("sex", sexName);//性别
|
|
Integer age = IdCardUtil.getAgeForIdcard(patient.getIdcard());
|
|
Integer age = IdCardUtil.getAgeForIdcard(patient.getIdcard());
|
|
resultMap.put("age",age);//年龄
|
|
resultMap.put("age",age);//年龄
|
|
SignFamily signFamily = signFamilyDao.findSignByPatient(patientCode);
|
|
SignFamily signFamily = signFamilyDao.findSignByPatient(patientCode);
|
|
@ -590,7 +597,7 @@ public class SynergyManageService extends BaseJpaService {
|
|
List<SignPatientLabelInfo> labelHealthType = signPatientLabelInfoDao.findByPatientAndLabelTypeAndStatus(patientCode, "2", 1);
|
|
List<SignPatientLabelInfo> labelHealthType = signPatientLabelInfoDao.findByPatientAndLabelTypeAndStatus(patientCode, "2", 1);
|
|
String healthType="";
|
|
String healthType="";
|
|
for(SignPatientLabelInfo one:labelHealthType){
|
|
for(SignPatientLabelInfo one:labelHealthType){
|
|
healthType+=","+one.getLabelName();
|
|
|
|
|
|
healthType += ","+one.getLabelName();
|
|
}
|
|
}
|
|
resultMap.put("healthType", StringUtils.isNotEmpty(healthType) ? healthType.substring(1) : "");//健康情况
|
|
resultMap.put("healthType", StringUtils.isNotEmpty(healthType) ? healthType.substring(1) : "");//健康情况
|
|
List<SignPatientLabelInfo> labelServeType = signPatientLabelInfoDao.findByPatientAndLabelTypeAndStatus(patientCode, "2", 1);
|
|
List<SignPatientLabelInfo> labelServeType = signPatientLabelInfoDao.findByPatientAndLabelTypeAndStatus(patientCode, "2", 1);
|