修改结算完成工单逻辑

This commit is contained in:
xiaofajia 2024-11-05 17:25:17 +08:00
parent 97edaf4046
commit e51d404fe9
3 changed files with 13 additions and 4 deletions

View File

@ -177,4 +177,7 @@ public class Tickets extends TenantBaseDO {
/** 工单进行状态 */
private String ticketsWorkStatus;
/** 工单完成情况0:未完成1:已完成) */
private String isFinish;
}

View File

@ -26,6 +26,10 @@ public class TicketsServiceImpl extends ServiceImpl<TicketsMapper, Tickets> impl
**/
@Override
public void updateTickets(List<String> ticketIds){
baseMapper.update(new LambdaUpdateWrapper<Tickets>().in(Tickets::getId, ticketIds).set(Tickets::getTicketsStatus, "02"));
baseMapper.update(new LambdaUpdateWrapper<Tickets>()
.in(Tickets::getId, ticketIds)
.set(Tickets::getTicketsStatus, "02")
.set(Tickets::getIsFinish, "1")
);
}
}

View File

@ -424,10 +424,12 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
repairOrderInfo.setPayType(repairTicketsRespVO.getPayType());
repairOrderInfoService.updateById(repairOrderInfo);
// 更新工单
// 在这里把工单的状态更新为已完成
// 在这里把工单的状态更新为已完成---需要判断如果是线上支付需要在支付回调更新
if (!repairTicketsRespVO.getPayType().equals("01")){
repairTicketsRespVO.setIsFinish("1");
baseMapper.updateById(repairTicketsRespVO);
}
}
/**
* 客户信息和车辆信息 新增修改