fix(info-query): 修复查询重点表过滤优先级错误

This commit is contained in:
2023-06-13 00:56:31 +08:00
parent 303ff580f5
commit 48c18ce7e3

View File

@@ -441,7 +441,7 @@ public class InfoService {
return mysqlJdbcTemplate.queryForObject(
SqlBuilder.select("count(distinct concat(src_schema, src_table))")
.from(TABLE_INFO)
.whereGe(TABLE_INFO_PRIORITY, 1000)
.whereGe(TABLE_INFO_PRIORITY, 10000)
.andEq(TABLE_INFO_STATUS, "y")
.build(),
Long.class
@@ -454,7 +454,7 @@ public class InfoService {
return mysqlJdbcTemplate.queryForObject(
SqlBuilder.select("count(distinct concat(src_schema, src_table))")
.from(TABLE_INFO)
.whereLt(TABLE_INFO_PRIORITY, 1000)
.whereLt(TABLE_INFO_PRIORITY, 10000)
.andEq(TABLE_INFO_STATUS, "y")
.build(),
Long.class