select column_id, table_id, column_name, column_comment, column_type, java_type, java_field, is_pk, is_increment, is_required, is_insert, is_edit, is_list, is_query, query_type, html_type, dict_type, sort, create_by, create_time, update_by, update_time from gen_table_column
insert into gen_table_column (
table_id,
column_name,
column_comment,
column_type,
java_type,
java_field,
is_pk,
is_increment,
is_required,
is_insert,
is_edit,
is_list,
is_query,
query_type,
html_type,
dict_type,
sort,
create_by,
create_time
)values(
#{tableId},
#{columnName},
#{columnComment},
#{columnType},
#{javaType},
#{javaField},
#{isPk},
#{isIncrement},
#{isRequired},
#{isInsert},
#{isEdit},
#{isList},
#{isQuery},
#{queryType},
#{htmlType},
#{dictType},
#{sort},
#{createBy},
getdate()
)
update gen_table_column
is_insert = #{isInsert},
is_edit = #{isEdit},
is_list = #{isList},
is_query = #{isQuery},
is_required = #{isRequired},
column_comment = #{columnComment},
java_type = #{javaType},
java_field = #{javaField},
query_type = #{queryType},
html_type = #{htmlType},
dict_type = #{dictType},
sort = #{sort},
update_by = #{updateBy},
update_time = getdate()
where column_id = #{columnId}
delete from gen_table_column where table_id in
#{tableId}
delete from gen_table_column where column_id in
#{item.columnId}