A multi-module processing record alignment method and device, terminal and medium

By building identification records and location relationships in a distributed business system, the problem of inconsistent record timing in different modules is solved, efficient record alignment is achieved, and the flexibility and scalability of the system's functional modules are improved.

CN115203202BActive Publication Date: 2025-10-10杭州米络星科技(集团)有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210779354.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-01
Publication Date
2025-10-10
Estimated Expiration
2042-07-01

AI Technical Summary

Technical Problem

In a distributed business system, the processing records generated by the same trigger event in different functional modules have inconsistent timings, making it difficult to conveniently associate and query the records, affecting the implementation of module functions.

Method used

By generating a first identification record in the first data table, determining a second identification record based on the identification record and the business processing logic of the second module, and determining an alignment record in the second data table in combination with the position relationship, record alignment of different modules is achieved.

Benefits of technology

It improves the efficiency of record alignment between different modules and enhances the flexibility and scalability of business function modules in the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115203202B_ABST
    Figure CN115203202B_ABST
Patent Text Reader

Abstract

The application provides a multi-module processing record alignment method, device, terminal and computer storage medium; the method comprises the following steps: in response to an alignment instruction, determining a target record to be aligned in a first data table, and generating a first identification record in the first data table; based on record information of the first identification record and service processing logic of a second module, determining record information of a second identification record corresponding to the first identification record; obtaining a positional relationship of the target record and the identification record in the first data table; determining the second identification record in each second record; based on the positional relationship of the target record and the first identification record, determining an alignment record of the target record in a second data table, so that the alignment of processing records generated by different functional modules based on the same triggering event can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data registration, and in particular to a multi-module processing record alignment method, device, terminal and computer storage medium. Background Art

[0002] With the increasing number of user needs, in order to meet different business needs, business systems / platforms usually set up different functional modules to provide different business services; different functional modules realize different business functions by executing task instructions corresponding to trigger events; however, for business systems / platforms with distributed design, due to the different processing processes of each functional module, or the existence of temporal associations of business logic between different functional modules (such as module A is a module that processes the calculation results of module B), the time when different modules generate corresponding processing records for the same trigger event will have certain differences, resulting in the time when the same event is recorded in different modules is not synchronized, and there is a certain delay; that is, for the same trigger event, the time when the first record is generated in the first module and the time when the second record is generated in the second module are different, and there is a time difference between the two. For example, in a live broadcast platform / system, when the event of user A rewarding user B is triggered, it is necessary to record the reward flow record of user A in the reward module, the deduction record of user A in the balance module, and the income record of user B in the income module.

[0003] In order to ensure the correlation between the processing records generated by different functional modules for the same event, a unified identifier is usually generated at the entrance of each functional module for the same event, and the identifier is recorded as a field in each record, so as to associate the corresponding processing records generated in each functional module based on the identifier information; however, for some business systems / platforms, due to design defects or functional requirements expansion, the processing records of different functional modules do not contain identification information, resulting in different functional modules based on the same triggering event. The processing records are difficult to achieve time alignment and association, which in turn makes it impossible to conveniently query, modify or analyze the processing records associated with the event, and thus makes it impossible to realize the module function. Summary of the Invention

[0004] In view of the shortcomings of the prior art described above, the purpose of the present invention is to provide a multi-module processing record alignment method, device, terminal and computer storage medium, which can solve the problem that the processing records generated by different functional modules in the existing business system / platform are not associated, resulting in the inability to conveniently align the processing records generated in different functional modules for the same trigger event, which in turn leads to the inability to realize module functions and other problems.

[0005] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present invention provides a multi-module processing record alignment method, which determines a second record aligned with the first record in the second data table based on a first record generated in a first data table; the first data table corresponds to the first module, and the second data table corresponds to the second module; the second module is used to process the first record to generate a second record; the multi-module processing record alignment method includes: in response to an alignment instruction, determining a target record to be aligned in the first data table, and generating a first identification record in the first data table; based on the record information of the first identification record and the business processing logic of the second module, determining the record information of the second identification record corresponding to the first identification record; obtaining the positional relationship between the target record and the identification record in the first data table; determining the second identification record in each of the second records through information detection; and determining the alignment record with the target record in the second data table based on the positional relationship between the target record and the first identification record.

