宜都城投资产数据同步插件 -1不执行
This commit is contained in:
@@ -73,23 +73,25 @@ public class YdzbDataSyncQuartz extends AbstractQuartzTask implements Disposable
|
||||
|
||||
@Override
|
||||
public String taskRun(String arg0) {
|
||||
log.info("宜都城投资产数据同步任务任务开始");
|
||||
if (!"-1".equals(arg0)) {
|
||||
log.info("宜都城投资产数据同步任务不执行");
|
||||
}
|
||||
log.info("宜都城投资产数据同步任务开始");
|
||||
long startTime = System.currentTimeMillis();
|
||||
try (Connection connection = ydzbThirdDataSource.getConnection()){
|
||||
agent = new JDBCAgent();
|
||||
processZcData(connection);
|
||||
processContractData(connection);
|
||||
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
||||
if (!"-1".equals(arg0)) {
|
||||
try {
|
||||
Date date = null;
|
||||
if(arg0 != null) {
|
||||
date = df.parse(arg0);
|
||||
}
|
||||
processFeeData(connection, date);
|
||||
}catch (ParseException e) {
|
||||
throw e;
|
||||
|
||||
try {
|
||||
Date date = null;
|
||||
if (arg0 != null) {
|
||||
date = df.parse(arg0);
|
||||
}
|
||||
processFeeData(connection, date);
|
||||
} catch (ParseException e) {
|
||||
throw e;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("宜都城投资产数据同步任务执行失败");
|
||||
@@ -99,7 +101,7 @@ public class YdzbDataSyncQuartz extends AbstractQuartzTask implements Disposable
|
||||
agent.close();
|
||||
}
|
||||
}
|
||||
log.info("宜都城投资产数据同步任务任务结束,耗时:"+ (System.currentTimeMillis() - startTime)+ " ms");
|
||||
log.info("宜都城投资产数据同步任务结束,耗时:"+ (System.currentTimeMillis() - startTime)+ " ms");
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user