update 标签更新
This commit is contained in:
@@ -137,94 +137,36 @@
|
||||
<update id="updateAllById">
|
||||
update laws_tag
|
||||
<set>
|
||||
<if test="updated.isModel != null and updated.isModel != ''">
|
||||
is_model = #{updated.isModel},
|
||||
</if>
|
||||
<if test="updated.dbFieldTxt != null and updated.dbFieldTxt != ''">
|
||||
db_field_txt = #{updated.dbFieldTxt},
|
||||
</if>
|
||||
<if test="updated.dbFieldEnName != null and updated.dbFieldEnName != ''">
|
||||
db_field_en_name = #{updated.dbFieldEnName},
|
||||
</if>
|
||||
<if test="updated.fieldShowType != null and updated.fieldShowType != ''">
|
||||
field_show_type = #{updated.fieldShowType},
|
||||
</if>
|
||||
<if test="updated.dbLength != null">
|
||||
db_length = #{updated.dbLength},
|
||||
</if>
|
||||
<if test="updated.orderNum != null">
|
||||
order_num = #{updated.orderNum},
|
||||
</if>
|
||||
<if test="updated.fieldMustInput != null and updated.fieldMustInput != ''">
|
||||
field_must_input = #{updated.fieldMustInput},
|
||||
</if>
|
||||
<if test="updated.isShowForm != null">
|
||||
is_show_form = #{updated.isShowForm},
|
||||
</if>
|
||||
<if test="updated.isShowList != null">
|
||||
is_show_list = #{updated.isShowList},
|
||||
</if>
|
||||
<if test="updated.isReadOnly != null">
|
||||
is_read_only = #{updated.isReadOnly},
|
||||
</if>
|
||||
<if test="updated.showArea != null and updated.showArea != ''">
|
||||
show_area = #{updated.showArea},
|
||||
</if>
|
||||
<if test="updated.isQuery != null">
|
||||
is_query = #{updated.isQuery},
|
||||
</if>
|
||||
<if test="updated.isShowLawsList != null">
|
||||
is_show_laws_list = #{updated.isShowLawsList},
|
||||
</if>
|
||||
<if test="updated.isShowSearch != null">
|
||||
is_show_search = #{updated.isShowSearch},
|
||||
</if>
|
||||
<if test="updated.delFlag != null">
|
||||
del_flag = #{updated.delFlag},
|
||||
</if>
|
||||
<if test="updated.tableName != null and updated.tableName != ''">
|
||||
table_name = #{updated.tableName},
|
||||
</if>
|
||||
<if test="updated.dbFieldName != null and updated.dbFieldName != ''">
|
||||
db_field_name = #{updated.dbFieldName},
|
||||
</if>
|
||||
<if test="updated.dbFieldNameOld != null and updated.dbFieldNameOld != ''">
|
||||
db_field_name_old = #{updated.dbFieldNameOld},
|
||||
</if>
|
||||
<if test="updated.dictId != null and updated.dictId != ''">
|
||||
dict_id = #{updated.dictId},
|
||||
</if>
|
||||
<if test="updated.dictField != null and updated.dictField != ''">
|
||||
dict_field = #{updated.dictField},
|
||||
</if>
|
||||
<if test="updated.dictTable != null and updated.dictTable != ''">
|
||||
dict_table = #{updated.dictTable},
|
||||
</if>
|
||||
<if test="updated.dictText != null and updated.dictText != ''">
|
||||
dict_text = #{updated.dictText},
|
||||
</if>
|
||||
<if test="updated.sortFlag != null">
|
||||
sort_flag = #{updated.sortFlag},
|
||||
</if>
|
||||
<if test="updated.isShowFormCreate != null">
|
||||
is_show_form_create = #{updated.isShowFormCreate},
|
||||
</if>
|
||||
<if test="updated.dbIsKey != null">
|
||||
db_is_key = #{updated.dbIsKey},
|
||||
</if>
|
||||
<if test="updated.dbIsNull != null">
|
||||
db_is_null = #{updated.dbIsNull},
|
||||
</if>
|
||||
<if test="updated.dbPointLength != null">
|
||||
db_point_length = #{updated.dbPointLength},
|
||||
</if>
|
||||
<if test="updated.dbType != null and updated.dbType != ''">
|
||||
db_type = #{updated.dbType},
|
||||
</if>
|
||||
<if test="updated.fieldHref != null and updated.fieldHref != ''">
|
||||
field_href = #{updated.fieldHref},
|
||||
</if>
|
||||
is_model = #{updated.isModel},
|
||||
db_field_txt = #{updated.dbFieldTxt},
|
||||
db_field_en_name = #{updated.dbFieldEnName},
|
||||
field_show_type = #{updated.fieldShowType},
|
||||
db_length = #{updated.dbLength},
|
||||
order_num = #{updated.orderNum},
|
||||
field_must_input = #{updated.fieldMustInput},
|
||||
is_show_form = #{updated.isShowForm},
|
||||
is_show_list = #{updated.isShowList},
|
||||
is_read_only = #{updated.isReadOnly},
|
||||
show_area = #{updated.showArea},
|
||||
is_query = #{updated.isQuery},
|
||||
is_show_laws_list = #{updated.isShowLawsList},
|
||||
is_show_search = #{updated.isShowSearch},
|
||||
del_flag = #{updated.delFlag},
|
||||
table_name = #{updated.tableName},
|
||||
db_field_name = #{updated.dbFieldName},
|
||||
db_field_name_old = #{updated.dbFieldNameOld},
|
||||
dict_id = #{updated.dictId},
|
||||
dict_field = #{updated.dictField},
|
||||
dict_table = #{updated.dictTable},
|
||||
dict_text = #{updated.dictText},
|
||||
sort_flag = #{updated.sortFlag},
|
||||
is_show_form_create = #{updated.isShowFormCreate},
|
||||
db_is_key = #{updated.dbIsKey},
|
||||
db_is_null = #{updated.dbIsNull},
|
||||
db_point_length = #{updated.dbPointLength},
|
||||
db_type = #{updated.dbType},
|
||||
field_href = #{updated.fieldHref},
|
||||
</set>
|
||||
where id=#{updated.id}
|
||||
where id = #{updated.id}
|
||||
</update>
|
||||
</mapper>
|
||||
+1
-1
@@ -179,7 +179,7 @@ public class ILawsTagServiceImpl extends ServiceImpl<LawsTagMapper, LawsTag> imp
|
||||
}
|
||||
executeDDL(lawsTag,"modify");
|
||||
lawsTag.setDbFieldNameOld(dbFieldName);
|
||||
saveOrUpdate(lawsTag);
|
||||
lawsTagMapper.updateAllById(lawsTag);
|
||||
}
|
||||
|
||||
private void executeDDL(LawsTag lawsTag, String modifyOrAdd) {
|
||||
|
||||
Reference in New Issue
Block a user