select table_id, table_name, table_comment, sub_table_name, sub_table_fk_name, class_name, tpl_category, 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,
package_name,
module_name,
business_name,
function_name,
function_author,
gen_type,
gen_path,
remark,
create_by,
create_time
)values(
#{tableName},
#{tableComment},
#{className},
#{tplCategory},
#{packageName},
#{moduleName},
#{businessName},
#{functionName},
#{functionAuthor},
#{genType},
#{genPath},
#{remark},
#{createBy},
sysdate()
)
${sql}
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},
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}