[0006] In one embodiment of the present invention, determining the target record to be aligned in the first data table includes: parsing the alignment instruction to obtain alignment task information in the alignment instruction; and selecting the target record in the first data table based on the alignment task information.

[0007] In one embodiment of the present invention, the alignment task information includes the time and / or content of the triggering event for forming the target record.

[0008] In one embodiment of the present invention, generating a first identification record in the first data table includes: the first module generating the first identification record based on input identification information; wherein the identification information is input into the first module by other components / modules in response to the alignment instruction.

[0009] In one embodiment of the present invention, the business processing logic includes the processing steps / processing algorithm executed by the second module when the first record is used as the input of the second module; then the record information based on the first identification record and the business processing logic of the second module determines the record information of the second identification record corresponding to the first identification record, including: based on the processing steps / processing algorithm, according to the record information in the first identification record, obtaining the corresponding record information of the second identification record.

[0010] In one embodiment of the present invention, generating a first identification record in the first data table includes: in the first data table, based on the position information of the target record in the first data table, generating the first identification record between the target record and the previous record / next record; then determining the alignment record with the target record in the second data table based on the positional relationship between the target record and the first identification record includes: in the second data table, setting the next record / previous record of the second mark record as the alignment record of the target record.

[0011] The second aspect of the present invention also provides a multi-module processing record alignment device, which is used to determine a second record aligned with the first record in a second data table based on a first record generated in a first data table; the first data table corresponds to the first module, and the second data table corresponds to the second module; the second module includes processing the first record to generate a second record; the multi-module processing record alignment device includes: a target record generation unit, which is used to determine the target record to be aligned in the first data table in response to an alignment instruction; a first identification record generation unit, which is used to generate a first identification record in the first data table in response to the alignment instruction; a second identification record information determination unit, which is used to determine the record information of the second identification record corresponding to the first identification record based on the record information of the first identification record and the business processing logic of the second module; a position relationship acquisition unit, which is used to obtain the position relationship between the target record and the identification record in the first data table; a second identification record acquisition unit, which is used to determine the second identification record in each second record through information detection; and an alignment unit, which is used to determine the second identification record in each second record through information detection; based on the position relationship between the target record and the first identification record, determining the alignment record with the target record in the second data table.

[0012] In one embodiment of the present invention, the first identification record generation unit further includes: in the first data table, based on the position information of the target record in the first data table, generating the first identification record between the target record and the previous record / next record; and the alignment unit further includes: in the second data table, setting the next record / previous record of the second mark record as the alignment record of the target record.

[0013] The third aspect of the present invention provides a terminal, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device performs any of the multi-module processing record alignment methods described above.

[0014] Finally, the present invention further provides a computer storage medium storing a computer program, wherein the computer program, when executed by a processor, implements any of the multi-module processing record alignment methods described above.

[0015] As described above, the multi-module processing record alignment method, device, terminal and computer storage medium provided by the present invention, after determining the target record, constructs a first identification record and a second identification record corresponding to the first identification record, and generates a first identification record in a first data table, and obtains the positional relationship between the target record and the first identification record in the first data table, so as to detect the second identification record in the second data table, and determine the alignment record in the second data table based on the second identification record and the positional relationship, thereby achieving record alignment of processing records generated by different functional modules based on the same trigger event without adding identification information to each first record; not only is the efficiency of record alignment between different modules improved, but also the flexibility and scalability of the business function modules in the platform / system are further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram showing an application scenario of the multi-module processing record alignment method according to an embodiment of the present invention;

[0017] Figure 2 Shown is a flow chart of a multi-module processing record alignment method according to a specific embodiment of the present invention;

[0018] Figure 3 Shown is a flow chart of another specific embodiment of the multi-module processing record alignment method of the present invention;

[0019] Figure 4 Shown is a schematic structural diagram of a multi-module processing record alignment system according to an embodiment of the present invention;

[0020] Figure 5 Shown is a schematic structural diagram of a terminal according to an embodiment of the present invention;

[0021] Component number description

[0022] 40 multi-module processing record alignment system

[0023] 41 Target record generation unit

[0024] 42 First identification record generation unit

[0025] 43 Second identification record information determination unit

[0026] 44 Position relationship acquisition unit

[0027] 45 Second identification record acquisition unit

[0028] 46 Alignment Units

[0029] 50 Terminal

[0030] 51 Memory

[0031] 52 processors DETAILED DESCRIPTION

