From eeba59201f7755a93c7351a99ac7e50afc038c5b Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Thu, 16 Nov 2023 15:28:48 +0800 Subject: [PATCH] bug --renpc --- src/main/resources/mybatis/mapper/building/building-mapper.xml | 3 ++- src/main/resources/mybatis/mapper/house/house-mapper.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mybatis/mapper/building/building-mapper.xml b/src/main/resources/mybatis/mapper/building/building-mapper.xml index bc75c58..93f7c89 100644 --- a/src/main/resources/mybatis/mapper/building/building-mapper.xml +++ b/src/main/resources/mybatis/mapper/building/building-mapper.xml @@ -344,7 +344,8 @@ AND ( - t1.id LIKE CONCAT('%', #{keywords}, '%') + t1.name LIKE CONCAT('%', #{keywords}, '%') + OR t1.build_num LIKE CONCAT('%', #{keywords}, '%') ) diff --git a/src/main/resources/mybatis/mapper/house/house-mapper.xml b/src/main/resources/mybatis/mapper/house/house-mapper.xml index c0a3d6f..b096baf 100644 --- a/src/main/resources/mybatis/mapper/house/house-mapper.xml +++ b/src/main/resources/mybatis/mapper/house/house-mapper.xml @@ -766,7 +766,7 @@ AND ( - t1.id LIKE CONCAT('%', #{keywords}, '%') + t1.house_num LIKE CONCAT('%', #{keywords}, '%') )