From 1e56bd5cc3be7f7957788f2606c7f56cb4d27f50 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 01 十二月 2025 11:41:42 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml |   61 ++++++++++++++++++++++++++++++
 1 files changed, 61 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 4f8836a..fe2c744 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml
@@ -48,4 +48,65 @@
         where a.id = #{basicGlassType.id}
     </update>
 
+
+    <select id="getFindAllConfig">
+        select
+            *
+        from
+            process_attribute_config
+    </select>
+
+    <select id="getOneLevelListMapConfig">
+        select
+            *
+        from
+            process_attribute_config
+        where level=1
+    </select>
+
+    <select id="selectMaxTypeConfig">
+        select
+            *
+        from
+            process_attribute_config  as a
+        where a.level=1
+        ORDER BY  a.id  desc limit 1;
+
+    </select>
+
+    <select id="selectMaxTowLevelTypeConfig">
+        select
+            *
+        from
+            process_attribute_config  as a
+        where
+            a.level=2
+          and a.belong = #{type}
+
+        ORDER BY  a.id  desc limit 1;
+    </select>
+
+    <update id="updateProcessAttributeConfig" parameterType="com.example.erp.entity.sd.ProcessAttributeConfig" >
+        update
+            process_attribute_config as a
+        set a.process_type = #{processAttributeConfig.processType},
+            a.process_name = #{processAttributeConfig.processName},
+            a.input_type = #{processAttributeConfig.inputType},
+        where a.id = #{processAttributeConfig.id}
+    </update>
+
+    <insert id="insertProcessAttributeConfig"  useGeneratedKeys="true" >
+        insert into sd.process_attribute_config (level,process_type,process_name,input_type,belong)
+        values (
+                   #{processAttributeConfig.level}, #{processAttributeConfig.processType}, #{processAttributeConfig.processName},
+                   #{processAttributeConfig.inputType}, #{processAttributeConfig.belong}
+               )
+    </insert>
+
+    <delete id="deleteProcessAttributeConfig"  >
+        delete from
+            process_attribute_config as a
+            where a.id = #{id}
+    </delete>
+
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0