|
|
|
|
@ -70,6 +70,8 @@ import org.quartz.PersistJobDataAfterExecution;
|
|
|
|
|
g_strFTP[2] = props.getProperty("ftp_id");
|
|
|
|
|
g_strFTP[3] = props.getProperty("ftp_pw");
|
|
|
|
|
g_strFTP[4] = props.getProperty("api_url");
|
|
|
|
|
g_strFTP[5] = props.getProperty("api_id");
|
|
|
|
|
g_strFTP[6] = props.getProperty("api_pw");
|
|
|
|
|
|
|
|
|
|
this.g_strTenel = props.getProperty("tennel_no");
|
|
|
|
|
|
|
|
|
|
@ -193,11 +195,23 @@ public void execute(JobExecutionContext arg0) throws JobExecutionException {
|
|
|
|
|
|
|
|
|
|
nBoothId = Integer.parseInt(map.get(String.valueOf(objectInArray.get("FARE_OFFICE_ID").toString()) + objectInArray.get("BOOTH_ID").toString()));
|
|
|
|
|
|
|
|
|
|
strUrl = String.format("%s/download/video%d.mp4?user=admin&password=1234&start=%s&end=%s", new Object[] {
|
|
|
|
|
g_strFTP[4],
|
|
|
|
|
Integer.valueOf(nBoothId),
|
|
|
|
|
objectInArray.get("PASS_START_DATE").toString().replace(" ", "T"), objectInArray.get("PASS_END_DATE").toString().replace(" ", "T")
|
|
|
|
|
});
|
|
|
|
|
String uri = String.format("%s/download/video%d.mp4", new Object[] {
|
|
|
|
|
g_strFTP[4],
|
|
|
|
|
Integer.valueOf(nBoothId)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
String param_id_pw = String.format("user=%s&password=%s", new Object[] {
|
|
|
|
|
g_strFTP[5],
|
|
|
|
|
g_strFTP[6]
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
String param_start_end = String.format("start=%s&end=%s", new Object[] {
|
|
|
|
|
objectInArray.get("PASS_START_DATE").toString().replace(" ", "T"),
|
|
|
|
|
objectInArray.get("PASS_END_DATE").toString().replace(" ", "T")
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
strUrl = uri+"?"+param_id_pw+"&"+param_start_end;
|
|
|
|
|
|
|
|
|
|
strFileNme = objectInArray.get("CARS_MOVE_PICTURE_FILE").toString();
|
|
|
|
|
|
|
|
|
|
System.out.println(String.format("=== %s,", new Object[] { strFileNme }));
|
|
|
|
|
|