select report_id,report_type,report_yq,report_size,report_bgdh,report_sort,
report_rows,report_minrows,report_maxrows,report_items,
status,create_by,create_time,update_by,update_time,remark from com_report_instr
insert into com_report_instr(
report_id,
report_type,
report_yq,
report_bgdh,
report_size,
report_rows,
report_minrows,
report_maxrows,
report_items,
report_sort,
status,
remark,
create_by,
create_time
)values(
#{reportId},
#{reportType},
#{reportYq},
#{reportBgdh},
#{reportSize},
#{reportRows},
#{reportMinrows},
#{reportMaxrows},
#{reportItems},
#{reportSort},
#{status},
#{remark},
#{createBy},
getdate()
)
delete from com_report_instr where report_id = #{reportId}
delete from com_report_instr where report_id in
#{reportId}
update com_report_instr
set report_type = #{reportType},
report_yq = #{reportYq},
report_bgdh = #{reportBgdh},
report_size = #{reportSize},
report_rows = #{reportRows},
report_minrows = #{reportMinrows},
report_maxrows = #{reportMaxrows},
report_items = #{reportItems},
report_sort = #{reportSort},
status = #{status},
remark = #{remark},
update_by = #{updateBy},
update_time = getdate()
where report_id = #{reportId}