|
@ -602,14 +602,17 @@ public class SynergyManageService extends BaseJpaService {
|
|
* @param customerCode
|
|
* @param customerCode
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public String isNotException(String workorderCode, String customerCode) {
|
|
|
|
|
|
public Object isNotException(String workorderCode, String customerCode) {
|
|
String sql = "SELECT cl.workorder_service_code from manage_synergy_workorder_customer_log cl " +
|
|
String sql = "SELECT cl.workorder_service_code from manage_synergy_workorder_customer_log cl " +
|
|
"where cl.workorder_service_code not in (SELECT l.workorder_service_code from manage_synergy_workorder_customer_log l where l.`status` = 2) " +
|
|
|
|
|
|
"where cl.workorder_service_code not in (SELECT l.workorder_service_code from manage_synergy_workorder_customer_log l where l.`status` = 1) " +
|
|
"and cl.workorder_code = '" + workorderCode + "' and cl.create_user_code= '" + customerCode + "' " +
|
|
"and cl.workorder_code = '" + workorderCode + "' and cl.create_user_code= '" + customerCode + "' " +
|
|
"GROUP BY cl.workorder_code, cl.create_user_code " +
|
|
"GROUP BY cl.workorder_code, cl.create_user_code " +
|
|
"ORDER BY cl.create_time LIMIT 0, 1";
|
|
"ORDER BY cl.create_time LIMIT 0, 1";
|
|
String workorderServiceCode = jdbcTemplate.queryForObject(sql, String.class);
|
|
|
|
return workorderServiceCode;
|
|
|
|
|
|
List<Map<String, Object>> list = jdbcTemplate.queryForList(sql);
|
|
|
|
if(list.size() > 0){
|
|
|
|
return list.get(0).get("workorder_service_code");
|
|
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|
|
public Map<String, Object> loadingInfo(String workorderServiceCode) {
|
|
public Map<String, Object> loadingInfo(String workorderServiceCode) {
|
|
@ -624,8 +627,8 @@ public class SynergyManageService extends BaseJpaService {
|
|
Map<String, Object> result = (Map<String, Object>) jdbcTemplate.queryForList(sql);
|
|
Map<String, Object> result = (Map<String, Object>) jdbcTemplate.queryForList(sql);
|
|
String patientCode = (String) result.get("service_patient_name");
|
|
String patientCode = (String) result.get("service_patient_name");
|
|
*/
|
|
*/
|
|
String patientCode = workorderServicerDO.getServicePatientName();
|
|
|
|
resultMap.put("patientName", patientCode);
|
|
|
|
|
|
String patientCode = workorderServicerDO.getServicePatientCode();
|
|
|
|
resultMap.put("patientName", workorderServicerDO.getServicePatientName());
|
|
resultMap.put("townName", workorderServicerDO.getTownName());//所属区县
|
|
resultMap.put("townName", workorderServicerDO.getTownName());//所属区县
|
|
resultMap.put("hospitalName", workorderServicerDO.getHospitalName());//所属社区
|
|
resultMap.put("hospitalName", workorderServicerDO.getHospitalName());//所属社区
|
|
Integer callNum = customerLogDao.callNumByWorkorder(workorderServiceCode);
|
|
Integer callNum = customerLogDao.callNumByWorkorder(workorderServiceCode);
|
|
@ -650,7 +653,7 @@ public class SynergyManageService extends BaseJpaService {
|
|
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);
|
|
resultMap.put("signDoctor", signFamily.getDoctor());//签约医生(即:工单创建医生)
|
|
|
|
|
|
resultMap.put("signDoctor", signFamily.getDoctorName());//签约医生(即:工单创建医生)
|
|
resultMap.put("healthDoctor", signFamily.getDoctorHealthName());//健管师
|
|
resultMap.put("healthDoctor", signFamily.getDoctorHealthName());//健管师
|
|
List<SignPatientLabelInfo> labelDiseaseType = signPatientLabelInfoDao.findByPatientAndLabelTypeAndStatus(patientCode, "3", 1);
|
|
List<SignPatientLabelInfo> labelDiseaseType = signPatientLabelInfoDao.findByPatientAndLabelTypeAndStatus(patientCode, "3", 1);
|
|
String diseaseType="";
|
|
String diseaseType="";
|
|
@ -664,7 +667,7 @@ public class SynergyManageService extends BaseJpaService {
|
|
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, "1", 1);
|
|
String serveType="";
|
|
String serveType="";
|
|
for(SignPatientLabelInfo one:labelServeType){
|
|
for(SignPatientLabelInfo one:labelServeType){
|
|
serveType+=","+one.getLabelName();
|
|
serveType+=","+one.getLabelName();
|