From b0c3b872dd7d1ec67aefa43c03b21148804bd8f8 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Fri, 10 Mar 2023 11:31:22 +0800 Subject: [PATCH] Update groupPower.go --- domain/model/groupPower_m/groupPower.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/model/groupPower_m/groupPower.go b/domain/model/groupPower_m/groupPower.go index e1cd5ac..723cb65 100644 --- a/domain/model/groupPower_m/groupPower.go +++ b/domain/model/groupPower_m/groupPower.go @@ -359,7 +359,7 @@ func GetGroupPowerNames(db *gorm.DB, ids []mysql.ID) (map[mysql.ID]string, map[m result := make(map[mysql.ID]string, 0) result2 := make(map[mysql.ID]string, 0) if len(ids) > 0 { - if err := db.Model(&GroupPower{}).Select("p.id, i.name,i.nameplate"). + if err := db.Model(&GroupPower{}).Select("p.id, i.name,p.nameplate"). Joins("AS p INNER JOIN group_info AS i ON p.group_uid = i.im_group_id"). Where("p.id IN ?", ids).Find(&rows).Error; err != nil { return result, result2, err -- 2.22.0