[0032] The following describes the embodiments of the present invention through specific examples. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other unless they conflict.

[0033] It should be noted that the diagrams provided in the following embodiments are merely schematic illustrations of the basic concepts of the present invention. Furthermore, the terms "first" and "second" mentioned in the following embodiments are used to describe various modules or functional components, but are not intended to be limiting. These terms are used only to distinguish one module or functional component from another, and are not intended to limit the number or order of components.

[0034] In order to solve the technical problems existing in the prior art, the multi-module processing record alignment method, device, terminal and computer storage medium provided by the present invention generate a first identification record in a previously processed functional module by constructing a first identification record and a second identification record corresponding to the first identification record, and obtain the timing relationship between the processing record corresponding to the triggering event and the first identification record, and detect the second identification record in other functional modules, and find the corresponding alignment record based on the detected second identification record and the timing relationship, so as to realize the record alignment between the processing records generated by different functional modules based on the same triggering event.

[0035] Among them, the platform / system includes at least a first module and a second module; the first module and the second module are two modules that are mutually related in business logic, and the first module is correspondingly provided with a first data table for storing each first record obtained after the first module processes each trigger event; the second module is correspondingly provided with a second data table for storing the second record obtained after the second module processes each first record; that is, for a trigger event, after the first module obtains the corresponding first record after processing, the second module processes the first record to obtain the second record corresponding to the same trigger event; based on the multi-module record alignment method provided by the present invention, it is possible to realize that after selecting the first record in the first data table, the second record aligned with the first record can be determined in the second data table, thereby realizing record alignment of records generated by different modules based on the same trigger event.

[0036] See also Figure 1 , a schematic diagram of an application scenario applicable to the multi-module processing record alignment method in an embodiment is shown. In this embodiment, the platform / system includes a live broadcast platform, including a reward module and a settlement module; wherein, the reward module is used as a first module to realize the reward function of user A to user B; the reward module is provided with a first data table, based on each reward event, after the reward module processes each reward event and generates a corresponding reward record, each reward record is stored as a first record in the first data table; the settlement module is used as a second module to realize the reward of user A to user B, and settle the account balance of user A or user B based on the intention record; the settlement module is provided with a second data table, based on each reward event, after the settlement module processes each reward record and generates a corresponding settlement record, each settlement record is stored as a second record in the second data table.

[0037] In order to more clearly explain the protection technical solution requested by the present invention, the specific implementation of the multi-module processing record alignment method provided by the present invention will be described below based on the above application scenario.

[0038] See also Figure 2 , which is a flow chart of the multi-module record alignment method in a specific embodiment; Figure 1 As shown, the method includes:

[0039] S100, in response to an alignment instruction, determining a target record to be aligned in the first data table;

[0040] After receiving the alignment instruction, the instruction is parsed to obtain alignment task information; based on the alignment task information, the target record is selected in the first data table.

[0041] The target record is a record to be aligned based on the same trigger among the first records generated by the first data table.

[0042] The alignment task information includes a time and / or content of a trigger event for forming the target record, i.e., based on the trigger event, the first module generates the target record to be aligned in the corresponding first data table.

[0043] For example, the alignment task information includes a trigger time of 0 o'clock, i.e., according to the first record corresponding to the 0 o'clock reward event, the record alignment of the same reward event is performed in the second data table, then according to the alignment task information, the reward record generated in the first data table at 0 o'clock or the last reward record generated before 0 o'clock is taken as the first record corresponding to 0 o'clock and is determined as the target record to be aligned.

[0044] S200, in response to the alignment instruction, generating a first identification record in the first data table;

[0045] The first identification record includes a record constructed according to the table structure of the first data table and the content of which does not belong to the threshold range of the first data table;

[0046] In a specific embodiment, the first identification record is an empty record, i.e., the information in the record is empty.

[0047] Specifically, after receiving the alignment instruction, the first module generates a first identification record according to the input identification information; wherein the identification information is input into the first module by other components / modules in response to the alignment instruction.

[0048] In a specific embodiment, the first module detects the value of the input identification information, and when it is detected that the value does not belong to the preset threshold range, the identification information is directly stored in a newly generated record, i.e., the first identification record is generated.

[0049] It should be noted that the execution order of the above steps S100 and S200 can be step S100 before step S200, or step S200 before step S100, or both steps are executed synchronously, which is not limited here.

