修复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
@@ -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