修改检测计划态,录波校验调整
This commit is contained in:
@@ -166,9 +166,12 @@ public class DetectionDataServiceImpl extends ReplenishMybatisServiceImpl<Detect
|
||||
DynamicTableNameHandler.setTableName("ad_non_harmonic_result_" + code);
|
||||
LambdaQueryWrapper<ContrastNonHarmonicResult> wrapper1 = new LambdaQueryWrapper<ContrastNonHarmonicResult>()
|
||||
.in(CollUtil.isNotEmpty(adType), ContrastNonHarmonicResult::getAdType, adType);
|
||||
for (String id : ids) {
|
||||
wrapper1.like(ContrastNonHarmonicResult::getDevMonitorId, id);
|
||||
}
|
||||
wrapper1.and(w -> {
|
||||
for (String id : ids) {
|
||||
w.or().like(ContrastNonHarmonicResult::getDevMonitorId, id);
|
||||
}
|
||||
});
|
||||
|
||||
List<ContrastNonHarmonicResult> nonHarmonicResultList = contrastNonHarmonicService.list(wrapper1);
|
||||
Map<String, List<ContrastNonHarmonicResult>> chnMap1 = nonHarmonicResultList.stream().collect(Collectors.groupingBy(x -> x.getDevMonitorId().split("_")[1], Collectors.toList()));
|
||||
chnMap1.forEach((chn, vList) -> {
|
||||
@@ -181,9 +184,12 @@ public class DetectionDataServiceImpl extends ReplenishMybatisServiceImpl<Detect
|
||||
DynamicTableNameHandler.setTableName("ad_harmonic_result_" + code);
|
||||
LambdaQueryWrapper<ContrastHarmonicResult> wrapper2 = new LambdaQueryWrapper<ContrastHarmonicResult>()
|
||||
.in(CollUtil.isNotEmpty(adType), ContrastHarmonicResult::getAdType, adType);
|
||||
for (String id : ids) {
|
||||
wrapper2.like(ContrastHarmonicResult::getDevMonitorId, id);
|
||||
}
|
||||
wrapper2.and(w -> {
|
||||
for (String id : ids) {
|
||||
w.like(ContrastHarmonicResult::getDevMonitorId, id);
|
||||
}
|
||||
});
|
||||
|
||||
List<ContrastHarmonicResult> harmonicResultList = contrastHarmonicService.list(wrapper2);
|
||||
Map<String, List<ContrastHarmonicResult>> chnMap2 = harmonicResultList.stream().collect(Collectors.groupingBy(x -> x.getDevMonitorId().split("_")[1], Collectors.toList()));
|
||||
chnMap2.forEach((chn, vList) -> {
|
||||
|
||||
Reference in New Issue
Block a user