trick9191 7 anni fa
parent
commit
5522ac5d0e

+ 3 - 3
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/prescription/PrescriptionInfoService.java

@ -406,8 +406,6 @@ public class PrescriptionInfoService extends BaseService {
                p.setPrescribeReason(byRefParaData.getJSONObject(0).getString("errorMsg"));
                p.setPrescribeTime(new Date());
                prescriptionDao.save(p);
                //审核不通过模板消息
                sendRMess(p.getCode(), 0);
                return 0;
            }
        }
@ -541,7 +539,6 @@ public class PrescriptionInfoService extends BaseService {
                //修改系统的续方消息的审核状态
                messageDao.updatePreScriptionMessage(p.getConsult(), "2", 6);
                //审核不用过发送消息
                //发送Im消息
                JSONObject content = new JSONObject();
@ -550,6 +547,9 @@ public class PrescriptionInfoService extends BaseService {
                content.put("reason", reason);
                content.put("url", "");
                imUtill.sendTopicIM(p.getDoctor(), p.getDoctorName(), p.getConsult(), "15", content.toString(), null);
                //审核不通过模板消息
                sendRMess(p.getCode(), 0);
            }
            prescriptionReviewedDao.save(reviewed);
            prescriptionDao.save(p);