签到页面
This commit is contained in:
@@ -29,6 +29,23 @@
|
||||
and u.user_id is not null
|
||||
</select>
|
||||
|
||||
<select id="selectInviteUser2" resultType="Map">
|
||||
SELECT "" as userId,
|
||||
user_name as userName,
|
||||
avatar as avatar,
|
||||
u.create_time as createTime,
|
||||
0.00 as money,
|
||||
ifnull(sub_orders.user_id, 0) as recordNum,
|
||||
"" as userType
|
||||
FROM tb_user u
|
||||
LEFT JOIN (SELECT user_id
|
||||
FROM orders
|
||||
WHERE pay_way = 9 AND `status` = 1
|
||||
GROUP BY user_id
|
||||
HAVING COUNT(*) >= 3) sub_orders ON u.user_id = sub_orders.user_id
|
||||
WHERE u.inviter_code = "JJ94KS" #{}
|
||||
</select>
|
||||
|
||||
<select id="sumInviteMoney" resultType="Double">
|
||||
select sum(money) from invite where state=1
|
||||
<if test="flag!=null and flag==1">
|
||||
|
||||
Reference in New Issue
Block a user