优化代码

This commit is contained in:
刘祥超
2022-12-14 17:32:24 +08:00
parent 3921c547be
commit 67473c2dcf
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). // 限制单次读取个数