From a7660c90e3f9776f076a80cfa096fdbb5c7c45fd Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 19 八月 2024 14:06:41 +0800
Subject: [PATCH] 补片流程卡打印将同流程卡号合并打印,返工流程卡添加责任信息,调整流程卡其它备注样式

---
 north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml
index ea19fab..4f8836a 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml
@@ -19,4 +19,33 @@
         ORDER BY  a.id ;
     </select>
 
+    <select id="selectMaxType">
+        select
+            *
+        from
+            basic_glass_type  as a
+        where a.level=1
+        ORDER BY  a.id  desc limit 1;
+
+    </select>
+
+    <select id="selectMaxTowLevelType">
+        select
+            *
+        from
+            basic_glass_type  as a
+        where
+            a.level=2
+            and a.belong = #{type}
+
+        ORDER BY  a.id  desc limit 1;
+    </select>
+    
+    <update id="updateGlassTypeName" parameterType="com.example.erp.entity.sd.BasicGlassType" >
+        update
+            basic_glass_type as a
+        set a.type_name = #{basicGlassType.typeName}
+        where a.id = #{basicGlassType.id}
+    </update>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0