| | |
| | | List<Integer> orgIds = orgMapper.selectLowerOrgIds(orgId);
|
| | | params.put("orgIds",orgIds);
|
| | | monitorPointList = monitorPointMapper.selectByMap(params);
|
| | | for(MonitorPoint monitorPoint:monitorPointList){
|
| | | Integer state = getStateFromRedis(monitorPoint.getId());
|
| | | monitorPoint.setState(state);
|
| | | }
|
| | | // for(MonitorPoint monitorPoint:monitorPointList){
|
| | | // Integer state = getStateFromRedis(monitorPoint.getId());
|
| | | // monitorPoint.setState(state);
|
| | | // }
|
| | | }
|
| | | return monitorPointList == null ? new ArrayList<>() : monitorPointList;
|
| | | }
|
| | |
| | |
|
| | | return result.values();
|
| | | }
|
| | | |
| | | @Override
|
| | | public void isCompensateCalculation(Map<String, Object> parameters) {
|
| | | MonitorPoint monitorPoint = monitorPointMapper.selectByPrimaryKey(Integer.valueOf(parameters.get("monitorPointId").toString()));
|
| | | if (Integer.valueOf(320581).equals(monitorPoint.getAreaCode())) {
|
| | | parameters.put("compensate", true);
|
| | | }
|
| | | |
| | | }
|
| | | @Override
|
| | | public Map<String, Object> selectAllById(String id) {
|
| | | int id2 = Integer.parseInt(id);
|
| | | Map<String, Object> map = monitorPointMapper.selectAllById(id2);
|
| | | return map;
|
| | | }
|
| | | }
|