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