From 88dab0293f4e9aa18445a67613829b2525b7e21b Mon Sep 17 00:00:00 2001 From: Vinjor Date: Fri, 18 Oct 2024 16:10:53 +0800 Subject: [PATCH] 1 --- .../service/impl/DlRepairTicketsServiceImpl.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java index 8cc502f6..9cdd4c24 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java @@ -495,17 +495,18 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl() .set(DlRepairTickets::getNowRepairId, reqVO.getNowRepairId()) .set(DlRepairTickets::getNowRepairName, reqVO.getNowRepairName()) - .and(item -> { - item.eq(DlRepairTickets::getId, reqVO.getId()) - .eq(DlRepairTickets::getTicketsWorkStatus, "01"); - }) + //工单状态设置为---施工中 + .set(DlRepairTickets::getTicketsStatus, TicketsStatusEnum.WORKING.getCode()) + //维修状态设置为待接单 + .set(DlRepairTickets::getTicketsWorkStatus, TicketsWorkStatusEnum.WAITING_RECEIVING.getCode()) + .and(item -> item.eq(DlRepairTickets::getId, reqVO.getId())) ); - if (update != 1){ + if (update != 1) { throw exception0(500, "工单已开始"); } }