优化代码

This commit is contained in:
GoEdgeLab
2022-12-14 17:32:24 +08:00
parent 4213f03ded
commit 47b5512eea
3 changed files with 6 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ func (this *ClientAgentIPDAO) ListIPsAfterId(tx *dbs.Tx, id int64, size int64) (
}
_, err = this.Query(tx).
Result("id", "ip", "agentId").
Result("id", "ip", "ptr", "agentId").
Gt("id", id).
AscPk().
Limit(size). // 限制单次读取个数