分销金额
This commit is contained in:
parent
dbeef93af8
commit
4cae2309c6
|
|
@ -278,11 +278,11 @@
|
|||
</select>
|
||||
<select id="getInviteUser" resultType="com.czg.market.vo.InviteUserVO">
|
||||
SELECT
|
||||
user.head_img AS headImg,
|
||||
user.nick_name AS shopUserName,
|
||||
user.phone AS shopUserPhone,
|
||||
user.one_income AS oneIncome,
|
||||
user.invite_time AS inviteTime,
|
||||
u.head_img AS headImg,
|
||||
u.nick_name AS shopUserName,
|
||||
u.phone AS shopUserPhone,
|
||||
u.one_income AS oneIncome,
|
||||
u.invite_time AS inviteTime,
|
||||
dist.total_income AS totalIncome,
|
||||
dist.pending_income AS pendingIncome,
|
||||
dist.received_income AS receivedIncome,
|
||||
|
|
@ -291,10 +291,10 @@
|
|||
dist.distribution_level_id AS levelId,
|
||||
dist.distribution_level_name AS levelName,
|
||||
CASE WHEN dist.id IS NOT NULL THEN 1 ELSE 0 END AS isDistribution
|
||||
FROM `tb_shop_user` user
|
||||
left join mk_distribution_user dist on user.id = dist.id
|
||||
WHERE user.`distribution_user_id` = #{distributionUserId}
|
||||
<if test="shopUserId != null">and user.id = #{shopUserId}</if>
|
||||
ORDER BY user.`create_time` DESC
|
||||
FROM `tb_shop_user` as u
|
||||
left join mk_distribution_user dist on u.id = dist.id
|
||||
WHERE u.`distribution_user_id` = #{distributionUserId}
|
||||
<if test="shopUserId != null">and u.id = #{shopUserId}</if>
|
||||
ORDER BY u.`id` DESC
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue