|  |  |  | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | // 加载并执行 | 
|---|
|  |  |  | Object target = SpringContextUtil.getBean(quartzJob.getBeanName()); | 
|---|
|  |  |  | Method method = target.getClass().getDeclaredMethod("run", String.class); | 
|---|
|  |  |  | method.invoke(target, quartzJob.getParams()); | 
|---|
|  |  |  | Method method = target.getClass().getDeclaredMethod("run", String.class,String.class); | 
|---|
|  |  |  | method.invoke(target, quartzJob.getParams(),quartzJob.getModule()); | 
|---|
|  |  |  | long executeTime = System.currentTimeMillis() - beginTime; | 
|---|
|  |  |  | quartzLog.setTimes((int)executeTime); | 
|---|
|  |  |  | quartzLog.setModule(quartzJob.getModule()); | 
|---|
|  |  |  | quartzLog.setState(LogState.LOG_SUS.getStatus()); | 
|---|
|  |  |  | } catch (Exception e){ | 
|---|
|  |  |  | // 异常信息 | 
|---|