|
@@ -57,12 +57,13 @@ public class BeaconMateImpl implements BeaconMate {
|
|
|
List <Map<String,Object>> beaconList = redisService.getCacheObject(BaseConstants.BEACON_MATE_INFO+"~"+subId);
|
|
List <Map<String,Object>> beaconList = redisService.getCacheObject(BaseConstants.BEACON_MATE_INFO+"~"+subId);
|
|
|
if(beaconList==null || initFlag){
|
|
if(beaconList==null || initFlag){
|
|
|
//todo 根据实验室id获取蓝牙信标列表
|
|
//todo 根据实验室id获取蓝牙信标列表
|
|
|
- ResultData<List <Map<String,Object>>> beaconData = remoteAirBottleService.findBySubId(subId);
|
|
|
|
|
- log.info("2.1=====================================》如果信标列表为空,查询信标列表:");
|
|
|
|
|
- if(beaconData.getCode()==200){
|
|
|
|
|
- log.info("2.2=====================================》beaconList查询信标列表数据列表大小:"+beaconData.getData().size());
|
|
|
|
|
- redisService.setCacheObject(BaseConstants.BEACON_MATE_INFO+"~"+ subId,beaconData.getData(), 7L, TimeUnit.DAYS);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ remoteAirBottleService.findBySubId(subId);
|
|
|
|
|
+// ResultData<List <Map<String,Object>>> beaconData = remoteAirBottleService.findBySubId(subId);
|
|
|
|
|
+// log.info("2.1=====================================》如果信标列表为空,查询信标列表:");
|
|
|
|
|
+// if(beaconData.getCode()==200){
|
|
|
|
|
+// log.info("2.2=====================================》beaconList查询信标列表数据列表大小:"+beaconData.getData().size());
|
|
|
|
|
+// redisService.setCacheObject(BaseConstants.BEACON_MATE_INFO+"~"+ subId,beaconData.getData(), 7L, TimeUnit.DAYS);
|
|
|
|
|
+// }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if(beaconList!=null){
|
|
if(beaconList!=null){
|