zhongrj
2024-04-02 566e7986291e73051d30ee252b0ebf852b1577a7
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -233,33 +233,7 @@
            )
    </select>
    <select id="getUserInfoByDistrictIds" resultType="org.springblade.modules.system.entity.User">
        SELECT
        bu.id,
        bu.tenant_id,
        bu.code,
        bu.user_type,
        bu.account,
        bu.name,
        bu.real_name,
        bu.avatar,
        bu.email,
        bu.phone,
        bu.birthday
        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
        </where>
    </select>
    <select id="selectUserByDept" resultMap="userResultMap">
@@ -300,7 +274,7 @@
                 - (bu.lng * 3.1415) / 180)) * 6370.996
                 ), 2) &lt;= 1
          and  bu.role_id like concat('%','1727864411451359233','%')
          and bu.is_deleted = 0 and limit 1
          and bu.is_deleted = 0 and bu.status = 2 limit 1
    </select>