linwe
2024-08-07 06df33f156924c564c17b11fdb96c5bb298a810d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.modules.grid.mapper.GridRangeMapper">
 
    <!--自定义分页查询-->
    <select id="selectGridRangePage" resultType="org.springblade.modules.grid.vo.GridRangeVO">
        select * from jczz_grid_range where 1=1
    </select>
 
    <!--查询test 数据表数据-->
    <select id="getTestGridData" resultType="org.springblade.modules.grid.vo.GridVO">
        select grid as gridName,SUBSTRING_INDEX(area, "-", -1) as communityName,std_id as principal from jczz_test
    </select>
 
    <!--根据房屋查询对应的小区-->
    <select id="getDistrictIdByHouseCode" resultType="java.lang.String">
        SELECT jd.id
        FROM jczz_district jd
        LEFT JOIN jczz_doorplate_address jda ON jda.aoi_code = jd.aoi_code
        WHERE jda.address_code = #{houseCode}
    </select>
 
</mapper>