删除多余代码
This commit is contained in:
parent
6a7e5eacdc
commit
e1b4927eaa
|
|
@ -2865,45 +2865,6 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
}
|
||||
datas.put("sumRow", sumRow);
|
||||
return datas;
|
||||
// records.stream().collect(Collectors.groupingBy(record -> record.getk))
|
||||
//
|
||||
//
|
||||
// .collect(Collectors.groupingBy(Main::getMapKey, Collectors.counting()));
|
||||
// records.stream().flatMap(Collectors.toList());
|
||||
//
|
||||
//
|
||||
// // 查询薪资核算人员
|
||||
// List<SalaryAcctEmployeePO> salaryAcctEmployeePOS = getSalaryAcctEmployeeService(user).listByResultQueryParam(queryParam);
|
||||
//
|
||||
// if (CollectionUtils.isEmpty(salaryAcctEmployeePOS)) {
|
||||
// return null;
|
||||
// }
|
||||
// // 查询薪资核算记录
|
||||
// SalaryAcctRecordPO salaryAcctRecordPO = getSalaryAcctRecordService(user).getById(queryParam.getSalaryAcctRecordId());
|
||||
// if (Objects.isNull(salaryAcctRecordPO)) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(98747, "薪资核算记录不存在或已被删除"));
|
||||
// }
|
||||
// // 查询薪资核算所用薪资账套的薪资项目
|
||||
// List<SalarySobItemPO> salarySobItemPOS = getSalarySobItemService(user).listBySalarySobId(salaryAcctRecordPO.getSalarySobId());
|
||||
// Set<Long> salaryItemIds = SalaryEntityUtil.properties(salarySobItemPOS, SalarySobItemPO::getSalaryItemId);
|
||||
// List<SalaryItemPO> salaryItemPOS = getSalaryItemService(user).listByIds(salaryItemIds);
|
||||
// // 查询薪资核算结果
|
||||
// Set<Long> salaryAcctEmployeeIds = SalaryEntityUtil.properties(salaryAcctEmployeePOS, SalaryAcctEmployeePO::getId);
|
||||
// List<SalaryAcctResultPO> salaryAcctResultPOS = listBySalaryAcctEmployeeIds(salaryAcctEmployeeIds);
|
||||
//
|
||||
// Map<String, Object> map = new HashMap<>();
|
||||
// Map<Long, List<SalaryAcctResultPO>> acctResultMap = SalaryEntityUtil.group2Map(salaryAcctResultPOS, SalaryAcctResultPO::getSalaryItemId);
|
||||
// salaryItemPOS.stream().filter(item -> SalaryDataTypeEnum.NUMBER.getValue().equals(item.getDataType())).forEach(item -> {
|
||||
// BigDecimal sum = Optional.ofNullable(acctResultMap.get(item.getId()))
|
||||
// .orElse(new ArrayList<>())
|
||||
// .stream()
|
||||
// .map(SalaryAcctResultPO::getResultValue)
|
||||
// .filter(NumberUtils::isCreatable)
|
||||
// .map(BigDecimal::new)
|
||||
// .reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
// map.put(item.getId().toString(), SalaryAcctFormulaBO.roundResultValue(sum.toString(), item, Collections.emptyList(), Collections.emptyMap()));
|
||||
// });
|
||||
// return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue