|
@ -3941,6 +3941,25 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
if ("prescriptionPayRemind".equalsIgnoreCase(titelType)){
|
|
if ("prescriptionPayRemind".equalsIgnoreCase(titelType)){
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
String scene = "";
|
|
|
|
WxTemplateConfigDO newConfig = new WxTemplateConfigDO();
|
|
|
|
if ("doctorRefuseRemind".equalsIgnoreCase(titelType)) {
|
|
|
|
scene = "ysqxjz";
|
|
|
|
WxTemplateConfigDO config = wxTemplateConfigDao.findByWechatIdAndTemplateNameAndSceneAndStatus(wechatId, "template_doctor_notice", scene, 1);
|
|
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
|
|
newConfig.setFirst(config.getFirst().replace("key1", outpatientDO.getPatientName()));
|
|
|
|
if ("9".equals(type)) {
|
|
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "图文复诊"));
|
|
|
|
} else if ("16".equals(type)) {
|
|
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "视频复诊"));
|
|
|
|
}
|
|
|
|
newConfig.setKeyword1( outpatientDO.getHospitalName());
|
|
|
|
newConfig.setKeyword2(outpatientDO.getDoctorName());
|
|
|
|
newConfig.setKeyword3( doctorDO.getFee());
|
|
|
|
//发起微信消息模板推送
|
|
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
|
|
logger.info("中山医院消息模板推送 医生拒诊开始");
|
|
|
|
}
|
|
String responseMsg="";
|
|
String responseMsg="";
|
|
String prefix="https://hlwyy.xmzsh.com";
|
|
String prefix="https://hlwyy.xmzsh.com";
|
|
if(StringUtils.isNotEmpty(outpatientId)){
|
|
if(StringUtils.isNotEmpty(outpatientId)){
|