|
@@ -131,8 +131,10 @@ public class CostShareParamServiceImpl extends ServiceImpl<CostShareParamMapper,
|
|
|
if (!CollectionUtil.isEmpty(accountList)){
|
|
|
String accounds = accountList.stream().map(String::valueOf).collect(Collectors.joining(","));
|
|
|
costShareParam.setAccountingId(accounds);
|
|
|
- baseMapper.updateById(costShareParam);
|
|
|
+ }else {
|
|
|
+ costShareParam.setAccountingId(null);
|
|
|
}
|
|
|
+ baseMapper.updateById(costShareParam);
|
|
|
}else {
|
|
|
throw new CostException(500,"计算方式不是按会计科目计算");
|
|
|
}
|