补正结算逻辑
This commit is contained in:
parent
ce90f714e2
commit
6cf53afc9c
@ -433,13 +433,18 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
|||||||
RepairOrderInfo repairOrderInfo = new RepairOrderInfo();
|
RepairOrderInfo repairOrderInfo = new RepairOrderInfo();
|
||||||
repairOrderInfo.setId(one.getId());
|
repairOrderInfo.setId(one.getId());
|
||||||
repairOrderInfo.setPayType(repairTicketsRespVO.getPayType());
|
repairOrderInfo.setPayType(repairTicketsRespVO.getPayType());
|
||||||
repairOrderInfoService.updateById(repairOrderInfo);
|
|
||||||
// 更新工单
|
// 更新工单
|
||||||
// 在这里把工单的状态更新为已完成---需要判断,如果是线上支付,需要在支付回调更新
|
// 在这里把工单的状态更新为已完成---需要判断,如果是线上支付,需要在支付回调更新
|
||||||
if (!repairTicketsRespVO.getPayType().equals("01")){
|
if (!repairTicketsRespVO.getPayType().equals("01")){
|
||||||
repairTicketsRespVO.setIsFinish("1");
|
repairTicketsRespVO.setIsFinish("1");
|
||||||
baseMapper.updateById(repairTicketsRespVO);
|
baseMapper.updateById(repairTicketsRespVO);
|
||||||
|
}else {
|
||||||
|
// 线下结账和签单挂账,直接算已支付
|
||||||
|
repairOrderInfo.setPayTime(LocalDateTime.now());
|
||||||
|
repairOrderInfo.setOrderStatus("1");
|
||||||
}
|
}
|
||||||
|
repairOrderInfoService.updateById(repairOrderInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user