mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
26
27
28
29
<?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,community_id from com_area_town_community where town =#{town} <if test="area==null or area ==''"> and community !='学园社区'</if>
    </select>
 
    <select id="selectDistinctTown" resultType="String">
        select distinct town from com_area_town_community where area=#{area}
    </select>
 
</mapper>