瀏覽代碼

update

master
shenjiachi 1 月之前
父節點
當前提交
2ef1435c5e
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. +3
    -0
      app/svc/public_platoon/svc_relation_ship_map.go

+ 3
- 0
app/svc/public_platoon/svc_relation_ship_map.go 查看文件

@@ -171,6 +171,9 @@ func GetSonUserDailyActivity(engine *xorm.Engine, fatherUID int64, startDate, en
if err != nil {
return 0, nil, zhios_order_relate_logx.Error(err)
}
if len(userIDs) == 0 {
return 0, nil, nil
}

sql := "SELECT COUNT(*) AS total, uid FROM `egg_energy_user_activity` WHERE uid IN (%s) AND date >= '%s' AND date <= '%s' GROUP BY uid"
results, err := db.QueryNativeString(engine, fmt.Sprintf(sql, strings.Join(userIDs, ","), startDate, endDate))


Loading…
取消
儲存