更新代码

This commit is contained in:
xiao-fajia 2024-09-23 09:00:31 +08:00
parent a4462afdac
commit 72e1635082
3 changed files with 35 additions and 0 deletions

View File

@ -86,5 +86,19 @@ public class DlRepairTicketsController {
dlRepairTicketsService.setTicketsVoid(repairTicketsReqVO);
return CommonResult.ok();
}
/**
* 维修工单表 结算
*
* @author 小李
* @date 8:50 2024/9/23
* @param repairTicketsRespVO 工单
**/
@PostMapping("/paid")
@Operation(summary = "维修工单表 结算")
public CommonResult<?> setTicketsPaid(@RequestBody DlRepairTicketsRespVO repairTicketsRespVO){
dlRepairTicketsService.setTicketsPaid(repairTicketsRespVO);
return CommonResult.ok();
}
}

View File

@ -50,4 +50,13 @@ public interface DlRepairTicketsService extends IService<DlRepairTickets> {
* @param repairTicketsReqVO 工单对象
**/
void setTicketsVoid(DlRepairTicketsReqVO repairTicketsReqVO);
/**
* 维修工单表 结算
*
* @author 小李
* @date 8:50 2024/9/23
* @param repairTicketsRespVO 工单
**/
void setTicketsPaid(DlRepairTicketsRespVO repairTicketsRespVO);
}

View File

@ -170,6 +170,18 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
public void setTicketsVoid(DlRepairTicketsReqVO repairTicketsReqVO){
baseMapper.updateById(repairTicketsReqVO);
}
/**
* 维修工单表 结算
*
* @author 小李
* @date 8:50 2024/9/23
* @param repairTicketsRespVO 工单
**/
@Override
public void setTicketsPaid(DlRepairTicketsRespVO repairTicketsRespVO){
baseMapper.updateById(repairTicketsRespVO);
}
}