From 617a22d4a6ec7160adfe9b6f611038461656ee58 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期六, 15 三月 2025 15:45:16 +0800
Subject: [PATCH] 1、中空lisec由一次多对改为1次一对,确保出片顺序不变
---
hangzhoumesParent/moduleService/hollowGlassModule/src/main/resources/mapper/HollowBigStorageCageDetailsMapper.xml | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/hangzhoumesParent/moduleService/hollowGlassModule/src/main/resources/mapper/HollowBigStorageCageDetailsMapper.xml b/hangzhoumesParent/moduleService/hollowGlassModule/src/main/resources/mapper/HollowBigStorageCageDetailsMapper.xml
index 47d0aa0..fa59b91 100644
--- a/hangzhoumesParent/moduleService/hollowGlassModule/src/main/resources/mapper/HollowBigStorageCageDetailsMapper.xml
+++ b/hangzhoumesParent/moduleService/hollowGlassModule/src/main/resources/mapper/HollowBigStorageCageDetailsMapper.xml
@@ -52,7 +52,8 @@
<select id="hollowIsAll" resultMap="baseMap">
WITH sum_flow_layer_count AS ( SELECT flow_card_id, layer, min( films_id ) AS films_id, min(thickness) as
thickness,count(*) AS sum_count FROM hollow_glass_relation_info GROUP BY flow_card_id, layer ),
- real_flow_layer_count AS ( SELECT flow_card_id, layer, count(*) AS real_count, count(distinct slot) as slot_count FROM
+ real_flow_layer_count AS ( SELECT flow_card_id, layer, count(*) AS real_count, count(distinct slot) as
+ slot_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 where type in(8,9) GROUP BY process_id, technology_number ),
@@ -209,8 +210,9 @@
</select>
<select id="queryHollowbigStorageCageDetail" resultType="com.mes.base.entity.vo.BigStorageVO">
select hbsc.device_id, hbsc.slot, count(hbscd.glass_id) as count
- from hollow_big_storage_cage hbsc left join hollow_big_storage_cage_details hbscd
- on hbsc.slot=hbscd.slot and hbscd.state in (100, 102, 103, 104)
+ from hollow_big_storage_cage hbsc
+ left join hollow_big_storage_cage_details hbscd
+ on hbsc.slot = hbscd.slot and hbscd.state in (100, 102, 103, 104)
group by hbsc.device_id, hbsc.slot
order by hbsc.device_id, hbsc.slot
</select>
@@ -248,4 +250,10 @@
inner join hollow_sequence_temp t1 on t.hollow_sequence = t1.hollow_sequence
ORDER BY t.hollow_sequence
</select>
+ <select id="queryFlowCardIdsAndLayer" resultType="com.mes.hollow.entity.dto.FlowCardVirtualSlotDTO">
+ select flow_card_id, layer
+ from hollow_big_storage_cage_details
+ where state in (100, 102, 103, 104)
+ group by flow_card_id, layer
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.8.0