From 6e8c95d31d85b53857e4e3ce12ea303eb0ea42eb Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 19 八月 2021 00:47:48 +0800
Subject: [PATCH] 优化代码

---
 java110-db/src/main/resources/mapper/user/QuestionAnswerServiceDaoImplMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/java110-db/src/main/resources/mapper/user/QuestionAnswerServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/QuestionAnswerServiceDaoImplMapper.xml
index af91f0b..9214f13 100755
--- a/java110-db/src/main/resources/mapper/user/QuestionAnswerServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/QuestionAnswerServiceDaoImplMapper.xml
@@ -31,7 +31,7 @@
         </if>
         where 1 =1
         <if test="qaName !=null and qaName != ''">
-            and t.qa_name= #{qaName}
+            and t.qa_name like  concat('%',#{qaName},'%')
         </if>
         <if test="qaType !=null and qaType != ''">
             and t.qa_type= #{qaType}
@@ -111,7 +111,7 @@
         from question_answer t
         where 1 =1
         <if test="qaName !=null and qaName != ''">
-            and t.qa_name= #{qaName}
+            and t.qa_name like  concat('%',#{qaName},'%')
         </if>
         <if test="qaType !=null and qaType != ''">
             and t.qa_type= #{qaType}

--
Gitblit v1.8.0