From 7e46a5036034052dbdf344850073ce1662bc4569 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期三, 09 十月 2024 10:35:04 +0800
Subject: [PATCH] 修改破损传参,大理片界面添加满炉数量,大理片人工下片后将钢化小片表状态改为4,出片任务表添加任务生成时间

---
 hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageDetailsMapper.xml |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageDetailsMapper.xml b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageDetailsMapper.xml
index fa07496..4028900 100644
--- a/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageDetailsMapper.xml
+++ b/hangzhoumesParent/moduleService/CacheVerticalGlassModule/src/main/resources/mapper/BigStorageCageDetailsMapper.xml
@@ -93,11 +93,13 @@
     </update>
 
     <select id="selectTemperingGlassCount" resultType="java.util.Map">
-        select a.engineer_id,a.tempering_layout_id,count2,count1,count2-count1 as count3 from
+        select a.engineer_id,a.tempering_layout_id,count2,count1,count2-count1 as count3,count(c.glass_id) as count4 from
             (select engineer_id,tempering_layout_id,count(*) as count1 from big_storage_cage_details where state=100 group by engineer_id,tempering_layout_id) as a
                 left join
             (select engineer_id,tempering_layout_id,count(*) as count2 from glass_info group by engineer_id,tempering_layout_id) as b
             on a.engineer_id=b.engineer_id and a.tempering_layout_id=b.tempering_layout_id
+                left join damage as c on a.engineer_id=c.engineer_id and a.tempering_layout_id=c.tempering_layout_id and (type = 8 or type = 9)
+        group by a.engineer_id,a.tempering_layout_id
         order by a.engineer_id,a.tempering_layout_id
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0