|
|
@ -252,7 +252,7 @@ public class SysUserServiceImpl implements ISysUserService |
|
|
|
* @return 结果 |
|
|
|
* @return 结果 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public int insertUser(SysUser user) |
|
|
|
public int insertUser(SysUser user) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// 新增用户信息
|
|
|
|
// 新增用户信息
|
|
|
@ -283,7 +283,7 @@ public class SysUserServiceImpl implements ISysUserService |
|
|
|
* @return 结果 |
|
|
|
* @return 结果 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public int updateUser(SysUser user) |
|
|
|
public int updateUser(SysUser user) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Long userId = user.getUserId(); |
|
|
|
Long userId = user.getUserId(); |
|
|
@ -305,7 +305,7 @@ public class SysUserServiceImpl implements ISysUserService |
|
|
|
* @param roleIds 角色组 |
|
|
|
* @param roleIds 角色组 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void insertUserAuth(Long userId, Long[] roleIds) |
|
|
|
public void insertUserAuth(Long userId, Long[] roleIds) |
|
|
|
{ |
|
|
|
{ |
|
|
|
userRoleMapper.deleteUserRoleByUserId(userId); |
|
|
|
userRoleMapper.deleteUserRoleByUserId(userId); |
|
|
@ -459,7 +459,7 @@ public class SysUserServiceImpl implements ISysUserService |
|
|
|
* @return 结果 |
|
|
|
* @return 结果 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public int deleteUserById(Long userId) |
|
|
|
public int deleteUserById(Long userId) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// 删除用户与角色关联
|
|
|
|
// 删除用户与角色关联
|
|
|
@ -476,7 +476,7 @@ public class SysUserServiceImpl implements ISysUserService |
|
|
|
* @return 结果 |
|
|
|
* @return 结果 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public int deleteUserByIds(Long[] userIds) |
|
|
|
public int deleteUserByIds(Long[] userIds) |
|
|
|
{ |
|
|
|
{ |
|
|
|
for (Long userId : userIds) |
|
|
|
for (Long userId : userIds) |
|
|
|