id, uid, moment_id, player_id, moment_uid, from_uid, type, read_status, create_date,
update_date, context
delete from moment_msg_record
where id = #{id,jdbcType=BIGINT}
SELECT LAST_INSERT_ID()
insert into moment_msg_record (uid, moment_id, player_id,
moment_uid, from_uid, type,
read_status, create_date, update_date,
context)
values (#{uid,jdbcType=BIGINT}, #{momentId,jdbcType=BIGINT}, #{playerId,jdbcType=BIGINT},
#{momentUid,jdbcType=BIGINT}, #{fromUid,jdbcType=BIGINT}, #{type,jdbcType=BIT},
#{readStatus,jdbcType=BIT}, #{createDate,jdbcType=TIMESTAMP}, #{updateDate,jdbcType=TIMESTAMP},
#{context,jdbcType=VARCHAR})
SELECT LAST_INSERT_ID()
insert into moment_msg_record
uid,
moment_id,
player_id,
moment_uid,
from_uid,
type,
read_status,
create_date,
update_date,
context,
#{uid,jdbcType=BIGINT},
#{momentId,jdbcType=BIGINT},
#{playerId,jdbcType=BIGINT},
#{momentUid,jdbcType=BIGINT},
#{fromUid,jdbcType=BIGINT},
#{type,jdbcType=BIT},
#{readStatus,jdbcType=BIT},
#{createDate,jdbcType=TIMESTAMP},
#{updateDate,jdbcType=TIMESTAMP},
#{context,jdbcType=VARCHAR},
update moment_msg_record
uid = #{uid,jdbcType=BIGINT},
moment_id = #{momentId,jdbcType=BIGINT},
player_id = #{playerId,jdbcType=BIGINT},
moment_uid = #{momentUid,jdbcType=BIGINT},
from_uid = #{fromUid,jdbcType=BIGINT},
type = #{type,jdbcType=BIT},
read_status = #{readStatus,jdbcType=BIT},
create_date = #{createDate,jdbcType=TIMESTAMP},
update_date = #{updateDate,jdbcType=TIMESTAMP},
context = #{context,jdbcType=VARCHAR},
where id = #{id,jdbcType=BIGINT}
update moment_msg_record
set uid = #{uid,jdbcType=BIGINT},
moment_id = #{momentId,jdbcType=BIGINT},
player_id = #{playerId,jdbcType=BIGINT},
moment_uid = #{momentUid,jdbcType=BIGINT},
from_uid = #{fromUid,jdbcType=BIGINT},
type = #{type,jdbcType=BIT},
read_status = #{readStatus,jdbcType=BIT},
create_date = #{createDate,jdbcType=TIMESTAMP},
update_date = #{updateDate,jdbcType=TIMESTAMP},
context = #{context,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}