Browse Source

定时任务支持执行父类方法

pull/403/MERGE
RuoYi 2 years ago
parent
commit
abe1f0d63e
  1. 4
      ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java

4
ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/JobInvokeUtil.java

@ -52,12 +52,12 @@ public class JobInvokeUtil
{
if (StringUtils.isNotNull(methodParams) && methodParams.size() > 0)
{
Method method = bean.getClass().getDeclaredMethod(methodName, getMethodParamsType(methodParams));
Method method = bean.getClass().getMethod(methodName, getMethodParamsType(methodParams));
method.invoke(bean, getMethodParamsValue(methodParams));
}
else
{
Method method = bean.getClass().getDeclaredMethod(methodName);
Method method = bean.getClass().getMethod(methodName);
method.invoke(bean);
}
}

Loading…
Cancel
Save