diff --git a/domain/model/groupPower_m/family.go b/domain/model/groupPower_m/family.go index 2c881c37417c992aabb941e37c029b5515613f53..9e12e5825c9d7dbbcd11bae25913723945f9a080 100644 --- a/domain/model/groupPower_m/family.go +++ b/domain/model/groupPower_m/family.go @@ -49,7 +49,7 @@ func (this *GroupPower) Get(model *domain.Model) (*GroupPower, error) { func (gpu *GroupPowerUser) GetBy(model *domain.Model, pageSize, pageIndex int) ([]*GroupPowerUser, int64, int, bool, error) { rows := make([]*GroupPowerUser, 0) - db := model.Db.Model(GroupPowerUser{}).Where(gpu).Order("field(`role`, 2, 3, 1)") + db := model.Db.Model(GroupPowerUser{}).Where(gpu).Order("field(`role`, 2, 3, 1),`id`") var count int64 err := db.Count(&count).Error if err != nil {