处理问题
This commit is contained in:
parent
89b0f56ce7
commit
d6c1d03168
@ -54,7 +54,7 @@
|
|||||||
AND
|
AND
|
||||||
t1.user_type != #{excludeUserType}
|
t1.user_type != #{excludeUserType}
|
||||||
</if>
|
</if>
|
||||||
<if test="noDepartment != null and (noDepartment == true or noDepartment == 'true')">
|
<if test="noDepartment != null and noDepartment == 1">
|
||||||
AND
|
AND
|
||||||
t1.user_id NOT IN (SELECT st1.user_id FROM sys_department_user st1)
|
t1.user_id NOT IN (SELECT st1.user_id FROM sys_department_user st1)
|
||||||
</if>
|
</if>
|
||||||
@ -110,7 +110,7 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<!-- 角色 -->
|
<!-- 角色 -->
|
||||||
<if test="noRole != null and (noRole == true or noRole == 'true')">
|
<if test="noRole != null and noRole == 1">
|
||||||
AND
|
AND
|
||||||
t1.user_id NOT IN (SELECT st2.user_id FROM sys_role_user st2)
|
t1.user_id NOT IN (SELECT st2.user_id FROM sys_role_user st2)
|
||||||
</if>
|
</if>
|
||||||
@ -140,7 +140,7 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<!-- 用户职位 -->
|
<!-- 用户职位 -->
|
||||||
<if test="noPosition != null and (noPosition == true or noPosition == 'true')">
|
<if test="noPosition != null and noPosition == 1">
|
||||||
AND
|
AND
|
||||||
t1.user_id NOT IN (SELECT st3.user_id FROM sys_position_user st3)
|
t1.user_id NOT IN (SELECT st3.user_id FROM sys_position_user st3)
|
||||||
</if>
|
</if>
|
||||||
@ -170,7 +170,7 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<!-- 用户组 -->
|
<!-- 用户组 -->
|
||||||
<if test="noGroup != null and (noGroup == true or noGroup == 'true')">
|
<if test="noGroup != null and noGroup == 1">
|
||||||
AND
|
AND
|
||||||
t1.user_id NOT IN (SELECT st4.user_id FROM sys_group_user st4)
|
t1.user_id NOT IN (SELECT st4.user_id FROM sys_group_user st4)
|
||||||
</if>
|
</if>
|
||||||
|
@ -330,12 +330,12 @@
|
|||||||
endTime: $('#endTime').val(),
|
endTime: $('#endTime').val(),
|
||||||
userType: $('#userType').val(),
|
userType: $('#userType').val(),
|
||||||
userState: $('#userState').val(),
|
userState: $('#userState').val(),
|
||||||
noDepartment: noDepartment,
|
noDepartment: noDepartment ? 1 : 0,
|
||||||
noRole: noRole,
|
noRole: noRole ? 1 : 0,
|
||||||
roleId: noRole ? '' : $('#roleId').val(),
|
roleId: noRole ? '' : $('#roleId').val(),
|
||||||
noPosition: noPosition,
|
noPosition: noPosition ? 1 : 0,
|
||||||
positionId: noPosition ? '' : $('#positionId').val(),
|
positionId: noPosition ? '' : $('#positionId').val(),
|
||||||
noGroup: noGroup,
|
noGroup: noGroup ? 1 : 0,
|
||||||
groupId: noGroup ? '' : $('#groupId').val()
|
groupId: noGroup ? '' : $('#groupId').val()
|
||||||
},
|
},
|
||||||
page: {
|
page: {
|
||||||
|
@ -301,7 +301,9 @@ public class RoleUserServiceImpl extends DefaultBaseService implements IRoleUser
|
|||||||
@Override
|
@Override
|
||||||
public SuccessResultList<List<UserDTO>> listPageUserByRoleId(String roleId, ListPage page) {
|
public SuccessResultList<List<UserDTO>> listPageUserByRoleId(String roleId, ListPage page) {
|
||||||
PageHelper.startPage(page.getPage(), page.getRows());
|
PageHelper.startPage(page.getPage(), page.getRows());
|
||||||
List<UserDTO> userDTOs = listUserByRoleId(roleId);
|
Map<String, Object> params = page.getParams();
|
||||||
|
params.put("roleId", roleId);
|
||||||
|
List<UserDTO> userDTOs = roleUserDao.listUser(params);
|
||||||
PageInfo<UserDTO> pageInfo = new PageInfo<>(userDTOs);
|
PageInfo<UserDTO> pageInfo = new PageInfo<>(userDTOs);
|
||||||
return new SuccessResultList<>(userDTOs, pageInfo.getPageNum(), pageInfo.getTotal());
|
return new SuccessResultList<>(userDTOs, pageInfo.getPageNum(), pageInfo.getTotal());
|
||||||
}
|
}
|
||||||
|
@ -143,13 +143,13 @@
|
|||||||
</if>
|
</if>
|
||||||
<if test="keywords != null and keywords != ''">
|
<if test="keywords != null and keywords != ''">
|
||||||
AND (
|
AND (
|
||||||
user_username LIKE CONCAT('%', #{keywords}, '%')
|
t1.user_username LIKE CONCAT('%', #{keywords}, '%')
|
||||||
OR
|
OR
|
||||||
user_name LIKE CONCAT('%', #{keywords}, '%')
|
t1.user_name LIKE CONCAT('%', #{keywords}, '%')
|
||||||
OR
|
OR
|
||||||
user_phone LIKE CONCAT('%', #{keywords}, '%')
|
t1.user_phone LIKE CONCAT('%', #{keywords}, '%')
|
||||||
OR
|
OR
|
||||||
user_email LIKE CONCAT('%', #{keywords}, '%')
|
t1.user_email LIKE CONCAT('%', #{keywords}, '%')
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="roleId != null and roleId != ''">
|
<if test="roleId != null and roleId != ''">
|
||||||
|
Loading…
Reference in New Issue
Block a user