微调
This commit is contained in:
@@ -1344,10 +1344,29 @@ public class SocketDevResponseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (CollUtil.isNotEmpty(adNonHarmonicResultList)) {
|
if (CollUtil.isNotEmpty(adNonHarmonicResultList)) {
|
||||||
detectionDataDealService.acceptAdNon(adNonHarmonicResultList, param.getCode());
|
Map<String, List<AdNonHarmonicResult>> map = adNonHarmonicResultList.stream().collect(Collectors.groupingBy(x -> x.getMonitorId() + x.getTimeId() + x.getScriptId() + x.getSort() + x.getAdType() + x.getDataType()));
|
||||||
|
List<AdNonHarmonicResult> info=new ArrayList<>();
|
||||||
|
map.forEach((key,value)->{
|
||||||
|
if(value.size()>1){
|
||||||
|
System.err.println("重复时间戳->"+key+value);
|
||||||
|
}else{
|
||||||
|
info.addAll(value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
detectionDataDealService.acceptAdNon(info, param.getCode());
|
||||||
}
|
}
|
||||||
if (CollUtil.isNotEmpty(adHarmonicResultList)) {
|
if (CollUtil.isNotEmpty(adHarmonicResultList)) {
|
||||||
detectionDataDealService.acceptAd(adHarmonicResultList, param.getCode());
|
Map<String, List<AdHarmonicResult>> map = adHarmonicResultList.stream().collect(Collectors.groupingBy(x -> x.getMonitorId() + x.getTimeId() + x.getScriptId() + x.getSort() + x.getAdType() + x.getDataType()));
|
||||||
|
List<AdHarmonicResult> info=new ArrayList<>();
|
||||||
|
map.forEach((key,value)->{
|
||||||
|
if(value.size()>1){
|
||||||
|
System.err.println("重复时间戳->"+key+value);
|
||||||
|
}else{
|
||||||
|
info.addAll(value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
detectionDataDealService.acceptAd(info, param.getCode());
|
||||||
}
|
}
|
||||||
System.out.println("原始数据插入数据库执行成功=========================================");
|
System.out.println("原始数据插入数据库执行成功=========================================");
|
||||||
// };
|
// };
|
||||||
|
|||||||
@@ -689,7 +689,7 @@ public class DetectionServiceImpl {
|
|||||||
nf.setMaximumFractionDigits(6);
|
nf.setMaximumFractionDigits(6);
|
||||||
nf.setGroupingUsed(false);
|
nf.setGroupingUsed(false);
|
||||||
|
|
||||||
data.setRadius(nf.format(-errSysDtl.getMaxErrorValue()) + "~" + nf.format(-errSysDtl.getMaxErrorValue()));
|
data.setRadius(nf.format(-errSys.getMaxErrorValue()) + "~" + nf.format(-errSys.getMaxErrorValue()));
|
||||||
setDetection(dataRule, harmDataList, errSys, data, v);
|
setDetection(dataRule, harmDataList, errSys, data, v);
|
||||||
}
|
}
|
||||||
info.add(data);
|
info.add(data);
|
||||||
|
|||||||
Reference in New Issue
Block a user