This commit is contained in:
PQZ 2024-11-04 14:53:43 +08:00
parent d17b1129a0
commit 3c56602e18
3 changed files with 7 additions and 7 deletions

View File

@ -200,8 +200,10 @@ public class DlRepairTicketsController {
**/ **/
@GetMapping("/take") @GetMapping("/take")
@Operation(summary = "接单") @Operation(summary = "接单")
public CommonResult<?> updateTake(@RequestParam("id") String id) { public CommonResult<?> updateTake(@RequestParam("id") String id,
dlRepairTicketsService.updateTake(id); @RequestParam(value="image",required = false) String image,
@RequestParam(value="remark",required = false) String remark) {
dlRepairTicketsService.updateTake(id,image);
return CommonResult.ok(); return CommonResult.ok();
} }

View File

@ -108,7 +108,7 @@ public interface DlRepairTicketsService extends IService<DlRepairTickets> {
* @date 11:48 2024/10/14 * @date 11:48 2024/10/14
* @param id 工单ID * @param id 工单ID
**/ **/
void updateTake(String id); void updateTake(String id,String image);
/** /**
* 指派员工通知施工 * 指派员工通知施工

View File

@ -6,8 +6,6 @@ import cn.hutool.core.util.ObjectUtil;
import cn.iocoder.yudao.common.*; import cn.iocoder.yudao.common.*;
import cn.iocoder.yudao.framework.common.util.number.MoneyUtils; import cn.iocoder.yudao.framework.common.util.number.MoneyUtils;
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils; import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
import cn.iocoder.yudao.framework.tenant.core.context.TenantContextHolder;
import cn.iocoder.yudao.framework.tenant.core.util.TenantUtils;
import cn.iocoder.yudao.module.base.entity.RepairWorker; import cn.iocoder.yudao.module.base.entity.RepairWorker;
import cn.iocoder.yudao.module.base.service.RepairRecordsService; import cn.iocoder.yudao.module.base.service.RepairRecordsService;
import cn.iocoder.yudao.module.base.service.RepairWorkerService; import cn.iocoder.yudao.module.base.service.RepairWorkerService;
@ -910,7 +908,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
* @date 11:48 2024/10/14 * @date 11:48 2024/10/14
**/ **/
@Override @Override
public void updateTake(String id) { public void updateTake(String id,String image) {
// 改变时看看是否已经被接了 // 改变时看看是否已经被接了
int update = baseMapper.update(new LambdaUpdateWrapper<DlRepairTickets>() int update = baseMapper.update(new LambdaUpdateWrapper<DlRepairTickets>()
.set(DlRepairTickets::getTicketsWorkStatus, TicketsWorkStatusEnum.RECEIVED.getCode()) .set(DlRepairTickets::getTicketsWorkStatus, TicketsWorkStatusEnum.RECEIVED.getCode())
@ -922,7 +920,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
throw exception0(500, "工单已被其他人接单了"); throw exception0(500, "工单已被其他人接单了");
} }
//最后记录操作日志--接单 //最后记录操作日志--接单
repairRecordsService.saveRepairRecord(id, null, RecordTypeEnum.jd.getCode(), "接单", null); repairRecordsService.saveRepairRecord(id, null, RecordTypeEnum.jd.getCode(), "接单", image);
} }
/** /**