|
|
@@ -328,7 +328,7 @@
|
|
|
</if>) s
|
|
|
left join corp_user_follow_relation cufr on cufr.id = s.relation_id
|
|
|
left join corp_user_auth ca on ca.external_userid = cufr.corp_user_id
|
|
|
- left join corp_user cu on cu.id = ca.corp_user_id where cu.user_id != 0) s left join order_don o on o.user_id =
|
|
|
+ left join corp_user cu on cu.id = ca.corp_user_id where cu.user_id != 0) s inner join order_don o on o.user_id =
|
|
|
s.user_id
|
|
|
and o.status not in ('close', 'noPayment')
|
|
|
and o.money > 0
|
|
|
@@ -349,7 +349,7 @@
|
|
|
</if>) s
|
|
|
left join corp_user_follow_relation cufr on cufr.id = s.relation_id
|
|
|
left join corp_user_auth ca on ca.external_userid = cufr.corp_user_id
|
|
|
- left join corp_user cu on cu.id = ca.corp_user_id where cu.user_id != 0) s left join order_don o on o.user_id =
|
|
|
+ left join corp_user cu on cu.id = ca.corp_user_id where cu.user_id != 0) s inner join order_don o on o.user_id =
|
|
|
s.user_id
|
|
|
and o.status not in ('close', 'noPayment')
|
|
|
and o.money > 0
|