|
@@ -158,9 +158,9 @@ public class CostAccountShareServiceImpl extends ServiceImpl<CostAccountShareMap
|
|
|
}
|
|
|
}
|
|
|
// 检验输入的这个责任中心是否允许输入成本科目
|
|
|
- Integer shareLevel = responsibility.getShareLevel();
|
|
|
+ Integer shareId = responsibility.getShareId();
|
|
|
CostShareLevel costShareLevel = costShareLevelService.getOne(new QueryWrapper<CostShareLevel>().lambda()
|
|
|
- .eq(CostShareLevel::getHospId, hospId).eq(CostShareLevel::getId, shareLevel));
|
|
|
+ .eq(CostShareLevel::getHospId, hospId).eq(CostShareLevel::getId, shareId));
|
|
|
if (Objects.nonNull(costShareLevel)){
|
|
|
if ((!StringUtils.isEmpty(costAccountShareSaveDto.getAccountingId()) && costAccountShareSaveDto.getAccountingId() > 0) && NumberConstant.ZERO.equals(costShareLevel.getCalcType())){
|
|
|
throw new CostException(500,"合并计算不允许选择成本科目");
|
|
@@ -249,7 +249,7 @@ public class CostAccountShareServiceImpl extends ServiceImpl<CostAccountShareMap
|
|
|
hashMap.put(paramId,i);
|
|
|
});
|
|
|
|
|
|
- // TODO 暂时还考虑不到如何筛选选中的
|
|
|
+ //
|
|
|
String paramList = JsonUtil.toJSONString(shareParamProportionVOList);
|
|
|
costAccountShare.setParamList(paramList);
|
|
|
baseMapper.updateById(costAccountShare);
|