vince
2023-12-18 e0d062c35d663dc97ff34c2aec5297275b96c4e6
src/main/java/com/fzzy/gateway/service/GatewayDeviceService.java
@@ -92,6 +92,15 @@
        flushCache();
    }
    public void updateData(GatewayDevice device) {
        device.setStatus(Constant.YN_Y);
        gatewayDeviceRep.save(device);
        flushCacheOne(device);
    }
    /**
     * gatewayDeviceService#delData
     *
@@ -115,6 +124,10 @@
        for (GatewayDevice device : list) {
            GatewayUtils.add2Cache(device);
        }
    }
    private void flushCacheOne(GatewayDevice device) {
        GatewayUtils.add2Cache(device);
    }
@@ -154,4 +167,6 @@
            GatewayUtils.add2Cache(device);
        }
    }
}