id, module_name, mark, remark, revision, create_time, modify_time, status n.id, n.module_name, n.mark, n.remark, n.revision, n.create_time, n.modify_time, n.status, t.id as item_id, t.item_code, t.item_value, t.item_desc, t.item_sort, t.status as item_status, t.type LEFT JOIN sys_data_dictionary_item t ON t.dictionary_id = n.id and t.status= #{DEL_FLAG_NORMAL} insert into sys_data_dictionary_name (module_name, mark, remark, revision, create_time, modify_time, status) values ( #{moduleName,jdbcType=VARCHAR}, #{mark,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{revision,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}) insert into sys_data_dictionary_item ( item_code, item_value, item_desc, item_sort, status, type, dictionary_id) values (#{itemCode,jdbcType=VARCHAR}, #{itemValue,jdbcType=VARCHAR}, #{itemDesc,jdbcType=VARCHAR}, #{itemSort,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{dictionaryId,jdbcType=INTEGER}) delete from sys_data_dictionary_name where id = #{dictId} delete from sys_data_dictionary_item where dictionary_id = #{dictId} update sys_data_dictionary_name set module_name = #{moduleName,jdbcType=VARCHAR}, mark = #{mark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR}, revision = #{revision,jdbcType=VARCHAR}, modify_time = #{modifyTime,jdbcType=TIMESTAMP}, status = #{status,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}