| package com.doumee.api; | 
|   | 
| import com.doumee.core.annotation.pr.PreventRepeat; | 
| import com.doumee.service.business.third.WmsService; | 
| import com.doumee.service.business.third.model.ApiResponse; | 
| import com.doumee.service.business.PlatformJobService; | 
| import io.swagger.annotations.Api; | 
| import io.swagger.annotations.ApiOperation; | 
| import lombok.extern.slf4j.Slf4j; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.web.bind.annotation.PostMapping; | 
| import org.springframework.web.bind.annotation.RequestMapping; | 
| import org.springframework.web.bind.annotation.RestController; | 
|   | 
| /** | 
|  * @author 江蹄蹄 | 
|  * @date 2023/11/30 15:33 | 
|  */ | 
| @Slf4j | 
| @Api(tags = "月台作业定时") | 
| @RestController | 
| @RequestMapping("/timer/platformJob") | 
| public class PlatformJobController extends BaseController { | 
|   | 
|     @Autowired | 
|     private PlatformJobService platformJobService; | 
|   | 
|     @Autowired | 
|     private WmsService wmsService; | 
|   | 
|   | 
|     @ApiOperation("月台停靠超时报警业务") | 
|     @PostMapping("/platformJobTimer") | 
|     public ApiResponse platformJobTimer() { | 
|         platformJobService.timeOutReport(); | 
|         return ApiResponse.success("月台停靠超时报警业务"); | 
|     } | 
|     @ApiOperation("月台作业检查电子锁上锁状态") | 
|     @PostMapping("/platformCheckWmsLockStatus") | 
|     public ApiResponse checkWmsLockStatus() { | 
|         platformJobService.checkWmsLockStatus(); | 
|         return ApiResponse.success("月台停靠超时报警业务"); | 
|     } | 
|   | 
|   | 
|     @ApiOperation("月台作业超时报警业务") | 
|     @PostMapping("/platformJobWorkTimeOut") | 
|     public ApiResponse platformJobWorkTimeOut() { | 
|         platformJobService.timeOutWork(); | 
|         return ApiResponse.success("月台作业超时报警业务"); | 
|     } | 
|   | 
|   | 
|     @ApiOperation("月台等待作业超时业务") | 
|     @PostMapping("/platformJobWaitTimeOut") | 
|     public ApiResponse platformJobWaitTimeOut() { | 
|         platformJobService.timeOutCallIn(); | 
|         return ApiResponse.success("月台等待作业超时业务"); | 
|     } | 
|   | 
|   | 
|   | 
|     @PreventRepeat(interval = 2000) | 
|     @ApiOperation("月台今日作业未完成通知定时") | 
|     @PostMapping("/sendUnFinishNotice") | 
|     public synchronized ApiResponse sendUnFinishNotice() { | 
|         log.error("========月台今日作业未完成通知定时============开始"+System.currentTimeMillis()+""); | 
|         platformJobService.sendUnFinishNotice(); | 
|         log.error("========月台今日作业未完成通知定时============结束"+System.currentTimeMillis()+""); | 
|         return ApiResponse.success("月台今日作业外完成通知定时"); | 
|     } | 
|   | 
|   | 
|   | 
|     @ApiOperation("月台自动叫号") | 
|     @PostMapping("/autoPlatformCallCar") | 
|     public ApiResponse autoPlatformCallCar() { | 
|         platformJobService.autoPlatformCallCar(wmsService); | 
|         platformJobService.autoCallInParkCar(wmsService); | 
|         return ApiResponse.success("月台自动叫号"); | 
|     } | 
|   | 
|   | 
| //    @ApiOperation("月台自动叫号入园") | 
| //    @PostMapping("/autoCallInParkCar") | 
| //    public ApiResponse autoCallInParkCar() { | 
| //        platformJobService.autoCallInParkCar(wmsService); | 
| //        return ApiResponse.success("月台自动叫号入园"); | 
| //    } | 
|   | 
|   | 
| } |