From bd92c2ab5b7baee24cb8204a3856c9de188a4f97 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Mon, 25 Dec 2023 21:53:18 +0800
Subject: [PATCH] 区域查询修改,场所,房屋,住户,租赁,网格信息区域过滤,机构新增区域字段
---
src/main/java/org/springblade/modules/grid/mapper/GridmanMapper.xml | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/main/java/org/springblade/modules/grid/mapper/GridmanMapper.xml b/src/main/java/org/springblade/modules/grid/mapper/GridmanMapper.xml
index a8ae1f9..a6ed7cb 100644
--- a/src/main/java/org/springblade/modules/grid/mapper/GridmanMapper.xml
+++ b/src/main/java/org/springblade/modules/grid/mapper/GridmanMapper.xml
@@ -20,9 +20,13 @@
<!--自定义分页查询-->
<select id="selectGridmanPage" resultType="org.springblade.modules.grid.vo.GridmanVO">
select
- jgm.*,jg.community_code communityCode
+ jgm.*,
+ jg.grid_name gridName,jg.community_code communityCode,
+ br.name as communityName,
+ br.town_name as townName
from jczz_gridman jgm
left join jczz_grid jg on jg.id = jgm.grid_id and jg.is_deleted = 0
+ left join blade_region br on br.code = jg.community_code
where jgm.is_deleted = 0
<if test="gridman.gridmanName!=null and gridman.gridmanName!=''">
and jgm.gridman_name like concat('%',#{gridman.gridmanName},'%')
@@ -36,6 +40,15 @@
<if test="gridman.communityCode!=null and gridman.communityCode!=''">
and jg.community_code like concat('%',#{gridman.communityCode},'%')
</if>
+ <if test="gridman.communityName!=null and gridman.communityName!=''">
+ and br.name like concat('%',#{gridman.communityName},'%')
+ </if>
+ <if test="gridman.townName!=null and gridman.townName!=''">
+ and br.town_name like concat('%',#{gridman.townName},'%')
+ </if>
+ <if test="gridman.regionCode != null and gridman.regionCode !='' ">
+ and jg.community_code like concat('%',#{gridman.regionCode},'%')
+ </if>
</select>
<!--自定义分页查询-->
--
Gitblit v1.9.3