From 58c4e49b32310374f7c649083bc0f38ebe53c3e7 Mon Sep 17 00:00:00 2001 From: 1178634255 <1178634255@qq.com> Date: Wed, 31 May 2023 11:22:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8=E5=90=8E?= =?UTF-8?q?=E7=AB=AF=E4=BB=A3=E7=A0=81=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trace/TraceManuOrderController.java | 13 ---- .../controller/trace/TraceTaskController.java | 73 +++++++++++++++++++ 2 files changed, 73 insertions(+), 13 deletions(-) create mode 100644 src/main/java/com/glxp/api/controller/trace/TraceTaskController.java diff --git a/src/main/java/com/glxp/api/controller/trace/TraceManuOrderController.java b/src/main/java/com/glxp/api/controller/trace/TraceManuOrderController.java index dd492d4..014bc84 100644 --- a/src/main/java/com/glxp/api/controller/trace/TraceManuOrderController.java +++ b/src/main/java/com/glxp/api/controller/trace/TraceManuOrderController.java @@ -107,19 +107,6 @@ public class TraceManuOrderController { return ResultVOUtils.success("成功"); } -//任务列表 - @AuthRuleAnnotation("udi/trace/task/filter") - @GetMapping("udi/trace/task/filter") - public BaseResponse filterTask(TraceTaskDetailRequest traceTaskDetailRequest) { - - List traceTaskDlResponses = traceTaskService.queryTraceTaskList(traceTaskDetailRequest); - PageInfo pageInfo = new PageInfo<>(traceTaskDlResponses); - PageSimpleResponse pageSimpleResponse = new PageSimpleResponse<>(); - pageSimpleResponse.setTotal(pageInfo.getTotal()); - pageSimpleResponse.setList(traceTaskDlResponses); - return ResultVOUtils.success(pageSimpleResponse); - } - diff --git a/src/main/java/com/glxp/api/controller/trace/TraceTaskController.java b/src/main/java/com/glxp/api/controller/trace/TraceTaskController.java new file mode 100644 index 0000000..ae9cdba --- /dev/null +++ b/src/main/java/com/glxp/api/controller/trace/TraceTaskController.java @@ -0,0 +1,73 @@ +package com.glxp.api.controller.trace; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.util.IdUtil; +import com.github.pagehelper.PageInfo; +import com.glxp.api.annotation.AuthRuleAnnotation; +import com.glxp.api.common.enums.ResultEnum; +import com.glxp.api.common.res.BaseResponse; +import com.glxp.api.common.util.ResultVOUtils; +import com.glxp.api.entity.trace.TraceManuCodeRelEntity; +import com.glxp.api.entity.trace.TraceManuOrderEntity; +import com.glxp.api.req.trace.TraceManuDetailRequest; +import com.glxp.api.req.trace.TraceManuOrderRequest; +import com.glxp.api.req.trace.TraceManuOrderUploadRequest; +import com.glxp.api.req.trace.TraceTaskDetailRequest; +import com.glxp.api.res.PageSimpleResponse; +import com.glxp.api.res.trace.TraceManuCodeRellResponse; +import com.glxp.api.res.trace.TraceManuOrderResponse; +import com.glxp.api.res.trace.TraceTaskDlResponse; +import com.glxp.api.service.trace.TraceManuCodeRelService; +import com.glxp.api.service.trace.TraceManuOrderService; +import com.glxp.api.service.trace.TraceTaskService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.BeanUtils; +import org.springframework.validation.BindingResult; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RestController; +import springfox.documentation.annotations.ApiIgnore; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + + +/** + * 追溯查询-任务列表相关接口 + */ + +@ApiIgnore +@RestController +@Slf4j +public class TraceTaskController { + + @Resource + TraceTaskService traceTaskService; + + +//任务列表 + @AuthRuleAnnotation("udi/trace/task/filter") + @GetMapping("udi/trace/task/filter") + public BaseResponse filterTask(TraceTaskDetailRequest traceTaskDetailRequest) { + + List traceTaskDlResponses = traceTaskService.queryTraceTaskList(traceTaskDetailRequest); + PageInfo pageInfo = new PageInfo<>(traceTaskDlResponses); + PageSimpleResponse pageSimpleResponse = new PageSimpleResponse<>(); + pageSimpleResponse.setTotal(pageInfo.getTotal()); + pageSimpleResponse.setList(traceTaskDlResponses); + return ResultVOUtils.success(pageSimpleResponse); + } + + + + + + + + + + +}