|
@ -5313,7 +5313,6 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
sendWxTemplateMsg(wechatId, outpatient.getId(),null, "17", "videoOrderRemind", "");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
BasePatientDO patient = basePatientDao.findById(outpatient.getPatient());
|
|
|
if ("xm_ykyy_wx".equalsIgnoreCase(wechatId)) {
|
|
|
ykyyService.pushNotificationToYktPatient(patient.getYktId(), systemMessageDO.getTitle(), data.get("msg").toString());
|
|
@ -5362,19 +5361,23 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
sendWxTemplateMsg(wechatId, outpatient.getId(),null, type, "payRemind", "");
|
|
|
if ("xm_ykyy_wx".equalsIgnoreCase(wechatId)) {
|
|
|
BasePatientDO patient = basePatientDao.findById(outpatient.getPatient());
|
|
|
ykyyService.pushNotificationToYktPatient(patient.getYktId(), systemMessageDO.getTitle(), data.get("msg").toString());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
if (consultTeamDo!=null){
|
|
|
BaseDoctorDO doctorDO = baseDoctorDao.findById(consultTeamDo.getDoctor());
|
|
|
BasePatientDO patientDO = basePatientDao.findById(consultTeamDo.getPatient());
|
|
|
if (consultTeamDo.getType().equals("17")){
|
|
|
type = "17";
|
|
|
msg = outpatient.getPatientName() + ",您好!您有一个视频咨询订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
|
|
|
msg = patientDO.getName() + ",您好!您有一个视频咨询订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
|
|
|
}else if (consultTeamDo.getType().equals("1")){
|
|
|
type = "1";
|
|
|
msg = outpatient.getPatientName() + ",您好!您有一个图文咨询订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
|
|
|
msg = patientDO.getName() + ",您好!您有一个图文咨询订单待支付,请及时支付。点击完成支付,如您已支付请忽略本条信息。";
|
|
|
}
|
|
|
BaseDoctorDO doctorDO = baseDoctorDao.findById(consultTeamDo.getDoctor());
|
|
|
BasePatientDO patientDO = basePatientDao.findById(consultTeamDo.getPatient());
|
|
|
systemMessageDO.setSender(consultTeamDo.getDoctor());
|
|
|
systemMessageDO.setSenderName(doctorDO.getName());
|
|
|
systemMessageDO.setRelationCode(consultTeamDo.getConsult());
|
|
@ -5383,7 +5386,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
|
|
|
data = new JSONObject();
|
|
|
try {
|
|
|
data.put("name", outpatient.getPatientName());
|
|
|
data.put("name", patientDO.getName());
|
|
|
data.put("age", IdCardUtil.getAgeForIdcard(patientDO.getIdcard()));
|
|
|
data.put("gender", IdCardUtil.getSexForIdcard_new(patientDO.getIdcard()));
|
|
|
data.put("question", consultTeamDo.getSymptoms());
|
|
@ -5394,18 +5397,13 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
|
|
|
sendWxTemplateMsg(wechatId, "",consultTeamDo, type, "payRemind", "");
|
|
|
if ("xm_ykyy_wx".equalsIgnoreCase(wechatId)) {
|
|
|
ykyyService.pushNotificationToYktPatient(patientDO.getYktId(), systemMessageDO.getTitle(), data.get("msg").toString());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BasePatientDO patient = basePatientDao.findById(outpatient.getPatient());
|
|
|
if ("xm_ykyy_wx".equalsIgnoreCase(wechatId)) {
|
|
|
ykyyService.pushNotificationToYktPatient(patient.getYktId(), systemMessageDO.getTitle(), data.get("msg").toString());
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|