101captain
2022-04-20 e851d0f164b575f20a7f1d05a7ee9123c511c8fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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="com.panzhihua.service_community.dao.ComAreaTownCommunityDao">
 
    <resultMap type="com.panzhihua.service_community.entity.ComAreaTownCommunity"
               id="ComAreaTownCommunityBaseResultMap">
        <result property="id" column="id"/>
        <result property="area" column="area"/>
        <result property="town" column="town"/>
        <result property="community" column="community"/>
    </resultMap>
 
    <select id="selectArea" resultType="com.panzhihua.common.model.vos.community.acid.ComAreaCounty">
        select distinct area as value from com_area_town_community
    </select>
 
    <select id="selectTown" resultType="com.panzhihua.common.model.vos.community.acid.ComAreaCounty">
        select distinct town as value from com_area_town_community where area =#{area}
    </select>
 
    <select id="selectCommunity" resultType="com.panzhihua.common.model.vos.community.acid.ComAreaCounty">
        select distinct community as value from com_area_town_community where town =#{town}
    </select>
 
</mapper>