From da3b5c72fa45bc26a9868c2b26e3efda14845179 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: 星期一, 17 四月 2023 01:01:36 +0800
Subject: [PATCH] 加入搜索
---
java110-db/src/main/resources/mapper/community/VisitV1ServiceDaoImplMapper.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/VisitV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/VisitV1ServiceDaoImplMapper.xml
index 329559c..70f5bd2 100644
--- a/java110-db/src/main/resources/mapper/community/VisitV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/VisitV1ServiceDaoImplMapper.xml
@@ -40,6 +40,9 @@
<if test="vName !=null and vName != ''">
and t.v_name= #{vName}
</if>
+ <if test="vNameLike !=null and vNameLike != ''">
+ and t.v_name like concat('%',#{vNameLike},'%')
+ </if>
<if test="statusCd !=null and statusCd != ''">
and t.status_cd= #{statusCd}
</if>
@@ -197,6 +200,9 @@
<if test="vName !=null and vName != ''">
and t.v_name= #{vName}
</if>
+ <if test="vNameLike !=null and vNameLike != ''">
+ and t.v_name like concat('%',#{vNameLike},'%')
+ </if>
<if test="statusCd !=null and statusCd != ''">
and t.status_cd= #{statusCd}
</if>
--
Gitblit v1.8.0