From 5fe820b18055b317cd5928d8fecd056f4c9e0115 Mon Sep 17 00:00:00 2001 From: wjli <591616088@qq.com> Date: 星期三, 17 五月 2023 11:10:57 +0800 Subject: [PATCH] 1.根据区域进行模糊查询 --- xboot-modules/xboot-your/src/main/resources/mapper/SignCountMapper.xml | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xboot-modules/xboot-your/src/main/resources/mapper/SignCountMapper.xml b/xboot-modules/xboot-your/src/main/resources/mapper/SignCountMapper.xml index bcc1401..4dddfd3 100644 --- a/xboot-modules/xboot-your/src/main/resources/mapper/SignCountMapper.xml +++ b/xboot-modules/xboot-your/src/main/resources/mapper/SignCountMapper.xml @@ -206,7 +206,7 @@ <where> 1=1 <if test="bo.line != null and bo.line != ''" > - AND line = #{bo.line} + AND line like CONCAT ('%', #{bo.line},'%') </if> <if test="bo.carName != null and bo.carName != ''" > AND car_name like CONCAT ('%',#{bo.carName},'%') @@ -250,7 +250,7 @@ <where> 1=1 <if test="bo.line != null and bo.line != ''" > - AND line = #{bo.line} + AND line like CONCAT ('%', #{bo.line},'%') </if> <if test="bo.carName != null and bo.carName != ''" > AND car_name like CONCAT ('%',#{bo.carName},'%') @@ -285,7 +285,7 @@ <where> 1=1 <if test="bo.line != null and bo.line != ''" > - AND line = #{bo.line} + AND line like CONCAT ('%', #{bo.line},'%') </if> <if test="bo.carName != null and bo.carName != ''" > AND car_name like CONCAT ('%',#{bo.carName},'%') -- Gitblit v1.9.1