This commit is contained in:
2026-08-28 16:58:52 +08:00
parent 3a655e40a1
commit a029463f82
@@ -941,7 +941,7 @@ public class PreSettlementServiceImpl extends BaseServiceImpl<PreSettlementMappe
.findFirst().orElse(null); .findFirst().orElse(null);
} }
if (row == null && requestRow.getId() == null) row = new PreSettlementSummaryFee(); if (row == null && requestRow.getId() == null) row = new PreSettlementSummaryFee();
if (row == null || !Integer.valueOf(1).equals(row.getManualFlag())) { if (row == null || (row.getId() != null && !Integer.valueOf(1).equals(row.getManualFlag()))) {
throw new ServiceException("存在无效的手工费用行"); throw new ServiceException("存在无效的手工费用行");
} }
row.setPreSettlementId(settlementId); row.setPreSettlementId(settlementId);