id, uid, report_uid, device_id, phone_no, ip, report_type, type, create_date, status
SELECT LAST_INSERT_ID()
insert into user_report_record (uid, report_uid, device_id,
phone_no, ip, report_type,
type, create_date, status
)
values (#{uid,jdbcType=BIGINT}, #{reportUid,jdbcType=BIGINT}, #{deviceId,jdbcType=VARCHAR},
#{phoneNo,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{reportType,jdbcType=CHAR},
#{type,jdbcType=CHAR}, #{createDate,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}
)
SELECT LAST_INSERT_ID()
insert into user_report_record
uid,
report_uid,
device_id,
phone_no,
ip,
report_type,
type,
create_date,
status,
#{uid,jdbcType=BIGINT},
#{reportUid,jdbcType=BIGINT},
#{deviceId,jdbcType=VARCHAR},
#{phoneNo,jdbcType=VARCHAR},
#{ip,jdbcType=VARCHAR},
#{reportType,jdbcType=CHAR},
#{type,jdbcType=CHAR},
#{createDate,jdbcType=TIMESTAMP},
#{status,jdbcType=INTEGER},
update user_report_record
uid = #{uid,jdbcType=BIGINT},
report_uid = #{reportUid,jdbcType=BIGINT},
device_id = #{deviceId,jdbcType=VARCHAR},
phone_no = #{phoneNo,jdbcType=VARCHAR},
ip = #{ip,jdbcType=VARCHAR},
report_type = #{reportType,jdbcType=CHAR},
type = #{type,jdbcType=CHAR},
create_date = #{createDate,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER},
admin_id = #{adminId,jdbcType=INTEGER},
where id = #{id,jdbcType=BIGINT}
update user_report_record
set uid = #{uid,jdbcType=BIGINT},
report_uid = #{reportUid,jdbcType=BIGINT},
device_id = #{deviceId,jdbcType=VARCHAR},
phone_no = #{phoneNo,jdbcType=VARCHAR},
ip = #{ip,jdbcType=VARCHAR},
report_type = #{reportType,jdbcType=CHAR},
type = #{type,jdbcType=CHAR},
create_date = #{createDate,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
delete from user_report_record
where id = #{id,jdbcType=BIGINT}