Helius
2021-06-16 4e51778362c2130598a4c73ec4cebe6629dbc53f
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
30
31
32
33
34
35
36
37
38
39
40
41
42
<?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>