fengxiang
2018-04-25 4f708def438b40d2a55c4bb479eb67acf8076a95
src/main/java/com/moral/service/impl/MonitorPointServiceImpl.java
@@ -44,6 +44,7 @@
    }
    @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());
@@ -204,4 +205,13 @@
      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);
   }
}