| | |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.openapi.request.*; |
| | | import com.doumee.dao.openapi.response.*; |
| | | 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 io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/hk/api") |
| | | public class HkOpenApiController extends BaseController { |
| | | |
| | | @Autowired |
| | | private PlatformService platformService; |
| | | |
| | | @Autowired |
| | | private PlatformLogService platformLogService; |
| | | |
| | | @Autowired |
| | | private PlatformJobService platformJobService; |
| | | |
| | | @Autowired |
| | | private PlatformWaterGasService platformWaterGasService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("【用水量】本月、上月和去年同月") |
| | | @PostMapping("/water/dataByMonth") |
| | | @LoginNoRequired |
| | | public ApiResponse<WaterByMonthResponse> waterDataByMonth(@RequestBody WaterByMonthRequest param) { |
| | | return ApiResponse.success(new WaterByMonthResponse()); |
| | | return ApiResponse.success(platformWaterGasService.waterDataByMonth(param)); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【用气量】本月、上月和去年同月") |
| | | @PostMapping("/gas/dataByMonth") |
| | | @LoginNoRequired |
| | | public ApiResponse<GasByMonthResponse> gasDataByMonth(@RequestBody GasByMonthRequest param) { |
| | | return ApiResponse.success(new GasByMonthResponse()); |
| | | return ApiResponse.success(platformWaterGasService.gasDataByMonth(param)); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【月台】按天统计运单请求参数") |
| | | @PostMapping("/platform/orderNumByDate") |
| | | @LoginNoRequired |
| | | public ApiResponse<PlatformOrderNumByDateResponse> orderNumByDate(@RequestBody PlatformOrderNumByDateRequest param) { |
| | | return ApiResponse.success(new PlatformOrderNumByDateResponse()); |
| | | return ApiResponse.success(platformJobService.orderNumByDate(param)); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【月台】月台个状态数量统计") |
| | | @ApiOperation("【月台】月台状态数量统计") |
| | | @PostMapping("/platform/totalNumByStatus") |
| | | @LoginNoRequired |
| | | public ApiResponse<PlatformNumByStatusResponse> totalNumByStatus(@RequestBody PlatformNumByStatusRequest param) { |
| | | return ApiResponse.success(new PlatformNumByStatusResponse()); |
| | | return ApiResponse.success(platformService.getPlatformNumByStatusResponse()); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【月台】月台当前作业信息列表") |
| | | @PostMapping("/platform/workingDataList") |
| | | @LoginNoRequired |
| | | public ApiResponse<List<PlatformDataListResponse>> platformWorkingDataList(@RequestBody PlatformDataListRequest param) { |
| | | return ApiResponse.success(new ArrayList<>()); |
| | | return ApiResponse.success(platformJobService.platformWorkingDataList(param)); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【月台】月台作业详情信息") |
| | | @PostMapping("/platform/workDataInfo") |
| | | @LoginNoRequired |
| | | public ApiResponse<PlatformDataInfoResponse> platformWorkingDataList(@RequestBody PlatformDataInfoRequest param) { |
| | | return ApiResponse.success(new PlatformDataInfoResponse()); |
| | | return ApiResponse.success(platformJobService.platformWorkingDataList(param)); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【月台】当前车辆状态数量统计") |
| | | @PostMapping("/platform/carStatusNum") |
| | | @LoginNoRequired |
| | | public ApiResponse<CarNumByStatusResponse> carStatusNum(@RequestBody CarNumByStatusRequest param) { |
| | | return ApiResponse.success(new CarNumByStatusResponse()); |
| | | return ApiResponse.success(platformJobService.carStatusNum(param)); |
| | | } |
| | | |
| | | @PreventRepeat |
| | |
| | | @PostMapping("/platform/carLogsList") |
| | | @LoginNoRequired |
| | | public ApiResponse<List<CarLogsListResponse>> carLogsList(@RequestBody CarLogsListRequest param) { |
| | | return ApiResponse.success(new ArrayList<>()); |
| | | return ApiResponse.success(platformLogService.getCarLogsListResponse(param)); |
| | | } |
| | | @PreventRepeat |
| | | @ApiOperation("【月台】排队队列列表集合") |
| | | @PostMapping("/platform/queueList") |
| | | @LoginNoRequired |
| | | public ApiResponse< PlatformQueuingListResponse> carLogsList(@RequestBody PlatformQueuingListRequest param) { |
| | | return ApiResponse.success(new PlatformQueuingListResponse()); |
| | | public ApiResponse<PlatformQueuingListResponse> queueList(@RequestBody PlatformQueuingListRequest param) { |
| | | return ApiResponse.success(platformJobService.queueList(param)); |
| | | } |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("【月台】预警事件集合列表") |
| | | @PostMapping("/platform/warningEventList") |
| | | @LoginNoRequired |
| | | public ApiResponse<List<CarLogsListResponse>> carLogsList(@RequestBody PlatformWarnEventListRequest param) { |
| | | public ApiResponse<List<PlatformWarnEventListResponse>> warningEventList(@RequestBody PlatformWarnEventListRequest param) { |
| | | return ApiResponse.success(new ArrayList<>()); |
| | | } |
| | | } |