Skip to content

Commit

Permalink
优化导入用户时更新丢失岗位角色的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzongzhuan committed Apr 10, 2023
1 parent 14c67fa commit 240bab2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/ruoyi/common/utils/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ public static final List<String> str2List(String str, String sep, boolean filter
}

/**
* 判断给定的set列表中是否包含数组array 判断给定的数组array中是否包含给定的元素value
* 判断给定的collection列表中是否包含数组array 判断给定的数组array中是否包含给定的元素value
*
* @param set 给定的集合
* @param collection 给定的集合
* @param array 给定的数组
* @return boolean 结果
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static void invokeMethod(Job job) throws Exception
}
else
{
Object bean = Class.forName(beanName).newInstance();
Object bean = Class.forName(beanName).getDeclaredConstructor().newInstance();
invokeMethod(bean, methodName, methodParams);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ public String importUser(List<User> userList, Boolean isUpdateSupport)
BeanValidators.validateWithException(validator, user);
user.setPassword(password);
user.setCreateBy(operName);
this.insertUser(user);
userMapper.insertUser(user);
successNum++;
successMsg.append("<br/>" + successNum + "、账号 " + user.getLoginName() + " 导入成功");
}
Expand All @@ -521,7 +521,7 @@ else if (isUpdateSupport)
checkUserDataScope(u.getUserId());
user.setUserId(u.getUserId());
user.setUpdateBy(operName);
this.updateUser(user);
userMapper.updateUser(user);
successNum++;
successMsg.append("<br/>" + successNum + "、账号 " + user.getLoginName() + " 更新成功");
}
Expand Down

0 comments on commit 240bab2

Please sign in to comment.