|
|
|
@ -115,7 +115,8 @@ public class MesProductResultErrorHandleStepService extends BaseStepService {
|
|
|
|
|
String defectTypeCode = MesEnumUtil.DEFECT_TYPE_CODE.DETERMIND.getValue();
|
|
|
|
|
productionPsOutContextList.forEach(mesProduceSn -> {
|
|
|
|
|
String productVersion = null;
|
|
|
|
|
List<MesProductionPartContext> mesProductionPartContextList = productionPartContextList.stream().filter(mesProductionPartContext -> Objects.equal(mesProduceSn.getForeignKey(),mesProductionPartContext.getForeignKey())).collect(Collectors.toList());
|
|
|
|
|
List<MesProductionPartContext> mesProductionPartContextList = CollectionUtils.isEmpty(productionPartContextList) ? null :
|
|
|
|
|
productionPartContextList.stream().filter(mesProductionPartContext -> Objects.equal(mesProduceSn.getForeignKey(),mesProductionPartContext.getForeignKey())).collect(Collectors.toList());
|
|
|
|
|
if (!CollectionUtils.isEmpty(mesProductionPartContextList)) {
|
|
|
|
|
productVersion = mesProductionPartContextList.get(0).getProductVersion();
|
|
|
|
|
}
|
|
|
|
|