From bb85dbc5fc9a9ddda99132ae16887fd27959a854 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 06 一月 2025 16:18:48 +0800
Subject: [PATCH] 补充注释、语言,转工单时添加未勾选数据时的弹窗,修改报工新增查询复合工序不能查询出每一层的问题,修改次破报表响应超时问题

---
 north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 51 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..4f8836a
--- /dev/null
+++ b/north-glass-erp/src/main/resources/mapper/sd/BasicGlassTypeMapper.xml
@@ -0,0 +1,51 @@
+<?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>
+
+</mapper>
\ No newline at end of file

--
Gitblit v1.8.0