|
@@ -177,7 +177,7 @@ public class CostAccountShareServiceImpl extends ServiceImpl<CostAccountShareMap
|
|
|
if (!CollectionUtils.isEmpty(costAccountShareList)){
|
|
|
throw new CostException(500,"该责任中心合并计算已存在");
|
|
|
}
|
|
|
- if (NumberConstant.ONE.equals(costAccountShareSaveDto.getIsShareCost())){
|
|
|
+ if (!NumberConstant.ONE.equals(costAccountShareSaveDto.getIsShareCost())){
|
|
|
throw new CostException(500,"合并计算责任中心必须要设置包含分摊参数");
|
|
|
}
|
|
|
}
|