|
@@ -44,6 +44,8 @@ type CygxCompanyUser struct {
|
|
|
ActivityVideoNum int `description:"活动视频播放量"`
|
|
|
ActivityVoiceNum int `description:"活动音频播放量"`
|
|
|
YanxuanspecialNum int `description:"研选专栏查看数量"`
|
|
|
+ RsCalendarNum int `description:"1V1 路演数量"`
|
|
|
+ FeedbackNum int `description:"交流反馈数量"`
|
|
|
PackageType int `description:"套餐类型,0:无,1:大套餐,2:小套餐"`
|
|
|
TryStage int `description:"试用客户子标签:0全部、1未分类、2 推进、3 跟踪、4 预备"`
|
|
|
Content string `description:"备注信息"`
|
|
@@ -204,7 +206,9 @@ func GetCygxCompanyUserListSplit(userIds string) (items []*CygxCompanyUser, err
|
|
|
( SELECT COUNT( 1 ) FROM cygx_micro_roadshow_video_history AS h INNER JOIN cygx_micro_roadshow_video as v ON v.video_id = h.video_id WHERE h.mobile = u.mobile ) AS roadshow_video_num,
|
|
|
( SELECT COUNT( 1 ) FROM cygx_activity_video_history AS h INNER JOIN cygx_activity_video as v ON v.video_id = h.video_id WHERE h.mobile = u.mobile ) AS activity_video_num,
|
|
|
( SELECT COUNT( 1 ) FROM cygx_activity_voice_history AS h INNER JOIN cygx_activity_voice as v ON v.activity_voice_id = h.activity_voice_id WHERE h.mobile = u.mobile ) AS activity_voice_num,
|
|
|
- ( SELECT COUNT( 1 ) FROM cygx_yanxuan_special_record AS h INNER JOIN cygx_yanxuan_special as v ON v.id = h.yanxuan_special_id WHERE h.mobile = u.mobile ) AS yanxuanspecial_num
|
|
|
+ ( SELECT COUNT( 1 ) FROM cygx_yanxuan_special_record AS h INNER JOIN cygx_yanxuan_special as v ON v.id = h.yanxuan_special_id WHERE h.mobile = u.mobile ) AS yanxuanspecial_num,
|
|
|
+ ( SELECT COUNT(1) FROM cygx_user_feedback as h WHERE h.mobile = u.mobile ) AS feedback_num,
|
|
|
+ ( SELECT COUNT(1) FROM ` + databaseName + `.rs_calendar_meeting_user as h WHERE h.mobile = u.mobile ) AS rs_calendar_num
|
|
|
FROM ` + databaseName + `.wx_user AS u WHERE u.user_id IN (` + userIds + `) AND u.mobile != '' GROUP BY u.user_id `
|
|
|
_, err = o.Raw(sql).QueryRows(&items)
|
|
|
return
|