| | |
| | | List<GovMonitorPoint> govMonitorPoints = govMonitorPointService.selectGovMonitorPointsByOrgid(parameters); |
| | | return ResultMessage.ok(govMonitorPoints); |
| | | } |
| | | |
| | | /** |
| | | *@Description: 通过guid和组织id获取绑定该站点设备的平均数据 |
| | | *@Param: [request] |
| | | *@return: com.moral.constant.ResultMessage |
| | | *@Author: lizijie |
| | | *@Date: 2021/9/26 10:06 |
| | | **/ |
| | | @RequestMapping(value = "queryGovMonitorPointHoutlyDatyByGuidsAndOrgid", method = RequestMethod.GET) |
| | | @ResponseBody |
| | | public ResultMessage queryGovMonitorPointHoutlyDatyByGuidsAndOrgid(HttpServletRequest request){ |
| | | Map<String, Object> parameters = WebUtils.getParametersStartingWith(request, null); |
| | | Object orgid = parameters.get("organization_id"); |
| | | Object guids = parameters.get("guids"); |
| | | Object date = parameters.get("date"); |
| | | if (ObjectUtils.isEmpty(orgid) || ObjectUtils.isEmpty(guids) || ObjectUtils.isEmpty(date)){ |
| | | return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); |
| | | } |
| | | Organization organization = organizationMapper.selectById(Integer.parseInt(orgid.toString())); |
| | | if (ObjectUtils.isEmpty(organization)){ |
| | | return ResultMessage.fail(ResponseCodeEnum.ORGANIZATION_NOT_EXIST.getCode(), ResponseCodeEnum.ORGANIZATION_NOT_EXIST.getMsg()); |
| | | } |
| | | Map<String,Object> resultMap = govMonitorPointService.queryGovMonitorPointHoutlyDatyByGuidsAndOrgid(parameters); |
| | | return ResultMessage.ok(resultMap); |
| | | } |
| | | } |