From 34f99d106551b51bf2af3bbd40c64624a3af25eb Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期六, 09 九月 2023 09:43:57 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/CstmrTypeMapper.xml |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/CstmrTypeMapper.xml b/src/main/resources/mapper/CstmrTypeMapper.xml
index 7f7565f..5b5967f 100644
--- a/src/main/resources/mapper/CstmrTypeMapper.xml
+++ b/src/main/resources/mapper/CstmrTypeMapper.xml
@@ -18,4 +18,14 @@
 
     </resultMap>
 
+    <select id="selectByName" resultMap="BaseResultMap">
+        select top 1 *
+        from man_cstmr_type
+        where 1=1
+        and name = #{name}
+        <if test="hostId != null">
+            and host_id = #{hostId}
+        </if>
+    </select>
+
 </mapper>

--
Gitblit v1.9.1