|
|
|
@ -1,15 +1,19 @@
|
|
|
|
|
package com.glxp.api.controller.trace;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.glxp.api.annotation.AuthRuleAnnotation;
|
|
|
|
|
import com.glxp.api.common.res.BaseResponse;
|
|
|
|
|
import com.glxp.api.common.util.ResultVOUtils;
|
|
|
|
|
import com.glxp.api.entity.basic.BasicUdiProductEntity;
|
|
|
|
|
import com.glxp.api.entity.trace.TraceTaskNoticeEntity;
|
|
|
|
|
import com.glxp.api.req.system.DeleteRequest;
|
|
|
|
|
import com.glxp.api.req.trace.TraceDlTaskRequest;
|
|
|
|
|
import com.glxp.api.req.trace.TraceTaskDetailRequest;
|
|
|
|
|
import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.api.res.trace.TraceTaskDlResponse;
|
|
|
|
|
import com.glxp.api.service.trace.TraceTaskHistoryService;
|
|
|
|
|
import com.glxp.api.service.trace.TraceTaskNoticeService;
|
|
|
|
|
import com.glxp.api.service.trace.TraceTaskService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
@ -17,6 +21,8 @@ import io.swagger.annotations.ApiResponses;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
@ -38,7 +44,8 @@ public class TraceTaskController {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
TraceTaskHistoryService traceTaskHistoryService;
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
TraceTaskNoticeService traceTaskNoticeService;
|
|
|
|
|
|
|
|
|
|
//任务列表
|
|
|
|
|
@ApiOperation(value = "查询任务列表", response = TraceTaskDlResponse.class)
|
|
|
|
@ -84,4 +91,29 @@ public class TraceTaskController {
|
|
|
|
|
pageSimpleResponse.setList(traceTaskDlResponses);
|
|
|
|
|
return ResultVOUtils.success(pageSimpleResponse);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//任务列表删除
|
|
|
|
|
@ApiOperation(value = "任务列表删除", response = BaseResponse.class)
|
|
|
|
|
@AuthRuleAnnotation("udi/trace/task/delete")
|
|
|
|
|
@PostMapping("udi/trace/task/delete")
|
|
|
|
|
public BaseResponse deleteTask(@RequestBody DeleteRequest deleteRequest) {
|
|
|
|
|
|
|
|
|
|
traceTaskNoticeService.removeById(deleteRequest.getId());
|
|
|
|
|
return ResultVOUtils.success("删除成功!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//历史任务列表删除
|
|
|
|
|
@ApiOperation(value = "历史任务列表删除", response = BaseResponse.class)
|
|
|
|
|
@AuthRuleAnnotation("udi/trace/task/deleteTaskList")
|
|
|
|
|
@PostMapping("udi/trace/task/deleteTaskList")
|
|
|
|
|
public BaseResponse deleteTaskList(@RequestBody DeleteRequest deleteRequest) {
|
|
|
|
|
|
|
|
|
|
traceTaskHistoryService.removeById(deleteRequest.getId());
|
|
|
|
|
return ResultVOUtils.success("删除成功!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|