From c04ff3bd8f90d2cd8ea743201354d2cc4ceef5e0 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Mon, 08 Jan 2024 17:09:47 +0800
Subject: [PATCH] 物业商户配置,物业缴费项、物业缴费记录

---
 src/main/java/org/springblade/modules/community/mapper/CommunityMapper.xml |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/springblade/modules/community/mapper/CommunityMapper.xml b/src/main/java/org/springblade/modules/community/mapper/CommunityMapper.xml
index 614785d..7d14b62 100644
--- a/src/main/java/org/springblade/modules/community/mapper/CommunityMapper.xml
+++ b/src/main/java/org/springblade/modules/community/mapper/CommunityMapper.xml
@@ -24,7 +24,8 @@
     <!--自定义分页列表查询-->
     <select id="selectCommunityPage" resultType="org.springblade.modules.community.vo.CommunityVO">
         select
-        jc.*
+        jc.*,
+        br.town_name townName
         from jczz_community jc
         left join blade_region br on br.code = jc.code
         where jc.is_deleted = 0
@@ -40,6 +41,9 @@
         <if test="community.regionCode !=null and community.regionCode !=''">
             and jc.code like concat('%',#{community.regionCode},'%')
         </if>
+        <if test="community.townName !=null and community.townName !=''">
+            and br.town_name like concat('%',#{community.townName},'%')
+        </if>
     </select>
 
     <!--自定义分页列表查询-->

--
Gitblit v1.9.3