实体提交
This commit is contained in:
@@ -252,7 +252,7 @@ public class DetectionServiceImpl {
|
||||
}
|
||||
if (CollUtil.isNotEmpty(info)) {
|
||||
detectionDataDealService.acceptAdNonResult(info, code);
|
||||
List<Integer> resultFlag = info.stream().map(AdNonHarmonicResult::getResultFlag).collect(Collectors.toList());
|
||||
List<Integer> resultFlag = info.stream().filter(x->4!=x.getResultFlag()).map(AdNonHarmonicResult::getResultFlag).distinct().collect(Collectors.toList());
|
||||
return getInteger(resultFlag);
|
||||
}
|
||||
return 4;
|
||||
@@ -512,7 +512,7 @@ public class DetectionServiceImpl {
|
||||
|
||||
|
||||
private Integer setResultFlag(List<DetectionData> numbers) {
|
||||
List<Integer> isData = numbers.stream().filter(x -> 4 != x.getIsData()).filter(x -> ObjectUtil.isNotNull(x.getData())).map(DetectionData::getIsData).distinct().collect(Collectors.toList());
|
||||
List<Integer> isData = numbers.stream().filter(x -> ObjectUtil.isNotNull(x.getData())).filter(x -> 4 != x.getIsData()).map(DetectionData::getIsData).distinct().collect(Collectors.toList());
|
||||
return getInteger(isData);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user