lihong пре 2 година
родитељ
комит
a699e6836e

+ 11 - 0
src/main/java/thyyxxk/webserver/service/medicalinsurance/SetlListUpldService.java

@@ -1518,6 +1518,17 @@ public class SetlListUpldService {
                 }
                 if (StringUtil.isBlank(item.getSsys())) {
                     return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, String.format("手术:【%s】,手术医生不能为空", item.getSsmc()));
+                }else {
+                    String ybCodeMessage = validateYbCode(item.getSsys()).getData();
+                    if(StringUtil.notBlank(ybCodeMessage)){
+                        return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR,String.format("手术:【%s】,手术医生,%s", item.getSsmc(),ybCodeMessage));
+                    }
+                }
+                if(StringUtil.notBlank(item.getMzys())){
+                    String ybCodeMessage = validateYbCode(item.getMzys()).getData();
+                    if(StringUtil.notBlank(ybCodeMessage)){
+                        return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR,String.format("手术:【%s】,麻醉医生,%s", item.getSsmc(),ybCodeMessage));
+                    }
                 }
                 if (StringUtil.isBlank(item.getSsmc())) {
                     return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, String.format("手术:【%s】,手术名称不能为空", item.getSsmc()));