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

---
 hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml |   49 +++++++++++++++++++++++++------------------------
 1 files changed, 25 insertions(+), 24 deletions(-)

diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml
index af01a6f..5522b79 100644
--- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml
+++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml
@@ -69,7 +69,7 @@
         else 0 end as state
         from glass_temp t
         left join edg_storage_cage_details t1 on t.glass_id = t1.glass_id
-        left join damage t2 on t.glass_id = t2.glass_id and t2.type in (8,9)
+        left join damage t2 on t.glass_id = t2.glass_id and t2.type in (8,9) AND t2.STATUS = 1
         )select * from cut_drawing_temp where 1=1
         <if test="isAll == 1">
             and state = 0
@@ -78,10 +78,10 @@
     </select>
     <select id="querySlotRemainWidth" resultType="com.mes.edgstoragecage.entity.vo.EdgSlotRemainVO">
         select device_id,
-               slot,
-               if(#{cellLength} - sum(GREATEST(width, height) + #{glassGap}) &lt; 0, 0, #{cellLength} -
-                                                                                        sum(GREATEST(width, height) + #{glassGap})) as
-                   remain_width
+        slot,
+        if(#{cellLength} - sum(GREATEST(width, height) + #{glassGap}) &lt; 0, 0, #{cellLength} -
+        sum(GREATEST(width, height) + #{glassGap})) as
+        remain_width
         from edg_storage_cage_details
         where state = 100
         group by device_id, slot
@@ -115,26 +115,27 @@
         limit 1
     </select>
     <select id="queryPieChart" resultType="com.mes.largenscreen.entity.PieChartVO">
-        SELECT round(sum(CASE WHEN e.station_cell = 5 THEN 1 ELSE 0 END), 2)                                                   as oneCompletedQuantity,
-               round(sum(CASE WHEN e.station_cell = 5 THEN escd.width * escd.height / 1000000 ELSE 0 END),
-                     2)                                                                                                        as oneCompletedArea,
-               round(sum(CASE WHEN e.station_cell = 6 THEN 1 ELSE 0 END), 2)                                                   as twoCompletedQuantity,
-               round(sum(CASE WHEN e.station_cell = 6 THEN escd.width * escd.height / 1000000 ELSE 0 END),
-                     2)                                                                                                        as twoCompletedArea,
-               round(sum(CASE WHEN e.station_cell = 5 and escd.device_id is null THEN 1 ELSE 0 END),
-                     2)                                                                                                        as oneUncompletedQuantity,
-               round(sum(CASE
-                             WHEN e.station_cell = 5 and escd.device_id is null THEN gi.width * gi.height / 1000000
-                             ELSE 0 END),
-                     2)                                                                                                        as oneUncompletedArea,
-               round(sum(CASE WHEN e.station_cell = 6 and escd.device_id is null THEN 1 ELSE 0 END),
-                     2)                                                                                                        as twoUncompletedQuantity,
-            round(sum( CASE WHEN e.station_cell = 6 and escd.device_id is null THEN gi.width*gi.height/1000000 ELSE 0 END ),2) as twoUncompletedArea
+        SELECT round(sum(CASE WHEN e.station_cell = 5 THEN 1 ELSE 0 END), 2) as oneCompletedQuantity,
+        round(sum(CASE WHEN e.station_cell = 5 THEN escd.width * escd.height / 1000000 ELSE 0 END),
+        2) as oneCompletedArea,
+        round(sum(CASE WHEN e.station_cell = 6 THEN 1 ELSE 0 END), 2) as twoCompletedQuantity,
+        round(sum(CASE WHEN e.station_cell = 6 THEN escd.width * escd.height / 1000000 ELSE 0 END),
+        2) as twoCompletedArea,
+        round(sum(CASE WHEN e.station_cell = 5 and escd.device_id is null THEN 1 ELSE 0 END),
+        2) as oneUncompletedQuantity,
+        round(sum(CASE
+        WHEN e.station_cell = 5 and escd.device_id is null THEN gi.width * gi.height / 1000000
+        ELSE 0 END),
+        2) as oneUncompletedArea,
+        round(sum(CASE WHEN e.station_cell = 6 and escd.device_id is null THEN 1 ELSE 0 END),
+        2) as twoUncompletedQuantity,
+        round(sum( CASE WHEN e.station_cell = 6 and escd.device_id is null THEN gi.width*gi.height/1000000 ELSE 0 END
+        ),2) as twoUncompletedArea
         FROM
-            glass_info gi
-                left join edg_storage_cage_details escd ON gi.glass_id = escd.glass_id
-                left join engineering e on gi.engineer_id=e.engineer_id
+        glass_info gi
+        left join edg_storage_cage_details escd ON gi.glass_id = escd.glass_id
+        left join engineering e on gi.engineer_id=e.engineer_id
         WHERE
-            date(e.create_time) = date(now())
+        date(e.create_time) = date(now())
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0