Commit 96a65cb9 by 陶光胜

Merge branch 'developer' into 'master'

取数平台下载优化

See merge request !11
parents 6a45c0b0 7bba938c
...@@ -508,6 +508,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService { ...@@ -508,6 +508,7 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
this.downloadTaskTimer.schedule(new TimerTask() { this.downloadTaskTimer.schedule(new TimerTask() {
@Override @Override
public void run() { public void run() {
try{
if (taskConditions != null && taskConditions.size() > 0) { if (taskConditions != null && taskConditions.size() > 0) {
FlatQueryTaskCondition condition = null; FlatQueryTaskCondition condition = null;
//FlatQueryTaskCondition condition = taskConditions.remove(0); // 移除并获取第一个任务条件 //FlatQueryTaskCondition condition = taskConditions.remove(0); // 移除并获取第一个任务条件
...@@ -676,6 +677,10 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService { ...@@ -676,6 +677,10 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
} // IF OVER } // IF OVER
} // IF OVER } // IF OVER
} // 没有任务则忽略 } // 没有任务则忽略
}catch (Exception e){
log.debug("自助指标下载异常", e.getMessage());
e.printStackTrace();
}
} // run Define Over } // run Define Over
}, interval * 1000, interval * 1000);// 配置中的值为毫秒 }, interval * 1000, interval * 1000);// 配置中的值为毫秒
} }
......
...@@ -358,6 +358,7 @@ public class FreeQueryServiceImpl implements IFreeQueryService { ...@@ -358,6 +358,7 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
this.downloadTaskTimer.schedule(new TimerTask() { this.downloadTaskTimer.schedule(new TimerTask() {
@Override @Override
public void run() { public void run() {
try {
if (taskConditions != null && taskConditions.size() > 0) { if (taskConditions != null && taskConditions.size() > 0) {
//FreeQueryTaskCondition condition = taskConditions.remove(0); // 移除并获取第一个任务条件 //FreeQueryTaskCondition condition = taskConditions.remove(0); // 移除并获取第一个任务条件
FreeQueryTaskCondition condition = null; FreeQueryTaskCondition condition = null;
...@@ -510,6 +511,10 @@ public class FreeQueryServiceImpl implements IFreeQueryService { ...@@ -510,6 +511,10 @@ public class FreeQueryServiceImpl implements IFreeQueryService {
} // IF OVER } // IF OVER
} // IF OVER } // IF OVER
} // 没有任务则忽略 } // 没有任务则忽略
}catch (Exception e){
log.debug("自定义查询下载异常", e.getMessage());
e.printStackTrace();
}
} // run Define Over } // run Define Over
}, interval * 1000, interval * 1000);// 配置中的值为毫秒 }, interval * 1000, interval * 1000);// 配置中的值为毫秒
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment