逻辑变更

tags/yfai-pcn-ext-v1.0
jun 11 months ago
parent dde587d1b9
commit 650924be7c

@ -731,7 +731,7 @@ public class MesInputDefectRecordService implements IMesInputDefectRecordService
Map<String, List<MesDefectWarnConfig>> alarmConfigMap = alarmConfigList.stream().collect(Collectors.groupingBy(MesDefectWarnConfig::getDefectLocation)); Map<String, List<MesDefectWarnConfig>> alarmConfigMap = alarmConfigList.stream().collect(Collectors.groupingBy(MesDefectWarnConfig::getDefectLocation));
//返修完成需要标记绿色 //返修完成需要标记绿色
Map<String, List<MesPartInspectionDetail>> detailMap = detailList.stream().collect(Collectors.groupingBy(MesPartInspectionDetail::getDefectLocation)); Map<String, List<MesPartInspectionDetail>> detailMap = detailList.stream().collect(Collectors.groupingBy(t->t.getDefectLocation()+t.getFrontBack()));
locationConfigList.forEach(k -> { locationConfigList.forEach(k -> {
k.setFrontBack(frontBack); k.setFrontBack(frontBack);
@ -740,8 +740,8 @@ public class MesInputDefectRecordService implements IMesInputDefectRecordService
k.setColour(MesExtEnumUtil.COLOR.YELLOW.getValue()); k.setColour(MesExtEnumUtil.COLOR.YELLOW.getValue());
} }
if(detailMap.containsKey(k.getDefectLocation()) && if(detailMap.containsKey(k.getDefectLocation()+frontBack) &&
detailMap.get(k.getDefectLocation()).stream().allMatch(MesPartInspectionDetail::getReworkFinished)){ detailMap.get(k.getDefectLocation()+frontBack).stream().allMatch(MesPartInspectionDetail::getReworkFinished)){
k.setIsflg(true); k.setIsflg(true);
k.setColour(MesExtEnumUtil.COLOR.GREEN.getValue()); k.setColour(MesExtEnumUtil.COLOR.GREEN.getValue());
} }

Loading…
Cancel
Save