<?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.platform.dao.WxAccountDetilMapper">
  <resultMap id="BaseResultMap" type="com.platform.pojo.WxAccountDetil">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="pay_time" jdbcType="VARCHAR" property="payTime" />
    <result column="public_id" jdbcType="VARCHAR" property="publicId" />
    <result column="partner_no" jdbcType="VARCHAR" property="partnerNo" />
    <result column="partner_child" jdbcType="VARCHAR" property="partnerChild" />
    <result column="decv_no" jdbcType="VARCHAR" property="decvNo" />
    <result column="weixin_id" jdbcType="VARCHAR" property="weixinId" />
    <result column="sahnghu_id" jdbcType="VARCHAR" property="sahnghuId" />
    <result column="openid" jdbcType="VARCHAR" property="openid" />
    <result column="trade_type" jdbcType="VARCHAR" property="tradeType" />
    <result column="trade_state" jdbcType="VARCHAR" property="tradeState" />
    <result column="bank" jdbcType="VARCHAR" property="bank" />
    <result column="fee_type" jdbcType="VARCHAR" property="feeType" />
    <result column="total_money" jdbcType="VARCHAR" property="totalMoney" />
    <result column="ucid" jdbcType="VARCHAR" property="ucid" />
    <result column="wt_no" jdbcType="VARCHAR" property="wtNo" />
    <result column="st_no" jdbcType="VARCHAR" property="stNo" />
    <result column="tui_money" jdbcType="VARCHAR" property="tuiMoney" />
    <result column="dai_tui" jdbcType="VARCHAR" property="daiTui" />
    <result column="tui_type" jdbcType="VARCHAR" property="tuiType" />
    <result column="tui_state" jdbcType="VARCHAR" property="tuiState" />
    <result column="product" jdbcType="VARCHAR" property="product" />
    <result column="attach" jdbcType="VARCHAR" property="attach" />
    <result column="shou_fee" jdbcType="VARCHAR" property="shouFee" />
    <result column="fevi" jdbcType="VARCHAR" property="fevi" />
  </resultMap>
  <sql id="Example_Where_Clause">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Update_By_Example_Where_Clause">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <where>
      <foreach collection="example.oredCriteria" item="criteria" separator="or">
        <if test="criteria.valid">
          <trim prefix="(" prefixOverrides="and" suffix=")">
            <foreach collection="criteria.criteria" item="criterion">
              <choose>
                <when test="criterion.noValue">
                  and ${criterion.condition}
                </when>
                <when test="criterion.singleValue">
                  and ${criterion.condition} #{criterion.value}
                </when>
                <when test="criterion.betweenValue">
                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
                </when>
                <when test="criterion.listValue">
                  and ${criterion.condition}
                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
                    #{listItem}
                  </foreach>
                </when>
              </choose>
            </foreach>
          </trim>
        </if>
      </foreach>
    </where>
  </sql>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    id, pay_time, public_id, partner_no, partner_child, decv_no, weixin_id, sahnghu_id, 
    openid, trade_type, trade_state, bank, fee_type, total_money, ucid, wt_no, st_no, 
    tui_money, dai_tui, tui_type, tui_state, product, attach, shou_fee, fevi
  </sql>
  <select id="selectByExample" parameterType="com.platform.pojo.WxAccountDetilExample" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select
    <if test="distinct">
      distinct
    </if>
    <include refid="Base_Column_List" />
    from wx_account_detil
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null">
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from wx_account_detil
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from wx_account_detil
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.platform.pojo.WxAccountDetilExample">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from wx_account_detil
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.platform.pojo.WxAccountDetil">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into wx_account_detil (id, pay_time, public_id, 
      partner_no, partner_child, decv_no, 
      weixin_id, sahnghu_id, openid, 
      trade_type, trade_state, bank, 
      fee_type, total_money, ucid, 
      wt_no, st_no, tui_money, 
      dai_tui, tui_type, tui_state, 
      product, attach, shou_fee, 
      fevi)
    values (#{id,jdbcType=INTEGER}, #{payTime,jdbcType=VARCHAR}, #{publicId,jdbcType=VARCHAR}, 
      #{partnerNo,jdbcType=VARCHAR}, #{partnerChild,jdbcType=VARCHAR}, #{decvNo,jdbcType=VARCHAR}, 
      #{weixinId,jdbcType=VARCHAR}, #{sahnghuId,jdbcType=VARCHAR}, #{openid,jdbcType=VARCHAR}, 
      #{tradeType,jdbcType=VARCHAR}, #{tradeState,jdbcType=VARCHAR}, #{bank,jdbcType=VARCHAR}, 
      #{feeType,jdbcType=VARCHAR}, #{totalMoney,jdbcType=VARCHAR}, #{ucid,jdbcType=VARCHAR}, 
      #{wtNo,jdbcType=VARCHAR}, #{stNo,jdbcType=VARCHAR}, #{tuiMoney,jdbcType=VARCHAR}, 
      #{daiTui,jdbcType=VARCHAR}, #{tuiType,jdbcType=VARCHAR}, #{tuiState,jdbcType=VARCHAR}, 
      #{product,jdbcType=VARCHAR}, #{attach,jdbcType=VARCHAR}, #{shouFee,jdbcType=VARCHAR}, 
      #{fevi,jdbcType=VARCHAR})
  </insert>
  <insert id="insertSelective" keyProperty="id" parameterType="com.platform.pojo.WxAccountDetil" useGeneratedKeys="true">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into wx_account_detil
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="payTime != null">
        pay_time,
      </if>
      <if test="publicId != null">
        public_id,
      </if>
      <if test="partnerNo != null">
        partner_no,
      </if>
      <if test="partnerChild != null">
        partner_child,
      </if>
      <if test="decvNo != null">
        decv_no,
      </if>
      <if test="weixinId != null">
        weixin_id,
      </if>
      <if test="sahnghuId != null">
        sahnghu_id,
      </if>
      <if test="openid != null">
        openid,
      </if>
      <if test="tradeType != null">
        trade_type,
      </if>
      <if test="tradeState != null">
        trade_state,
      </if>
      <if test="bank != null">
        bank,
      </if>
      <if test="feeType != null">
        fee_type,
      </if>
      <if test="totalMoney != null">
        total_money,
      </if>
      <if test="ucid != null">
        ucid,
      </if>
      <if test="wtNo != null">
        wt_no,
      </if>
      <if test="stNo != null">
        st_no,
      </if>
      <if test="tuiMoney != null">
        tui_money,
      </if>
      <if test="daiTui != null">
        dai_tui,
      </if>
      <if test="tuiType != null">
        tui_type,
      </if>
      <if test="tuiState != null">
        tui_state,
      </if>
      <if test="product != null">
        product,
      </if>
      <if test="attach != null">
        attach,
      </if>
      <if test="shouFee != null">
        shou_fee,
      </if>
      <if test="fevi != null">
        fevi,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="payTime != null">
        #{payTime,jdbcType=VARCHAR},
      </if>
      <if test="publicId != null">
        #{publicId,jdbcType=VARCHAR},
      </if>
      <if test="partnerNo != null">
        #{partnerNo,jdbcType=VARCHAR},
      </if>
      <if test="partnerChild != null">
        #{partnerChild,jdbcType=VARCHAR},
      </if>
      <if test="decvNo != null">
        #{decvNo,jdbcType=VARCHAR},
      </if>
      <if test="weixinId != null">
        #{weixinId,jdbcType=VARCHAR},
      </if>
      <if test="sahnghuId != null">
        #{sahnghuId,jdbcType=VARCHAR},
      </if>
      <if test="openid != null">
        #{openid,jdbcType=VARCHAR},
      </if>
      <if test="tradeType != null">
        #{tradeType,jdbcType=VARCHAR},
      </if>
      <if test="tradeState != null">
        #{tradeState,jdbcType=VARCHAR},
      </if>
      <if test="bank != null">
        #{bank,jdbcType=VARCHAR},
      </if>
      <if test="feeType != null">
        #{feeType,jdbcType=VARCHAR},
      </if>
      <if test="totalMoney != null">
        #{totalMoney,jdbcType=VARCHAR},
      </if>
      <if test="ucid != null">
        #{ucid,jdbcType=VARCHAR},
      </if>
      <if test="wtNo != null">
        #{wtNo,jdbcType=VARCHAR},
      </if>
      <if test="stNo != null">
        #{stNo,jdbcType=VARCHAR},
      </if>
      <if test="tuiMoney != null">
        #{tuiMoney,jdbcType=VARCHAR},
      </if>
      <if test="daiTui != null">
        #{daiTui,jdbcType=VARCHAR},
      </if>
      <if test="tuiType != null">
        #{tuiType,jdbcType=VARCHAR},
      </if>
      <if test="tuiState != null">
        #{tuiState,jdbcType=VARCHAR},
      </if>
      <if test="product != null">
        #{product,jdbcType=VARCHAR},
      </if>
      <if test="attach != null">
        #{attach,jdbcType=VARCHAR},
      </if>
      <if test="shouFee != null">
        #{shouFee,jdbcType=VARCHAR},
      </if>
      <if test="fevi != null">
        #{fevi,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.platform.pojo.WxAccountDetilExample" resultType="java.lang.Integer">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from wx_account_detil
    <if test="_parameter != null">
      <include refid="Example_Where_Clause" />
    </if>
  </select>
  <update id="updateByExampleSelective" parameterType="map">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update wx_account_detil
    <set>
      <if test="record.id != null">
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.payTime != null">
        pay_time = #{record.payTime,jdbcType=VARCHAR},
      </if>
      <if test="record.publicId != null">
        public_id = #{record.publicId,jdbcType=VARCHAR},
      </if>
      <if test="record.partnerNo != null">
        partner_no = #{record.partnerNo,jdbcType=VARCHAR},
      </if>
      <if test="record.partnerChild != null">
        partner_child = #{record.partnerChild,jdbcType=VARCHAR},
      </if>
      <if test="record.decvNo != null">
        decv_no = #{record.decvNo,jdbcType=VARCHAR},
      </if>
      <if test="record.weixinId != null">
        weixin_id = #{record.weixinId,jdbcType=VARCHAR},
      </if>
      <if test="record.sahnghuId != null">
        sahnghu_id = #{record.sahnghuId,jdbcType=VARCHAR},
      </if>
      <if test="record.openid != null">
        openid = #{record.openid,jdbcType=VARCHAR},
      </if>
      <if test="record.tradeType != null">
        trade_type = #{record.tradeType,jdbcType=VARCHAR},
      </if>
      <if test="record.tradeState != null">
        trade_state = #{record.tradeState,jdbcType=VARCHAR},
      </if>
      <if test="record.bank != null">
        bank = #{record.bank,jdbcType=VARCHAR},
      </if>
      <if test="record.feeType != null">
        fee_type = #{record.feeType,jdbcType=VARCHAR},
      </if>
      <if test="record.totalMoney != null">
        total_money = #{record.totalMoney,jdbcType=VARCHAR},
      </if>
      <if test="record.ucid != null">
        ucid = #{record.ucid,jdbcType=VARCHAR},
      </if>
      <if test="record.wtNo != null">
        wt_no = #{record.wtNo,jdbcType=VARCHAR},
      </if>
      <if test="record.stNo != null">
        st_no = #{record.stNo,jdbcType=VARCHAR},
      </if>
      <if test="record.tuiMoney != null">
        tui_money = #{record.tuiMoney,jdbcType=VARCHAR},
      </if>
      <if test="record.daiTui != null">
        dai_tui = #{record.daiTui,jdbcType=VARCHAR},
      </if>
      <if test="record.tuiType != null">
        tui_type = #{record.tuiType,jdbcType=VARCHAR},
      </if>
      <if test="record.tuiState != null">
        tui_state = #{record.tuiState,jdbcType=VARCHAR},
      </if>
      <if test="record.product != null">
        product = #{record.product,jdbcType=VARCHAR},
      </if>
      <if test="record.attach != null">
        attach = #{record.attach,jdbcType=VARCHAR},
      </if>
      <if test="record.shouFee != null">
        shou_fee = #{record.shouFee,jdbcType=VARCHAR},
      </if>
      <if test="record.fevi != null">
        fevi = #{record.fevi,jdbcType=VARCHAR},
      </if>
    </set>
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByExample" parameterType="map">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update wx_account_detil
    set id = #{record.id,jdbcType=INTEGER},
      pay_time = #{record.payTime,jdbcType=VARCHAR},
      public_id = #{record.publicId,jdbcType=VARCHAR},
      partner_no = #{record.partnerNo,jdbcType=VARCHAR},
      partner_child = #{record.partnerChild,jdbcType=VARCHAR},
      decv_no = #{record.decvNo,jdbcType=VARCHAR},
      weixin_id = #{record.weixinId,jdbcType=VARCHAR},
      sahnghu_id = #{record.sahnghuId,jdbcType=VARCHAR},
      openid = #{record.openid,jdbcType=VARCHAR},
      trade_type = #{record.tradeType,jdbcType=VARCHAR},
      trade_state = #{record.tradeState,jdbcType=VARCHAR},
      bank = #{record.bank,jdbcType=VARCHAR},
      fee_type = #{record.feeType,jdbcType=VARCHAR},
      total_money = #{record.totalMoney,jdbcType=VARCHAR},
      ucid = #{record.ucid,jdbcType=VARCHAR},
      wt_no = #{record.wtNo,jdbcType=VARCHAR},
      st_no = #{record.stNo,jdbcType=VARCHAR},
      tui_money = #{record.tuiMoney,jdbcType=VARCHAR},
      dai_tui = #{record.daiTui,jdbcType=VARCHAR},
      tui_type = #{record.tuiType,jdbcType=VARCHAR},
      tui_state = #{record.tuiState,jdbcType=VARCHAR},
      product = #{record.product,jdbcType=VARCHAR},
      attach = #{record.attach,jdbcType=VARCHAR},
      shou_fee = #{record.shouFee,jdbcType=VARCHAR},
      fevi = #{record.fevi,jdbcType=VARCHAR}
    <if test="_parameter != null">
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.platform.pojo.WxAccountDetil">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update wx_account_detil
    <set>
      <if test="payTime != null">
        pay_time = #{payTime,jdbcType=VARCHAR},
      </if>
      <if test="publicId != null">
        public_id = #{publicId,jdbcType=VARCHAR},
      </if>
      <if test="partnerNo != null">
        partner_no = #{partnerNo,jdbcType=VARCHAR},
      </if>
      <if test="partnerChild != null">
        partner_child = #{partnerChild,jdbcType=VARCHAR},
      </if>
      <if test="decvNo != null">
        decv_no = #{decvNo,jdbcType=VARCHAR},
      </if>
      <if test="weixinId != null">
        weixin_id = #{weixinId,jdbcType=VARCHAR},
      </if>
      <if test="sahnghuId != null">
        sahnghu_id = #{sahnghuId,jdbcType=VARCHAR},
      </if>
      <if test="openid != null">
        openid = #{openid,jdbcType=VARCHAR},
      </if>
      <if test="tradeType != null">
        trade_type = #{tradeType,jdbcType=VARCHAR},
      </if>
      <if test="tradeState != null">
        trade_state = #{tradeState,jdbcType=VARCHAR},
      </if>
      <if test="bank != null">
        bank = #{bank,jdbcType=VARCHAR},
      </if>
      <if test="feeType != null">
        fee_type = #{feeType,jdbcType=VARCHAR},
      </if>
      <if test="totalMoney != null">
        total_money = #{totalMoney,jdbcType=VARCHAR},
      </if>
      <if test="ucid != null">
        ucid = #{ucid,jdbcType=VARCHAR},
      </if>
      <if test="wtNo != null">
        wt_no = #{wtNo,jdbcType=VARCHAR},
      </if>
      <if test="stNo != null">
        st_no = #{stNo,jdbcType=VARCHAR},
      </if>
      <if test="tuiMoney != null">
        tui_money = #{tuiMoney,jdbcType=VARCHAR},
      </if>
      <if test="daiTui != null">
        dai_tui = #{daiTui,jdbcType=VARCHAR},
      </if>
      <if test="tuiType != null">
        tui_type = #{tuiType,jdbcType=VARCHAR},
      </if>
      <if test="tuiState != null">
        tui_state = #{tuiState,jdbcType=VARCHAR},
      </if>
      <if test="product != null">
        product = #{product,jdbcType=VARCHAR},
      </if>
      <if test="attach != null">
        attach = #{attach,jdbcType=VARCHAR},
      </if>
      <if test="shouFee != null">
        shou_fee = #{shouFee,jdbcType=VARCHAR},
      </if>
      <if test="fevi != null">
        fevi = #{fevi,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.platform.pojo.WxAccountDetil">
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update wx_account_detil
    set pay_time = #{payTime,jdbcType=VARCHAR},
      public_id = #{publicId,jdbcType=VARCHAR},
      partner_no = #{partnerNo,jdbcType=VARCHAR},
      partner_child = #{partnerChild,jdbcType=VARCHAR},
      decv_no = #{decvNo,jdbcType=VARCHAR},
      weixin_id = #{weixinId,jdbcType=VARCHAR},
      sahnghu_id = #{sahnghuId,jdbcType=VARCHAR},
      openid = #{openid,jdbcType=VARCHAR},
      trade_type = #{tradeType,jdbcType=VARCHAR},
      trade_state = #{tradeState,jdbcType=VARCHAR},
      bank = #{bank,jdbcType=VARCHAR},
      fee_type = #{feeType,jdbcType=VARCHAR},
      total_money = #{totalMoney,jdbcType=VARCHAR},
      ucid = #{ucid,jdbcType=VARCHAR},
      wt_no = #{wtNo,jdbcType=VARCHAR},
      st_no = #{stNo,jdbcType=VARCHAR},
      tui_money = #{tuiMoney,jdbcType=VARCHAR},
      dai_tui = #{daiTui,jdbcType=VARCHAR},
      tui_type = #{tuiType,jdbcType=VARCHAR},
      tui_state = #{tuiState,jdbcType=VARCHAR},
      product = #{product,jdbcType=VARCHAR},
      attach = #{attach,jdbcType=VARCHAR},
      shou_fee = #{shouFee,jdbcType=VARCHAR},
      fevi = #{fevi,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>