<?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.hzya.frame.bip.v3.v2207.dao.impl.BipSupplierDetailsDaoImpl">
	<resultMap id="get-BipSupplierDetailsEntity-result" type="com.hzya.frame.bip.v3.v2207.entity.BipSupplierDetailsEntity">
		<result property="code" column="code" />
		<result property="name" column="name" />
		<result property="splitbank" column="splitbank" />
		<result property="bankaccno" column="bankaccno" />
		<result property="tripartiteId" column="tripartiteId"></result>
		<result property="combinno" column="combinno"></result>
	</resultMap>


	<sql id="BipSupplierDetailsEntity_Base_Column_List">
		splitbank,bankaccno,combinno,name,code
	</sql>

	<!--通过ID获取数据 -->
	<select id="entity_get" resultMap="get-BipSupplierDetailsEntity-result">
		select
		<include refid="BipSupplierDetailsEntity_Base_Column_List" />
		from BD_SUPPLIER where pk_supplier = #{pk_supplier} and sdr='0'
	</select>


	<!-- 查询 采用==查询 -->
	<select id="thirdInterfaceGetSupplierDetails" resultMap="get-BipSupplierDetailsEntity-result" parameterType="com.hzya.frame.bip.v3.v2207.entity.BipSupplierDetailsEntity">
		select
		<include refid="BipSupplierDetailsEntity_Base_Column_List" />
		FROM db_customerbank
		<trim prefix="where" prefixOverrides="and">
			<if test="code != null and code !=''">code=#{code}</if>
			<if test="name != null and name !='' "> and name = #{name}</if>
			<if test="bankaccno != null and bankaccno !='' "> and bankaccno = #{bankaccno}</if>
			<if test="splitbank != null and splitbank !='' "> and splitbank = #{splitbank}</if>
			<if test="combinno != null and combinno !='' "> and combinno = #{combinno}</if>
		</trim>
	</select>




</mapper>

