|
@ -19,7 +19,7 @@ public class TaskJob implements AfterBeanFactory {
|
19
|
19
|
public void handle(BeanFactory bf) throws Throwable {
|
20
|
20
|
|
21
|
21
|
TaskJobEntry tje = (TaskJobEntry) bf.getBean("com_ekexiu_portal_job_TaskJobEntry");
|
22
|
|
UserLogTaskJobEntry ultje = (UserLogTaskJobEntry) bf.getBean("com_ekexiu_portal_job_UserLogTaskJobEntry");
|
|
22
|
// UserLogTaskJobEntry ultje = (UserLogTaskJobEntry) bf.getBean("com_ekexiu_portal_job_UserLogTaskJobEntry");
|
23
|
23
|
DictTaskJobEntry dtje =(DictTaskJobEntry) bf.getBean("com_ekexiu_portal_job_DictTaskJobEntry");
|
24
|
24
|
long delayTime = tje.getDelayTime();
|
25
|
25
|
long task = getTimeMillis(tje.getTaskTime());
|
|
@ -31,7 +31,7 @@ public class TaskJob implements AfterBeanFactory {
|
31
|
31
|
// service.scheduleAtFixedRate(tje, 1, 7200, TimeUnit.SECONDS);
|
32
|
32
|
// service.scheduleAtFixedRate(ultje, 2, 86400, TimeUnit.SECONDS);
|
33
|
33
|
service.scheduleAtFixedRate(tje, taskTime, delayTime, TimeUnit.MILLISECONDS);
|
34
|
|
service.scheduleAtFixedRate(ultje, taskTime, delayTime, TimeUnit.MILLISECONDS);
|
|
34
|
// service.scheduleAtFixedRate(ultje, taskTime, delayTime, TimeUnit.MILLISECONDS);
|
35
|
35
|
service.scheduleAtFixedRate(dtje, 0, dtje.getDelayTime(), TimeUnit.HOURS);
|
36
|
36
|
}
|
37
|
37
|
private static long getTimeMillis(String time) {
|