芜湖 设备可疑 系统异常 修复

tags/yfai-pcn-ext-v3.7
王杰 3 months ago
parent 37db6694a3
commit 12cc0a015c

@ -115,7 +115,8 @@ public class MesProductResultErrorHandleStepService extends BaseStepService {
String defectTypeCode = MesEnumUtil.DEFECT_TYPE_CODE.DETERMIND.getValue(); String defectTypeCode = MesEnumUtil.DEFECT_TYPE_CODE.DETERMIND.getValue();
productionPsOutContextList.forEach(mesProduceSn -> { productionPsOutContextList.forEach(mesProduceSn -> {
String productVersion = null; 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)) { if (!CollectionUtils.isEmpty(mesProductionPartContextList)) {
productVersion = mesProductionPartContextList.get(0).getProductVersion(); productVersion = mesProductionPartContextList.get(0).getProductVersion();
} }

Loading…
Cancel
Save