工业级运维app手机api
fengxiang
2017-11-09 f7a789942c9c763943b90ee9dd490376808aaedd
修复
1 files modified
13 ■■■■■ changed files
src/main/java/com/moral/monitor/service/impl/RedisServiceImpl.java 13 ●●●●● patch | view | raw | blame | history
src/main/java/com/moral/monitor/service/impl/RedisServiceImpl.java
@@ -88,10 +88,15 @@
    //格式:state_组织ID_地区ID_监控点ID_mac
    private String getEquStateKey(String mac) {
          Map<String,Object> equMap = getStaticEqu(mac);
          String orgId = equMap.get(ORG_ID)==null?"$":equMap.get(ORG_ID).toString();
          String areaCode = equMap.get(AREA_CODE)==null?"$":equMap.get(AREA_CODE).toString();
          String mpointId = equMap.get(MONITORPOINT_ID)==null?"$":equMap.get(MONITORPOINT_ID).toString();
          return "state_"+orgId+"_"+areaCode+"_"+mpointId+"_"+mac;
          if(equMap!=null) {
              String orgId = equMap.get(ORG_ID)==null?"$":equMap.get(ORG_ID).toString();
              String areaCode = equMap.get(AREA_CODE)==null?"$":equMap.get(AREA_CODE).toString();
              String mpointId = equMap.get(MONITORPOINT_ID)==null?"$":equMap.get(MONITORPOINT_ID).toString();
              return "state_"+orgId+"_"+areaCode+"_"+mpointId+"_"+mac;
          }
          else {
              return "state_$_$_$_"+mac;
          }
    }
    //把含有状态的设备监控功能数据 存储到redis
    public void setEquState(String mac,Map<String,Object> equWithStateMap) {