Audit information processing method and device, processor and electronic equipment

By acquiring and assessing the needs and conditions for audit information, the problem of audit information not being stored on demand in information management systems has been solved, improving storage efficiency and user experience.

CN116187696BActive Publication Date: 2026-07-03CAXA TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CAXA TECH
Filing Date
2023-02-14
Publication Date
2026-07-03

Smart Images

  • Figure CN116187696B_ABST
    Figure CN116187696B_ABST
Patent Text Reader

Abstract

The application discloses an audit information processing method and device, a processor and an electronic device. The method comprises the following steps: obtaining audit information of each operation in a group of business operations, and judging whether the audit information is configured with audit requirements; in the case that the audit information is configured with the audit requirements, judging whether the audit information meets preset conditions; in the case that the audit information meets the preset conditions, writing the audit information into a target storage device, and determining an audit information state of the audit information; in the case that the audit information states of all the audit information of the group of business operations are obtained, determining an operation state of the group of business operations; and processing all the audit information of the group of business operations according to the operation state. Through the application, the problem that audit information cannot be selectively stored according to user requirements in the related art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information storage, and more specifically, to an audit information processing method, apparatus, processor, and electronic device. Background Technology

[0002] In related technologies, auditing operations in information management systems often employs a fixed configuration approach. Some audit methods are configured to store only fixed types of audit information, lacking the types of audit information required by users. This fails to meet users' security control needs for audit information. Other methods store large amounts of unnecessary audit information, consuming significant hardware resources and resulting in low processing efficiency for large volumes of audit information. For example, if a user performs a batch import of 1000 product drawings, the information management system needs to generate audit information for 4000 objects—1000 drawing objects, 1000 version objects, 1000 issue objects, and 1000 file objects—to audit this batch of operations. This severely impacts the efficiency of batch importing 1000 drawings, leading to a poor user experience.

[0003] There is currently no effective solution to the problem that audit information cannot be selectively stored according to user needs in related technologies. Summary of the Invention

[0004] The main objective of this application is to provide an audit information processing method, apparatus, processor, and electronic device to solve the problem in related technologies that audit information cannot be selectively stored according to user needs.

[0005] To achieve the above objectives, according to one aspect of this application, an audit information processing method is provided. The method includes: acquiring audit information for each operation in a set of business operations, and determining whether the audit information is configured with audit requirements; if the audit information is configured with audit requirements, determining whether the audit information meets preset conditions; if the audit information meets the preset conditions, writing the audit information to a target storage device, and determining the audit information status of the audit information; if the audit information status of all audit information in a set of business operations is acquired, determining the operation status of the set of business operations; and processing all audit information of the set of business operations based on the operation status.

[0006] Optionally, obtaining audit information for each operation in a set of business operations includes: obtaining the batch number of the set of business operations; determining the operation method, operation type, and object number of each operation in the set of business operations; and determining the object number, operation object, operation method, operation type, and batch number as the audit information of the operation.

[0007] Optionally, determining whether audit information is configured with audit requirements includes: determining whether the operation type requires auditing; if the operation type requires auditing, determining whether the operation method requires auditing; if the operation method requires auditing, determining whether the operation object requires auditing; if the operation object requires auditing, confirming that audit information is configured with audit requirements.

[0008] Optionally, determining whether audit information meets preset conditions includes: determining whether the operation type is a preset type; if the operation type is a preset type, determining whether the operation method is a preset method; if the operation method is a preset method, determining whether the operation object is a preset object; and if the operation object is a preset object, determining that the audit information meets preset conditions.

[0009] Optionally, determining the audit information status includes: setting the audit information status of the audit information to a pending confirmation status; or setting the audit information status of the audit information to a confirmed status when the operation status of a set of business operations is completed.

[0010] Optionally, determining the operation status of a set of business operations includes: determining whether each operation in the set of business operations was executed successfully; if all operations in the set of business operations were executed successfully, determining the operation status of the set of business operations as completed; if at least one operation was not executed successfully, determining the operation status of the set of business operations as incomplete.

