<?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.WxRecordMapper" >
  <resultMap id="BaseResultMap" type="com.platform.pojo.WxRecord" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    <id column="id" property="id" jdbcType="INTEGER" />
    <result column="record" property="record" jdbcType="VARCHAR" />
    <result column="sum_money" property="sumMoney" jdbcType="VARCHAR" />
    <result column="tui_total_money" property="tuiTotalMoney" jdbcType="VARCHAR" />
    <result column="zong_dai" property="zongDai" jdbcType="VARCHAR" />
    <result column="shou_total_money" property="shouTotalMoney" jdbcType="VARCHAR" />
  </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="(" suffix=")" prefixOverrides="and" >
            <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 collection="criterion.value" item="listItem" open="(" close=")" 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="(" suffix=")" prefixOverrides="and" >
            <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 collection="criterion.value" item="listItem" open="(" close=")" 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, record, sum_money, tui_total_money, zong_dai, shou_total_money
  </sql>
  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.platform.pojo.WxRecordExample" >
    <!--
      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_record
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
    <if test="orderByClause != null" >
      order by ${orderByClause}
    </if>
  </select>
  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select 
    <include refid="Base_Column_List" />
    from wx_record
    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_record
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <delete id="deleteByExample" parameterType="com.platform.pojo.WxRecordExample" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    delete from wx_record
    <if test="_parameter != null" >
      <include refid="Example_Where_Clause" />
    </if>
  </delete>
  <insert id="insert" parameterType="com.platform.pojo.WxRecord" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into wx_record (id, record, sum_money, 
      tui_total_money, zong_dai, shou_total_money
      )
    values (#{id,jdbcType=INTEGER}, #{record,jdbcType=VARCHAR}, #{sumMoney,jdbcType=VARCHAR}, 
      #{tuiTotalMoney,jdbcType=VARCHAR}, #{zongDai,jdbcType=VARCHAR}, #{shouTotalMoney,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" useGeneratedKeys="true" keyProperty="id" parameterType="com.platform.pojo.WxRecord" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    insert into wx_record
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="record != null" >
        record,
      </if>
      <if test="sumMoney != null" >
        sum_money,
      </if>
      <if test="tuiTotalMoney != null" >
        tui_total_money,
      </if>
      <if test="zongDai != null" >
        zong_dai,
      </if>
      <if test="shouTotalMoney != null" >
        shou_total_money,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=INTEGER},
      </if>
      <if test="record != null" >
        #{record,jdbcType=VARCHAR},
      </if>
      <if test="sumMoney != null" >
        #{sumMoney,jdbcType=VARCHAR},
      </if>
      <if test="tuiTotalMoney != null" >
        #{tuiTotalMoney,jdbcType=VARCHAR},
      </if>
      <if test="zongDai != null" >
        #{zongDai,jdbcType=VARCHAR},
      </if>
      <if test="shouTotalMoney != null" >
        #{shouTotalMoney,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <select id="countByExample" parameterType="com.platform.pojo.WxRecordExample" resultType="java.lang.Integer" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    select count(*) from wx_record
    <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_record
    <set >
      <if test="record.id != null" >
        id = #{record.id,jdbcType=INTEGER},
      </if>
      <if test="record.record != null" >
        record = #{record.record,jdbcType=VARCHAR},
      </if>
      <if test="record.sumMoney != null" >
        sum_money = #{record.sumMoney,jdbcType=VARCHAR},
      </if>
      <if test="record.tuiTotalMoney != null" >
        tui_total_money = #{record.tuiTotalMoney,jdbcType=VARCHAR},
      </if>
      <if test="record.zongDai != null" >
        zong_dai = #{record.zongDai,jdbcType=VARCHAR},
      </if>
      <if test="record.shouTotalMoney != null" >
        shou_total_money = #{record.shouTotalMoney,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_record
    set id = #{record.id,jdbcType=INTEGER},
      record = #{record.record,jdbcType=VARCHAR},
      sum_money = #{record.sumMoney,jdbcType=VARCHAR},
      tui_total_money = #{record.tuiTotalMoney,jdbcType=VARCHAR},
      zong_dai = #{record.zongDai,jdbcType=VARCHAR},
      shou_total_money = #{record.shouTotalMoney,jdbcType=VARCHAR}
    <if test="_parameter != null" >
      <include refid="Update_By_Example_Where_Clause" />
    </if>
  </update>
  <update id="updateByPrimaryKeySelective" parameterType="com.platform.pojo.WxRecord" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update wx_record
    <set >
      <if test="record != null" >
        record = #{record,jdbcType=VARCHAR},
      </if>
      <if test="sumMoney != null" >
        sum_money = #{sumMoney,jdbcType=VARCHAR},
      </if>
      <if test="tuiTotalMoney != null" >
        tui_total_money = #{tuiTotalMoney,jdbcType=VARCHAR},
      </if>
      <if test="zongDai != null" >
        zong_dai = #{zongDai,jdbcType=VARCHAR},
      </if>
      <if test="shouTotalMoney != null" >
        shou_total_money = #{shouTotalMoney,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.platform.pojo.WxRecord" >
    <!--
      WARNING - @mbggenerated
      This element is automatically generated by MyBatis Generator, do not modify.
    -->
    update wx_record
    set record = #{record,jdbcType=VARCHAR},
      sum_money = #{sumMoney,jdbcType=VARCHAR},
      tui_total_money = #{tuiTotalMoney,jdbcType=VARCHAR},
      zong_dai = #{zongDai,jdbcType=VARCHAR},
      shou_total_money = #{shouTotalMoney,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>