From 849442e4f63a5fd7ae154ef6bc77c967a82f40b8 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期四, 26 六月 2025 08:46:01 +0800
Subject: [PATCH] 删除改S7通讯时注释的原opc代码

---
 hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassRelationInfoServiceImpl.java |   16 ++++++----------
 1 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassRelationInfoServiceImpl.java b/hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassRelationInfoServiceImpl.java
index 09316c3..9c78f1c 100644
--- a/hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassRelationInfoServiceImpl.java
+++ b/hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassRelationInfoServiceImpl.java
@@ -252,7 +252,7 @@
 
         Integer slotWidth = sysConfigService.queryConfigValue(ConstSysConfig.HOLLOW_SLOT_WIDTH);
 //        Integer glassGap = sysConfigService.queryConfigValue(ConstSysConfig.HOLLOW_GLASS_GAP);
-        Integer glassGap = getGlassGapByThickness(tempGlassList.get(0).getThickness());
+        Integer glassGap = getGlassGapByThickness(glassInfo.getThickness());
         Integer outCarMaxSize = sysConfigService.queryConfigValue(ConstSysConfig.HOLLOW_OUT_CAR_SIZE);
         List<HollowGlassRelationInfo> relationInfoList = new ArrayList();
         List<List<HollowGlassRelationInfo>> tempHollowList = new ArrayList<>();
@@ -323,16 +323,17 @@
             if (null != orderDetails) {
                 BeanUtils.copyProperties(orderDetails, hollowAllFlowCardVO);
                 hollowAllFlowCardVO.setFlowCardId(e);
-
                 if (cageDetails.getHollowSequence() == 0) {
                     hollowAllFlowCardVO.setIsThroughSlot(Boolean.TRUE);
                 } else {
                     hollowAllFlowCardVO.setIsThroughSlot(Boolean.FALSE);
                 }
                 List<FlowCardGlassInfoDTO> flowCardInfoList = hollowBigStorageCageDetailsService.hollowIsAll(e, cageDetails.getTotalLayer(), Boolean.FALSE);
-                hollowAllFlowCardVO.setFlowCardGlassInfoDTOList(flowCardInfoList);
-                pairTotalCount.addAndGet(flowCardInfoList.get(0).getPairCount());
-
+                log.info("鑾峰彇鍒扮殑娴佺▼鍗′俊鎭负:{}", flowCardInfoList);
+                if(CollectionUtil.isNotEmpty(flowCardInfoList)){
+                    hollowAllFlowCardVO.setFlowCardGlassInfoDTOList(flowCardInfoList);
+                    pairTotalCount.addAndGet(flowCardInfoList.get(0).getPairCount());
+                }
                 resultList.add(hollowAllFlowCardVO);
             }
         });
@@ -417,11 +418,6 @@
         }
         return sysConfigService.queryConfigValue(sysKey);
     }
-    //    @Override
-//    public List<LackDetailsDTO> queryLackByFlowCard(String flowCardId) {
-//        List<LackDetailsDTO> lackDetailsList = this.baseMapper.queryLackByFlowCard(flowCardId);
-//        return lackDetailsList;
-//    }
 
     private void sortFlowCardIdList(List<HollowAllFlowCardVO> list) {
         Pattern pattern = Pattern.compile("^NG(\\d+)([A-Za-z]+)(\\d+)$");

--
Gitblit v1.8.0