| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -4,11 +4,14 @@ import com.github.pagehelper.PageInfo;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.annotation.AuthRuleAnnotation;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.annotation.AuthRuleAnnotation;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.common.res.BaseResponse;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.common.res.BaseResponse;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.common.util.ResultVOUtils;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.common.util.ResultVOUtils;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.glxp.api.entity.trace.TraceTaskNoticeEntity;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.glxp.api.req.trace.TraceDlTaskRequest;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.req.trace.TraceTaskDetailRequest;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.req.trace.TraceTaskDetailRequest;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.res.PageSimpleResponse;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.res.PageSimpleResponse;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.res.trace.TraceTaskDlResponse;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.res.trace.TraceTaskDlResponse;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import com.glxp.api.service.trace.TraceTaskService;
 | 
					 | 
					 | 
					 | 
					import com.glxp.api.service.trace.TraceTaskService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import lombok.extern.slf4j.Slf4j;
 | 
					 | 
					 | 
					 | 
					import lombok.extern.slf4j.Slf4j;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					import org.springframework.beans.BeanUtils;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.GetMapping;
 | 
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.GetMapping;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.RestController;
 | 
					 | 
					 | 
					 | 
					import org.springframework.web.bind.annotation.RestController;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import springfox.documentation.annotations.ApiIgnore;
 | 
					 | 
					 | 
					 | 
					import springfox.documentation.annotations.ApiIgnore;
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -30,7 +33,7 @@ public class TraceTaskController {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    TraceTaskService traceTaskService;
 | 
					 | 
					 | 
					 | 
					    TraceTaskService traceTaskService;
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					//任务列表
 | 
					 | 
					 | 
					 | 
					    //任务列表
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @AuthRuleAnnotation("udi/trace/task/filter")
 | 
					 | 
					 | 
					 | 
					    @AuthRuleAnnotation("udi/trace/task/filter")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    @GetMapping("udi/trace/task/filter")
 | 
					 | 
					 | 
					 | 
					    @GetMapping("udi/trace/task/filter")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    public BaseResponse filterTask(TraceTaskDetailRequest traceTaskDetailRequest) {
 | 
					 | 
					 | 
					 | 
					    public BaseResponse filterTask(TraceTaskDetailRequest traceTaskDetailRequest) {
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -44,12 +47,19 @@ public class TraceTaskController {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }
 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    //客户端下载追溯任务列表执行下载任务
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    @AuthRuleAnnotation("udi/trace/task/search")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    @GetMapping("udi/trace/task/search")
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    public BaseResponse downloadTask(TraceDlTaskRequest taskRequest) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					        TraceTaskNoticeEntity taskNoticeEntity = traceTaskService.getById(taskRequest.getTaskId());
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					        if (taskNoticeEntity == null) {
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					            return ResultVOUtils.error(500, "任务已过期或任务不存在!");
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					        }
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					        TraceTaskDlResponse taskDlResponse = new TraceTaskDlResponse();
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        BeanUtils.copyProperties(taskNoticeEntity, taskDlResponse);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        return ResultVOUtils.success(taskDlResponse);
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    }
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					}
 | 
					 | 
					 | 
					 | 
					}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					 | 
					
 
 |