| | |
| | | import com.doumee.dao.openapi.request.*; |
| | | import com.doumee.dao.openapi.response.*; |
| | | import com.doumee.dao.system.model.SystemUser; |
| | | import com.doumee.service.business.PlatformJobService; |
| | | import com.doumee.service.business.PlatformLogService; |
| | | import com.doumee.service.business.PlatformService; |
| | | import com.doumee.service.business.PlatformWaterGasService; |
| | | import com.doumee.service.business.*; |
| | | import com.doumee.service.system.SystemUserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | @Autowired |
| | | private PlatformJobService platformJobService; |
| | | |
| | | @Autowired |
| | | private PlatformWarnEventService platformWarnEventService; |
| | | |
| | | @Autowired |
| | | private PlatformWaterGasService platformWaterGasService; |
| | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("【用水量】近12个月用水量信息列表") |
| | | @PostMapping("/water/lastMonthsDataList") |
| | | public ApiResponse<List<PlatformLastMonthListResponse>> lastMonthsWaterList() { |
| | | return ApiResponse.success(platformWaterGasService.getPlatformLastMonthListResponse(Constants.ZERO)); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("【用气量】本月、上月和去年同月") |
| | | @PostMapping("/gas/dataByMonth") |
| | | public ApiResponse<GasByMonthResponse> gasDataByMonth(@RequestBody GasByMonthRequest param) { |
| | | return ApiResponse.success(platformWaterGasService.gasDataByMonth(param)); |
| | | } |
| | | |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("【用气量】近12个月用气量信息列表") |
| | | @PostMapping("/gas/lastMonthsDataList") |
| | | public ApiResponse<List<PlatformLastMonthListResponse>> lastMonthsGasList () { |
| | | return ApiResponse.success(platformWaterGasService.getPlatformLastMonthListResponse(Constants.ONE)); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | |
| | | @PreventRepeat |
| | | @ApiOperation("【月台】月台当前作业信息列表") |
| | | @PostMapping("/platform/workingDataList") |
| | | public ApiResponse<List<PlatformDataListResponse>> platformWorkingDataList(@RequestBody PlatformDataListRequest param) { |
| | | public ApiResponse<List<PlatformDataListResponse>> workingDataList(@RequestBody PlatformDataListRequest param) { |
| | | return ApiResponse.success(platformJobService.platformWorkingDataList(param)); |
| | | } |
| | | |
| | |
| | | @PreventRepeat |
| | | @ApiOperation("【月台】月台作业详情信息") |
| | | @PostMapping("/platform/workDataInfo") |
| | | public ApiResponse<PlatformDataInfoResponse> platformWorkingDataList(@RequestBody PlatformDataInfoRequest param) { |
| | | public ApiResponse<PlatformDataInfoResponse> workDataInfo(@RequestBody PlatformDataInfoRequest param) { |
| | | return ApiResponse.success(platformJobService.platformWorkingDataList(param)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("【月台】预警事件集合列表") |
| | | @PostMapping("/platform/warningEventList") |
| | | public ApiResponse<List<PlatformWarnEventListResponse>> warningEventList(@RequestBody PlatformWarnEventListRequest param) { |
| | | return ApiResponse.success(new ArrayList<>()); |
| | | return ApiResponse.success(platformWarnEventService.findListToHk()); |
| | | } |
| | | |
| | | @LoginNoRequired |
| | | @PreventRepeat |
| | | @ApiOperation("【月台】月台状态") |
| | | @PostMapping("/platform/getStatusList") |
| | | public ApiResponse<List<PlatformStatusListResponse>> getStatusList() { |
| | | return ApiResponse.success(platformService.getPlatformStatusList()); |
| | | } |
| | | } |