[0011] Optionally, processing all audit information for a group of business operations based on the operation status includes: when the operation status is completed, sending an audit information submission request, wherein the audit information submission request is used to update the audit information status of all audit information corresponding to a group of business operations from pending confirmation to confirmed confirmation; when the operation status is incomplete, sending an audit rollback request, wherein the audit rollback request is used to delete all audit information corresponding to a group of business operations from the target storage device.

[0012] Optionally, deleting all audit information corresponding to a set of business operations from the target storage device includes: determining whether the creation time of each audit information in the pending confirmation state is greater than or equal to a time threshold; if the creation time is greater than or equal to the time threshold, deleting the audit information in the pending confirmation state from the target storage device.

[0013] To achieve the above objectives, according to another aspect of this application, an audit information processing apparatus is provided. The apparatus includes: an acquisition unit, configured to acquire audit information for each operation in a set of business operations and determine whether the audit information is configured with audit requirements; a judgment unit, configured to determine whether the audit information meets preset conditions if the audit information is configured with audit requirements; a writing unit, configured to write the audit information to a target storage device if the audit information meets the preset conditions and determine the audit information status of the audit information; a determination unit, configured to determine the operation status of the set of business operations if the audit information status of all audit information in the set of business operations is acquired; and a processing unit, configured to process all audit information of the set of business operations according to the operation status.

[0014] This application employs the following steps: acquiring audit information for each operation in a set of business operations and determining whether the audit information is configured with audit requirements; if the audit information is configured with audit requirements, determining whether the audit information meets preset conditions; if the audit information meets the preset conditions, writing the audit information to the target storage device and determining the audit information status; acquiring the audit information status of all audit information in a set of business operations and determining the operation status of the set of business operations; and processing all audit information of a set of business operations based on the operation status. This solves the problem in related technologies where audit information cannot be selectively stored according to user needs. By configuring audit requirements for audit information, before writing the audit information to the target storage device, the system automatically determines whether the audit information needs to be written to the target storage device, thereby achieving the effect of selectively storing audit information according to user needs. Attached Figure Description

[0015] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0016] Figure 1 This is a flowchart of an audit information processing method provided according to an embodiment of this application;

[0017] Figure 2 This is a schematic diagram of an audit information processing device provided according to an embodiment of this application;

[0018] Figure 3 This is a schematic diagram of an electronic device provided according to an embodiment of this application. Detailed Implementation

[0019] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0020] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0021] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0022] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0023] The present invention will now be described in conjunction with preferred implementation steps. Figure 1 This is a flowchart of the audit information processing method provided according to the embodiments of this application, such as... Figure 1 As shown, the method includes the following steps:

[0024] Step S101: Obtain audit information for each operation in a set of business operations, and determine whether the audit information is configured with audit requirements.

[0025] Specifically, audit information can be records of user operations on business objects within an information management system. For example, user A performs operation D on business object C at time B. Audit information is used for data security review and traceability within the enterprise. Some business operations require auditing, while others do not. Therefore, corresponding audit requirements are configured for different types of audit information. Based on user operations on the business system, audit information is obtained, and it is determined whether the audit requirement for that particular audit entry is configured within the business system.

[0026] For example, if a part and a 3D model are business objects, and user A's publish operation in the state control behavior class for the part needs to be audited, then an audit requirement should be configured for this audit information, meaning this audit information needs to be stored. However, if user A's remove folder operation in the lifecycle management behavior class for the 3D model does not need to be audited, then no audit requirement should be configured for this audit information.

[0027] Step S102: If the audit information is configured with audit requirements, determine whether the audit information meets the preset conditions.

[0028] Specifically, preset conditions refer to the conditions under which users select the required audit information. For example, users may set parts and 3D model diagrams in business objects as preset objects, which are the two types of objects that need to store audit information. When a piece of audit information is queried and found to have an audit requirement, it is determined whether the audit information meets the preset conditions set by the user in advance.

[0029] Step S103: If the audit information meets the preset conditions, write the audit information to the target storage device and determine the audit information status.

