|
|
@ -237,6 +237,27 @@ public class TimeoutOverDueService {
|
|
|
logger.info("自动结束咨询报错 consultCode: "+consultCode);
|
|
|
}
|
|
|
|
|
|
} else if(currentTime-outpatientTime>23*60*60*1000) {
|
|
|
//系统消息
|
|
|
SystemMessageDO messageDO = new SystemMessageDO();
|
|
|
messageDO.setTitle("待回复提醒");
|
|
|
messageDO.setType("144");
|
|
|
messageDO.setSender(wlyyOutpatientDO.getDoctor());
|
|
|
messageDO.setSenderName(wlyyOutpatientDO.getDoctorName());
|
|
|
messageDO.setRelationCode(wlyyOutpatientDO.getId());
|
|
|
messageDO.setReceiver(wlyyOutpatientDO.getPatient());
|
|
|
messageDO.setReceiverName(wlyyOutpatientDO.getPatientName());
|
|
|
net.sf.json.JSONObject data = new net.sf.json.JSONObject();
|
|
|
data.put("name", wlyyOutpatientDO.getPatientName());
|
|
|
data.put("consumerName",wlyyOutpatientDO.getConsumerName());
|
|
|
data.put("age", IdCardUtil.getAgeForIdcard(wlyyOutpatientDO.getIdcard()));
|
|
|
data.put("gender", IdCardUtil.getSexForIdcard(wlyyOutpatientDO.getIdcard()));
|
|
|
data.put("question", wlyyOutpatientDO.getIcd10Name());
|
|
|
data.put("type","nnn");
|
|
|
data.put("msg", "您当前的订单尚未回复,1 小时后系统将自动关闭,请留意处理。");
|
|
|
messageDO.setData(data.toString());
|
|
|
systemMessageService.saveMessage(messageDO);
|
|
|
outpatientDao.save(wlyyOutpatientDO);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|