Commit 798d5d45 authored by 刘帅's avatar 刘帅

1.删除待结算单,报修单状态未回退问题修复

parent bd4b9ea9
......@@ -155,7 +155,7 @@ public class ErpSettlementMaintainServiceImpl implements IErpSettlementMaintainS
// 关联的报修单状态更改至待结算
LambdaUpdateWrapper<ErpRepairForm> luw = Wrappers.lambdaUpdate();
luw.in(ErpRepairForm::getId, repairFormList.stream().map(ErpSettlementMaintainRepairForm::getRepairFormId).collect(Collectors.toList()))
.set(ErpRepairForm::getSettlementState, RepairFormSettlementState.TWO.getCode());
.set(ErpRepairForm::getSettlementState, RepairFormSettlementState.ONE.getCode());
repairFormMapper.update(luw);
// 删除结算单与报修单关联关系表数据
settlementMaintainRepairFormMapper.deleteBatchIds(repairFormList.stream().map(ErpSettlementMaintainRepairForm::getId).collect(Collectors.toList()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment