修复AscPk()写成Asc()的问题

This commit is contained in:
GoEdgeLab
2023-05-12 15:34:18 +08:00
parent 6146ffdf56
commit 667628aff3
4 changed files with 5 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ func (this *UpdatingServerListDAO) FindLists(tx *dbs.Tx, clusterIds []int64, las
_, err = this.Query(tx).
Attr("clusterId", clusterIds). // 即使clusterIds数量是变化的这里也不需要使用Reuse(false)因为clusterIds通常数量有限
Gt("id", lastId).
Asc(). // 非常重要
AscPk(). // 非常重要
Slice(&result).
FindAll()
return