|
@@ -527,11 +527,11 @@
|
|
|
LEFT JOIN fs_user_company_user ON fs_user_company_user.user_id = fs_user.user_id
|
|
|
LEFT JOIN company_user ON company_user.user_id = fs_user_company_user.company_user_id
|
|
|
where fs_user.is_del = 0
|
|
|
- <if test="userId != null and userId !='' ">
|
|
|
- and (company_user.user_id = #{userId} OR company_user.parent_id = #{userId} )
|
|
|
+ <if test="userId != null and userId!= 0 ">
|
|
|
+ and fs_user.company_user_id = #{userId}
|
|
|
</if>
|
|
|
- <if test="companyUserId != null and companyUserId !='' ">
|
|
|
- and company_user.user_id = #{companyUserId}
|
|
|
+ <if test="companyId != null ">
|
|
|
+ and fs_user.company_id = #{companyId}
|
|
|
</if>
|
|
|
<choose>
|
|
|
<when test = "isBlack">
|