Browse Source

07 30 8 fix some bugs

hr 4 years ago
parent
commit
4dac1d6ddb

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

@@ -108,6 +108,9 @@ public class ResponsibilityServiceImpl extends ServiceImpl<ResponsibilityMapper,
             throw new CostException(500, "非汇总中心不允许添加");
         }
 
+        if (responsibilitySaveDTO.getIsGatherCenter() == 1) {
+            throw new CostException(500, "子层级暂不允许为非汇总中心");
+        }
         this.save(center);
     }