|
@ -1111,7 +1111,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
" base_doctor d " +
|
|
|
" JOIN base_doctor_hospital h ON h.doctor_code = d.id " +
|
|
|
" WHERE " +
|
|
|
" 1=1";
|
|
|
" 1=1 and d.del=1 ";
|
|
|
Map<String, Object> params = new HashedMap();
|
|
|
if (StringUtils.isNotBlank(dept)) {
|
|
|
sql += " AND h.dept_code = '" + dept + "'";
|
|
@ -3286,52 +3286,19 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
public BaseDoctorDO updateDoctorInfo(String id, String img,String background,String expertise,String visitHospital,String visitHospitalName,String visitDept,String visitDeptName,String backgroundId,String name,Integer sex,String learning,String introduce,String photo){
|
|
|
if (StringUtils.isNoneBlank(id)){
|
|
|
BaseDoctorDO baseDoctorDO = baseDoctorDao.findById(id);
|
|
|
if (StringUtils.isNoneBlank(img)){
|
|
|
baseDoctorDO.setImg(img);
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNoneBlank(background)){
|
|
|
baseDoctorDO.setBackground(background);
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNoneBlank(expertise)){
|
|
|
baseDoctorDO.setExpertise(expertise);
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNoneBlank(visitHospital)){
|
|
|
baseDoctorDO.setVisitHospital(visitHospital);
|
|
|
}
|
|
|
|
|
|
if(StringUtils.isNoneBlank(visitHospitalName)){
|
|
|
baseDoctorDO.setVisitHospitalName(visitHospitalName);
|
|
|
}
|
|
|
|
|
|
if (StringUtils.isNoneBlank(visitDept)){
|
|
|
baseDoctorDO.setVisitDept(visitDept);
|
|
|
}
|
|
|
if (StringUtils.isNoneBlank(visitDeptName)){
|
|
|
baseDoctorDO.setVisitDeptName(visitDeptName);
|
|
|
}
|
|
|
if (StringUtils.isNoneBlank(backgroundId)){
|
|
|
baseDoctorDO.setBackgroundId(backgroundId);
|
|
|
}
|
|
|
|
|
|
if(StringUtils.isNoneBlank(name)){
|
|
|
baseDoctorDO.setName(name);
|
|
|
}
|
|
|
|
|
|
if(StringUtils.isNoneBlank(learning)){
|
|
|
baseDoctorDO.setLearning(learning);
|
|
|
}
|
|
|
if (sex!=null){
|
|
|
baseDoctorDO.setSex(sex);
|
|
|
}
|
|
|
if (StringUtils.isNoneBlank(introduce)){
|
|
|
baseDoctorDO.setIntroduce(introduce);
|
|
|
}
|
|
|
if(StringUtils.isNoneBlank(photo)){
|
|
|
baseDoctorDO.setPhoto(photo);
|
|
|
}
|
|
|
baseDoctorDO.setImg(img);
|
|
|
baseDoctorDO.setBackground(background);
|
|
|
baseDoctorDO.setExpertise(expertise);
|
|
|
baseDoctorDO.setVisitHospital(visitHospital);
|
|
|
baseDoctorDO.setVisitHospitalName(visitHospitalName);
|
|
|
baseDoctorDO.setVisitDept(visitDept);
|
|
|
baseDoctorDO.setVisitDeptName(visitDeptName);
|
|
|
baseDoctorDO.setBackgroundId(backgroundId);
|
|
|
baseDoctorDO.setName(name);
|
|
|
baseDoctorDO.setLearning(learning);
|
|
|
baseDoctorDO.setSex(sex);
|
|
|
baseDoctorDO.setIntroduce(introduce);
|
|
|
baseDoctorDO.setPhoto(photo);
|
|
|
return baseDoctorDao.save(baseDoctorDO);
|
|
|
}else {
|
|
|
return null;
|
|
@ -3712,9 +3679,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
} else if ("16".equals(type)) {
|
|
|
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());
|
|
|
logger.info("眼科微信消息模板推送 医生拒诊开始");
|
|
@ -3727,13 +3694,13 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
newConfig.setFirst(config.getFirst().replace("key1", outpatientDO.getPatientName()));
|
|
|
if ("9".equals(type)) {
|
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "图文复诊"));
|
|
|
newConfig.setKeyword1(config.getKeyword1() + "图文复诊支付");
|
|
|
newConfig.setKeyword1( "图文复诊支付");
|
|
|
} else if ("16".equals(type)) {
|
|
|
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());
|
|
|
logger.info("眼科微信消息模板推送 就诊支付提醒开始");
|
|
@ -3745,13 +3712,13 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
newConfig.setFirst(config.getFirst().replace("key1", consPatientDO.getName()));
|
|
|
if ("1".equals(type)) {
|
|
|
newConfig.setFirst(newConfig.getFirst().replace("key2", "图文咨询"));
|
|
|
newConfig.setKeyword1(config.getKeyword1() + "图文咨询支付");
|
|
|
newConfig.setKeyword1("图文咨询支付");
|
|
|
} else if ("17".equals(type)) {
|
|
|
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());
|
|
|
logger.info("眼科微信消息模板推送 咨询支付提醒开始");
|
|
@ -3763,9 +3730,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
|
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
|
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());
|
|
|
logger.info("眼科微信消息模板推送 处方支付提醒开始");
|
|
@ -3774,8 +3741,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
WxTemplateConfigDO config = wxTemplateConfigDao.findByWechatIdAndTemplateNameAndSceneAndStatus(wechatId, "template_msg_notice", scene, 1);
|
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
|
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());
|
|
|
} else if ("outpatientMsgRemind".equalsIgnoreCase(titelType)) {
|
|
@ -3786,10 +3753,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
|
|
|
|
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)) {
|
|
|
newConfig.setRemark(config.getRemark().replace("key1", "视频复诊"));
|
|
|
} else if ("17".equals(type)) {
|
|
@ -3805,10 +3772,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
BeanUtils.copyProperties(config, newConfig);
|
|
|
|
|
|
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)) {
|
|
|
newConfig.setRemark(config.getRemark().replace("key1", "视频复诊"));
|
|
|
} else if ("17".equals(type)) {
|
|
@ -3828,11 +3795,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
if ("16".equals(type)) {
|
|
|
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());
|
|
|
logger.info("眼科微信消息模板推送 视频问诊预约提醒开始");
|
|
@ -3843,11 +3810,11 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
if ("17".equals(type)) {
|
|
|
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());
|
|
|
logger.info("眼科微信消息模板推送 视频咨询预约提醒开始");
|