id, uid, moment_id, player_id, reason, create_date, update_date, status, type
SELECT LAST_INSERT_ID()
insert into moment_report (uid, moment_id, player_id,
reason, create_date, update_date,
status, type)
values (#{uid,jdbcType=BIGINT}, #{momentId,jdbcType=BIGINT}, #{playerId,jdbcType=BIGINT},
#{reason,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}, #{updateDate,jdbcType=TIMESTAMP},
#{status,jdbcType=TINYINT}, #{type,jdbcType=TINYINT})
SELECT LAST_INSERT_ID()
insert into moment_report
uid,
moment_id,
player_id,
reason,
create_date,
update_date,
status,
type,
admin_id,
#{uid,jdbcType=BIGINT},
#{momentId,jdbcType=BIGINT},
#{playerId,jdbcType=BIGINT},
#{reason,jdbcType=VARCHAR},
#{createDate,jdbcType=TIMESTAMP},
#{updateDate,jdbcType=TIMESTAMP},
#{status,jdbcType=TINYINT},
#{type,jdbcType=TINYINT},
#{adminId},
update moment_report
uid = #{uid,jdbcType=BIGINT},
moment_id = #{momentId,jdbcType=BIGINT},
player_id = #{playerId,jdbcType=BIGINT},
reason = #{reason,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=TIMESTAMP},
update_date = #{updateDate,jdbcType=TIMESTAMP},
status = #{status,jdbcType=TINYINT},
type = #{type,jdbcType=TINYINT},
admin_id = #{adminId},
where id = #{id,jdbcType=BIGINT}
update moment_report
set uid = #{uid,jdbcType=BIGINT},
moment_id = #{momentId,jdbcType=BIGINT},
player_id = #{playerId,jdbcType=BIGINT},
reason = #{reason,jdbcType=VARCHAR},
create_date = #{createDate,jdbcType=TIMESTAMP},
update_date = #{updateDate,jdbcType=TIMESTAMP},
status = #{status,jdbcType=TINYINT},
type = #{type,jdbcType=TINYINT}
where id = #{id,jdbcType=BIGINT}
delete from moment_report
where id = #{id,jdbcType=BIGINT}