vince
2024-01-17 d1e65a28fc73b543b8f34fe118712573682ff2fc
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);
        }
    }
}