Browse Source

接诊时总是发送接诊消息给分诊台

lighter 11 months ago
parent
commit
7f22e6ec98
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/main/java/cn/hnthyy/thmz/controller/mz/ClinicController.java

+ 3 - 5
src/main/java/cn/hnthyy/thmz/controller/mz/ClinicController.java

@@ -146,11 +146,9 @@ public class ClinicController {
                 serialNo = null;
             }
             //未接诊的需要变更接诊状态
-            if (serialNo != null && StringUtils.isNotBlank(serialNo)) {
-                int num = clinicService.inClinic(patientId, serialNo, turnToConsultationId,deptNo, tokenUser.getUserIdCode());
-                if (num > 0) {
-                    haiCiAdapterService.notify(serialNo, 2);
-                }
+            if (StringUtils.isNotBlank(serialNo)) {
+                clinicService.inClinic(patientId, serialNo, turnToConsultationId,deptNo, tokenUser.getUserIdCode());
+                haiCiAdapterService.notify(serialNo, 2);
             }
             resultMap.put("code", 0);
             resultMap.put("message", "接诊成功");