|
|
@@ -62,6 +62,9 @@ public class ZdAirbottleApplication implements ApplicationRunner {
|
|
|
dbBluetoothGateway.setSubId(db.getSubjectId());
|
|
|
List <DbBluetoothGateway> bluetoothGatewayList = dbBluetoothGatewayService.selectDbBluetoothGatewayList(dbBluetoothGateway);
|
|
|
if(bluetoothGatewayList.size()>0){
|
|
|
+ for(DbBluetoothGateway oldGateway:bluetoothGatewayList){
|
|
|
+ redisService.deleteObject(BaseConstants.BEACON_MAC+"~"+ oldGateway.getGatewayMac());
|
|
|
+ }
|
|
|
redisService.setCacheObject(BaseConstants.BEACON_MATE_DET+"~"+ db.getBeaconTag()+"~"+db.getSubjectId()+"~"+db.getGasName(),db.getBeaconTag(), 120L, TimeUnit.SECONDS);
|
|
|
}
|
|
|
}
|