| | |
| | | List<MonitorPoint> monitorPoints = monitorPointService.queryByOrgIdAndRegionCode(form); |
| | | |
| | | //转换前端参数 |
| | | MonitorPointsVO vo = MonitorPointsVO.convert(monitorPoints,false); |
| | | MonitorPointsVO vo = MonitorPointsVO.convert(monitorPoints,false,false); |
| | | |
| | | return new ResultMessage(ResponseCodeEnum.SUCCESS.getCode(), ResponseCodeEnum.SUCCESS.getMsg(), vo); |
| | | } |
| | |
| | | List<MonitorPoint> monitorPoints = monitorPointService.queryByOrgIdAndRegionCode(form); |
| | | |
| | | //转换前端参数 |
| | | MonitorPointsVO vo = MonitorPointsVO.convert(monitorPoints,true); |
| | | MonitorPointsVO vo = MonitorPointsVO.convert(monitorPoints,true,false); |
| | | |
| | | return new ResultMessage(ResponseCodeEnum.SUCCESS.getCode(), ResponseCodeEnum.SUCCESS.getMsg(), vo); |
| | | } |
| | | |
| | | @GetMapping("queryMonitorPointsAvg") |
| | | public ResultMessage queryMonitorPointsAvg(MonitorPointQueryForm form) { |
| | | //判断是否缺少参数 |
| | | if (!form.valid()) |
| | | return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), |
| | | ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); |
| | | //处理查询业务 |
| | | List<MonitorPoint> monitorPoints = monitorPointService.queryByOrgIdAndRegionCode(form); |
| | | |
| | | //转换前端参数 |
| | | MonitorPointsVO vo = MonitorPointsVO.convert(monitorPoints,false,true); |
| | | |
| | | return new ResultMessage(ResponseCodeEnum.SUCCESS.getCode(), ResponseCodeEnum.SUCCESS.getMsg(), vo); |
| | | } |