[0030] Specifically, the audit information status refers to the state of the audit information after it has been written to the target storage device. The target storage device can be the system hard drive. Since audit information is written to storage asynchronously, meaning the writing of audit information occurs simultaneously with the execution of business operations, if the business operation fails or is canceled, the corresponding audit information writing process also needs to be canceled. Therefore, an audit information status is introduced. If the business operation is successful, the corresponding written audit information becomes effective, and the audit information status of that audit information is set to "confirmed." Initially, the audit information status is "pending confirmation." If a piece of audit information meets preset conditions, it is written to the target storage device, and the audit information status is recorded in real time.

[0031] Step S104: After obtaining the audit information status of all audit information for a set of business operations, determine the operation status of the set of business operations.

[0032] Specifically, a set of business operations refers to a complete audit of a batch of business operations performed by a user. For example, a user importing 50 product drawings in batches constitutes a batch of business operations. Each business operation corresponds to 4 audit records, totaling 200 audit records. These 200 audit records belong to the same batch of audit records corresponding to a set of business operations. Operation status includes completed and incomplete states. If all operations in a set of business operations are executed successfully, the operation status is completed. If even one operation in a set of business operations fails to execute successfully, the operation status is incomplete.

[0033] Step S105: Process all audit information for a group of business operations based on the operation status.

[0034] Specifically, if the operation status is "completed," all audit information for a group of business operations is submitted; if the operation status is "incomplete," all audit information for a group of business operations is rolled back. Submission indicates that the group of business operations was executed successfully, the audit information status of the entire batch is set to "confirmed," and all audit information corresponding to that batch is stored on the target storage device. Rollback indicates that the group of business operations was canceled or failed to execute, the audit information status of the entire batch is set to "pending confirmation," and all audit information corresponding to that entire batch is deleted.

[0035] The audit information processing method provided in this application embodiment obtains audit information for each operation in a set of business operations and determines whether the audit information is configured with audit requirements. If the audit information is configured with audit requirements, it determines whether the audit information meets preset conditions. If the audit information meets the preset conditions, it writes the audit information to the target storage device and determines the audit information status. After obtaining the audit information status of all audit information in a set of business operations, it determines the operation status of the set of business operations. Based on the operation status, it processes all audit information of a set of business operations, solving the problem in related technologies where audit information cannot be selectively stored according to user needs. By configuring audit requirements for audit information, before writing the audit information to the target storage device, it automatically determines whether the audit information needs to be written to the target storage device, thereby achieving the effect of selectively storing audit information according to user needs.

[0036] Optionally, in the audit information processing method provided in the embodiments of this application, obtaining the audit information of each operation in a set of business operations includes: obtaining the batch number of a set of business operations; determining the operation method, operation type, and object number of each operation in a set of business operations; and determining the object number, operation object, operation method, operation type, and batch number as the audit information of the operation.

[0037] Specifically, the batch number represents a batch of business operations. The business object can be a business object managed in the information management system, such as drawings or parts. The object number, also known as the object ID, represents a specific business object managed by the information system; for example, the operation object of one operation in a batch of business operations, such as the number of a drawing. The operation type can be a collection of similar "operations" that support an enterprise in completing a certain business task. For example, status management behaviors are used to control the status of "business objects," including multiple operations such as "publish," "republish," and "archive." Drawings, folders, and parts can all implement "status control" behaviors, so users can perform a "publish" operation on drawings, folders, and parts. The operation method is the specific operation within the operation type, such as the "publish" operation in "status control" behaviors. The batch number, operation type, operation method, business object, and object number confirm a unique audit record corresponding to a business operation. Audit information is obtained to determine whether audit information needs to be stored.

[0038] Audit information can be configured with audit requirements according to user needs. Optionally, in the audit information processing method provided in this application embodiment, determining whether audit information is configured with audit requirements includes: determining whether the operation type needs to be audited; if the operation type needs to be audited, determining whether the operation method needs to be audited; if the operation method needs to be audited, determining whether the operation object needs to be audited; if the operation object needs to be audited, determining that the audit information is configured with audit requirements.

