From 40a647b468d117381abf63d9f98f1cc9308ef3fc Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Wed, 27 Mar 2024 10:23:47 +0800
Subject: [PATCH] 议事查询优化

---
 src/main/java/org/springblade/modules/system/mapper/UserMapper.xml |   42 ------------------------------------------
 1 files changed, 0 insertions(+), 42 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
index 0b87927..efcb04d 100644
--- a/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
+++ b/src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -233,49 +233,7 @@
             )
 
     </select>
-    <select id="getUserInfoByDistrictIds" resultType="org.springblade.modules.house.vo.HouseholdVO">
 
-        SELECT
-        jhe.house_name address,
-        bu.id,
-        bu.tenant_id,
-        bu.code,
-        bu.user_type,
-        bu.account,
-        jh.name,
-        bu.real_name,
-        bu.avatar,
-        bu.email,
-        bu.phone phoneNumber,
-        bu.birthday,
-        jhe.building,
-        jhe.unit
-        FROM
-        blade_user bu
-        LEFT JOIN jczz_household jh ON bu.id = jh.associated_user_id and jh.is_deleted=0
-        LEFT JOIN jczz_house jhe ON jhe.house_code = jh.house_code
-        LEFT JOIN jczz_district jd on jd.aoi_code=jhe.district_code
-        <where>
-            and jd.id  in
-            <foreach collection="list" index="index" item="item" open="(" separator="," close=")">
-                #{item}
-            </foreach>
-            and bu.is_deleted = 0
-            and jh.relationship !=18
-            <if test="vo.building != null and vo.building !=''">
-                and jhe.building like concat('%',#{vo.building},'%')
-            </if>
-            <if test="vo.unit != null and vo.unit !=''">
-                and jhe.unit like concat('%',#{vo.unit},'%')
-            </if>
-            <if test="vo.name != null and vo.name !=''">
-                and jh.name like concat('%',#{vo.name},'%')
-            </if>
-            <if test="vo.phoneNumber != null and vo.phoneNumber !=''">
-                and jh.phone_number like concat('%',#{vo.phoneNumber},'%')
-            </if>
-        </where>
-    </select>
 
 
     <select id="selectUserByDept" resultMap="userResultMap">

--
Gitblit v1.9.3