优化用户导入更新时需获取用户编号问题

This commit is contained in:
RuoYi 2023-04-10 17:58:03 +08:00
parent f7595e4998
commit f5b865a2e1
1 changed files with 3 additions and 2 deletions

View File

@ -508,8 +508,9 @@ public class SysUserServiceImpl implements ISysUserService
else if (isUpdateSupport) else if (isUpdateSupport)
{ {
BeanValidators.validateWithException(validator, user); BeanValidators.validateWithException(validator, user);
checkUserAllowed(user); checkUserAllowed(u);
checkUserDataScope(user.getUserId()); checkUserDataScope(u.getUserId());
user.setUserId(u.getUserId());
user.setUpdateBy(operName); user.setUpdateBy(operName);
this.updateUser(user); this.updateUser(user);
successNum++; successNum++;