select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, tpl_web_type, package_name, module_name, business_name, function_name, function_author, gen_type, gen_path, options, create_by, create_time, update_by, update_time, remark from gen_table
insert into gen_table (
table_name,
table_comment,
class_name,
tpl_category,
tpl_web_type,
package_name,
module_name,
business_name,
function_name,
function_author,
gen_type,
gen_path,
remark,
create_by,
create_time
)values(
#{tableName},
#{tableComment},
#{className},
#{tplCategory},
#{tplWebType},
#{packageName},
#{moduleName},
#{businessName},
#{functionName},
#{functionAuthor},
#{genType},
#{genPath},
#{remark},
#{createBy},
sysdate()
)
update gen_table
table_name = #{tableName},
table_comment = #{tableComment},
sub_table_name = #{subTableName},
sub_table_fk_name = #{subTableFkName},
class_name = #{className},
function_author = #{functionAuthor},
gen_type = #{genType},
gen_path = #{genPath},
tpl_category = #{tplCategory},
tpl_web_type = #{tplWebType},
package_name = #{packageName},
module_name = #{moduleName},
business_name = #{businessName},
function_name = #{functionName},
options = #{options},
update_by = #{updateBy},
remark = #{remark},
update_time = sysdate()
where table_id = #{tableId}
delete from gen_table where table_id in
#{tableId}