[0039] Specifically, for each audit message, the information management system determines whether an audit requirement is configured in the audit configuration file. The audit configuration file can be in formats such as JSON, XML, YAML, and database tables. Determining whether an audit message has configured audit requirements requires checking the operation type, operation method, and operation object (i.e., the business object) within the audit message to see if an audit requirement is configured for each. First, it determines whether the operation type in each audit message requires auditing. For example, if the operation type in an audit message is status control, and the user has configured an audit requirement for status control, then the operation type requires auditing. If the user has not configured an audit requirement for status control, then the operation type does not require auditing, and this audit message does not need to be written to the target storage device.

[0040] First, determine if the operation type requires auditing before judging whether the operation method in the audit information needs to be audited. For example, if the operation method in an audit message is "publish," and the user has configured an audit requirement for publishing, then the operation method needs to be audited. If the user has not configured an audit requirement for publishing, then the operation method does not need to be audited, and this audit message does not need to be written to the target storage device.

[0041] First, determine if the operation method requires auditing, then assess whether the operation object in the audit information also needs auditing. For example, if the operation object in an audit message is a part, and the user has configured audit requirements for parts, then the part needs to be audited. If the user has not configured audit requirements for parts, then the operation object does not need to be audited, and this audit message does not need to be written to the target storage device. By determining whether audit information has configured audit requirements, the necessary audit information can be selectively stored based on user needs.

[0042] After determining that the audit information configuration has audit requirements, it is then determined whether the audit information meets the preset conditions. Optionally, in the audit information processing method provided in this application embodiment, determining whether the audit information meets the preset conditions includes: determining whether the operation type is a preset type; if the operation type is a preset type, determining whether the operation method is a preset method; if the operation method is a preset method, determining whether the operation object is a preset object; if the operation object is a preset object, determining that the audit information meets the preset conditions.

[0043] Specifically, after determining that the operation type configuration has audit requirements, the system further checks whether the operation type in the audit information is a user-configured preset type. For example, if the user-configured preset type is status control, and the operation type in the audit information is lifecycle management, then the audit information will not be stored. If the operation type in the audit information is status control, then the system further checks whether the operation method in the audit information is a preset method. For example, if the user-configured preset method is publish, and the operation method in the audit information is archive, then the audit information will not be stored. If the operation method in the audit information is publish, then the system further checks whether the operation object in the audit information is a preset object. For example, if the user-configured preset object is a part, and the operation object in the audit information is a 3D model drawing, then the audit information will not be stored. If the operation object in the audit information is a part, then the audit information meets the preset conditions. By checking whether the audit information meets the preset conditions, the system further filters the audit information that the user needs to store.

[0044] The audit information status of audit information is confirmed by checking whether the writing process of each audit information is completed. Optionally, in the audit information processing method provided in this application embodiment, determining the audit information status of audit information includes: determining the audit information status of audit information as pending confirmation; and determining the audit information status of audit information as confirmed when the operation status of a set of business operations is completed.

[0045] Specifically, since the audit information writing process involves multiple audit messages being written asynchronously, the corresponding audit information is recorded as pending confirmation until it is fully written to the target storage device. Only when a group of business operations is in a completed state and an audit submission request is issued, i.e., when the operation status of a group of business operations is completed, is the audit information status of all audit messages corresponding to that group of business operations determined to be confirmed. The confirmation status of the audit information is used to determine whether the audit information has been written to the target storage device.

[0046] Optionally, in the audit information processing method provided in the embodiments of this application, determining the operation status of a group of business operations includes: determining whether each operation in the group of business operations has been successfully executed; if all operations included in the group of business operations have been successfully executed, determining the operation status of the group of business operations as a completed state; if at least one operation has not been successfully executed, determining the operation status of the group of business operations as an incomplete state.

[0047] Specifically, each group of business operations corresponds to a batch number, for example, using a globally unique identifier as the batch number for a group of business operations. Each group of business operations is assigned an operation status. If all operations in a group of business operations are completed, the operation status of that group of business operations is set to "completed." If at least one business operation is not completed, the operation status of that group of business operations is set to "incomplete." The determination of the operation status of a group of business operations ultimately determines whether the corresponding audit information is stored.

