| | |
| | | package com.dy.pipIrrStatistics.largeScreen; |
| | | |
| | | import com.dy.common.aop.SsoAop; |
| | | import com.dy.common.util.DateTime; |
| | | import com.dy.common.webUtil.BaseResponse; |
| | | import com.dy.common.webUtil.BaseResponseUtils; |
| | | import com.dy.common.webUtil.ResultCodeMsg; |
| | |
| | | /** |
| | | * 大屏展示---监测信息 |
| | | * @return 监测信息 |
| | | * @param startDt 开始日期(格式 yyyy-mm-dd) |
| | | * @param fromDt 开始日期(格式 yyyy-mm-dd) |
| | | */ |
| | | @Operation(summary = "大屏展示", description = "监测信息") |
| | | @ApiResponses(value = { |
| | |
| | | }) |
| | | @GetMapping(path = "monitorInfo") |
| | | @SsoAop() |
| | | public BaseResponse<VoMonitorInfo> monitorInfo(Date startDt) { |
| | | public BaseResponse<VoMonitorInfo> monitorInfo(String fromDt) throws Exception { |
| | | if(fromDt == null || fromDt.trim().equals("")){ |
| | | return BaseResponseUtils.buildException("开始日期不能为空"); |
| | | } |
| | | Date startDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(fromDt + " 00:00:00"); |
| | | VoMonitorInfo res = this.sv.monitorInfo(startDt); |
| | | return BaseResponseUtils.buildSuccess(res); |
| | | } |