[0050] S300, determining the record information of the second identification record corresponding to the first identification record based on the record information of the first identification record and the business processing logic of the second module;

[0051] The record information of the second identification record is information obtained after the second module processes the record information in the first identification record.

[0052] Specifically, the business processing logic of the second module is obtained; the business processing logic includes the processing steps / processing algorithms executed in the second module when the first record is used as the input of the second module; based on the processing steps / processing algorithms, according to the record information in the first identification record, the record information of the corresponding second identification record is obtained.

[0053] Exemplarily, in a live broadcast platform, the business processing logic of the second module includes, according to the reward amount contained in each reward record, deducting the reward amount from the corresponding account balance;

[0054] When the first identification record is an empty record, according to the business processing logic of the second module, it is determined that the second identification record is a record in which the current account balance is the same as the account balance in the previous record.

[0055] It should be noted that the record information of the first identifier and the record information of the second identifier can be constructed in advance or during the execution of this step, and no specific limitation is made here.

[0056] S400, obtaining the positional relationship between the target record and the first identification record in the first data table;

[0057] Specifically, the sequence information of the target record and the first identifier record in the first data table are obtained respectively; the sequence information of the two is subtracted to obtain the sequence difference between the two; and the sequence difference is used as the positional relationship between the target record and the first identifier record in the first data table.

[0058] S500: Using an information detection method, determine the second identification record in each second record; based on the positional relationship between the target record and the first identification record, determine the alignment record of the target record in the second data table.

[0059] In this embodiment, the second module processes each first record in the first data table to sequentially obtain each second record;

[0060] In each of the second records, the second identification information is screened out using an information detection method.

[0061] In a specific embodiment, when the account balance in the second identification record is the same as the account balance in the previous record, the account balance in the current second record and the account balance in the previous record are checked, and if the two are the same, the current second record is used as the second identification record;

[0062] In another specific embodiment, when the record information of the second identification record is a preset fixed value, the record information of each second record is compared with the fixed value. When the two are the same, the second record is used as the second identification record.

[0063] After determining the second identification record, obtaining the sequence information of the second identification record in the second data table; and determining the alignment record of the target record in the second data table according to the sequence difference between the target record and the first identification record.

[0064] Exemplarily, in the live broadcast platform, the record information of each second record in the second data table is detected in sequence, and when it is detected that the record information includes the record information of the second identification record, the second record is set as the second identification record.

[0065] In a specific embodiment, when the sequence difference is that the first identification record lags behind the target record by 3 records, the fourth record in the second data table that is located after the second identification record is set as the alignment record of the target record, thereby obtaining the alignment record of the target record in the second data table.

[0066] See also Figure 3 , which is a flow chart of another specific embodiment of the multi-module processing record alignment method of the present invention; in this embodiment, as Figure 3 As shown, the multi-module processing record alignment method is the same as Figure 2 The method shown is basically the same, except that, when executing step S200, the multi-module processing record alignment method further includes:

[0067] S200′, in response to the alignment instruction, generating the first identification record between the target record and the previous record / next record based on the position information of the target record in the first data table;

[0068] Furthermore, based on step S200′, when the multi-module processing record alignment method executes step S500, the specific implementation method of determining the alignment record of the target record in the second data table based on the positional relationship between the target record and the first identification record includes:

[0069] In the second data table, the next record / previous record of the second mark record is set as the alignment record of the target record, so that the alignment record of the target record can be determined more quickly and conveniently.

[0070] In order to solve the technical problems existing in the prior art, the present invention also provides a multi-module processing record alignment system; please refer to Figure 4 , which is a schematic diagram of the structure of the multi-module processing record alignment system in one embodiment of the present invention. Figure 4 As shown, the multi-module processing record alignment system 40 includes: a target record generation unit 41, a first identification record generation unit 42, a second identification record information determination unit 43, a position relationship acquisition unit 44, a second identification record acquisition unit 45 and an alignment unit 46.

[0071] The target record generating unit is configured to determine the target record to be aligned in the first data table;

[0072] Specifically, after receiving the alignment instruction, the target record generating unit parses the instruction to obtain alignment task information; and selects the target record in the first data table based on the alignment task information.

[0073] The first identification record generating unit is configured to generate a first identification record in the first data table in response to the alignment instruction;

