浏览代码

手术,麻醉医生效验

lihong 2 年之前
父节点
当前提交
a699e6836e
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      src/main/java/thyyxxk/webserver/service/medicalinsurance/SetlListUpldService.java

+ 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()));