| | |
| | | package com.doumee.api; |
| | | |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.service.business.third.WmsService; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.business.PlatformJobService; |
| | |
| | | @ApiOperation("月台自动叫号") |
| | | @PostMapping("/autoPlatformCallCar") |
| | | public ApiResponse autoPlatformCallCar() { |
| | | platformJobService.autoPlatformCallCar(wmsService); |
| | | platformJobService.autoCallInParkCar(wmsService); |
| | | log.error("========月台自动叫号============开始"+System.currentTimeMillis()+""); |
| | | if(Constants.IS_AUTOCALL_WORKING){ |
| | | log.error("========月台自动叫号============结束,上一轮作业未结束"+System.currentTimeMillis()); |
| | | return ApiResponse.success("月台自动叫号,上一轮作业未结束"); |
| | | } |
| | | try { |
| | | Constants.IS_AUTOCALL_WORKING =true; |
| | | platformJobService.autoPlatformCallCar(wmsService); |
| | | platformJobService.autoCallInParkCar(wmsService); |
| | | log.error("========月台自动叫号============完成"+System.currentTimeMillis()+""); |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | log.error("========月台自动叫号============异常"+System.currentTimeMillis()+e.getMessage()); |
| | | }finally { |
| | | Constants.IS_AUTOCALL_WORKING =false; |
| | | log.error("========月台自动叫号============结束"+System.currentTimeMillis()); |
| | | } |
| | | return ApiResponse.success("月台自动叫号"); |
| | | |
| | | } |
| | | |
| | | |