record_id, uid, gold_num, type, create_time, admin_id
SELECT LAST_INSERT_ID()
insert into official_gold_record (uid, gold_num, type,
create_time, admin_id,remark)
values (#{uid,jdbcType=BIGINT}, #{goldNum,jdbcType=BIGINT}, #{type,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP}, #{adminId,jdbcType=INTEGER},#{remark,jdbcType=VARCHAR})
SELECT LAST_INSERT_ID()
insert into official_gold_record
uid,
gold_num,
type,
create_time,
admin_id,
remark,
#{uid,jdbcType=BIGINT},
#{goldNum,jdbcType=BIGINT},
#{type,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP},
#{adminId,jdbcType=INTEGER},
#{remark,jdbcType=VARCHAR},
update official_gold_record
uid = #{uid,jdbcType=BIGINT},
gold_num = #{goldNum,jdbcType=BIGINT},
type = #{type,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
admin_id = #{adminId, jdbcType=INTEGER},
remark = #{adminId, jdbcType=VARCHAR},
where record_id = #{recordId,jdbcType=INTEGER}
update official_gold_record
set uid = #{uid,jdbcType=BIGINT},
gold_num = #{goldNum,jdbcType=BIGINT},
type = #{type,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
admin_id = #{adminId, jdbcType=INTEGER},
remark = #{remark, jdbcType=VARCHAR}
where record_id = #{recordId,jdbcType=INTEGER}
AND o.create_time between #{beginTime} and #{endTime}
AND u.erban_no = #{erBanNo}
AND o.type = #{type}
AND su.user_name = #{adminName}