[0074] Specifically, after receiving the alignment instruction, the first module generates a first identification record according to the input identification information; optionally, the identification information is input into the first module by other components / modules in response to the alignment instruction.

[0075] In a specific embodiment, the first module detects the value of the input identification information, and if it is detected that the value does not fall within a preset threshold range, the identification information is directly stored in a newly generated record, that is, the first identification record is generated.

[0076] The second identification record information determining unit is configured to determine the record information of the second identification record corresponding to the first identification record according to the record information of the first identification record and the business processing logic of the second module;

[0077] Specifically, the second identification record information determination unit obtains the business processing logic of the second module; the business processing logic includes the processing steps / processing algorithms executed in the second module when the first record is used as the input of the second module; based on the processing steps / processing algorithms, according to the record information in the first identification record, the record information of the corresponding second identification record is obtained.

[0078] The position relationship acquisition unit is used to acquire the position relationship between the target record and the identification record in the first data table;

[0079] Specifically, the position relationship acquisition unit respectively obtains the sequence information of the target record and the identification record in the first data table; subtracts the sequence information of the two to obtain the sequence difference between the two; and uses the sequence difference as the position relationship between the target record and the identification record in the first data table.

[0080] The second identification record obtaining unit is configured to determine the second identification record in each of the second records through information detection;

[0081] In a specific embodiment, when the record information of the second identification record is the account balance that is the same as the account balance in the previous record, the second identification record acquisition unit checks the size of the account balance of the current second record and the account balance of the previous record. When the two are the same, the current second record is used as the second identification record.

[0082] In another specific embodiment, when the record information of the second identification record is a pre-set fixed value, the second identification record acquisition unit compares the record information of each second record with the fixed value, and when the two are the same, the second record is used as the second identification record.

[0083] And, the alignment unit is used to determine an alignment record with the target record in the second data table based on a positional relationship between the target record and the first identification record;

[0084] Specifically, after determining the second identification record, the second identification record acquisition unit obtains the sequence information of the second identification record in the second data table; and determines the alignment record of the target record in the second data table based on the sequence difference between the target record and the first identification record.

[0085] Optionally, the first identification record generation unit also includes: in the first data table, based on the position information of the target record in the first data table, generating the first identification record between the target record and the previous record / next record; and the alignment unit also includes: in the second data table, setting the next record / previous record of the second mark record as the alignment record of the target record.

[0086] In order to solve the technical problems existing in the prior art, the present invention also provides a terminal; please refer to Figure 5 , which is a schematic structural diagram of the terminal according to one embodiment of the present invention.

[0087] like Figure 5 As shown, the terminal 50 includes: a memory 51 and a processor 52.

[0088] The memory 51 is used to store computer programs; the processor 52 runs the computer programs to implement the following Figure 2 The multi-module processing record alignment method.

[0089] Optionally, the number of the memories 51 can be one or more, the number of the processors 52 can be one or more, and Figure 5 Take one as an example.

[0090] Optionally, the processor 52 in the terminal 50 will Figure 2 In the above steps, one or more instructions corresponding to the process of the application are loaded into the memory 51, and the processor 52 runs the application stored in the first memory 51, thereby achieving the following Figure 2 The multiple modules handle various functions in the record alignment method.

[0091] Optionally, the memory may include, but is not limited to, high-speed random access memory and non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The processor may include, but is not limited to, a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0092] Optionally, the processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0093] In order to solve the technical problems existing in the prior art, the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is called by a processor, the multi-module processing record alignment method as described above is implemented.

[0094] Among them, a computer-readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. The computer-readable storage medium can be, for example, (but not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, and a mechanical encoding device.

[0095] The computer-readable program described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.

[0096] The computer program instructions for performing the operations of the present application may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and procedural programming languages ​​such as "C" or similar programming languages.

[0097] The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In some embodiments, the state information of the computer-readable program instructions is utilized to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), which can execute the computer-readable program instructions, thereby implementing various aspects of the present application.

[0098] In summary, the multi-module processing record alignment method, device, terminal and computer storage medium provided by the present invention construct a first identification record and a second identification record corresponding to the first identification record, and generate a first identification record in a first data table, and obtain the positional relationship between the target record and the first identification record in the first data table, so as to detect the second identification record in the second data table, and determine the alignment record in the second data table based on the second identification record and the positional relationship, thereby realizing the record alignment of the processing records generated by different functional modules based on the same trigger event without adding identification information to each first record; not only the efficiency of record alignment between different modules is improved, but also the flexibility and scalability of the business function modules in the platform / system are further improved.

