|  |  |  | 
|---|
|  |  |  | String static_equ_json = RedisUtil.get(redisTemplate, "static_equ_" + mac); | 
|---|
|  |  |  | //设备资料为null,说明未收到该设备的数据,直接离线 | 
|---|
|  |  |  | if(StringUtils.isEmpty(static_equ_json)) { | 
|---|
|  |  |  | //这里为空,直接离线 | 
|---|
|  |  |  | jobDao.updateStateByMac(mac, 4); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //这里为空,直接离线 | 
|---|
|  |  |  | jobDao.updateStateByMac(mac, 4); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Map<String,String> seJSON = JSON.parseObject(static_equ_json,new TypeReference<Map<String,String>>() {}); | 
|---|
|  |  |  | if(!seJSON.isEmpty()) { | 
|---|
|  |  |  | String orgId = seJSON.get("orgId"); | 
|---|
|  |  |  | 
|---|
|  |  |  | //这里为空,直接离线 | 
|---|
|  |  |  | jobDao.updateStateByMac(mac, 4); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Map<String,String> stateJSON = JSON.parseObject(state_json,new TypeReference<Map<String,String>>() {}); | 
|---|
|  |  |  | if(!stateJSON.isEmpty()) { | 
|---|
|  |  |  | Long time = Long.parseLong(stateJSON.get("time")); | 
|---|