From b6990dc4a05365ceefe1e248365e718d4685ac20 Mon Sep 17 00:00:00 2001 From: yanyang Date: Wed, 4 Jan 2023 09:10:19 +0800 Subject: [PATCH] fix --- .../service/impl/InspectionSheetServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ym-process-inspection/src/main/java/com/cnbm/processInspection/service/impl/InspectionSheetServiceImpl.java b/ym-process-inspection/src/main/java/com/cnbm/processInspection/service/impl/InspectionSheetServiceImpl.java index 0190e5e..7b00a90 100644 --- a/ym-process-inspection/src/main/java/com/cnbm/processInspection/service/impl/InspectionSheetServiceImpl.java +++ b/ym-process-inspection/src/main/java/com/cnbm/processInspection/service/impl/InspectionSheetServiceImpl.java @@ -158,7 +158,7 @@ public class InspectionSheetServiceImpl extends CrudServiceImpl featuresList = inspectionSheetFeaturesList.stream().filter(s->s.getType()==1).collect(Collectors.toList()); + List featuresList = inspectionSheetFeaturesList.stream().filter(s-> s.getSampleSize()!=null && s.getType()==1).collect(Collectors.toList()); if(featuresList != null && featuresList.size() != 0) { Integer numbersOfSamples = featuresList.stream().max(Comparator.comparing(ProductFeaturesDTO::getSampleSize)).get().getSampleSize(); if (numbersOfSamples != null) { @@ -383,7 +383,7 @@ public class InspectionSheetServiceImpl extends CrudServiceImpl dropNames = new ArrayList<>(); dropNames.add("transationId"); queryDataParam.setDropedTagNames(dropNames);