|
@ -1359,6 +1359,9 @@ public class ImService {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
if (wxId.equalsIgnoreCase("xm_ykyy_wx")) {
|
|
|
|
|
imUtil.sendImMsg(doctorCode, doctor.getName(),sessionId,"1","您好,很高兴为您服务,请问有什么可以帮助到您?","1","");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (obj == null) {
|
|
if (obj == null) {
|
|
|
throw new RuntimeException("IM消息发送异常!");
|
|
throw new RuntimeException("IM消息发送异常!");
|
|
@ -4069,6 +4072,11 @@ public class ImService {
|
|
|
"op.type as \"type\"," +
|
|
"op.type as \"type\"," +
|
|
|
"op.outpatient_type as \"outpatientType\"," +
|
|
"op.outpatient_type as \"outpatientType\"," +
|
|
|
"op.description AS \"title\"," +
|
|
"op.description AS \"title\"," +
|
|
|
|
|
"op.scbgjt AS \"scbgjt\"," +
|
|
|
|
|
"op.scbgjt_type AS \"scbgjtType\"," +
|
|
|
|
|
"op.scbgjt_name AS \"scbgjtName\"," +
|
|
|
|
|
"op.scbgjt_org_code AS \"scbgjtOrgCode\"," +
|
|
|
|
|
"op.scbgjt_org_name AS \"scbgjtOrgName\"," +
|
|
|
"op.description AS \"symptoms\",";
|
|
"op.description AS \"symptoms\",";
|
|
|
if ("xm_ykyy_wx".equals(wxId)) {
|
|
if ("xm_ykyy_wx".equals(wxId)) {
|
|
|
if (flag) {
|
|
if (flag) {
|
|
@ -4174,6 +4182,8 @@ public class ImService {
|
|
|
sql += " AND op.type =2 and op.outpatient_type = 3";
|
|
sql += " AND op.type =2 and op.outpatient_type = 3";
|
|
|
} else if (type.equalsIgnoreCase("12")) {
|
|
} else if (type.equalsIgnoreCase("12")) {
|
|
|
sql += " AND op.outpatient_type = 2";
|
|
sql += " AND op.outpatient_type = 2";
|
|
|
|
|
} else if (type.equalsIgnoreCase("19")) {
|
|
|
|
|
sql += " AND op.scbgjt is not null ";
|
|
|
} else {
|
|
} else {
|
|
|
sql += " AND op.type in (1,2,3) ";
|
|
sql += " AND op.type in (1,2,3) ";
|
|
|
}
|
|
}
|
|
@ -4227,6 +4237,9 @@ public class ImService {
|
|
|
map.put("type", 12);
|
|
map.put("type", 12);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
if(!StringUtils.isEmpty(map.get("scbgjt"))) {
|
|
|
|
|
map.put("type", 19);
|
|
|
|
|
}
|
|
|
if (map.get("id") != null) {
|
|
if (map.get("id") != null) {
|
|
|
if ("1".equals(type) || "15".equals(type) || type.contains(",") || "17".equals(type)) {
|
|
if ("1".equals(type) || "15".equals(type) || type.contains(",") || "17".equals(type)) {
|
|
|
String consultCode = map.get("id").toString();
|
|
String consultCode = map.get("id").toString();
|
|
@ -4338,6 +4351,8 @@ public class ImService {
|
|
|
sql += " AND op.type =2 and op.outpatient_type = 3";
|
|
sql += " AND op.type =2 and op.outpatient_type = 3";
|
|
|
} else if (type.equalsIgnoreCase("12")) {
|
|
} else if (type.equalsIgnoreCase("12")) {
|
|
|
sql += " AND op.outpatient_type = 2";
|
|
sql += " AND op.outpatient_type = 2";
|
|
|
|
|
}else if (type.equalsIgnoreCase("19")) {
|
|
|
|
|
sql += " AND op.scbgjt is not null ";
|
|
|
} else {
|
|
} else {
|
|
|
sql += " AND op.type in (1,2,3) ";
|
|
sql += " AND op.type in (1,2,3) ";
|
|
|
}
|
|
}
|
|
@ -4367,7 +4382,9 @@ public class ImService {
|
|
|
"\ta.end_time AS \"etime\",\n" +
|
|
"\ta.end_time AS \"etime\",\n" +
|
|
|
"\ta.description AS \"des\",\n" +
|
|
"\ta.description AS \"des\",\n" +
|
|
|
"\tb. STATUS AS \"pay\",\n" +
|
|
"\tb. STATUS AS \"pay\",\n" +
|
|
|
"\ta. STATUS AS \"STATUS\"\n" +
|
|
|
|
|
|
|
"\ta. STATUS AS \"STATUS\",\n" +
|
|
|
|
|
"\ta. scbgjt_org_code AS \"scbgjtOrgCode\",\n" +
|
|
|
|
|
"\ta. scbgjt_org_name AS \"scbgjtOrgName\"\n" +
|
|
|
"FROM\n" +
|
|
"FROM\n" +
|
|
|
"\twlyy_outpatient a\n" +
|
|
"\twlyy_outpatient a\n" +
|
|
|
"LEFT JOIN wlyy_prescription b ON a.id = b.outpatient_id\n" +
|
|
"LEFT JOIN wlyy_prescription b ON a.id = b.outpatient_id\n" +
|