From 7f1ff44d0c38fd5356d58821a8eac27b4f86b303 Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Fri, 18 Oct 2024 22:03:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E4=BB=B6=E6=98=AF=E5=90=A6=E5=8F=AF?= =?UTF-8?q?=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/DlRepairTicketsController.java | 15 +++++++++++++++ .../module/tickets/entity/DlRepairTickets.java | 3 +++ .../tickets/service/DlRepairTicketsService.java | 9 +++++++++ .../service/impl/DlRepairTicketsServiceImpl.java | 16 ++++++++++++++++ .../mapper/tickets/DlRepairTicketsMapper.xml | 4 +++- 5 files changed, 46 insertions(+), 1 deletion(-) diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/controller/admin/DlRepairTicketsController.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/controller/admin/DlRepairTicketsController.java index 0611900b..b01f0f79 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/controller/admin/DlRepairTicketsController.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/controller/admin/DlRepairTicketsController.java @@ -233,5 +233,20 @@ public class DlRepairTicketsController { dlRepairTicketsService.updateStatus(respVO); return CommonResult.ok(); } + + /** + * 配件客户是否可见 + * + * @author 小李 + * @date 21:52 2024/10/18 + * @param id 工单ID + * @param show 是否可见 + **/ + @GetMapping("/show") + @Operation(summary = "配件客户是否可见") + public CommonResult updateShow(@RequestParam("id") String id, @RequestParam("show") String show){ + dlRepairTicketsService.updateShow(id, show); + return CommonResult.ok(); + } } diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/entity/DlRepairTickets.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/entity/DlRepairTickets.java index 21fbfe84..15afdd9f 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/entity/DlRepairTickets.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/entity/DlRepairTickets.java @@ -184,4 +184,7 @@ public class DlRepairTickets extends TenantBaseDO { /** 工单当前施工人name */ private String nowRepairName; + + /** 配件是否可见(yes_no,1:可见,0:不可见) */ + private String partShow; } diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/DlRepairTicketsService.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/DlRepairTicketsService.java index c8c24f75..97fedb38 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/DlRepairTicketsService.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/DlRepairTicketsService.java @@ -126,4 +126,13 @@ public interface DlRepairTicketsService extends IService { **/ void updateStatus(DlRepairTicketsRespVO respVO); + /** + * 配件客户是否可见 + * + * @author 小李 + * @date 21:52 2024/10/18 + * @param id 工单ID + * @param show 是否可见 + **/ + void updateShow(String id, String show); } 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 a3bea824..a3b633d2 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 @@ -565,6 +565,22 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl + @@ -109,7 +110,8 @@ tickets_work_status, is_finish, now_repair_id, - now_repair_name + now_repair_name, + part_show from dl_repair_tickets drt where drt.deleted = '0'