修改用户查询主账号权限
parent
568dcb67bb
commit
3e38c33a63
|
|
@ -110,7 +110,10 @@ public class UserRepositoryImpl extends BaseRepositoryImpl<UserMapper, UserDO> i
|
|||
QueryWrapper<UserDO> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper = PageQueryHelper.createPageQueryWrapper(queryWrapper, params, "u.");
|
||||
queryWrapper.eq("u.delete_enum", "FALSE");
|
||||
queryWrapper.apply("u.id != u.corpinfo_id");
|
||||
if(!ObjectUtils.isEmpty(params.get("noMain"))){
|
||||
queryWrapper.apply("u.id != u.corpinfo_id");
|
||||
}
|
||||
|
||||
queryWrapper.orderByAsc("u.sort").orderByDesc("u.create_time");
|
||||
String menuPerms = "";
|
||||
if (!ObjectUtils.isEmpty(params.get("menuPath"))){
|
||||
|
|
|
|||
|
|
@ -71,7 +71,9 @@
|
|||
left join department d on d.id = u.department_id
|
||||
left join post p on p.id = u.post_id
|
||||
<where>
|
||||
u.id != u.corpinfo_id
|
||||
<if test="params.noMain != null">
|
||||
and u.id != u.corpinfo_id
|
||||
</if>
|
||||
and u.delete_enum = 'FALSE'
|
||||
<if test="params.corpinfoId != null">
|
||||
and u.corpinfo_id = #{params.corpinfoId}
|
||||
|
|
|
|||
Loading…
Reference in New Issue