|
@@ -265,11 +265,11 @@ public class FusionAnalysisServiceImpl implements FusionAnalysisService {
|
|
|
if (jsonArray.size() > 0) {
|
|
|
for (int i = 0; i < jsonArray.size(); i++) {
|
|
|
JSONObject job = jsonArray.getJSONObject(i);
|
|
|
- for (int j = 0; j < jsonArray.size(); j++){
|
|
|
- JSONObject job2 = jsonArray.getJSONObject(j);
|
|
|
+ for (int j = 0; j+i < jsonArray.size(); j++){
|
|
|
+ JSONObject job2 = jsonArray.getJSONObject(j+i);
|
|
|
if (job.getString("targetCourse").equals(job2.getString("targetCourse"))){
|
|
|
if (job.getString("targetSpeed").equals(job2.getString("targetSpeed"))){
|
|
|
- if (num==9){
|
|
|
+ if (num==3){
|
|
|
if (data.getFluctuateNumber()!=null){
|
|
|
data.setFluctuateNumber(data.getFluctuateNumber()+1);
|
|
|
}else {
|
|
@@ -280,6 +280,7 @@ public class FusionAnalysisServiceImpl implements FusionAnalysisService {
|
|
|
data.setStartTime(jsonArray.getJSONObject(0).getString("mergeTime"));
|
|
|
data.setEndTime(jsonArray.getJSONObject(jsonArray.size()-1).getString("mergeTime"));
|
|
|
list.add(data);
|
|
|
+ num =0;
|
|
|
}
|
|
|
Date date = null;
|
|
|
Date date2 = null;
|
|
@@ -439,6 +440,13 @@ public class FusionAnalysisServiceImpl implements FusionAnalysisService {
|
|
|
data.setOriginalCount(item.getCount());
|
|
|
data.setTrackCount(totalHits);
|
|
|
list.add(data);
|
|
|
+ }else {
|
|
|
+ data.setMergeTarget("未查出匹配融合数据");
|
|
|
+ data.setStartTime("未查出匹配融合数据");
|
|
|
+ data.setEndTime("未查出匹配融合数据");
|
|
|
+ data.setBatchNumber(item.getBatchNumber());
|
|
|
+ data.setOriginalCount(item.getCount());
|
|
|
+ data.setTrackCount(totalHits);
|
|
|
}
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
@@ -549,6 +557,13 @@ public class FusionAnalysisServiceImpl implements FusionAnalysisService {
|
|
|
data.setOriginalCount(item.getCount());
|
|
|
data.setTrackCount(totalHits);
|
|
|
list.add(data);
|
|
|
+ }else {
|
|
|
+ data.setMergeTarget("未查出匹配融合数据");
|
|
|
+ data.setStartTime("未查出匹配融合数据");
|
|
|
+ data.setEndTime("未查出匹配融合数据");
|
|
|
+ data.setBatchNumber(item.getBatchNumber());
|
|
|
+ data.setOriginalCount(item.getCount());
|
|
|
+ data.setTrackCount(totalHits);
|
|
|
}
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
@@ -659,6 +674,13 @@ public class FusionAnalysisServiceImpl implements FusionAnalysisService {
|
|
|
data.setOriginalCount(item.getCount());
|
|
|
data.setTrackCount(totalHits);
|
|
|
list.add(data);
|
|
|
+ }else {
|
|
|
+ data.setMergeTarget("未查出匹配融合数据");
|
|
|
+ data.setStartTime("未查出匹配融合数据");
|
|
|
+ data.setEndTime("未查出匹配融合数据");
|
|
|
+ data.setBatchNumber(item.getBatchNumber());
|
|
|
+ data.setOriginalCount(item.getCount());
|
|
|
+ data.setTrackCount(totalHits);
|
|
|
}
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
@@ -755,6 +777,10 @@ public class FusionAnalysisServiceImpl implements FusionAnalysisService {
|
|
|
data.setMergeTarget(sourceItem.getString("mergeTarget"));
|
|
|
data.setBatchNumber(item.getBatchNumber());
|
|
|
list.add(data);
|
|
|
+ }else {
|
|
|
+ data.setMergeTarget("未查出匹配融合数据");
|
|
|
+ data.setBatchNumber(item.getBatchNumber());
|
|
|
+ list.add(data);
|
|
|
}
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|