id, term_id, channel_id, preset_id, photo_org_id,alarm_info, alarm_time, create_time
delete from terminal_img_alarms
where id = #{id,jdbcType=BIGINT}
insert into terminal_img_alarms (id, term_id, channel_id,
preset_id, photo_org_id, alarm_time,
create_time, alarm_info)
values (#{id,jdbcType=BIGINT}, #{termId,jdbcType=INTEGER}, #{channelId,jdbcType=TINYINT},
#{presetId,jdbcType=TINYINT}, #{photoOrgId,jdbcType=INTEGER}, #{alarmTime,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP}, #{alarmInfo,jdbcType=LONGVARCHAR})
insert into terminal_img_alarms
id,
term_id,
channel_id,
preset_id,
photo_org_id,
alarm_time,
create_time,
alarm_info,
#{id,jdbcType=BIGINT},
#{termId,jdbcType=INTEGER},
#{channelId,jdbcType=TINYINT},
#{presetId,jdbcType=TINYINT},
#{photoOrgId,jdbcType=INTEGER},
#{alarmTime,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP},
#{alarmInfo,jdbcType=LONGVARCHAR},
update terminal_img_alarms
term_id = #{termId,jdbcType=INTEGER},
channel_id = #{channelId,jdbcType=TINYINT},
preset_id = #{presetId,jdbcType=TINYINT},
photo_org_id = #{photoOrgId,jdbcType=INTEGER},
alarm_time = #{alarmTime,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
alarm_info = #{alarmInfo,jdbcType=LONGVARCHAR},
where id = #{id,jdbcType=BIGINT}
update terminal_img_alarms
set term_id = #{termId,jdbcType=INTEGER},
channel_id = #{channelId,jdbcType=TINYINT},
preset_id = #{presetId,jdbcType=TINYINT},
photo_org_id = #{photoOrgId,jdbcType=INTEGER},
alarm_time = #{alarmTime,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}