修复核算编辑保存

This commit is contained in:
Harryxzy 2023-05-17 14:49:53 +08:00
parent 083916eb0c
commit 72f2ca4439
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ public class SalaryAcctResultServiceImpl extends Service implements SalaryAcctRe
Set<Long> needLockItems = new HashSet<>();
Map<Long, SalaryAcctResultPO> oldResutMap = SalaryEntityUtil.convert2Map(salaryAcctResultPOSOld, SalaryAcctResultPO::getSalaryItemId);
salaryAcctResultPOS.stream().forEach(PO -> {
String oldValue = oldResutMap.get(PO.getSalaryItemId()).getResultValue();
String oldValue = Optional.ofNullable(oldResutMap.get(PO.getSalaryItemId())).map(SalaryAcctResultPO::getResultValue).orElse("");
if(!StringUtils.equals(oldValue,PO.getResultValue())){
needLockItems.add(PO.getSalaryItemId());
}