From d3df1630ad3e1c71b61d177ee818d5c5c94e97c0 Mon Sep 17 00:00:00 2001
From: wangfei <3597712270@qq.com>
Date: 星期六, 11 十月 2025 18:45:29 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/YiWuProject

---
 hangzhoumesParent/moduleService/hollowGlassModule/src/main/java/com/mes/hollow/service/impl/HollowGlassRelationInfoServiceImpl.java |   32 ++++++++++++++------------------
 1 files changed, 14 insertions(+), 18 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 2a20bca..f24eb99 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
@@ -26,7 +26,6 @@
 import com.mes.sysconfig.service.SysConfigService;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.BeanUtils;
-import org.springframework.cache.annotation.Cacheable;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.Resource;
@@ -307,25 +306,20 @@
     public List<HollowAllFlowCardVO> queryHollowAllFlowCard(HollowBigStorageDetailsQueryVO query) {
         Date startDate = new Date();
         log.info("寮�濮嬫煡璇腑绌烘祦绋嬪崱浠诲姟淇℃伅锛屽紑濮嬫椂闂磠}", startDate);
-        List<HollowBigStorageCageDetails> detailsList = hollowBigStorageCageDetailsService.list(new LambdaQueryWrapper<HollowBigStorageCageDetails>()
-                .eq(HollowBigStorageCageDetails::getState, Const.GLASS_STATE_IN)
-                .like(StringUtils.isNotBlank(query.getFilmsId()), HollowBigStorageCageDetails::getFilmsId, query.getFilmsId())
-                .like(StringUtils.isNotBlank(query.getFlowCardId()), HollowBigStorageCageDetails::getFlowCardId, query.getFlowCardId())
-                .eq(query.getThickness() != 0, HollowBigStorageCageDetails::getThickness, query.getThickness())
-                .orderByAsc(HollowBigStorageCageDetails::getFlowCardId)
-        );
+        List<FlowCardGlassInfoDTO> detailsList = hollowBigStorageCageDetailsService.queryHollowAllFlowCard(query);
+
         if (CollectionUtil.isEmpty(detailsList)) {
             log.info("绗煎唴鏃犵幓鐠�");
             return new ArrayList<>();
         }
         Date middleDate = new Date();
         log.info("涓┖鐞嗙墖绗艰鎯呮暟鎹凡鏌ヨ瀹屾瘯锛岃�楁椂:{}ms", middleDate.getTime() - startDate.getTime());
-        Map<String, List<HollowBigStorageCageDetails>> listMap = detailsList.stream().collect(Collectors.groupingBy(HollowBigStorageCageDetails::getFlowCardId));
+        Map<String, List<FlowCardGlassInfoDTO>> listMap = detailsList.stream().collect(Collectors.groupingBy(FlowCardGlassInfoDTO::getFlowCardId));
         List<HollowAllFlowCardVO> resultList = new ArrayList<>();
         AtomicInteger pairTotalCount = new AtomicInteger();
         listMap.forEach((e, v) -> {
             HollowAllFlowCardVO hollowAllFlowCardVO = new HollowAllFlowCardVO();
-            HollowBigStorageCageDetails cageDetails = v.get(0);
+            FlowCardGlassInfoDTO cageDetails = v.get(0);
             //鎸夌収娴佺▼鍗¤幏鍙栧搴旂殑浜у搧鍚嶇О
             OrderDetailsDTO orderDetails = this.queryProductNameByFlowCardId(cageDetails.getFlowCardId(), query.getProductName(), query.getCustomerName());
             if (null != orderDetails) {
@@ -336,12 +330,8 @@
                 } else {
                     hollowAllFlowCardVO.setIsThroughSlot(Boolean.FALSE);
                 }
-                List<FlowCardGlassInfoDTO> flowCardInfoList = hollowBigStorageCageDetailsService.hollowIsAll(e, cageDetails.getTotalLayer(), Boolean.FALSE);
-                log.info("鑾峰彇鍒扮殑娴佺▼鍗′俊鎭负:{}", flowCardInfoList);
-                if (CollectionUtil.isNotEmpty(flowCardInfoList)) {
-                    hollowAllFlowCardVO.setFlowCardGlassInfoDTOList(flowCardInfoList);
-                    pairTotalCount.addAndGet(flowCardInfoList.get(0).getPairCount());
-                }
+                hollowAllFlowCardVO.setFlowCardGlassInfoDTOList(v);
+                pairTotalCount.addAndGet(cageDetails.getPairCount());
                 resultList.add(hollowAllFlowCardVO);
             }
         });
@@ -403,8 +393,8 @@
     }
 
     @Override
-    public List<LackDetailsDTO> queryLackByFlowCard() {
-        List<LackDetailsDTO> lackDetailsList = this.baseMapper.queryLackByFlowCard();
+    public List<LackDetailsDTO> queryAllLackByFlowCard() {
+        List<LackDetailsDTO> lackDetailsList = this.baseMapper.queryAllLackByFlowCard();
         return lackDetailsList;
     }
 
@@ -414,6 +404,12 @@
     }
 
     @Override
+    public Map<Integer,List<LackDetailsDTO>> queryLackByFlowCard(String flowCardId) {
+        List<LackDetailsDTO> detailsDTOS = baseMapper.queryLackByFlowCard(flowCardId);
+        return detailsDTOS.stream().collect(Collectors.groupingBy(item -> item.getLayer()));
+    }
+
+    @Override
     public Integer getGlassGapByThickness(Double thickness) {
         int sysKey = 0;
         if (thickness >= 12) {

--
Gitblit v1.8.0