|
|
@@ -215,6 +215,7 @@ func GetMyIntroListByInviteId(inviteId, page, perPage int64, useCache bool) (lis
|
|
|
LEFT JOIN ( SELECT sum( count ) AS total, sum( amount ) AS amount, benefit_wx_uid AS wx_uid from invite_benefit_orders WHERE 1 group by benefit_wx_uid ) b ON a.id = b.wx_uid
|
|
|
WHERE
|
|
|
a.intro_user_id=%d or a.invite_id=%d
|
|
|
+ and a.openid!=""
|
|
|
ORDER BY
|
|
|
a.sale_group DESC
|
|
|
LIMIT %d,%d;
|
|
|
@@ -396,6 +397,7 @@ func GetMyMonthIntroListByInviteId(inviteId int64, page, perPage int64, createTi
|
|
|
LEFT JOIN ( SELECT sum( count ) AS total, sum( amount ) AS amount, benefit_wx_uid AS wx_uid FROM invite_benefit_orders WHERE date_format(date_add(created_at, interval 8 HOUR), '%s')= ? GROUP BY benefit_wx_uid ) b ON a.id = b.wx_uid
|
|
|
WHERE
|
|
|
a.intro_user_id=%d or a.invite_id=%d
|
|
|
+ and a.openid!=""
|
|
|
ORDER BY
|
|
|
a.sale_group DESC
|
|
|
LIMIT %d,%d;
|