|
@ -3679,9 +3679,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
} else if ("16".equals(type)) {
|
|
} else if ("16".equals(type)) {
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "视频复诊"));
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "视频复诊"));
|
|
}
|
|
}
|
|
newConfig.setKeyword1(config.getKeyword1() + outpatientDO.getHospitalName());
|
|
|
|
newConfig.setKeyword2(config.getKeyword2() + outpatientDO.getDoctorName());
|
|
|
|
newConfig.setKeyword3(config.getKeyword3() + doctorDO.getFee());
|
|
|
|
|
|
newConfig.setKeyword1( outpatientDO.getHospitalName());
|
|
|
|
newConfig.setKeyword2(outpatientDO.getDoctorName());
|
|
|
|
newConfig.setKeyword3( doctorDO.getFee());
|
|
//发起微信消息模板推送
|
|
//发起微信消息模板推送
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
logger.info("眼科微信消息模板推送 医生拒诊开始");
|
|
logger.info("眼科微信消息模板推送 医生拒诊开始");
|
|
@ -3694,13 +3694,13 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
newConfig.setFirst(config.getFirst().replace("key1", outpatientDO.getPatientName()));
|
|
newConfig.setFirst(config.getFirst().replace("key1", outpatientDO.getPatientName()));
|
|
if ("9".equals(type)) {
|
|
if ("9".equals(type)) {
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "图文复诊"));
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "图文复诊"));
|
|
newConfig.setKeyword1(config.getKeyword1() + "图文复诊支付");
|
|
|
|
|
|
newConfig.setKeyword1( "图文复诊支付");
|
|
} else if ("16".equals(type)) {
|
|
} else if ("16".equals(type)) {
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "视频复诊"));
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "视频复诊"));
|
|
newConfig.setKeyword1(config.getKeyword1() + "视频复诊支付");
|
|
|
|
|
|
newConfig.setKeyword1( "视频复诊支付");
|
|
}
|
|
}
|
|
newConfig.setKeyword2(config.getKeyword2() + outpatientDO.getHospitalName());
|
|
|
|
newConfig.setKeyword3(config.getKeyword3() + outpatientDO.getDoctorName());
|
|
|
|
|
|
newConfig.setKeyword2(outpatientDO.getHospitalName());
|
|
|
|
newConfig.setKeyword3(outpatientDO.getDoctorName());
|
|
//发起微信消息模板推送
|
|
//发起微信消息模板推送
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
logger.info("眼科微信消息模板推送 就诊支付提醒开始");
|
|
logger.info("眼科微信消息模板推送 就诊支付提醒开始");
|
|
@ -3712,13 +3712,13 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
newConfig.setFirst(config.getFirst().replace("key1", consPatientDO.getName()));
|
|
newConfig.setFirst(config.getFirst().replace("key1", consPatientDO.getName()));
|
|
if ("1".equals(type)) {
|
|
if ("1".equals(type)) {
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "图文咨询"));
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "图文咨询"));
|
|
newConfig.setKeyword1(config.getKeyword1() + "图文咨询支付");
|
|
|
|
|
|
newConfig.setKeyword1("图文咨询支付");
|
|
} else if ("17".equals(type)) {
|
|
} else if ("17".equals(type)) {
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "视频咨询"));
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "视频咨询"));
|
|
newConfig.setKeyword1(config.getKeyword1() + "视频咨询支付");
|
|
|
|
|
|
newConfig.setKeyword1("视频咨询支付");
|
|
}
|
|
}
|
|
newConfig.setKeyword2(config.getKeyword2() + hospitalDO.getOrgName());
|
|
|
|
newConfig.setKeyword3(config.getKeyword3() + consDoctorDO.getName());
|
|
|
|
|
|
newConfig.setKeyword2( hospitalDO.getOrgName());
|
|
|
|
newConfig.setKeyword3( consDoctorDO.getName());
|
|
//发起微信消息模板推送
|
|
//发起微信消息模板推送
|
|
newConfig.setUrl(newConfig.getUrl() + "" + consultTeam.getConsult());
|
|
newConfig.setUrl(newConfig.getUrl() + "" + consultTeam.getConsult());
|
|
logger.info("眼科微信消息模板推送 咨询支付提醒开始");
|
|
logger.info("眼科微信消息模板推送 咨询支付提醒开始");
|
|
@ -3730,9 +3730,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
|
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
newConfig.setFirst(config.getFirst().replace("key1", outpatientDO.getPatientName()));
|
|
newConfig.setFirst(config.getFirst().replace("key1", outpatientDO.getPatientName()));
|
|
newConfig.setKeyword1(config.getKeyword1() + "处方支付");
|
|
|
|
newConfig.setKeyword2(config.getKeyword2() + outpatientDO.getHospitalName());
|
|
|
|
newConfig.setKeyword3(config.getKeyword3() + outpatientDO.getDoctorName());
|
|
|
|
|
|
newConfig.setKeyword1( "处方支付");
|
|
|
|
newConfig.setKeyword2(outpatientDO.getHospitalName());
|
|
|
|
newConfig.setKeyword3( outpatientDO.getDoctorName());
|
|
//发起微信消息模板推送
|
|
//发起微信消息模板推送
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
logger.info("眼科微信消息模板推送 处方支付提醒开始");
|
|
logger.info("眼科微信消息模板推送 处方支付提醒开始");
|
|
@ -3741,8 +3741,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
WxTemplateConfigDO config = wxTemplateConfigDao.findByWechatIdAndTemplateNameAndSceneAndStatus(wechatId, "template_msg_notice", scene, 1);
|
|
WxTemplateConfigDO config = wxTemplateConfigDao.findByWechatIdAndTemplateNameAndSceneAndStatus(wechatId, "template_msg_notice", scene, 1);
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
newConfig.setFirst(config.getFirst().replace("key1", outpatientDO.getPatientName()));
|
|
newConfig.setFirst(config.getFirst().replace("key1", outpatientDO.getPatientName()));
|
|
newConfig.setKeyword1(config.getKeyword1() + remindMsg);
|
|
|
|
newConfig.setKeyword2(config.getKeyword2() + DateUtil.getStringDate());
|
|
|
|
|
|
newConfig.setKeyword1( remindMsg);
|
|
|
|
newConfig.setKeyword2( DateUtil.getStringDate());
|
|
//发起微信消息模板推送
|
|
//发起微信消息模板推送
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
} else if ("outpatientMsgRemind".equalsIgnoreCase(titelType)) {
|
|
} else if ("outpatientMsgRemind".equalsIgnoreCase(titelType)) {
|
|
@ -3753,10 +3753,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
|
|
|
|
newConfig.setFirst(config.getFirst().replace("key1", outpatientDO.getDoctorName()).replace("key2", doctorDO.getJobTitleName()));
|
|
newConfig.setFirst(config.getFirst().replace("key1", outpatientDO.getDoctorName()).replace("key2", doctorDO.getJobTitleName()));
|
|
newConfig.setKeyword1(config.getKeyword1() + outpatientDO.getDoctorName());
|
|
|
|
newConfig.setKeyword2(config.getKeyword2() + outpatientDO.getAdmDate());
|
|
|
|
newConfig.setKeyword3(config.getKeyword3() + outpatientDO.getDeptName());
|
|
|
|
newConfig.setKeyword4(config.getKeyword4() + outpatientDO.getIcd10Name());
|
|
|
|
|
|
newConfig.setKeyword1( outpatientDO.getDoctorName());
|
|
|
|
newConfig.setKeyword2(DateUtil.dateToStrLong(outpatientDO.getAdmDate()));
|
|
|
|
newConfig.setKeyword3(outpatientDO.getDeptName());
|
|
|
|
newConfig.setKeyword4( outpatientDO.getIcd10Name());
|
|
if ("16".equals(type)) {
|
|
if ("16".equals(type)) {
|
|
newConfig.setRemark(config.getRemark().replace("key1", "视频复诊"));
|
|
newConfig.setRemark(config.getRemark().replace("key1", "视频复诊"));
|
|
} else if ("17".equals(type)) {
|
|
} else if ("17".equals(type)) {
|
|
@ -3772,10 +3772,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
|
|
|
|
newConfig.setFirst(config.getFirst().replace("key1", consPatientDO.getName()).replace("key2", consDoctorDO.getJobTitleName()));
|
|
newConfig.setFirst(config.getFirst().replace("key1", consPatientDO.getName()).replace("key2", consDoctorDO.getJobTitleName()));
|
|
newConfig.setKeyword1(config.getKeyword1() + consDoctorDO.getName());
|
|
|
|
newConfig.setKeyword2(config.getKeyword2() + consultTeam.getCzrq());//咨询暂无挂号时间
|
|
|
|
newConfig.setKeyword3(config.getKeyword3() + hospitalDO.getDeptName());
|
|
|
|
newConfig.setKeyword4(config.getKeyword4() + consultTeam.getSymptoms());
|
|
|
|
|
|
newConfig.setKeyword1( consDoctorDO.getName());
|
|
|
|
newConfig.setKeyword2(DateUtil.dateToStrLong(consultTeam.getCzrq()));//咨询暂无挂号时间
|
|
|
|
newConfig.setKeyword3( hospitalDO.getDeptName());
|
|
|
|
newConfig.setKeyword4( consultTeam.getSymptoms());
|
|
if ("16".equals(type)) {
|
|
if ("16".equals(type)) {
|
|
newConfig.setRemark(config.getRemark().replace("key1", "视频复诊"));
|
|
newConfig.setRemark(config.getRemark().replace("key1", "视频复诊"));
|
|
} else if ("17".equals(type)) {
|
|
} else if ("17".equals(type)) {
|
|
@ -3795,11 +3795,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
if ("16".equals(type)) {
|
|
if ("16".equals(type)) {
|
|
newConfig.setFirst(config.getFirst().replaceFirst("key1", "视频复诊"));
|
|
newConfig.setFirst(config.getFirst().replaceFirst("key1", "视频复诊"));
|
|
}
|
|
}
|
|
newConfig.setKeyword1(config.getKeyword1() + outpatientDO.getPatientName());
|
|
|
|
newConfig.setKeyword2(config.getKeyword2() + outpatientDO.getDeptName());
|
|
|
|
newConfig.setKeyword3(config.getKeyword3() + outpatientDO.getDoctorName());
|
|
|
|
newConfig.setKeyword4(config.getKeyword4() + outpatientDO.getRegisterDate());
|
|
|
|
newConfig.setKeyword5(config.getKeyword5() + generalDoctorWaitingNumber(doctorDO.getId(), wxId, outpatientId));
|
|
|
|
|
|
newConfig.setKeyword1( outpatientDO.getPatientName());
|
|
|
|
newConfig.setKeyword2( outpatientDO.getDeptName());
|
|
|
|
newConfig.setKeyword3( outpatientDO.getDoctorName());
|
|
|
|
newConfig.setKeyword4(DateUtil.dateToStrLong(outpatientDO.getRegisterDate()));
|
|
|
|
newConfig.setKeyword5(generalDoctorWaitingNumber(doctorDO.getId(), wxId, outpatientId));
|
|
//发起微信消息模板推送
|
|
//发起微信消息模板推送
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
logger.info("眼科微信消息模板推送 视频问诊预约提醒开始");
|
|
logger.info("眼科微信消息模板推送 视频问诊预约提醒开始");
|
|
@ -3810,11 +3810,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
if ("17".equals(type)) {
|
|
if ("17".equals(type)) {
|
|
newConfig.setFirst(config.getFirst().replaceFirst("key1", "视频咨询"));
|
|
newConfig.setFirst(config.getFirst().replaceFirst("key1", "视频咨询"));
|
|
}
|
|
}
|
|
newConfig.setKeyword1(config.getKeyword1() + consPatientDO.getName());
|
|
|
|
newConfig.setKeyword2(config.getKeyword2() + hospitalDO.getDeptName());
|
|
|
|
newConfig.setKeyword3(config.getKeyword3() + consDoctorDO.getName());
|
|
|
|
newConfig.setKeyword4(config.getKeyword4() + consultTeam.getCzrq());
|
|
|
|
newConfig.setKeyword5(config.getKeyword5() + generalDoctorWaitingNumber(consDoctorDO.getId(), wxId, outpatientId));
|
|
|
|
|
|
newConfig.setKeyword1(consPatientDO.getName());
|
|
|
|
newConfig.setKeyword2(hospitalDO.getDeptName());
|
|
|
|
newConfig.setKeyword3(consDoctorDO.getName());
|
|
|
|
newConfig.setKeyword4(DateUtil.dateToStrLong(consultTeam.getCzrq()));
|
|
|
|
newConfig.setKeyword5(generalDoctorWaitingNumber(consDoctorDO.getId(), wxId, outpatientId));
|
|
//发起微信消息模板推送
|
|
//发起微信消息模板推送
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
|
|
logger.info("眼科微信消息模板推送 视频咨询预约提醒开始");
|
|
logger.info("眼科微信消息模板推送 视频咨询预约提醒开始");
|