|
@@ -228,7 +228,8 @@ public class AllocationServiceImpl extends ServiceImpl<AllocationMapper, Allocat
|
|
|
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
|
|
public void saveAllocationQuery(List<Allocation> list, List<CostCostingGroup> costingGroups, Long hospId) {
|
|
|
List<AllocationQuery> saveList = new ArrayList<>();
|
|
|
-
|
|
|
+ List<Long> maxId = shareLevelService.getMaxId(hospId);
|
|
|
+ list = list.stream().filter(i -> maxId.contains(i.getTargetShareLevelId())).collect(Collectors.toList());
|
|
|
list.forEach(i -> {
|
|
|
Long accountShareId = i.getAccountShareId();
|
|
|
CostAccountShare byId = accountShareService.getById(accountShareId);
|