lihong 1 rok temu
rodzic
commit
24bd616eef

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

@@ -243,7 +243,9 @@ public class ClinicController {
                 return resultMap;
             }
             if(zyActpatientService.checkZaiYuan(patientId)){
-                throw new BizException("病人已经在住院,不能接诊,再开门诊处方");
+                resultMap.put("code", -1);
+                resultMap.put("message", "病人已经在住院,不能接诊,再开门诊处方");
+                return resultMap;
             }
             List<String> deptCodes = userDeptRelationService.queryAllByUserIdCode(tokenUser.getUserIdCode());
             String yjDeptCode=checkYjDept(deptCodes);