| | |
| | | }
|
| | | @Override
|
| | | public List<MonitorPoint> queryWithStateByMap(Map<String, Object> params){
|
| | | params.put("isDelete",Constants.IS_DELETE_FALSE);
|
| | | List<MonitorPoint> monitorPointList = monitorPointMapper.selectByMap(params);
|
| | | for(MonitorPoint monitorPoint:monitorPointList){
|
| | | Integer state = getStateFromRedis(monitorPoint.getId());
|
| | |
| | | example.orderBy("name").asc();
|
| | | return monitorPointMapper.selectByExample(example);
|
| | | }
|
| | | @Override
|
| | | public List<MonitorPoint> getMonitorPointsByRegion(Map<String, Object> parameters) {
|
| | | Example example = new Example(MonitorPoint.class);
|
| | | Criteria criteria = example.createCriteria();
|
| | | |
| | | criteria.andEqualTo("isDelete", Constants.IS_DELETE_FALSE);
|
| | | criteria.andEqualTo(parameters.get("name").toString(), parameters.get("value"));
|
| | | return monitorPointMapper.selectByExample(example);
|
| | | }
|
| | | }
|