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