[0048] After determining the operation status of a set of business operations, the corresponding audit information is processed according to the operation status. Optionally, in the audit information processing method provided in this application embodiment, processing all audit information of a set of business operations according to the operation status includes: when the operation status is completed, sending an audit information submission request, wherein the audit information submission request is used to update the audit information status of all audit information corresponding to a set of business operations from pending confirmation to confirmed confirmation; when the operation status is incomplete, sending an audit rollback request, wherein the audit rollback request is used to delete all audit information corresponding to a set of business operations from the target storage device.

[0049] Specifically, once a set of business operations is fully executed, its status is determined to be "completed," and an "audit submission" message is sent to the information management system. Upon receiving the audit submission message, the information management system updates the audit information status of all audit information corresponding to that set of business operations from "pending confirmation" to "confirmed." If a business operation is canceled or fails, resulting in the incomplete execution of the set of business operations, an "audit rollback" message is sent to the information management system. Upon receiving the audit rollback message, the information management system deletes all audit information in the "pending confirmation" status corresponding to that set of business operations from the target storage device. By handling audit information through operation status, unnecessary redundant audit information can be avoided in the target storage device.

[0050] Optionally, in the audit information processing method provided in this application embodiment, deleting all audit information corresponding to a set of business operations from the target storage device includes: determining whether the creation time of each audit information in the pending confirmation state is greater than or equal to a time threshold; if the creation time is greater than or equal to the time threshold, deleting the audit information in the pending confirmation state from the target storage device.

[0051] Specifically, when an operation is incomplete, audit information in the confirmed state is directly deleted from the target storage device. Since some audit information has not been fully written, when deleting audit information, audit information in the pending confirmation state must also be deleted. Therefore, a time threshold is set, such as 24 hours. If audit information in the pending confirmation state has a creation time exceeding 24 hours, the incomplete audit information is also directly deleted from the target storage device. By deleting audit information in the incomplete group of business operations, and simultaneously deleting pending confirmation audit information with a creation time exceeding the time threshold, residual audit information is avoided from remaining on the target storage device.

[0052] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0053] This application also provides an audit information processing apparatus. It should be noted that the audit information processing apparatus of this application can be used to execute the audit information processing method provided in this application. The audit information processing apparatus provided in this application is described below.

[0054] Figure 2 This is a schematic diagram of an audit information processing apparatus according to an embodiment of this application. Figure 2 As shown, the device includes:

[0055] The acquisition unit 10 is used to acquire the audit information of each operation in a set of business operations and determine whether the audit information is configured with audit requirements.

[0056] The judgment unit 20 is used to determine whether the audit information meets the preset conditions when the audit information is configured with audit requirements.

[0057] The writing unit 30 is used to write the audit information to the target storage device when the audit information meets the preset conditions, and to determine the audit information status of the audit information.

[0058] The determining unit 40 is used to determine the operation status of a set of business operations after obtaining the audit information status of all audit information of a set of business operations;

[0059] Processing unit 50 is used to process all audit information of a set of business operations based on the operation status.

[0060] The audit information processing apparatus provided in this application embodiment acquires audit information for each operation in a set of business operations through an acquisition unit 10 and determines whether the audit information is configured with audit requirements; a judgment unit 20 determines whether the audit information meets preset conditions if audit requirements are configured; a writing unit 30 writes the audit information to a target storage device if the audit information meets preset conditions and determines the audit information status of the audit information; a determination unit 40 determines the operation status of a set of business operations after acquiring the audit information status of all audit information in a set of business operations; and a processing unit 50 processes all audit information of a set of business operations according to the operation status. This solves the problem in related technologies that audit information cannot be selectively stored according to user needs. By configuring audit requirements for audit information, before writing the audit information to the target storage device, it automatically determines whether the audit information needs to be written to the target storage device based on the audit requirements, thereby achieving the effect of selectively storing audit information according to user needs.

