diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/controller/admin/DlRepairTitemController.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/controller/admin/DlRepairTitemController.java index 3425bef1..eadcf5ef 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/controller/admin/DlRepairTitemController.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/controller/admin/DlRepairTitemController.java @@ -154,5 +154,16 @@ public class DlRepairTitemController { return CommonResult.ok(); } + /** + * 查某工单维修项目进度 + * @author vinjor-M + * @date 10:57 2024/11/5 + * @param ticketId 工单id + **/ + @GetMapping("/getProjList") + @Operation(summary = "查某工单维修项目进度") + public CommonResult getProjList(@RequestParam("ticketId") String ticketId){ + return success(dlRepairTitemService.getProjList(ticketId)); + } } diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/DlRepairTitemService.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/DlRepairTitemService.java index 4f42d16b..a0c126b3 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/DlRepairTitemService.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/DlRepairTitemService.java @@ -74,4 +74,13 @@ public interface DlRepairTitemService extends IService { * @date 16:11 2024/10/31 **/ void updateRepairItem(List itemList); + + /** + * 查某工单维修项目进度 + * @author vinjor-M + * @date 10:58 2024/11/5 + * @param ticketId 工单ID + * @return java.util.List + **/ + List getProjList(String ticketId); } diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTitemServiceImpl.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTitemServiceImpl.java index cafcc927..451b4a73 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTitemServiceImpl.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTitemServiceImpl.java @@ -141,6 +141,23 @@ public class DlRepairTitemServiceImpl extends ServiceImpl + * @author vinjor-M + * @date 10:58 2024/11/5 + **/ + @Override + public List getProjList(String ticketId) { + LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper() + .eq(DlRepairTitem::getTicketId,ticketId) + .eq(DlRepairTitem::getItemType,"01") + .orderByDesc(DlRepairTitem::getItemStatus); + return this.list(queryWrapper); + } }