From c577ef4d41df930f73b4d39b1e80412c950e7b7f Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Mon, 27 Mar 2023 11:21:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/model/groupPower_m/family.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/model/groupPower_m/family.go b/domain/model/groupPower_m/family.go index 2c881c3..9e12e58 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 { -- 2.22.0