缓存清理

This commit is contained in:
wangshilong 2024-12-09 12:57:12 +08:00
parent 828bee6acc
commit 982135c204
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ public class EquipmentIPProperties {
return false;
}
// 每分钟从数据库入库一次
if (this.lastSyncEquipment.getAcquire() > System.currentTimeMillis() - 60_000) {
if (this.lastSyncEquipment.getAcquire() < System.currentTimeMillis() - 60_000) {
this.jdbcTemplate.queryForList("select gateway_sn from device").forEach(map -> {
String gatewaySn = StringUtils.trim(MapUtil.getStr(map, "gateway_sn", ""));
if (StringUtils.isNotBlank(gatewaySn)) {