| | |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.dao.business.vo.PlatformJobExportVo; |
| | | import com.doumee.dao.web.reqeust.JobOperateDTO; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.business.third.model.PageData; |
| | | import com.doumee.service.business.third.model.PageWrap; |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.models.auth.In; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | } |
| | | @ApiOperation("批量更新wms合同总运输量") |
| | | @GetMapping("/updateTotalNum") |
| | | @CloudRequiredPermission("business:platformjob:update") |
| | | @CloudRequiredPermission("business:platformjob:updateTotalNum") |
| | | public ApiResponse updateTotalNum(@RequestParam String ids,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | List<Integer> idList =this.getIdList(ids); |
| | | if(idList == null || idList.size()==0){ |
| | |
| | | |
| | | @ApiOperation("手动完成作业") |
| | | @PostMapping("/dealJobFinish") |
| | | @CloudRequiredPermission("business:platformjob:update") |
| | | public ApiResponse dealJobFinish (@RequestBody List<Integer> list, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | platformJobService.dealJobFinish(list); |
| | | platformJobService.dealJobFinish(list,getLoginUser(token)); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | @ApiOperation("更换月台分组") |
| | | @PostMapping("/changPlatformGroup") |
| | | @CloudRequiredPermission("business:platformjob:update") |
| | | public ApiResponse changPlatformGroup (@RequestBody PlatformJob param, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | platformJobService.changPlatformGroup(param,getLoginUser(token)); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("测试自动叫号") |
| | | @PostMapping("/testAutoCallCar") |
| | | public ApiResponse testAutoCallCar (@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | platformJobService.autoPlatformCallCar(wmsService); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @ApiOperation("测试自动叫号入园") |
| | | @PostMapping("/testAutoCallInPark") |
| | | public ApiResponse testAutoCallInPark (@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | platformJobService.autoCallInParkCar(wmsService); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | @ApiOperation("任务加急") |
| | | @PostMapping("/jobUrge") |
| | | @CloudRequiredPermission("business:platformjob:update") |
| | | public ApiResponse jobUrge (@RequestBody PlatformJob platformJob, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | platformJobService.jobUrge(platformJob.getId(),getLoginUser(token)); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | @ApiOperation("移除车辆排队队列(回到待签到)") |
| | | @PostMapping("/backToWatiSign") |
| | | @CloudRequiredPermission("business:platformjob:update") |
| | | public ApiResponse backToWatiSign (@RequestBody PlatformJob platformJob,@RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | platformJobService.backToWatiSign(platformJob.getId(),getLoginUser(token)); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | } |