|  |  | 
 |  |  | import io.swagger.annotations.ApiImplicitParams; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.apache.shiro.authz.annotation.RequiresPermissions; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  |  | 
 |  |  | 
 |  |  |     private PlatformJobService platformJobService; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private PlatformBooksService platformBooksService; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private PlatformGroupService platformGroupService; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("获取月台组信息") | 
 |  |  |     @ApiImplicitParams({ | 
 |  |  |             @ApiImplicitParam(name = "queryType", dataType = "Integer", value = "0=全部月台;1=启用月台 2=配置我的月台", required = false) | 
 |  |  |             @ApiImplicitParam(name = "queryType", dataType = "Integer", value = "0=全部月台;1=启用月台 2=配置显示月台", required = false) | 
 |  |  |     }) | 
 |  |  |     @GetMapping("/getPlatformGroupList") | 
 |  |  |     public ApiResponse<List<PlatformGroup>>  getPlatformGroupList (@RequestParam Integer queryType, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
 |  |  | 
 |  |  |         return ApiResponse.success("操作成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("车辆排队情况") | 
 |  |  |     @PostMapping("/platformLineUpPage") | 
 |  |  |     public ApiResponse<PageData<PlatformJob>> platformLineUpPage (@RequestBody PageWrap<PlatformJob> pageWrap) { | 
 |  |  |         return ApiResponse.success(platformJobService.findPage(pageWrap)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("月台叫号") | 
 |  |  |     @PostMapping("/platformCallNumber") | 
 |  |  |     public ApiResponse platformCallNumber (@RequestBody JobOperateDTO jobOperateDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
 |  |  |         jobOperateDTO.setLoginUserInfo(getLoginUser(token)); | 
 |  |  |         platformJobService.platformInPark(jobOperateDTO); | 
 |  |  |         return ApiResponse.success("操作成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("转移月台") | 
 |  |  |     @PostMapping("/platformMove") | 
 |  |  |     public ApiResponse platformMove (@RequestBody JobOperateDTO jobOperateDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
 |  |  |         jobOperateDTO.setLoginUserInfo(getLoginUser(token)); | 
 |  |  |         platformJobService.platformInPark(jobOperateDTO); | 
 |  |  |         return ApiResponse.success("操作成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("月台过号") | 
 |  |  |     @PostMapping("/platformOverNumber") | 
 |  |  |     public ApiResponse platformOverNumber (@RequestBody JobOperateDTO jobOperateDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
 |  |  |         jobOperateDTO.setLoginUserInfo(getLoginUser(token)); | 
 |  |  |         platformJobService.platformInPark(jobOperateDTO); | 
 |  |  |         return ApiResponse.success("操作成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("异常挂起") | 
 |  |  |     @PostMapping("/platformErr") | 
 |  |  |     public ApiResponse platformErr (@RequestBody JobOperateDTO jobOperateDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
 |  |  |         jobOperateDTO.setLoginUserInfo(getLoginUser(token)); | 
 |  |  |         platformJobService.platformInPark(jobOperateDTO); | 
 |  |  |         return ApiResponse.success("操作成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("手动开始作业") | 
 |  |  |     @PostMapping("/beginWork") | 
 |  |  |     public ApiResponse beginWork (@RequestBody JobOperateDTO jobOperateDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
 |  |  |         jobOperateDTO.setLoginUserInfo(getLoginUser(token)); | 
 |  |  |         platformJobService.platformInPark(jobOperateDTO); | 
 |  |  |         return ApiResponse.success("操作成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("完成作业") | 
 |  |  |     @PostMapping("/finishWork") | 
 |  |  |     public ApiResponse finishWork (@RequestBody JobOperateDTO jobOperateDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { | 
 |  |  |         jobOperateDTO.setLoginUserInfo(getLoginUser(token)); | 
 |  |  |         platformJobService.platformInPark(jobOperateDTO); | 
 |  |  |         return ApiResponse.success("操作成功"); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |