UPDATE m_archive_tree SET is_upload_file_display_configuration_tree = 1 WHERE id IN #{diffRent} AND is_deleted = 0 AND status = 1 UPDATE m_archive_tree SET is_upload_file_display_configuration_tree = 0 WHERE id IN #{diffRent} AND is_deleted = 0 AND status = 1 UPDATE m_archive_tree SET is_upload_file_display_configuration_tree = 0 WHERE node_type = 2 AND is_deleted = 0 AND status = 1 update m_archive_tree set archive_auto_node_id = #{archiveAutoNodeId} where is_deleted = 0 and ancestors like concat('', #{ancestors}, '%'); update m_archive_tree set archive_auto_type= #{archiveAutoType} ,archive_auto_group_id=#{archiveAutoGroupId}, archive_auto_group_select=0 where is_deleted = 0 and ancestors like concat('', #{ancestors}, '%') /*最高并卷规则不能覆盖 分类并卷规则,单独组卷规则*/ and (archive_auto_type != 2 and archive_auto_type != 3 or archive_auto_type is null) /*分类并卷规则不能覆盖单独组卷规则*/ and (archive_auto_type != 3 or archive_auto_type is null) update m_archive_tree set archive_auto_type = null, archive_auto_group_select =NULL where is_deleted = 0 and ancestors like concat('', #{ancestors}, '%') and archive_auto_type = 1 and archive_auto_node_id is NULL or id = #{nodeId}; update m_archive_tree set archive_auto_node_id = NULL where is_deleted = 0 and ancestors like concat('', #{ancestors}, '%') or id = #{nodeId}; update m_archive_tree set archive_auto_type = NULL, archive_auto_group_select =NULL where is_deleted = 0 and ancestors like concat('', #{ancestors}, '%') /*取消规则 只取消规则与自己一致的*/ and archive_auto_type = #{archiveAutoType} or id = #{nodeId}; update m_archive_tree set /*取消规则 恢复默认规则 不需要设置为null,如果最高并卷节点取消规则,archive_auto_node_id会为空,相当于无规则不会进到自动组卷流程*/ archive_auto_type = 1, archive_auto_group_select =NULL where is_deleted = 0 and ancestors like concat('', #{ancestors}, '%') /*取消规则 只取消规则与自己一致的*/ and archive_auto_type = #{archiveAutoType} or id = #{nodeId}; /*取消单个节点的分类并卷规则*/ update m_archive_tree set /*取消规则 恢复默认规则 不需要设置为null,如果最高并卷节点取消规则,archive_auto_node_id会为空,相当于无规则不会进到自动组卷流程*/ archive_auto_type = 1, archive_auto_group_id = NULL, archive_auto_group_select =NULL where is_deleted = 0 and ancestors like concat('', #{ancestors}, '%') /*取消规则 只取消规则与自己一致的*/ and archive_auto_type = #{archiveAutoType} or id = #{nodeId}; /**取消同一组的分类并卷规则*/ update m_archive_tree set archive_auto_type = 1, archive_auto_group_id = NULL, archive_auto_group_select =NULL where is_deleted = 0 and archive_auto_group_id = #{archiveAutoGroupId}