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

This commit is contained in:
刘祥超
2023-05-12 15:34:18 +08:00
parent 294b57ca60
commit 813ce44ceb
4 changed files with 5 additions and 5 deletions

View File

@@ -122,7 +122,7 @@ func (this *RegionProvinceDAO) FindAllEnabledProvincesWithCountryId(tx *dbs.Tx,
_, err = this.Query(tx).
State(RegionProvinceStateEnabled).
Attr("countryId", countryId).
Asc().
AscPk().
Slice(&result).
FindAll()
return
@@ -132,7 +132,7 @@ func (this *RegionProvinceDAO) FindAllEnabledProvincesWithCountryId(tx *dbs.Tx,
func (this *RegionProvinceDAO) FindAllEnabledProvinces(tx *dbs.Tx) (result []*RegionProvince, err error) {
_, err = this.Query(tx).
State(RegionProvinceStateEnabled).
Asc().
AscPk().
Slice(&result).
FindAll()
return