Commit 86b1bb9ce2ad078a196efaba4bdb7ceeb0c6c9ae

Authored by YunaiV
1 parent 728eb76b

✨ feat(mes): 添加甘特图任务列表接口,优化任务数据加载

yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/controller/admin/pro/task/MesProTaskController.java
... ... @@ -122,6 +122,15 @@ public class MesProTaskController {
122 122 .setStatus(task.getStatus())));
123 123 }
124 124  
  125 + @GetMapping("/gantt-list")
  126 + @Operation(summary = "获得甘特图任务列表", description = "非分页接口,返回所有匹配任务用于甘特图渲染")
  127 + @PreAuthorize("@ss.hasPermission('mes:pro-task:query')")
  128 + public CommonResult<List<MesProTaskRespVO>> listGanttTaskList(@Valid MesProTaskPageReqVO reqVO) {
  129 + reqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
  130 + List<MesProTaskDO> list = taskService.getTaskPage(reqVO).getList();
  131 + return success(buildTaskRespVOList(list));
  132 + }
  133 +
125 134 @GetMapping("/export-excel")
126 135 @Operation(summary = "导出生产任务 Excel")
127 136 @PreAuthorize("@ss.hasPermission('mes:pro-task:export')")
... ...