t.id
, t.create_time
, t.update_time
, t.creator
, t.delete_type
, t.tenant_key
, t.report_ids
, t.start_time
, t.end_time
, t.push_channel
, t.email_account
, t.mark
, t.push_title
, t.email_account_id
, t.remind
INSERT INTO hrsa_report_push
id,
create_time,
update_time,
creator,
delete_type,
tenant_key,
report_ids,
start_time,
end_time,
push_channel,
email_account,
mark,
push_title,
email_account_id,
remind,
#{id},
#{createTime},
#{updateTime},
#{creator},
#{deleteType},
#{tenantKey},
#{reportIds},
#{startTime},
#{endTime},
#{pushChannel},
#{emailAccount},
#{mark},
#{pushTitle},
#{emailAccountId},
#{remind},
UPDATE hrsa_report_push
create_time=#{createTime},
update_time=#{updateTime},
creator=#{creator},
delete_type=#{deleteType},
tenant_key=#{tenantKey},
report_ids=#{reportIds},
start_time=#{startTime},
end_time=#{endTime},
push_channel=#{pushChannel},
email_account=#{emailAccount},
mark=#{mark},
push_title=#{pushTitle},
email_account_id=#{emailAccountId},
remind=#{remind},
WHERE id = #{id} AND delete_type = 0
UPDATE hrsa_report_push
create_time=#{createTime},
update_time=#{updateTime},
creator=#{creator},
delete_type=#{deleteType},
tenant_key=#{tenantKey},
report_ids=#{reportIds},
start_time=#{startTime},
end_time=#{endTime},
push_channel=#{pushChannel},
email_account=#{emailAccount},
mark=#{mark},
push_title=#{pushTitle},
email_account_id=#{emailAccountId},
remind=#{remind},
WHERE id = #{id} AND delete_type = 0
UPDATE hrsa_report_push
SET delete_type=1
WHERE id = #{id} AND delete_type = 0