| <?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.xzx.gc.system.mapper.PartnerGaodeMapper">  | 
|   <resultMap id="BaseResultMap" type="com.xzx.gc.entity.PartnerGaode">  | 
|     <!--  | 
|       WARNING - @mbg.generated  | 
|     -->  | 
|     <id column="id" jdbcType="INTEGER" property="id" />  | 
|     <result column="partner_id" jdbcType="VARCHAR" property="partnerId" />  | 
|     <result column="partner_key" jdbcType="VARCHAR" property="partnerKey" />  | 
|     <result column="town_id" jdbcType="VARCHAR" property="townId" />  | 
|     <result column="city_id" jdbcType="VARCHAR" property="cityId" />  | 
|     <result column="create_time" jdbcType="VARCHAR" property="createTime" />  | 
|     <result column="del_flag" jdbcType="TINYINT" property="delFlag" />  | 
|     <result column="update_time" jdbcType="VARCHAR" property="updateTime" />  | 
|   </resultMap>  | 
|   | 
|     <select id="queryCityByPartnerId" parameterType="java.util.List" resultType="java.lang.String">  | 
|         select city_id from xzx_partner_gaode where del_flag=0 and partner_id<![CDATA[!= ]]>partner_key  | 
|         <if test="partnerIds!= null and partnerIds.size() != 0">  | 
|             AND partner_id in  | 
|             <foreach collection="partnerIds" index="index" item="id" open="(" separator="," close=")">  | 
|                 #{id}  | 
|             </foreach>  | 
|         </if>  | 
|         group by city_id  | 
|     </select>  | 
|   | 
|     <select id="queryTownIdsByPartnerIdList" resultType="java.lang.String">  | 
|         select town_id from xzx_partner_gaode where del_flag=0  | 
|         <if test="partnerIdList != null and partnerIdList.size() != 0">  | 
|             and partner_id in  | 
|             <foreach collection="partnerIdList" index="index" item="id" separator="," open="(" close=")">  | 
|                 #{id}  | 
|             </foreach>  | 
|         </if>  | 
|   | 
|     </select>  | 
|   | 
| </mapper> |