...
|
...
|
@@ -4,12 +4,13 @@ |
|
|
<resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.InviteRecord" >
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="inviter_uid" property="inviterUid" jdbcType="INTEGER" />
|
|
|
<result column="inviter_id" property="inviterId" jdbcType="INTEGER" />
|
|
|
<result column="invitee_uid" property="inviteeUid" jdbcType="INTEGER" />
|
|
|
<result column="invite_activity_id" property="inviteActivityId" jdbcType="INTEGER" />
|
|
|
<result column="create_time" property="createTime" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, inviter_uid, invitee_uid, invite_activity_id, create_time
|
|
|
id, inviter_uid,inviter_id, invitee_uid, invite_activity_id, create_time
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
...
|
...
|
@@ -24,53 +25,12 @@ |
|
|
where invitee_uid = #{inviteeUid,jdbcType=INTEGER}
|
|
|
limit 1
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
delete from invite_record
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.yohoufo.dal.order.model.InviteRecord" >
|
|
|
insert into invite_record (id, inviter_uid, invitee_uid,
|
|
|
insert into invite_record (id, inviter_uid,inviter_id, invitee_uid,
|
|
|
invite_activity_id, create_time)
|
|
|
values (#{id,jdbcType=INTEGER}, #{inviterUid,jdbcType=INTEGER}, #{inviteeUid,jdbcType=INTEGER},
|
|
|
values (#{id,jdbcType=INTEGER}, #{inviterUid,jdbcType=INTEGER}, #{inviterId,jdbcType=INTEGER}, #{inviteeUid,jdbcType=INTEGER},
|
|
|
#{inviteActivityId,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yohoufo.dal.order.model.InviteRecord" >
|
|
|
insert into invite_record
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
id,
|
|
|
</if>
|
|
|
<if test="inviterUid != null" >
|
|
|
inviter_uid,
|
|
|
</if>
|
|
|
<if test="inviteeUid != null" >
|
|
|
invitee_uid,
|
|
|
</if>
|
|
|
<if test="inviteActivityId != null" >
|
|
|
invite_activity_id,
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
create_time,
|
|
|
</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="inviterUid != null" >
|
|
|
#{inviterUid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="inviteeUid != null" >
|
|
|
#{inviteeUid,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="inviteActivityId != null" >
|
|
|
#{inviteActivityId,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="createTime != null" >
|
|
|
#{createTime,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.dal.order.model.InviteRecord" >
|
|
|
update invite_record
|
|
|
<set >
|
...
|
...
|
|