|
@@ -407,6 +407,7 @@
|
|
LEFT JOIN company_tag ON FIND_IN_SET(company_tag.tag_id, company_tag_user.tag_ids) > 0
|
|
LEFT JOIN company_tag ON FIND_IN_SET(company_tag.tag_id, company_tag_user.tag_ids) > 0
|
|
where fs_user.is_del = 0
|
|
where fs_user.is_del = 0
|
|
<if test="userId != null and userId !='' ">
|
|
<if test="userId != null and userId !='' ">
|
|
|
|
+ -- 当前销售下面的用户 或者下级销售的会员
|
|
and (company_user.user_id = #{userId} OR company_user.parent_id = #{userId} )
|
|
and (company_user.user_id = #{userId} OR company_user.parent_id = #{userId} )
|
|
</if>
|
|
</if>
|
|
<if test="companyUserId != null and companyUserId !='' ">
|
|
<if test="companyUserId != null and companyUserId !='' ">
|