[0061] Optionally, in the audit information processing apparatus provided in this application embodiment, the acquisition unit 10 includes: an acquisition module, used to acquire a batch number of a set of business operations; a first determination module, used to determine the operation method, operation type and object number of each operation in the set of business operations; and a second determination module, used to determine the object number, operation object, operation method, operation type and batch number as audit information of the operation.

[0062] Optionally, in the audit information processing device provided in the embodiments of this application, the judgment unit 20 includes: a first judgment module, used to judge whether the operation type needs to be audited; a second judgment module, used to judge whether the operation method needs to be audited if the operation type needs to be audited; a third judgment module, used to judge whether the operation object needs to be audited if the operation method needs to be audited; and a third determination module, used to determine that the audit information configuration has audit requirements if the operation object needs to be audited.

[0063] Optionally, in the audit information processing device provided in this application embodiment, the judgment unit 20 includes: a fourth judgment module, used to judge whether the operation type is a preset type; a fifth judgment module, used to judge whether the operation method is a preset method when the operation type is a preset type; a sixth judgment module, used to judge whether the operation object is a preset object when the operation method is a preset method; and a fourth determination module, used to determine whether the audit information meets preset conditions when the operation object is a preset object.

[0064] Optionally, in the audit information processing apparatus provided in this application embodiment, the writing unit 30 includes: a fifth determining module, used to determine the audit information status of the audit information as a pending confirmation status; and a sixth determining module, used to determine the audit information status of the audit information as a confirmed status when the operation status of a set of business operations is a completed status.

[0065] Optionally, in the audit information processing apparatus provided in this application embodiment, the determining unit 40 includes: a seventh judging module, used to judge whether each operation in a group of business operations is executed successfully; a seventh determining module, used to determine the operation status of a group of business operations as a completed state when all operations included in a group of business operations are executed successfully; and an eighth determining module, used to determine the operation status of a group of business operations as an incomplete state when at least one operation is not executed successfully.

[0066] Optionally, in the audit information processing apparatus provided in this application embodiment, the processing unit 50 includes: a first sending module, configured to send an audit information submission request when the operation status is completed, wherein the audit information submission request is used to update the audit information status of all audit information corresponding to a set of business operations from a pending confirmation status to a confirmed status; and a second sending module, configured to send an audit rollback request when the operation status is incomplete, wherein the audit rollback request is used to delete all audit information corresponding to a set of business operations from the target storage device.

[0067] Optionally, in the audit information processing apparatus provided in this application embodiment, the deletion module includes: a judgment submodule, used to judge whether the creation time of each audit information in the pending confirmation state is greater than or equal to a time threshold; and a deletion submodule, used to delete the audit information in the pending confirmation state from the target storage device if the creation time is greater than or equal to the time threshold.

[0068] The audit information processing device includes a processor and a memory. The aforementioned acquisition unit 10, judgment unit 20, writing unit 30, determination unit 40 and processing unit 50 are all stored in the memory as program units. The processor executes the aforementioned program units stored in the memory to realize the corresponding functions.

[0069] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and audit information can be selectively stored based on user needs by adjusting kernel parameters.

[0070] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0071] This invention provides a computer-readable storage medium storing a program thereon, which, when executed by a processor, implements an audit information processing method.

[0072] This invention provides a processor for running a program, wherein the program executes an audit information processing method during runtime.

[0073] like Figure 3 As shown, this embodiment of the invention provides an electronic device. Device 301 includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it implements the following steps: an audit information processing method. The device in this document can be a server, PC, PAD, mobile phone, etc.

[0074] This application also provides a computer program product that, when executed on a data processing device, is suitable for executing a program with the following initialization steps: an audit information processing method.

