补发任务奖励 任务
This commit is contained in:
@@ -72,6 +72,22 @@
|
||||
tu.inviter_code = #{code};
|
||||
</select>
|
||||
|
||||
<select id="selectInviteSignByUser" resultType="list">
|
||||
SELECT
|
||||
tu.user_id
|
||||
FROM
|
||||
tb_user tu
|
||||
LEFT JOIN
|
||||
(SELECT user_id
|
||||
FROM orders
|
||||
WHERE pay_way = 9
|
||||
AND `status` = 1
|
||||
GROUP BY user_id
|
||||
HAVING COUNT(*) >= 3) sub_orders ON tu.user_id = sub_orders.user_id
|
||||
WHERE
|
||||
tu.inviter_code = #{code};
|
||||
</select>
|
||||
|
||||
<select id="selectInviteSum" resultType="Double">
|
||||
select sum(money) from invite
|
||||
where user_id=#{userId}
|
||||
|
||||
Reference in New Issue
Block a user