额外字段
This commit is contained in:
@@ -34,6 +34,11 @@ public class InviteUserVO implements Serializable {
|
|||||||
* 一级收益
|
* 一级收益
|
||||||
*/
|
*/
|
||||||
private BigDecimal oneIncome;
|
private BigDecimal oneIncome;
|
||||||
|
private BigDecimal totalIncome;
|
||||||
|
private BigDecimal pendingIncome;
|
||||||
|
private BigDecimal receivedIncome;
|
||||||
|
private BigDecimal withdrawnIncome;
|
||||||
|
private Integer status;
|
||||||
/**
|
/**
|
||||||
* 邀请时间
|
* 邀请时间
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -263,16 +263,22 @@
|
|||||||
order by u.create_time desc
|
order by u.create_time desc
|
||||||
</select>
|
</select>
|
||||||
<select id="getInviteUser" resultType="com.czg.market.vo.InviteUserVO">
|
<select id="getInviteUser" resultType="com.czg.market.vo.InviteUserVO">
|
||||||
SELECT user.head_img AS headImg,
|
SELECT
|
||||||
user.nick_name AS shopUserName,
|
user.head_img AS headImg,
|
||||||
user.phone AS shopUserPhone,
|
user.nick_name AS shopUserName,
|
||||||
user.one_income AS oneIncome,
|
user.phone AS shopUserPhone,
|
||||||
user.invite_time AS inviteTime,
|
user.one_income AS oneIncome,
|
||||||
dist.distribution_level_id AS levelId,
|
user.invite_time AS inviteTime,
|
||||||
dist.distribution_level_name AS levelName,
|
dist.total_income AS totalIncome,
|
||||||
CASE WHEN dist.id IS NOT NULL THEN 1 ELSE 0 END AS isDistribution
|
dist.pending_income AS pendingIncome,
|
||||||
|
dist.received_income AS receivedIncome,
|
||||||
|
dist.withdrawn_income AS withdrawnIncome,
|
||||||
|
dist.status AS status,
|
||||||
|
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
|
FROM `tb_shop_user` user
|
||||||
left join mk_distribution_user dist on user.id = dist.id
|
left join mk_distribution_user dist on user.id = dist.id
|
||||||
WHERE user.`distribution_user_id` = #{distributionUserId}
|
WHERE user.`distribution_user_id` = #{distributionUserId}
|
||||||
<if test="shopUserId != null">and user.id = #{shopUserId}</if>
|
<if test="shopUserId != null">and user.id = #{shopUserId}</if>
|
||||||
ORDER BY user.`create_time` DESC
|
ORDER BY user.`create_time` DESC
|
||||||
|
|||||||
Reference in New Issue
Block a user