From 3a9d2496fa7a418ceb106c3a40e3f1dad00c7528 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期一, 26 七月 2021 14:16:24 +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