|
|
@@ -149,13 +149,14 @@ public interface QwUserMapper extends BaseMapper<QwUser>
|
|
|
"LEFT JOIN company_user cu ON cu.user_id=qu.company_user_id " +
|
|
|
"RIGHT JOIN qw_dept qd on qu.department=qd.dept_id and qd.corp_id=qu.corp_id " +
|
|
|
"left join fastgpt_role fr on fr.role_id=qu.fastGpt_role_id " +
|
|
|
- "where qu.is_del=0 and qu.company_user_id is not null "+
|
|
|
+ "where qu.company_user_id is not null "+
|
|
|
" <if test=\"qwUserId != null and qwUserId != ''\"> and qu.qw_user_id = #{qwUserId}</if>\n" +
|
|
|
" <if test=\"appKey != null and appKey != ''\"> and qu.app_key = #{appKey}</if>\n" +
|
|
|
" <if test=\"nickName != null and nickName != ''\"> and cu.nick_name like concat( #{nickName}, '%') </if>\n" +
|
|
|
" <if test=\"qwUserName != null and qwUserName != ''\"> and qu.qw_user_name like concat('%', #{qwUserName}, '%') </if> " +
|
|
|
" <if test=\"corpId != null \"> and qu.corp_id = #{corpId}</if>\n" +
|
|
|
" <if test=\"companyId != null \"> and qu.company_id = #{companyId}</if>\n " +
|
|
|
+ " <if test=\"isDel != null \"> and qu.is_del = #{isDel}</if>\n "+
|
|
|
" <if test=\"cuDeptIdList != null and !cuDeptIdList.isEmpty() and userType != '00' \">" +
|
|
|
" AND cu.dept_id IN " +
|
|
|
" <foreach collection='cuDeptIdList' item='item' open='(' separator=',' close=')'> " +
|