|
|
|
@ -73,6 +73,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
|
|
* @param user 用户信息
|
|
|
|
|
* @return 用户信息集合信息
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@DataScope(deptAlias = "d", userAlias = "u")
|
|
|
|
|
public List<SysUser> selectAllocatedList(SysUser user)
|
|
|
|
|
{
|
|
|
|
@ -85,6 +86,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
|
|
* @param user 用户信息
|
|
|
|
|
* @return 用户信息集合信息
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@DataScope(deptAlias = "d", userAlias = "u")
|
|
|
|
|
public List<SysUser> selectUnallocatedList(SysUser user)
|
|
|
|
|
{
|
|
|
|
@ -145,6 +147,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
|
|
* @param userId 用户ID
|
|
|
|
|
* @return 用户和角色关联列表
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public List<SysUserRole> selectUserRoleByUserId(Long userId)
|
|
|
|
|
{
|
|
|
|
|
return userRoleMapper.selectUserRoleByUserId(userId);
|
|
|
|
@ -208,6 +211,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
|
|
* @param user 用户信息
|
|
|
|
|
* @return 结果
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public boolean registerUser(SysUser user)
|
|
|
|
|
{
|
|
|
|
|
user.setUserType(UserConstants.REGISTER_USER_TYPE);
|
|
|
|
@ -254,6 +258,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
|
|
* @param userId 用户ID
|
|
|
|
|
* @param roleIds 角色组
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public void insertUserAuth(Long userId, Long[] roleIds)
|
|
|
|
|
{
|
|
|
|
|
userRoleMapper.deleteUserRoleByUserId(userId);
|
|
|
|
@ -381,6 +386,7 @@ public class SysUserServiceImpl implements ISysUserService
|
|
|
|
|
*
|
|
|
|
|
* @param user 用户信息
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public void checkUserAllowed(SysUser user)
|
|
|
|
|
{
|
|
|
|
|
if (StringUtils.isNotNull(user.getUserId()) && user.isAdmin())
|
|
|
|
|