From 34ddd63acb70ad5b0fe218e4f4e7afb4d195d8f8 Mon Sep 17 00:00:00 2001
From: 晏有为 <13214124+yan-youwei@user.noreply.gitee.com>
Date: 星期四, 23 五月 2024 19:04:59 +0800
Subject: [PATCH] 导入检验对象

---
 inspect-server/src/main/resources/mapper/StandardTemplateMapper.xml |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/inspect-server/src/main/resources/mapper/StandardTemplateMapper.xml b/inspect-server/src/main/resources/mapper/StandardTemplateMapper.xml
index 786e5b1..0dafd77 100644
--- a/inspect-server/src/main/resources/mapper/StandardTemplateMapper.xml
+++ b/inspect-server/src/main/resources/mapper/StandardTemplateMapper.xml
@@ -15,11 +15,6 @@
             <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
     </resultMap>
 
-    <sql id="Base_Column_List">
-        id,name,remark,
-        thing,create_user,update_user,
-        create_time,update_time
-    </sql>
     <select id="selectStandardTemplatePageList" resultType="com.yuanchu.mom.pojo.StandardTemplate">
         select * from (
         select st.id, st.name, remark, thing, u2.name create_user_name, u3.name update_user_name, st.create_time, st.update_time
@@ -31,6 +26,9 @@
             ${ew.customSqlSegment}
         </if>
     </select>
+    <select id="getStandTempIdByName" resultType="com.yuanchu.mom.pojo.StandardTemplate">
+        select id from standard_template where name=#{name}
+    </select>
 
 
 </mapper>

--
Gitblit v1.9.3