<?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.chaozhanggui.dao.system.dao.TbPlussUserVoiceMapper">
  <resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussUserVoice">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="userId" jdbcType="INTEGER" property="userid" />
    <result column="paySuccess" jdbcType="VARCHAR" property="paysuccess" />
    <result column="payCancel" jdbcType="VARCHAR" property="paycancel" />
    <result column="memberCharge" jdbcType="VARCHAR" property="membercharge" />
    <result column="memberConsume" jdbcType="VARCHAR" property="memberconsume" />
    <result column="deliveryOrder" jdbcType="VARCHAR" property="deliveryorder" />
    <result column="storeOrder" jdbcType="VARCHAR" property="storeorder" />
    <result column="urge" jdbcType="VARCHAR" property="urge" />
  </resultMap>
  <sql id="Base_Column_List">
    id, userId, paySuccess, payCancel, memberCharge, memberConsume, deliveryOrder, storeOrder, 
    urge
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from tb_pluss_user_voice
    where id = #{id,jdbcType=INTEGER}
  </select>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from tb_pluss_user_voice
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussUserVoice">
    insert into tb_pluss_user_voice (id, userId, paySuccess, 
      payCancel, memberCharge, memberConsume, 
      deliveryOrder, storeOrder, urge
      )
    values (#{id,jdbcType=INTEGER}, #{userid,jdbcType=INTEGER}, #{paysuccess,jdbcType=VARCHAR}, 
      #{paycancel,jdbcType=VARCHAR}, #{membercharge,jdbcType=VARCHAR}, #{memberconsume,jdbcType=VARCHAR}, 
      #{deliveryorder,jdbcType=VARCHAR}, #{storeorder,jdbcType=VARCHAR}, #{urge,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussUserVoice">
    insert into tb_pluss_user_voice
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="userid != null">
        userId,
      </if>
      <if test="paysuccess != null">
        paySuccess,
      </if>
      <if test="paycancel != null">
        payCancel,
      </if>
      <if test="membercharge != null">
        memberCharge,
      </if>
      <if test="memberconsume != null">
        memberConsume,
      </if>
      <if test="deliveryorder != null">
        deliveryOrder,
      </if>
      <if test="storeorder != null">
        storeOrder,
      </if>
      <if test="urge != null">
        urge,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=INTEGER},
      </if>
      <if test="userid != null">
        #{userid,jdbcType=INTEGER},
      </if>
      <if test="paysuccess != null">
        #{paysuccess,jdbcType=VARCHAR},
      </if>
      <if test="paycancel != null">
        #{paycancel,jdbcType=VARCHAR},
      </if>
      <if test="membercharge != null">
        #{membercharge,jdbcType=VARCHAR},
      </if>
      <if test="memberconsume != null">
        #{memberconsume,jdbcType=VARCHAR},
      </if>
      <if test="deliveryorder != null">
        #{deliveryorder,jdbcType=VARCHAR},
      </if>
      <if test="storeorder != null">
        #{storeorder,jdbcType=VARCHAR},
      </if>
      <if test="urge != null">
        #{urge,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussUserVoice">
    update tb_pluss_user_voice
    <set>
      <if test="userid != null">
        userId = #{userid,jdbcType=INTEGER},
      </if>
      <if test="paysuccess != null">
        paySuccess = #{paysuccess,jdbcType=VARCHAR},
      </if>
      <if test="paycancel != null">
        payCancel = #{paycancel,jdbcType=VARCHAR},
      </if>
      <if test="membercharge != null">
        memberCharge = #{membercharge,jdbcType=VARCHAR},
      </if>
      <if test="memberconsume != null">
        memberConsume = #{memberconsume,jdbcType=VARCHAR},
      </if>
      <if test="deliveryorder != null">
        deliveryOrder = #{deliveryorder,jdbcType=VARCHAR},
      </if>
      <if test="storeorder != null">
        storeOrder = #{storeorder,jdbcType=VARCHAR},
      </if>
      <if test="urge != null">
        urge = #{urge,jdbcType=VARCHAR},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussUserVoice">
    update tb_pluss_user_voice
    set userId = #{userid,jdbcType=INTEGER},
      paySuccess = #{paysuccess,jdbcType=VARCHAR},
      payCancel = #{paycancel,jdbcType=VARCHAR},
      memberCharge = #{membercharge,jdbcType=VARCHAR},
      memberConsume = #{memberconsume,jdbcType=VARCHAR},
      deliveryOrder = #{deliveryorder,jdbcType=VARCHAR},
      storeOrder = #{storeorder,jdbcType=VARCHAR},
      urge = #{urge,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>