|
@@ -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) {
|