|
@ -9319,6 +9319,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
}
|
|
}
|
|
String name = one.getPatientName();
|
|
String name = one.getPatientName();
|
|
String baseUrl = findDomainUrlInDict();
|
|
String baseUrl = findDomainUrlInDict();
|
|
|
|
//向当前医生发送消息
|
|
if (one.getType().equalsIgnoreCase("1")){
|
|
if (one.getType().equalsIgnoreCase("1")){
|
|
title = "图文复诊";
|
|
title = "图文复诊";
|
|
msg = name+"("+sex+" "+age+"岁)向您发起了图文复诊已更换其他医生接诊,您无需接诊。";
|
|
msg = name+"("+sex+" "+age+"岁)向您发起了图文复诊已更换其他医生接诊,您无需接诊。";
|
|
@ -9330,6 +9331,28 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
if (wechatId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
if (wechatId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
String url = "";
|
|
String url = "";
|
|
// String url=baseUrl+"/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+one.getDescription()+"&type=3&id="+one.getId();
|
|
// String url=baseUrl+"/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+one.getDescription()+"&type=3&id="+one.getId();
|
|
|
|
enterpriseService.sendTWMesByDoctor("zsyy",doctor,title,msg,url);
|
|
|
|
}else if (wechatId.equalsIgnoreCase("xm_ykyy_wx")){
|
|
|
|
String url=baseUrl+"/ims-app-web/#/onlineChat/detail?_rs_title="+one.getDescription()+"&type=3&id="+one.getId();
|
|
|
|
enterpriseService.sendTWMesByDoctor("xm_ykyy_wx",doctor,title,msg,url);
|
|
|
|
}else if (wechatId.equalsIgnoreCase("xm_xzzx_wx")){
|
|
|
|
String url="https://ih.xmheart.com/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+one.getDescription()+"&type=3&id="+one.getId();
|
|
|
|
enterpriseService.sendTWMesByDoctor("xm_xzzx_wx",doctor,title,msg,url);
|
|
|
|
}else if (wechatId.equalsIgnoreCase("xm_hcyy_wx")){
|
|
|
|
String url="https://hlwyy.xmhcyy.com/hcyy/ims-app-web/#/onlineChat/detail?_rs_title="+one.getDescription()+"&type=3&id="+one.getId();
|
|
|
|
enterpriseService.sendTWMesByDoctor("xm_hcyy_wx",doctor,title,msg,url);
|
|
|
|
}
|
|
|
|
//向更换的医生发消息
|
|
|
|
if (one.getType().equalsIgnoreCase("1")){
|
|
|
|
title = "图文复诊";
|
|
|
|
msg = name+"("+sex+" "+age+"岁)向您发起了图文复诊,请您及时接诊。";
|
|
|
|
}else if (one.getType().equalsIgnoreCase("2")){
|
|
|
|
title = "视频复诊";
|
|
|
|
date = DateUtil.dateToStrLong(one.getRegisterDate());
|
|
|
|
msg = name+"("+sex+" "+age+"岁)预约了"+date+"的视频复诊,请您及时接诊。";
|
|
|
|
}
|
|
|
|
if (wechatId.equalsIgnoreCase("xm_zsyy_wx")){
|
|
|
|
String url=baseUrl+"/hlwyy/ims-app-web/#/onlineChat/detail?_rs_title="+one.getDescription()+"&type=3&id="+one.getId();
|
|
enterpriseService.sendTWMesByDoctor("zsyy",one.getDoctor(),title,msg,url);
|
|
enterpriseService.sendTWMesByDoctor("zsyy",one.getDoctor(),title,msg,url);
|
|
}else if (wechatId.equalsIgnoreCase("xm_ykyy_wx")){
|
|
}else if (wechatId.equalsIgnoreCase("xm_ykyy_wx")){
|
|
String url=baseUrl+"/ims-app-web/#/onlineChat/detail?_rs_title="+one.getDescription()+"&type=3&id="+one.getId();
|
|
String url=baseUrl+"/ims-app-web/#/onlineChat/detail?_rs_title="+one.getDescription()+"&type=3&id="+one.getId();
|