[0099] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the present invention. Anyone skilled in the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by one of ordinary skill in the art without departing from the spirit and technical principles disclosed herein are intended to be covered by the claims of the present invention.

Claims

1. A multi-module processing record alignment method, characterized in that: Based on a first record generated in a first data table, determining a second record aligned with the first record in a second data table; the first data table corresponds to a first module; The second data table corresponds to the second module; The second module is configured to process the first record to generate a second record; The multi-module processing record alignment method includes: In response to the alignment instruction, a target record to be aligned is determined in the first data table, and a first identification record is generated in the first data table; the first identification record includes a record constructed according to the table structure of the first data table and having content that does not fall within a threshold range of the first data table; Determining, based on the record information of the first identification record and the business processing logic of the second module, the record information of the second identification record corresponding to the first identification record; Obtaining the positional relationship between the target record and the identification record in the first data table; The second identification record is determined in each of the second records through information detection; and based on the positional relationship between the target record and the first identification record, an alignment record with the target record is determined in the second data table.

2. The multi-module processing record alignment method according to claim 1, characterized in that: Determining the target record to be aligned in the first data table includes: The alignment instruction is parsed to obtain alignment task information in the alignment instruction; and the target record is selected in the first data table based on the alignment task information.

3. The multi-module processing record alignment method according to claim 2, characterized in that: The alignment task information includes the time and / or content of the triggering event for forming the target record.

4. The multi-module processing record alignment method according to claim 2, characterized in that: Generating a first identification record in the first data table includes: The first module generates a first identification record according to the input identification information; wherein the identification information is input into the first module by other components / modules in response to the alignment instruction.

5. The multi-module processing record alignment method according to claim 1, characterized in that: The business processing logic includes processing steps / processing algorithms executed by the second module when the first record is used as input to the second module; then, based on the record information of the first identification record and the business processing logic of the second module, determining the record information of the second identification record corresponding to the first identification record includes: Based on the processing steps / processing algorithm, the record information of the corresponding second identification record is obtained according to the record information in the first identification record.

6. The multi-module processing record alignment method according to claim 1, characterized in that: The generating of the first identification record in the first data table further includes: In the first data table, based on the position information of the target record in the first data table, generating the first identification record between the target record and the previous record / next record; Then, determining the alignment record with the target record in the second data table based on the positional relationship between the target record and the first identification record includes: In the second data table, the next record / previous record of the second identification record is set as the alignment record of the target record.

7. A multi-module processing record alignment device, characterized in that: for determining, in a second data table, a second record aligned with a first record generated in a first data table; the first data table corresponds to a first module, and the second data table corresponds to a second module; The second module includes processing the first record to generate a second record; The multi-module processing record alignment device includes: a target record generating unit, configured to determine a target record to be aligned in the first data table in response to the alignment instruction; a first identification record generating unit, configured to generate a first identification record in the first data table in response to the alignment instruction; the first identification record comprising a record constructed according to the table structure of the first data table and having content that does not fall within a threshold range of the first data table; a second identification record information determining unit, configured to determine, based on the record information of the first identification record and the business processing logic of the second module, the record information of the second identification record corresponding to the first identification record; a position relationship acquiring unit, configured to acquire a position relationship between the target record and the identification record in the first data table; a second identification record obtaining unit, configured to determine the second identification record in each of the second records through information detection; and An alignment unit is configured to determine the second identification record in each of the second records through information detection; and to determine an alignment record with the target record in the second data table based on a positional relationship between the target record and the first identification record.

8. The multi-module processing record alignment device according to claim 7, characterized in that: The first identification record generating unit further includes: In the first data table, based on the position information of the target record in the first data table, generating the first identification record between the target record and the previous record / next record; The alignment unit further includes: In the second data table, the next record / previous record of the second identification record is set as the alignment record of the target record.

9. A terminal, characterized in that: include: processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal performs the multi-module processing record alignment method according to any one of claims 1 to 6.

10. A computer storage medium storing a computer program, wherein: When the computer program is executed by a processor, the multi-module processing record alignment method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Aligning data transfer to optimize connections established for transmission over a wireless network

    US20120131184A1

  • Data synchronization method and related device

    WO2021237704A1