WeixinBindPrizeMapper.xml 1.84 KB
<?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.yoho.lottery.dal.WeixinBindPrizeMapper">
  <resultMap id="BaseResultMap" type="com.yoho.lottery.dal.model.WeixinBindPrize">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="create_time" jdbcType="INTEGER" property="createTime" />
    <result column="uid" jdbcType="INTEGER" property="uid" />
    <result column="remark" jdbcType="VARCHAR" property="remark" />
  </resultMap>
  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from weixin_bind_prize
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" parameterType="com.yoho.lottery.dal.model.WeixinBindPrize">
    insert into weixin_bind_prize (id, create_time, uid, 
      remark)
    values (#{id,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER}, 
      #{remark,jdbcType=VARCHAR})
  </insert>
  <update id="updateByPrimaryKey" parameterType="com.yoho.lottery.dal.model.WeixinBindPrize">
    update weixin_bind_prize
    set create_time = #{createTime,jdbcType=INTEGER},
      uid = #{uid,jdbcType=INTEGER},
      remark = #{remark,jdbcType=VARCHAR}
    where id = #{id,jdbcType=INTEGER}
  </update>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select id, create_time, uid, remark
    from weixin_bind_prize
    where id = #{id,jdbcType=INTEGER}
  </select>
  <select id="selectByUid" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select id, create_time, uid, remark
    from weixin_bind_prize
    where uid = #{uid,jdbcType=INTEGER}
  </select>
  <select id="selectAll" resultMap="BaseResultMap">
    select id, create_time, uid, remark
    from weixin_bind_prize
  </select>
</mapper>