sql错误
This commit is contained in:
@@ -294,9 +294,9 @@
|
||||
FROM tb_shop_user_invite invite
|
||||
left join tb_shop_user u on invite.shop_user_id = u.id
|
||||
left join mk_distribution_user dist on u.id = dist.id
|
||||
WHERE u.`distribution_user_id` = #{distributionUserId}
|
||||
WHERE invite.`distribution_user_id` = #{distributionUserId}
|
||||
<if test="distributionLevelId != null">and dist.distribution_level_id = #{distributionLevelId}</if>
|
||||
<if test="shopUserId != null">and u.id = #{shopUserId}</if>
|
||||
ORDER BY u.`invite_time` DESC
|
||||
<if test="shopUserId != null">and invite.shop_user_id = #{shopUserId}</if>
|
||||
ORDER BY tb_shop_user_invite.`invite_time` DESC
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user