| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | |
| | | |
| | | @ApiOperation("月台停靠超时报警业务") |
| | | @GetMapping("/platformJobTimer") |
| | | @PostMapping("/platformJobTimer") |
| | | public ApiResponse platformJobTimer() { |
| | | platformJobService.timeOutReport(); |
| | | return ApiResponse.success("月台停靠超时报警业务"); |
| | | } |
| | | @ApiOperation("月台作业检查电子锁上锁状态") |
| | | @GetMapping("/platformCheckWmsLockStatus") |
| | | @PostMapping("/platformCheckWmsLockStatus") |
| | | public ApiResponse checkWmsLockStatus() { |
| | | platformJobService.checkWmsLockStatus(); |
| | | return ApiResponse.success("月台停靠超时报警业务"); |
| | |
| | | |
| | | |
| | | @ApiOperation("月台作业超时报警业务") |
| | | @GetMapping("/platformJobWorkTimeOut") |
| | | @PostMapping("/platformJobWorkTimeOut") |
| | | public ApiResponse platformJobWorkTimeOut() { |
| | | platformJobService.timeOutWork(); |
| | | return ApiResponse.success("月台作业超时报警业务"); |
| | |
| | | |
| | | |
| | | @ApiOperation("月台等待作业超时业务") |
| | | @GetMapping("/platformJobWaitTimeOut") |
| | | @PostMapping("/platformJobWaitTimeOut") |
| | | public ApiResponse platformJobWaitTimeOut() { |
| | | platformJobService.timeOutCallIn(); |
| | | return ApiResponse.success("月台等待作业超时业务"); |
| | |
| | | |
| | | @PreventRepeat(interval = 2000) |
| | | @ApiOperation("月台今日作业未完成通知定时") |
| | | @GetMapping("/sendUnFinishNotice") |
| | | @PostMapping("/sendUnFinishNotice") |
| | | public synchronized ApiResponse sendUnFinishNotice() { |
| | | log.error("========月台今日作业未完成通知定时============开始"+System.currentTimeMillis()+""); |
| | | platformJobService.sendUnFinishNotice(); |