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'