select report_bgdh,report_type,report_code,report_name,report_optiontype,report_defvalue,report_sort,
status,create_by,create_time,update_by,update_time,remark from com_report_dict
insert into com_report_dict(
report_bgdh,
report_type,
report_code,
report_name,
report_optiontype,
report_defvalue,
report_sort,
status,
remark,
create_by,
create_time
)values(
#{reportBgdh},
#{reportType},
#{reportCode},
#{reportName},
#{reportOptiontype},
#{reportDefvalue},
#{reportSort},
#{status},
#{remark},
#{createBy},
getdate()
)
delete from com_report_dict where report_bgdh = #{reportBgdh}
delete from com_report_dict where report_bgdh in
#{reportBgdh}
update com_report_dict
report_type = #{reportType},
report_code = #{reportCode},
report_name = #{reportName},
report_optiontype = #{reportOptiontype},
report_defvalue = #{reportDefvalue},
report_sort = #{reportSort},
status = #{status},
remark = #{remark},
update_by = #{updateBy},
update_time = getdate()
where report_bgdh = #{reportBgdh}