缓存清理
This commit is contained in:
parent
828bee6acc
commit
982135c204
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue