| | |
| | | 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;
|
| | | }
|