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/user/OwnerCarV1ServiceDaoImplMapper.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml
index e0e9e60..057fa31 100644
--- a/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OwnerCarV1ServiceDaoImplMapper.xml
@@ -30,6 +30,9 @@
<if test="carNum !=null and carNum != ''">
and t.car_num= #{carNum}
</if>
+ <if test="carNumLike !=null and carNumLike != ''">
+ and t.car_num like concat('%',#{carNumLike},'%')
+ </if>
<if test="psId !=null and psId != ''">
and t.ps_id= #{psId}
</if>
@@ -160,6 +163,9 @@
<if test="carNum !=null and carNum != ''">
and t.car_num= #{carNum}
</if>
+ <if test="carNumLike !=null and carNumLike != ''">
+ and t.car_num like concat('%',#{carNumLike},'%')
+ </if>
<if test="psId !=null and psId != ''">
and t.ps_id= #{psId}
</if>
--
Gitblit v1.8.0