From e72ed7fd6ce5a731583ce6edea40a9955644d3db Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期一, 23 十二月 2024 09:36:35 +0800
Subject: [PATCH] 1、切割版图显示 2、中空领任务是玻璃调度同样计算格子的厚度 3、补单的总层数用流程卡表内的layers_number替换

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

diff --git a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml
index aae437f..f4f8fc6 100644
--- a/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml
+++ b/hangzhoumesParent/moduleService/CacheGlassModule/src/main/resources/mapper/EdgStorageCageDetailsMapper.xml
@@ -56,4 +56,21 @@
         select *
         from slot_temp limit 1
     </select>
+    <select id="queryCutDrawingByEngineerId" resultType="com.mes.edgstoragecage.entity.vo.CutDrawingVO">
+        with glass_temp as (
+        select * from glass_info where engineer_id = #{engineerId} and pattern_sequence = #{patternSequence}
+        ), cut_drawing_temp as (
+        select t.*,
+        case when t2.glass_id is not null then t2.type
+        when t1.glass_id is not null then t1.state
+        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)
+        )select * from cut_drawing_temp where 1=1
+        <if test="isAll == 1">
+            and state = 0
+        </if>
+
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0