| | |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.business.third.model.PageData; |
| | | import com.doumee.service.business.third.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.Platform; |
| | | import com.doumee.dao.business.model.PlatformGroup; |
| | |
| | | import com.doumee.service.business.PlatformJobService; |
| | | import com.doumee.service.business.PlatformService; |
| | | import com.doumee.service.business.PlatformShowParamService; |
| | | import com.doumee.service.business.third.WmsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private PlatformShowParamService platformShowParamService; |
| | | |
| | | @Autowired |
| | | private WmsService wmsService; |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("新建") |
| | |
| | | public ApiResponse<List<PlatformGroup>> getPlatformGroupList (@RequestBody PlatformDataDTO platformDataDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | return ApiResponse.success(platformGroupService.getAllPlatformGroup(platformDataDTO,getLoginUser(token))); |
| | | } |
| | | @ApiOperation("获取月台组信息(平台端)") |
| | | @PostMapping("/getPlatformGroupListNew") |
| | | @CloudRequiredPermission("business:platform:query") |
| | | public ApiResponse<List<PlatformGroup>> getPlatformGroupListNew (@RequestBody PlatformDataDTO platformDataDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | return ApiResponse.success(platformGroupService.getAllPlatformGroup(platformDataDTO,getLoginUser(token))); |
| | | } |
| | | |
| | | @ApiOperation("获取月台任务信息") |
| | | @GetMapping("/getPlatformWorkData") |
| | |
| | | if(Constants.equalsInteger(oldPlatformJob.getStatus(),Constants.PlatformJobStatus.WAIT_CALL.getKey())){ |
| | | platformJobService.sendInPark(platformJob); |
| | | } |
| | | if(!Constants.equalsInteger(platformJob.getType(),Constants.FOUR) |
| | | && StringUtils.isNotBlank(platformJob.getBillCode())){ |
| | | //通知WMS绑定月台信息 |
| | | wmsService.orderPlatformBind(platformJob); |
| | | } |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation("恢复作业") |
| | | @PostMapping("/restoreWork") |
| | | @CloudRequiredPermission("business:platform:update") |
| | | public ApiResponse restoreWork (@RequestBody JobOperateDTO jobOperateDTO, @RequestHeader(Constants.HEADER_USER_TOKEN) String token) { |
| | | jobOperateDTO.setLoginUserInfo(getLoginUser(token)); |
| | | PlatformJob platformJob = platformJobService.restoreWork(jobOperateDTO); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("完成作业") |
| | | @PostMapping("/finishWork") |
| | | @CloudRequiredPermission("business:platform:update") |