|  |  | 
 |  |  | import com.doumee.core.model.PageWrap; | 
 |  |  | import com.doumee.core.utils.Constants; | 
 |  |  | import com.doumee.dao.business.model.Platform; | 
 |  |  | import com.doumee.service.business.PlatformJobService; | 
 |  |  | import com.doumee.service.business.PlatformService; | 
 |  |  | import io.swagger.annotations.Api; | 
 |  |  | import io.swagger.annotations.ApiOperation; | 
 |  |  | 
 |  |  | import org.springframework.web.bind.annotation.*; | 
 |  |  |  | 
 |  |  | import javax.servlet.http.HttpServletResponse; | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * @author 江蹄蹄 | 
 |  |  | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private PlatformService platformService; | 
 |  |  |  | 
 |  |  |     @Autowired | 
 |  |  |     private PlatformJobService platformJobService; | 
 |  |  |  | 
 |  |  |     @PreventRepeat | 
 |  |  |     @ApiOperation("新建") | 
 |  |  | 
 |  |  |     @PostMapping("/updateById") | 
 |  |  |     @CloudRequiredPermission("business:platform:update") | 
 |  |  |     public ApiResponse updateById(@RequestBody Platform platform,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
 |  |  |         platform.setLoginUserInfo(this.getLoginUser(token)); | 
 |  |  |         platformService.updateById(platform); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |     @ApiOperation("根据ID修改状态") | 
 |  |  |     @PostMapping("/updateStatusById") | 
 |  |  |     @CloudRequiredPermission("business:platform:update") | 
 |  |  |     public ApiResponse updateStatusById(@RequestBody Platform platform,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
 |  |  |         platform.setLoginUserInfo(this.getLoginUser(token)); | 
 |  |  |         platformService.updateStatusById(platform); | 
 |  |  |         return ApiResponse.success(null); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |         return ApiResponse.success(platformService.findPage(pageWrap)); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  |     @ApiOperation("根据月台组获取月台列表信息") | 
 |  |  |     @GetMapping("/listByGroupId") | 
 |  |  |     @CloudRequiredPermission("business:platform:query") | 
 |  |  |     public ApiResponse<List<Platform>> listByGroupId (@RequestParam Integer groupId, @RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
 |  |  |         return ApiResponse.success(platformJobService.getPlatformList(groupId,this.getLoginUser(token))); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @ApiOperation("导出Excel") | 
 |  |  |     @PostMapping("/exportExcel") | 
 |  |  |     @CloudRequiredPermission("business:platform:exportExcel") |