Forráskód Böngészése

08 17 01 update reportForm code

hr 4 éve
szülő
commit
d6fab1b7c8

+ 3 - 3
src/main/java/com/imed/costaccount/service/impl/ResponsibilityServiceImpl.java

@@ -130,9 +130,9 @@ public class ResponsibilityServiceImpl extends ServiceImpl<ResponsibilityMapper,
             throw new CostException(500, "非汇总中心不允许添加下属层级");
         }
 
-//        if (responsibilitySaveDTO.getIsGatherCenter() == 1) {
-//            throw new CostException(500, "子层级暂不允许为非汇总中心");
-//        }
+        if (responsibilitySaveDTO.getIsGatherCenter() == 2) {
+            throw new CostException(500, "非汇总中心不允许拥有子层级");
+        }
 
         // 只允许存在一个汇总中心
         if (responsibilitySaveDTO.getIsDefault() == 1) {