|
@@ -501,10 +501,10 @@ public class SysUserServiceImpl extends JoinServiceImpl<SysUserMapper, SysUser>
|
|
|
@Override
|
|
|
@Transactional
|
|
|
public int deleteUserByIds(Long[] userIds) {
|
|
|
- for (Long userId : userIds) {
|
|
|
- checkUserAllowed(new SysUser(userId));
|
|
|
- checkUserDataScope(userId);
|
|
|
- }
|
|
|
+// for (Long userId : userIds) {
|
|
|
+// checkUserAllowed(new SysUser(userId));
|
|
|
+// checkUserDataScope(userId);
|
|
|
+// }
|
|
|
// 删除用户与角色关联
|
|
|
userRoleMapper.deleteUserRole(userIds);
|
|
|
return userMapper.deleteUserByIds(userIds);
|
|
@@ -563,8 +563,8 @@ public class SysUserServiceImpl extends JoinServiceImpl<SysUserMapper, SysUser>
|
|
|
successMsg.append("<br/>" + successNum + "、账号 " + user.getUserName() + " 导入成功");
|
|
|
} else if (isUpdateSupport) {
|
|
|
BeanValidators.validateWithException(validator, user);
|
|
|
- checkUserAllowed(sysUser);
|
|
|
- checkUserDataScope(sysUser.getId());
|
|
|
+// checkUserAllowed(sysUser);
|
|
|
+// checkUserDataScope(sysUser.getId());
|
|
|
sysUser.setUpdateBy(operName);
|
|
|
SysDept sysDept = deptMapper.selectDeptByDeptName(user.getDeptName());
|
|
|
sysUser.setDeptId(sysDept.getDeptId());
|
|
@@ -595,6 +595,7 @@ public class SysUserServiceImpl extends JoinServiceImpl<SysUserMapper, SysUser>
|
|
|
public int saveUser(SysUser user) {
|
|
|
// 新增用户信息
|
|
|
user.setUserId(IdUtils.fastSimpleUUID());
|
|
|
+ user.setPassword(SecurityUtils.encryptPassword(defaultPassword));
|
|
|
int rows = userMapper.insertUser(user);
|
|
|
// 新增用户与角色管理
|
|
|
insertUserRole(user);
|