From 5029f0d42ec5ef0df87d34b97ac639f6e72586ca Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期二, 24 十二月 2024 10:33:01 +0800
Subject: [PATCH] 1、中空/大理片笼前端推送数据改成格子号及数量,减少websocket向前端推送的数量

---
 hangzhoumesParent/moduleService/howllowGlassModule/src/main/resources/mapper/HollowBigStorageCageDetailsMapper.xml |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/hangzhoumesParent/moduleService/howllowGlassModule/src/main/resources/mapper/HollowBigStorageCageDetailsMapper.xml b/hangzhoumesParent/moduleService/howllowGlassModule/src/main/resources/mapper/HollowBigStorageCageDetailsMapper.xml
index 127a511..f93a172 100644
--- a/hangzhoumesParent/moduleService/howllowGlassModule/src/main/resources/mapper/HollowBigStorageCageDetailsMapper.xml
+++ b/hangzhoumesParent/moduleService/howllowGlassModule/src/main/resources/mapper/HollowBigStorageCageDetailsMapper.xml
@@ -46,7 +46,7 @@
         real_flow_layer_count AS ( SELECT flow_card_id, layer, count(*) AS real_count FROM
         hollow_big_storage_cage_details t WHERE state = 100 GROUP BY flow_card_id, layer ),
         damage_flow_layer_count AS ( SELECT process_id AS flow_card_id, technology_number AS layer, count(*) as
-        damage_count FROM damage GROUP BY process_id, technology_number ),
+        damage_count FROM damage where type in(8,9) GROUP BY process_id, technology_number ),
         lack_flow_layer_count AS (
         SELECT
         t.flow_card_id,
@@ -197,4 +197,11 @@
             desc
         </if>
     </select>
+    <select id="queryHollowbigStorageCageDetail" resultType="com.mes.base.entity.vo.BigStorageVO">
+        SELECT SLOT, COUNT(1) AS COUNT
+        FROM HOLLOW_BIG_STORAGE_CAGE_DETAILS
+        where state in (100, 102, 103, 104)
+        group by SLOT
+        ORDER BY SLOT
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0