修复导入用户时无法更新存在用户数据的问题

This commit is contained in:
RuoYi 2023-04-10 18:03:34 +08:00
parent f5b865a2e1
commit 5a634a4ecd

View File

@ -501,7 +501,7 @@ public class SysUserServiceImpl implements ISysUserService
BeanValidators.validateWithException(validator, user);
user.setPassword(SecurityUtils.encryptPassword(password));
user.setCreateBy(operName);
this.insertUser(user);
userMapper.insertUser(user);
successNum++;
successMsg.append("<br/>" + successNum + "、账号 " + user.getUserName() + " 导入成功");
}
@ -512,7 +512,7 @@ public class SysUserServiceImpl implements ISysUserService
checkUserDataScope(u.getUserId());
user.setUserId(u.getUserId());
user.setUpdateBy(operName);
this.updateUser(user);
userMapper.updateUser(user);
successNum++;
successMsg.append("<br/>" + successNum + "、账号 " + user.getUserName() + " 更新成功");
}