From 2f44fc75c78e9291f07a0864199235cde689fa8d Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期五, 12 十二月 2025 12:29:37 +0800
Subject: [PATCH] 订单明细报表新增楼层编号跟其他列
---
north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 112 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
new file mode 100644
index 0000000..fe2c744
--- /dev/null
+++ b/north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE mapper
+ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+ "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.example.erp.mapper.sd.BasicGlassTypeMapper">
+ <select id="getOneLevel">
+ select
+ *
+ from
+ basic_glass_type as a
+ where a.level=1
+ </select>
+ <select id="getTwoLevel">
+ select
+ *
+ from
+ basic_glass_type as a
+ where a.level=2
+ 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>
+
+
+ <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