| <?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.user.mapper.PartnerBankMapper">  | 
|   <resultMap id="BaseResultMap" type="com.xzx.gc.entity.PartnerBank">  | 
|     <!--  | 
|       WARNING - @mbg.generated  | 
|     -->  | 
|     <id column="id" jdbcType="INTEGER" property="id" />  | 
|     <result column="bank_no" jdbcType="VARCHAR" property="bankNo" />  | 
|     <result column="bank_name" jdbcType="VARCHAR" property="bankName" />  | 
|     <result column="partner_id" jdbcType="VARCHAR" property="partnerId" />  | 
|     <result column="mobile_phone" jdbcType="VARCHAR" property="mobilePhone" />  | 
|     <result column="open_name" jdbcType="VARCHAR" property="openName" />  | 
|     <result column="id_card" jdbcType="VARCHAR" property="idCard" />  | 
|     <result column="create_time" jdbcType="VARCHAR" property="createTime" />  | 
|     <result column="update_time" jdbcType="VARCHAR" property="updateTime" />  | 
|     <result column="del_flag" jdbcType="VARCHAR" property="delFlag" />  | 
|   </resultMap>  | 
|   | 
|   <select id="queryByBankNo" resultType="java.lang.String">  | 
|   | 
|     select bank_no from xzx_partner_bank where bank_no=#{bankNo}  | 
|   | 
|     <if test="id != null and id != ''">  | 
|       AND id !=#{id}  | 
|     </if>  | 
|   </select>  | 
|   | 
|   | 
|   <select id="queryByBankList" resultType="com.xzx.gc.model.admin.XzxPartnerBankModel">  | 
|   | 
|     select *  | 
|     from xzx_partner_bank  | 
|     where partner_id = #{id} and del_flag = 0  | 
|   </select>  | 
|   | 
|   <select id="queryBankByAccount" resultType="com.xzx.gc.model.admin.XzxPartnerBankModel">  | 
|     select *  | 
|     from xzx_partner_bank  | 
|     where account_id = #{accountNo}  | 
|   </select>  | 
| </mapper> |