diff --git a/domain/model/groupPower_m/group_rank.go b/domain/model/groupPower_m/group_rank.go index 387febbcb00b60369b227cc4a7715ab5ddd2edcf..71f5645db73040ed2bf66c9ac02bade17c446524 100644 --- a/domain/model/groupPower_m/group_rank.go +++ b/domain/model/groupPower_m/group_rank.go @@ -15,11 +15,12 @@ type GroupPowerExpRank struct { // 获取家族经验排行榜 // param limit: 排行榜人数 -// 10166 线上员工,对应的势力不上榜,groupPowerId=8951 +// 10166 线上员工,对应的势力不上榜,groupPowerId=8951,6171(产品要移走) 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)