|
@ -648,11 +648,20 @@ public class PrescriptionExpressageService extends BaseJpaService<WlyyPrescripti
|
|
|
}
|
|
|
//发送微信模板消息
|
|
|
public void pushRouteLogToPatient(List<WlyyPrescriptionExpressageLogDO> routinfolist){
|
|
|
boolean isSend = true;//防止80和8000同时存在多向患者端多发一条消息
|
|
|
for (WlyyPrescriptionExpressageLogDO wlyyPrescriptionExpressageLogDO:routinfolist){
|
|
|
if ("50".equalsIgnoreCase(wlyyPrescriptionExpressageLogDO.getOpCode())||
|
|
|
"204".equalsIgnoreCase(wlyyPrescriptionExpressageLogDO.getOpCode())||
|
|
|
"80".equalsIgnoreCase(wlyyPrescriptionExpressageLogDO.getOpCode())||"8000".equalsIgnoreCase(wlyyPrescriptionExpressageLogDO.getOpCode())){
|
|
|
prescriptionService.sendSFWxTemplate(wlyyPrescriptionExpressageLogDO.getOutpatientId(),wlyyPrescriptionExpressageLogDO.getPrescriptionId(),wlyyPrescriptionExpressageLogDO.getOpCode());
|
|
|
if ("80".equalsIgnoreCase(wlyyPrescriptionExpressageLogDO.getOpCode())||"8000".equalsIgnoreCase(wlyyPrescriptionExpressageLogDO.getOpCode())){
|
|
|
if (isSend){
|
|
|
prescriptionService.sendSFWxTemplate(wlyyPrescriptionExpressageLogDO.getOutpatientId(),wlyyPrescriptionExpressageLogDO.getPrescriptionId(),wlyyPrescriptionExpressageLogDO.getOpCode());
|
|
|
isSend= false;
|
|
|
}
|
|
|
}else {
|
|
|
prescriptionService.sendSFWxTemplate(wlyyPrescriptionExpressageLogDO.getOutpatientId(),wlyyPrescriptionExpressageLogDO.getPrescriptionId(),wlyyPrescriptionExpressageLogDO.getOpCode());
|
|
|
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|