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
SELECT seq_gen_table_column.NEXTVAL as columnId FROM DUAL
insert into gen_table_column (
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
)values(
#{columnId},
#{tableId},
#{columnName},
#{columnComment},
#{columnType},
#{javaType},
#{javaField},
#{isPk},
#{isIncrement},
#{isRequired},
#{isInsert},
#{isEdit},
#{isList},
#{isQuery},
#{queryType},
#{htmlType},
#{dictType},
#{sort},
#{createBy},
sysdate
)
update gen_table_column
column_comment = #{columnComment},
java_type = #{javaType},
java_field = #{javaField},
is_insert = #{isInsert,jdbcType=CHAR},
is_edit = #{isEdit,jdbcType=CHAR},
is_list = #{isList,jdbcType=CHAR},
is_query = #{isQuery,jdbcType=CHAR},
is_required = #{isRequired,jdbcType=CHAR},
query_type = #{queryType},
html_type = #{htmlType},
dict_type = #{dictType},
sort = #{sort},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = sysdate
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}