From 73f0e39ec9a58d585d68ecd07ec69b7c7b540c52 Mon Sep 17 00:00:00 2001
From: qirong <2032486488@qq.com>
Date: 星期二, 13 六月 2023 13:54:00 +0800
Subject: [PATCH] 标签添加

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

diff --git a/src/main/resources/mapper/SubjectMapper.xml b/src/main/resources/mapper/SubjectMapper.xml
index 9f40fea..49e236b 100644
--- a/src/main/resources/mapper/SubjectMapper.xml
+++ b/src/main/resources/mapper/SubjectMapper.xml
@@ -131,7 +131,17 @@
       <if test="level != null ">
         and level= #{level}
       </if>
+      <if test="name != null ">
+        and level_name like concat('%',#{name},'%')
+      </if>
     </where>
   </select>
 
+  <select id="getName" resultMap="BaseResultMap">
+      SELECT
+      <include refid="Base_Column_List"/>
+      FROM t_subject
+      where name = #{name}
+  </select>
+
 </mapper>

--
Gitblit v1.8.0