1
This commit is contained in:
parent
d17b1129a0
commit
3c56602e18
@ -200,8 +200,10 @@ public class DlRepairTicketsController {
|
||||
**/
|
||||
@GetMapping("/take")
|
||||
@Operation(summary = "接单")
|
||||
public CommonResult<?> updateTake(@RequestParam("id") String id) {
|
||||
dlRepairTicketsService.updateTake(id);
|
||||
public CommonResult<?> updateTake(@RequestParam("id") String id,
|
||||
@RequestParam(value="image",required = false) String image,
|
||||
@RequestParam(value="remark",required = false) String remark) {
|
||||
dlRepairTicketsService.updateTake(id,image);
|
||||
return CommonResult.ok();
|
||||
}
|
||||
|
||||
|
@ -108,7 +108,7 @@ public interface DlRepairTicketsService extends IService<DlRepairTickets> {
|
||||
* @date 11:48 2024/10/14
|
||||
* @param id 工单ID
|
||||
**/
|
||||
void updateTake(String id);
|
||||
void updateTake(String id,String image);
|
||||
|
||||
/**
|
||||
* 指派员工,通知施工
|
||||
|
@ -6,8 +6,6 @@ import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.iocoder.yudao.common.*;
|
||||
import cn.iocoder.yudao.framework.common.util.number.MoneyUtils;
|
||||
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.service.RepairRecordsService;
|
||||
import cn.iocoder.yudao.module.base.service.RepairWorkerService;
|
||||
@ -910,7 +908,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
||||
* @date 11:48 2024/10/14
|
||||
**/
|
||||
@Override
|
||||
public void updateTake(String id) {
|
||||
public void updateTake(String id,String image) {
|
||||
// 改变时看看是否已经被接了
|
||||
int update = baseMapper.update(new LambdaUpdateWrapper<DlRepairTickets>()
|
||||
.set(DlRepairTickets::getTicketsWorkStatus, TicketsWorkStatusEnum.RECEIVED.getCode())
|
||||
@ -922,7 +920,7 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
|
||||
throw exception0(500, "工单已被其他人接单了");
|
||||
}
|
||||
//最后记录操作日志--接单
|
||||
repairRecordsService.saveRepairRecord(id, null, RecordTypeEnum.jd.getCode(), "接单", null);
|
||||
repairRecordsService.saveRepairRecord(id, null, RecordTypeEnum.jd.getCode(), "接单", image);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user