|
@ -3,6 +3,7 @@ package com.yihu.jw.im.service;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.ibm.mq.jmqi.MQPD;
|
|
import com.yihu.jw.doctor.dao.BaseDoctorDao;
|
|
import com.yihu.jw.doctor.dao.BaseDoctorDao;
|
|
import com.yihu.jw.doctor.dao.BaseDoctorHospitalDao;
|
|
import com.yihu.jw.doctor.dao.BaseDoctorHospitalDao;
|
|
import com.yihu.jw.doctor.dao.BaseDoctorRoleDao;
|
|
import com.yihu.jw.doctor.dao.BaseDoctorRoleDao;
|
|
@ -2254,7 +2255,7 @@ public class ImService {
|
|
sql = "SELECT " +
|
|
sql = "SELECT " +
|
|
"a.id AS \"id\"," +
|
|
"a.id AS \"id\"," +
|
|
"op.pay_status AS \"payStatus\"," +
|
|
"op.pay_status AS \"payStatus\"," +
|
|
"case op.type when 1 then 9 when 2 then 16 else op.type end type," +
|
|
|
|
|
|
"case op.type when '1' then '9' when '2' then '16' else op.type end type," +
|
|
"op.description AS \"title\"," +
|
|
"op.description AS \"title\"," +
|
|
"op.description AS \"symptoms\",";
|
|
"op.description AS \"symptoms\",";
|
|
if ("xm_ykyy_wx".equals(wxId)) {
|
|
if ("xm_ykyy_wx".equals(wxId)) {
|
|
@ -2278,7 +2279,7 @@ public class ImService {
|
|
"op.id as \"outpatientId\"," +
|
|
"op.id as \"outpatientId\"," +
|
|
"op.type as \"consultType\"," +
|
|
"op.type as \"consultType\"," +
|
|
"op.general_doctor as \"generalDoctor\"," +
|
|
"op.general_doctor as \"generalDoctor\"," +
|
|
"op.icd10_name as \"icd10Name\"," +
|
|
|
|
|
|
"op.icd10_name as \"icd10Name\"," +
|
|
"d.photo AS \"patientPhoto\" , " +
|
|
"d.photo AS \"patientPhoto\" , " +
|
|
"op.doctor as \"doctor\" ," +
|
|
"op.doctor as \"doctor\" ," +
|
|
"op.source as \"source\" " +
|
|
"op.source as \"source\" " +
|
|
@ -2484,7 +2485,19 @@ public class ImService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (map.get("id")!=null){
|
|
if (map.get("id")!=null){
|
|
if("1".equals(type) || "15".equals(type) || type.contains(",")){
|
|
|
|
|
|
if("1".equals(type) || "15".equals(type) || type.contains(",")|| "17".equals(type)){
|
|
|
|
String consultCode = map.get("id").toString();
|
|
|
|
List<WlyyConsultAdvice> consultAdvices = wlyyConsultAdviceDao.getByConsult(consultCode);
|
|
|
|
StringBuffer content = new StringBuffer();
|
|
|
|
for (WlyyConsultAdvice consultAdvice:consultAdvices){
|
|
|
|
content.append(consultAdvice.getAdviceValue()+",");
|
|
|
|
}
|
|
|
|
if (content!=null&&content.length()>0){
|
|
|
|
System.out.println("content+====="+content);
|
|
|
|
content.deleteCharAt(content.length()-1);
|
|
|
|
}
|
|
|
|
map.put("icd10Name",content);
|
|
|
|
}else if ("0".equals(type)&&null!=map.get("type")&&"17".equalsIgnoreCase(map.get("type").toString())){
|
|
String consultCode = map.get("id").toString();
|
|
String consultCode = map.get("id").toString();
|
|
List<WlyyConsultAdvice> consultAdvices = wlyyConsultAdviceDao.getByConsult(consultCode);
|
|
List<WlyyConsultAdvice> consultAdvices = wlyyConsultAdviceDao.getByConsult(consultCode);
|
|
StringBuffer content = new StringBuffer();
|
|
StringBuffer content = new StringBuffer();
|