| | |
| | | package com.doumee.api; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.HttpsUtil; |
| | | import com.doumee.core.wx.WXConstant; |
| | | import com.doumee.dao.system.model.SystemDictData; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.business.PlatformJobService; |
| | | import com.doumee.service.system.SystemDictDataService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.apache.shiro.mgt.DefaultSecurityManager; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.Date; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author 江蹄蹄 |
| | |
| | | @Autowired |
| | | private PlatformJobService platformJobService; |
| | | |
| | | @ApiOperation("超时报警数据") |
| | | @GetMapping("/platformJobTimeOut") |
| | | public ApiResponse platformJobTimeOut() { |
| | | |
| | | @ApiOperation("月台停靠超时报警业务") |
| | | @GetMapping("/platformJobTimer") |
| | | public ApiResponse platformJobTimer() { |
| | | platformJobService.timeOutReport(); |
| | | return ApiResponse.success("超时报警数据"); |
| | | return ApiResponse.success("月台停靠超时报警业务"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("超时自动过号") |
| | | @GetMapping("/timeOutCallIn") |
| | | public ApiResponse timeOutCallIn() { |
| | | @ApiOperation("月台作业超时报警业务") |
| | | @GetMapping("/platformJobWorkTimeOut") |
| | | public ApiResponse platformJobWorkTimeOut() { |
| | | platformJobService.timeOutWork(); |
| | | return ApiResponse.success("月台作业超时报警业务"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("月台等待作业超时业务") |
| | | @GetMapping("/platformJobWaitTimeOut") |
| | | public ApiResponse platformJobWaitTimeOut() { |
| | | platformJobService.timeOutCallIn(); |
| | | return ApiResponse.success("自动过号"); |
| | | return ApiResponse.success("月台等待作业超时业务"); |
| | | } |
| | | |
| | | |
| | | |
| | | } |