insert into gen_table_column
table_id,column_name,column_comment,column_type,column_length,column_scale,java_type,java_field,is_pk,is_increment,is_required,is_regular,is_insert,is_edit,is_list,is_query,query_type,html_type,dict_type,sort,create_by,create_time,#{tableId},#{columnName},#{columnComment},#{columnType},#{columnLength},#{columnScale},#{javaType},#{javaField},#{isPk},#{isIncrement},#{isRequired},#{isRegular},#{isInsert},#{isEdit},#{isList},#{isQuery},#{queryType},#{htmlType},#{dictType},#{sort},#{createBy},#{createTime},
insert into gen_table_column (
table_id,
column_name,
column_comment,
column_type,
column_length,
column_scale,
java_type,
java_field,
is_pk,
is_increment,
is_required,
is_insert,
is_edit,
is_list,
is_query,
is_regular,
query_type,
html_type,
dict_type,
sort,
create_by,
create_time) values
(#{column.tableId},
#{column.columnName},
#{column.columnComment},
#{column.columnType},
#{column.columnLength},
#{column.columnScale},
#{column.javaType},
#{column.javaField},
#{column.isPk},
#{column.isIncrement},
#{column.isRequired},
#{column.isInsert},
#{column.isEdit},
#{column.isList},
#{column.isQuery},
#{column.isRegular},
#{column.queryType},
#{column.htmlType},
#{column.dictType},
#{column.sort},
#{column.createBy},
#{column.createTime})
update gen_table_column
table_id = #{tableId},`column_name` = #{columnName},column_comment=#{columnComment},column_type=#{columnType},column_length=#{columnLength},column_scale=#{columnScale},java_type=#{javaType},java_field=#{javaField},is_pk=#{isPk},is_increment=#{isIncrement},is_required=#{isRequired},is_regular=#{isRegular},is_insert=#{isInsert},is_edit=#{isEdit},is_list=#{isList},is_query=#{isQuery},query_type=#{queryType},html_type=#{htmlType},dict_type=#{dictType},sort=#{sort},update_by = #{updateBy},update_time = #{updateTime},
where column_id = #{columnId}
update gen_table_column
when column_id = #{item.columnId} then #{item.columnComment}
when column_id = #{item.columnId} then #{item.columnType}
when column_id = #{item.columnId} then #{item.javaType}
when column_id = #{item.columnId} then #{item.javaField}
when column_id = #{item.columnId} then #{item.isPk}
when column_id = #{item.columnId} then #{item.isIncrement}
when column_id = #{item.columnId} then #{item.isRequired}
when column_id = #{item.columnId} then #{item.isRegular}
when column_id = #{item.columnId} then #{item.isInsert}
when column_id = #{item.columnId} then #{item.isEdit}
when column_id = #{item.columnId} then #{item.isList}
when column_id = #{item.columnId} then #{item.isQuery}
when column_id = #{item.columnId} then #{item.queryType}
when column_id = #{item.columnId} then #{item.htmlType}
when column_id = #{item.columnId} then #{item.dictType}
when column_id = #{item.columnId} then #{item.updateBy}
when column_id = #{item.columnId} then #{item.updateTime}
where column_id in
#{item.columnId}
delete from gen_table_column where table_id in
#{tableId}
delete
from gen_table_column
where table_id = #{tableId}
delete from gen_table_column where column_id in
#{id}