WeixinBindPrizeMapper.xml
1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?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>