diff --git a/src/main/java/com/ruoyi/common/utils/StringUtils.java b/src/main/java/com/ruoyi/common/utils/StringUtils.java index 641c4decb..abe655e9f 100644 --- a/src/main/java/com/ruoyi/common/utils/StringUtils.java +++ b/src/main/java/com/ruoyi/common/utils/StringUtils.java @@ -325,9 +325,9 @@ public static final List str2List(String str, String sep, boolean filter } /** - * 判断给定的set列表中是否包含数组array 判断给定的数组array中是否包含给定的元素value + * 判断给定的collection列表中是否包含数组array 判断给定的数组array中是否包含给定的元素value * - * @param set 给定的集合 + * @param collection 给定的集合 * @param array 给定的数组 * @return boolean 结果 */ diff --git a/src/main/java/com/ruoyi/project/monitor/job/util/JobInvokeUtil.java b/src/main/java/com/ruoyi/project/monitor/job/util/JobInvokeUtil.java index 50b552122..4685bdead 100644 --- a/src/main/java/com/ruoyi/project/monitor/job/util/JobInvokeUtil.java +++ b/src/main/java/com/ruoyi/project/monitor/job/util/JobInvokeUtil.java @@ -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); } } diff --git a/src/main/java/com/ruoyi/project/system/user/service/UserServiceImpl.java b/src/main/java/com/ruoyi/project/system/user/service/UserServiceImpl.java index d17c49557..49fcc8d47 100644 --- a/src/main/java/com/ruoyi/project/system/user/service/UserServiceImpl.java +++ b/src/main/java/com/ruoyi/project/system/user/service/UserServiceImpl.java @@ -510,7 +510,7 @@ public String importUser(List userList, Boolean isUpdateSupport) BeanValidators.validateWithException(validator, user); user.setPassword(password); user.setCreateBy(operName); - this.insertUser(user); + userMapper.insertUser(user); successNum++; successMsg.append("
" + successNum + "、账号 " + user.getLoginName() + " 导入成功"); } @@ -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("
" + successNum + "、账号 " + user.getLoginName() + " 更新成功"); }