28 lines
1.1 KiB
Java
28 lines
1.1 KiB
Java
package com.tenwa.lease.app.quartzmession;
|
|
|
|
import org.quartz.Job;
|
|
import org.quartz.JobExecutionContext;
|
|
import org.quartz.JobExecutionException;
|
|
|
|
import com.amarsoft.are.util.StringFunction;
|
|
import com.base.util.QuartzUtil;
|
|
import com.tenwa.gps.HttpClientSUtil;
|
|
import com.tenwa.httpclient.resources.InterfacePlatformConfigure;
|
|
|
|
public class FileToPush implements Job {
|
|
|
|
@Override
|
|
public void execute(JobExecutionContext arg0) throws JobExecutionException {
|
|
String startime = StringFunction.getTodayNow();
|
|
Object userId = arg0.getTrigger().getJobDataMap().get("CurUserId");
|
|
String curUserId = userId == null? "system" : userId.toString();
|
|
try {
|
|
HttpClientSUtil.doGet(InterfacePlatformConfigure.get("url")+InterfacePlatformConfigure.get("FileToPush"),null,null);
|
|
QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.FileToPush", "success", "³É¹¦", curUserId);
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
QuartzUtil.insertLog(startime,"com.tenwa.lease.app.quartzmession.FileToPush", "error", "ʧ°Ü", curUserId);
|
|
}
|
|
}
|
|
}
|