[0075] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0076] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0077] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0078] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0079] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0080] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0081] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0082] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0083] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0084] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. An audit information processing method, characterized in that, include: Obtain audit information for each operation in a set of business operations, and determine whether the audit information is configured with audit requirements; The process of obtaining audit information for each operation in a set of business operations includes: obtaining the batch number of the set of business operations; determining the operation method, operation type, and object number of each operation in the set of business operations; and determining the object number, the operation object, the operation method, the operation type, and the batch number as the audit information of the operation. The process of determining whether the audit information is configured with audit requirements includes: determining whether the operation type requires auditing; if the operation type requires auditing, determining whether the operation method requires auditing; if the operation method requires auditing, determining whether the operation object requires auditing; and if the operation object requires auditing, determining that the audit information is configured with the audit requirements. If the audit information is configured with audit requirements, determine whether the audit information meets preset conditions; The process of determining whether the audit information meets the preset conditions includes: determining whether the operation type is a preset type; if the operation type is the preset type, determining whether the operation method is a preset method; if the operation method is the preset method, determining whether the operation object is a preset object; and if the operation object is the preset object, determining that the audit information meets the preset conditions. If the audit information meets the preset conditions, the audit information is written to the target storage device, and the audit information status of the audit information is determined. Given the audit information status of all audit information for the set of business operations, determine the operation status of the set of business operations; All audit information for the set of business operations is processed based on the operation status.

2. The method of claim 1, wherein, Determining the audit information status includes: The audit information status of the audit information is set to pending confirmation. If the operation status of the aforementioned set of business operations is "completed", the audit information status of the audit information will be determined as "confirmed".

3. The method of claim 1, wherein, Determining the operational status of the set of business operations includes: Determine whether each operation in the set of business operations was executed successfully; If all operations in the set of business operations are executed successfully, the operation status of the set of business operations is determined to be completed. If at least one operation fails to execute successfully, the operation status of the set of business operations is determined to be incomplete.

4. The method of claim 3, wherein, Processing all audit information for the set of business operations based on the aforementioned operation status includes: When the operation status is the completed status, an audit information submission request is sent, wherein the audit information submission request is used to update the audit information status of all audit information corresponding to the set of business operations from the pending confirmation status to the confirmed status. If the operation status is in the incomplete state, an audit rollback request is sent, wherein the audit rollback request is used to delete all audit information corresponding to the set of business operations from the target storage device.

5. The method of claim 4, wherein, Deleting all audit information corresponding to the set of business operations from the target storage device includes: Determine whether the creation time of each audit message in the pending confirmation status is greater than or equal to the time threshold; If the creation time is greater than or equal to the time threshold, the audit information with the audit information status of pending confirmation will be deleted from the target storage device.

6. An audit information processing apparatus characterized by comprising: include: The acquisition unit is used to acquire audit information for each operation in a set of business operations and determine whether the audit information is configured with audit requirements. The acquisition unit includes: an acquisition module for acquiring the batch number of the group of business operations; a first determination module for determining the operation method, operation type, and object number of each operation in the group of business operations; and a second determination module for determining the object number, the operation object, the operation method, the operation type, and the batch number as the audit information of the operation. The judgment unit is used to determine whether the audit information meets preset conditions when the audit information is configured with audit requirements; The judgment unit includes: a first judgment module, used to judge whether the operation type needs to be audited; a second judgment module, used to judge whether the operation method needs to be audited if the operation type needs to be audited; a third judgment module, used to judge whether the operation object needs to be audited if the operation method needs to be audited; and a third determination module, used to determine that the audit information is configured with the audit requirement if the operation object needs to be audited. The judgment unit includes: a fourth judgment module for judging whether the operation type is a preset type; a fifth judgment module for judging whether the operation method is a preset method when the operation type is the preset type; a sixth judgment module for judging whether the operation object is a preset object when the operation method is the preset method; and a fourth determination module for determining whether the audit information meets the preset conditions when the operation object is the preset object. The writing unit is configured to write the audit information to a target storage device when the audit information meets the preset conditions, and to determine the audit information status of the audit information. The determining unit is used to determine the operation status of the set of business operations after obtaining the audit information status of all audit information of the set of business operations; The processing unit is used to process all audit information of the group of business operations according to the operation status.

7. A processor, characterized in that, The processor is used to run a program, wherein the program executes the audit information processing method according to any one of claims 1 to 5 when it runs.

8. An electronic device, comprising: An apparatus comprising one or more processors and memory storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to carry out the method of any of claims 1 to 5.