修复 完全更新sql 为null的字段也更新替换掉了原有的""字段,

导致更新过的字段都认为配置了字典类型
pull/62/head
luozuanshi 4 years ago
parent 60acd607a9
commit 96bc882cfd

@ -92,20 +92,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<update id="updateGenTableColumn" parameterType="GenTableColumn">
update gen_table_column
<set>
column_comment = #{columnComment},
column_type = #{columnType},
java_type = #{javaType},
java_field = #{javaField},
is_insert = #{isInsert},
is_edit = #{isEdit},
is_list = #{isList},
is_query = #{isQuery},
is_required = #{isRequired},
query_type = #{queryType},
html_type = #{htmlType},
dict_type = #{dictType},
sort = #{sort},
update_by = #{updateBy},
<if test="columnComment != null and columnComment != ''">column_comment = #{columnComment},</if>
<if test="columnType != null and columnType != ''">column_type = #{columnType},</if>
<if test="javaType != null and javaType != ''">java_type = #{javaType},</if>
<if test="javaField != null and javaField != ''">java_field = #{javaField},</if>
<if test="isInsert != null and isInsert != ''">is_insert = #{isInsert},</if>
<if test="isEdit != null and isEdit != ''">is_edit = #{isEdit},</if>
<if test="isList != null and isList != ''">is_list = #{isList},</if>
<if test="isQuery != null and isQuery != ''">is_query = #{isQuery},</if>
<if test="isRequired != null and isRequired != ''"> is_required = #{isRequired},</if>
<if test="queryType != null and queryType != ''"> query_type = #{queryType},</if>
<if test="htmlType != null and htmlType != ''"> html_type = #{htmlType},</if>
<if test="dictType != null and dictType != ''"> dict_type = #{dictType},</if>
<if test="sort != null and sort != ''"> sort = #{sort},</if>
<if test="updateBy != null and updateBy != ''"> update_by = #{updateBy},</if>
update_time = sysdate()
</set>
where column_id = #{columnId}

Loading…
Cancel
Save