| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.api; |
| | | |
| | | 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 org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/11/30 15:33 |
| | | */ |
| | | @Api(tags = "æå°ä½ä¸å®æ¶") |
| | | @RestController |
| | | @RequestMapping("/timer/platformJob") |
| | | public class PlatformJobController extends BaseController { |
| | | |
| | | @Autowired |
| | | private PlatformJobService platformJobService; |
| | | |
| | | |
| | | @ApiOperation("æå°åé è¶
æ¶æ¥è¦ä¸å¡") |
| | | @GetMapping("/platformJobTimer") |
| | | public ApiResponse platformJobTimer() { |
| | | platformJobService.timeOutReport(); |
| | | return ApiResponse.success("æå°åé è¶
æ¶æ¥è¦ä¸å¡"); |
| | | } |
| | | @ApiOperation("æå°ä½ä¸æ£æ¥çµåéä¸éç¶æ") |
| | | @GetMapping("/platformCheckWmsLockStatus") |
| | | public ApiResponse checkWmsLockStatus() { |
| | | platformJobService.checkWmsLockStatus(); |
| | | return ApiResponse.success("æå°åé è¶
æ¶æ¥è¦ä¸å¡"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("æå°ä½ä¸è¶
æ¶æ¥è¦ä¸å¡") |
| | | @GetMapping("/platformJobWorkTimeOut") |
| | | public ApiResponse platformJobWorkTimeOut() { |
| | | platformJobService.timeOutWork(); |
| | | return ApiResponse.success("æå°ä½ä¸è¶
æ¶æ¥è¦ä¸å¡"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("æå°çå¾
ä½ä¸è¶
æ¶ä¸å¡") |
| | | @GetMapping("/platformJobWaitTimeOut") |
| | | public ApiResponse platformJobWaitTimeOut() { |
| | | platformJobService.timeOutCallIn(); |
| | | return ApiResponse.success("æå°çå¾
ä½ä¸è¶
æ¶ä¸å¡"); |
| | | } |
| | | |
| | | } |