|  |  | 
 |  |  |  | 
 |  |  | import com.doumee.api.BaseController; | 
 |  |  | import com.doumee.config.annotation.CloudRequiredPermission; | 
 |  |  | import com.doumee.config.annotation.LoginNoRequired; | 
 |  |  | import com.doumee.core.annotation.excel.ExcelExporter; | 
 |  |  | import com.doumee.core.annotation.pr.PreventRepeat; | 
 |  |  | import com.doumee.core.model.ApiResponse; | 
 |  |  | 
 |  |  | import com.doumee.dao.web.reqeust.JobDetailDTO; | 
 |  |  | import com.doumee.dao.web.reqeust.SignInDTO; | 
 |  |  | import com.doumee.service.business.PlatformJobService; | 
 |  |  | import com.doumee.service.business.third.WmsService; | 
 |  |  | import com.github.xiaoymin.knife4j.core.util.CollectionUtils; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private PlatformJobService platformJobService; | 
 |  |  |     @Autowired | 
 |  |  |     private WmsService wmsService; | 
 |  |  |  | 
 |  |  |     @PreventRepeat | 
 |  |  |     @ApiOperation("新建") | 
 |  |  | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("获取当前用户的最近一条待签到的作业信息") | 
 |  |  |     @GetMapping("/getLastWaitJob") | 
 |  |  |     @LoginNoRequired | 
 |  |  |     public ApiResponse<PlatformJob> getLastWaitJob(@RequestParam String uuid,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
 |  |  |         return ApiResponse.success( platformJobService.getLastWaitJob(uuid,this.getLoginUser(token))); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("批量删除") | 
 |  |  |     @GetMapping("/delete/batch") | 
 |  |  |     @CloudRequiredPermission("business:platformjob:delete") | 
 |  |  |     public ApiResponse deleteByIdInBatch(@RequestParam String ids,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
 |  |  |         platformJobService.deleteByIdInBatch(this.getIdList(ids)); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |     @ApiOperation("批量更新wms合同总运输量") | 
 |  |  |     @GetMapping("/updateTotalNum") | 
 |  |  |     @CloudRequiredPermission("business:platformjob:update") | 
 |  |  |     public ApiResponse updateTotalNum(@RequestParam String ids,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
 |  |  |         wmsService.computjobTotalNum(this.getIdList(ids)); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |     public ApiResponse<PageData<PlatformJob>> findPage (@RequestBody PageWrap<PlatformJob> pageWrap,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
 |  |  |         return ApiResponse.success(platformJobService.findPage(pageWrap)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("导出Excel") | 
 |  |  |     @PostMapping("/exportExcel") |