开始施工、施工过程记录

This commit is contained in:
xiaofajia 2024-10-18 18:09:04 +08:00
parent b83b615d93
commit d8ca30eb67
3 changed files with 6 additions and 2 deletions

View File

@ -221,7 +221,7 @@ public class DlRepairTicketsController {
* @date 15:46 2024/10/18 * @date 15:46 2024/10/18
* @param respVO 请求对象 * @param respVO 请求对象
**/ **/
@GetMapping("/updateStatus") @PostMapping("/updateStatus")
@Operation(summary = "更新工单状态") @Operation(summary = "更新工单状态")
public CommonResult<?> updateStatus(@RequestBody DlRepairTicketsRespVO respVO){ public CommonResult<?> updateStatus(@RequestBody DlRepairTicketsRespVO respVO){
dlRepairTicketsService.updateStatus(respVO); dlRepairTicketsService.updateStatus(respVO);

View File

@ -523,6 +523,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
* @date 15:46 2024/10/18 * @date 15:46 2024/10/18
**/ **/
@Override @Override
@DSTransactional
public void updateStatus(DlRepairTicketsRespVO respVO){ public void updateStatus(DlRepairTicketsRespVO respVO){
// 更新工单主表 // 更新工单主表
baseMapper.update(new LambdaUpdateWrapper<DlRepairTickets>() baseMapper.update(new LambdaUpdateWrapper<DlRepairTickets>()
@ -535,7 +536,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
.eq(DlRepairTitem::getId, respVO.getItem().getId()) .eq(DlRepairTitem::getId, respVO.getItem().getId())
); );
// 记录日志 // 记录日志
recordsService.saveRepairRecord(respVO.getId(), respVO.getItem().getId(), "", respVO.getRemark(), respVO.getImage()); recordsService.saveRepairRecord(respVO.getId(), respVO.getItem().getId(), respVO.getRecordType(), respVO.getRemark(), respVO.getImage());
} }
} }

View File

@ -31,4 +31,7 @@ public class DlRepairTicketsRespVO extends DlRepairTickets {
/** 子表单条数据 */ /** 子表单条数据 */
private DlRepairTitem item; private DlRepairTitem item;
/** 记录类型 */
private String recordType;
} }