From cd3386b30bfeccc22850cb840ea5c5b4123c0d83 Mon Sep 17 00:00:00 2001 From: hujiebin Date: Mon, 4 Sep 2023 10:44:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=8E=BB=E6=8E=89=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E9=BB=91=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- domain/model/groupPower_m/group_rank.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/domain/model/groupPower_m/group_rank.go b/domain/model/groupPower_m/group_rank.go index 71f5645..387febb 100644 --- a/domain/model/groupPower_m/group_rank.go +++ b/domain/model/groupPower_m/group_rank.go @@ -15,12 +15,11 @@ type GroupPowerExpRank struct { // 获取家族经验排行榜 // param limit: 排行榜人数 -// 10166 线上员工,对应的势力不上榜,groupPowerId=8951,6171(产品要移走) +// 10166 线上员工,对应的势力不上榜,groupPowerId=8951 func GetGroupPowerExpRank(model *domain.Model, beginDate, endDate string, limit int, gpStatus groupPower_e.GroupPowerStatus, area int) ([]GroupPowerExpRank, error) { var res []GroupPowerExpRank db := model.DB().Table("group_power_day_exp gpd").Select("gpd.group_power_id,SUM(gpd.exp) as exp"). Where("gpd.group_power_id <> 8951"). - Where("gpd.group_power_id <> 6171"). Where("gpd.date BETWEEN ? AND ?", beginDate, endDate) if gpStatus > 0 { db = db.Joins("left join group_power gp on gpd.group_power_id = gp.id").Where("gp.status = ?", gpStatus) -- 2.22.0