A service data recording method, device and computer equipment

By using aspect-oriented programming and annotation processing, an asynchronous business data recording process is generated, which solves the problem of limited information types in existing business data queries and enables efficient and rich business data recording and querying.

CN116244347BActive Publication Date: 2026-03-20CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-06
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

In existing technologies, when querying business data generated after a business transaction is completed, only the registered business information fields can be displayed, and the information types are not very specific and cannot be updated in a timely manner.

Method used

Using aspect-oriented programming, the system intercepts business data recording methods through annotations, generates asynchronous processing flows, customizes annotations to adapt to messages of different business types, generates target record text using preset business data templates, and stores the data in a message queue to improve response speed.

Benefits of technology

It enables custom annotations to adapt to data processing for different business types without affecting normal business processes, thereby improving data processing efficiency and the richness and relevance of information queries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116244347B_ABST
    Figure CN116244347B_ABST
Patent Text Reader

Abstract

The application relates to the field of big data, and particularly discloses a business data recording method and device and a computer device. The method comprises the following steps: obtaining a business data recording annotation in a business data recording request, obtaining a business data recording operation matched with the business data recording annotation based on aspect-oriented programming, executing the business data recording operation, obtaining input parameters, output parameters and annotation configuration information of the aspect-oriented programming, obtaining business data needing to be recorded according to the input parameters, the output parameters and the annotation configuration information, determining a preset business data template corresponding to a business data type needing to be recorded, storing the business data needing to be recorded into the preset business data template, and generating a target business data recording text. The method can adapt to various different business settlement messages, can be cut in the dimension of the method, and can process the messages in an asynchronous mode without affecting normal processes.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of big data, and in particular to a business data recording method and device and computer equipment. BACKGROUND

[0002] After the completion of a business, a large amount of business data is generated, including information such as the person handling the business, the type of business, and the time of handling the business. The staff needs to classify the business data and record the completed business for subsequent completed business data queries. The completed business data needs to be queried from multiple dimensions such as the person handling the business and the handling agency, and relevant information needs to be displayed.

[0003] In related technologies, after the completion of a business, a public business completion registration interface can be called to query business fields, or a business registration module can be added for use when subsequently scanning and extracting new business completion records at regular intervals. However, when subsequently querying business information, only registered business information fields can be displayed, and the types of business information contained in the display are less targeted. SUMMARY

[0004] Therefore, it is necessary to provide a business data recording method that can adapt to various business completion messages, cut in from the dimension of the method, and process messages in an asynchronous manner without affecting the normal process.

[0005] In a first aspect, the present application provides a business data recording method. The method comprises:

[0006] Obtaining business data recording annotations in a business data recording request, obtaining business data recording operations matched with the business data recording annotations based on aspect-oriented programming;

[0007] Executing the business data recording operations, obtaining input parameters, output parameters, and annotation configuration information of aspect-oriented programming;

[0008] Obtaining business data that needs to be recorded according to the input parameters, output parameters, and annotation configuration information, determining a preset business data template corresponding to the type of business data that needs to be recorded, storing the business data that needs to be recorded in the preset business data template, and generating a target business data recording text.

[0009] In one embodiment, the preset business data template includes a placeholder and a variable identifier. The type of business data that matches the variable identifier is obtained according to the variable identifier, the placeholder is replaced with the matching business data, and a target business data recording text is obtained.

[0010] In one of the embodiments, the business data to be recorded is sent to a message queue, a business data record generation message is returned, and a target business data record text is generated.

[0011] In one of the embodiments, the annotation configuration information includes an interface field corresponding to the business data, an interface is called according to the interface field, the supplementary business data returned by the interface is received, the input parameter, the output parameter, the annotation configuration information, and the supplementary business data are stored in a data pool, and the data in the data pool is used as the input parameter of the interface.

[0012] In one of the embodiments, a corresponding business browsing page is called according to different business types, and the business browsing page is configured by a business data template.

[0013] In a second aspect, the application further provides a business data recording device, which comprises:

[0014] An annotation definition module is configured to obtain a business data record annotation in a business data record request, and obtain a business data record operation matched with the business data record annotation based on aspect-oriented programming.

[0015] A method calling module is configured to execute the business data record operation, and obtain an input parameter, an output parameter, and annotation configuration information of aspect-oriented programming.

[0016] A business data record module is configured to obtain business data to be recorded according to the input parameter, the output parameter, and the annotation configuration information, determine a preset business data template corresponding to a business data type to be recorded, and store the business data to be recorded in the preset business data template to generate a target business data record text.

[0017] In one of the embodiments, the preset business data template includes a placeholder and a variable identifier, the target business data record text is obtained by replacing the placeholder with matched business data according to the variable identifier.

[0018] In one of the embodiments, the business data to be recorded is sent to a message queue, a business data record generation message is returned, and a target business data record text is generated.

[0019] In one of the embodiments, the annotation configuration information includes an interface field corresponding to the business data, an interface is called according to the interface field, the supplementary business data returned by the interface is received, the input parameter, the output parameter, the annotation configuration information, and the supplementary business data are stored in a data pool, and the data in the data pool is used as the input parameter of the interface.

[0020] In one of the embodiments, a corresponding service browsing page is invoked according to different service types, and the service browsing page is configured by a service data template.

[0021] In a third aspect, the present disclosure further provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the steps of the service data recording method when executing the computer program.

[0022] In a fourth aspect, the present disclosure further provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program implements the steps of the service data recording method when executed by a processor.

[0023] In a fifth aspect, the present disclosure further provides a computer program product. The computer program product comprises a computer program, and the computer program implements the steps of the service data recording method when executed by a processor.

[0024] The service data recording method has at least the following beneficial effects:

[0025] The embodiment provided by the present disclosure can customize annotations, adapt to different business settlement messages, intercept methods with annotations through aspects, select any link in the business data processing process, and process data in an asynchronous manner, without affecting the normal business processing flow, thereby improving the processing efficiency.

[0026] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and are not limiting to the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.

[0028] Figure 1 An application environment diagram of the service data recording method in one embodiment;

[0029] Figure 2 A flowchart of the service data recording method in one embodiment;

[0030] Figure 3 A schematic diagram of the service data recording method in one embodiment;

[0031] Figure 4a schematic diagram of a recording method of service data in an embodiment;

[0032] Figure 5 a structural block diagram of a service data device in an embodiment;

[0033] Figure 6 an internal structural diagram of a computer device in an embodiment;

[0034] Figure 7 an internal structural diagram of a server in an embodiment. DETAILED DESCRIPTION

[0035] In order for those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings. The acquisition, storage, use, processing, etc. of data in the technical solutions of the present disclosure comply with the relevant provisions of national laws and regulations.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation described in the following exemplary embodiments does not represent all implementations consistent with the present disclosure. Rather, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims. The terms "include", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, product or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or further includes elements inherent to such a process, method, product or device. Without more limitations, it does not exclude the presence of other same or equivalent elements in the process, method, product or device including the described elements. For example, if the words first, second, etc. are used to represent names, they do not represent any particular order. The acquisition, storage, use, processing, etc. of data in the technical solutions of the present disclosure comply with the relevant provisions of national laws and regulations.

[0037] The embodiments of the present disclosure provide a recording method of service data, which can be applied to, for example Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or located in the cloud or on other network servers. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented using a standalone server or a server cluster consisting of multiple servers.

[0038] In some embodiments of this disclosure, such as Figure 2 As shown, a method for recording business data is provided, which can be applied to... Figure 1 This method is illustrated using the example of a server processing business data. It is understood that this method can be applied to a server, and also to a system including both a terminal and a server, and is implemented through the interaction between the terminal and the server. In a specific embodiment, the method may include the following steps:

[0039] S202: Obtain the business data record annotation in the business data record request, and obtain the business data record operation that matches the business data record annotation based on aspect-oriented programming.

[0040] Annotations can be viewed as a way or method provided by a computer language to associate data or information within a program. An annotation can be an interface; when a specific annotation is used, the annotation object can be obtained through reflection, and then the data within the annotation can be retrieved through the annotation object. Aspect-oriented programming (AOP) can isolate different parts of business logic, thereby reducing the coupling between these parts, improving program reusability, and increasing development efficiency.

[0041] In some embodiments of this disclosure, annotations can be added to the business data recording method, and the data source representation can be specified in the annotation's attributes. Alternatively, default field displays can be obtained from the business data recording request. For example, the bank type is obtained from the business data recording request by default according to the banktype field name, but it can also be specified through an annotation to obtain it from the acctbanktype field name. By intercepting the annotated business data recording method through aspect-oriented programming, the data corresponding to the data source identifier can be obtained by executing the data source selection method in aspect-oriented programming.

[0042] S204: Execute the business data recording operation to obtain the input parameters, output parameters, and annotation configuration information for aspect-oriented programming.

[0043] The input parameter can be service data for recording, the output data can be service data processed by a recording method of the service data, the annotation configuration information can include a service information query interface, and the input parameter and the output parameter can be supplemented. Aspect-oriented programming can obtain an annotation containing a method and perform a corresponding service data recording operation.

[0044] S206: Obtain the service data to be recorded according to the input parameter, the output parameter, and the annotation configuration information, determine a preset service data template corresponding to a type of the service data to be recorded, store the service data to be recorded in the preset service data template, and generate a target service data recording text.

[0045] Different service data templates correspond to different types of service data, the service data template can include a business information variable name and a position for storing a business information variable value, and the position of the business information variable value can be represented by a placeholder or an initial number. After obtaining the service data to be recorded, the corresponding preset service data template can be determined according to the type of the service data to be recorded, the placeholder or the initial number in the service data template can be replaced by the business information variable value, and the target service data recording text can be generated.

[0046] In some embodiments of the present disclosure, an annotation can be developed to specify a field name corresponding to a special field, and the special field can be obtained from a service data recording request. For example, when no annotation is developed, the account field name account can be obtained from the service data recording request, and when the annotation is developed, the account field name can be obtained through the annotation. Through aspect-oriented programming, the service data recording method with the annotation is intercepted, that is, the account is obtained, the input parameter, the output parameter, and the annotation configuration information are collected, the service data template matched with the account information is obtained, and the recording text of the service data is generated.

[0047] In the above-mentioned service data recording method, an annotation can be added to the service data recording method, and the service data recording method with the annotation is intercepted through aspect-oriented programming, so that the service data recording method in aspect-oriented programming is executed, the asynchronous processing mechanism of the annotation and aspect-oriented programming is used, the business processing flow is not affected, and the business processing efficiency is improved.

[0048] In some embodiments of the present disclosure, the preset service data template includes a placeholder and a variable identifier, the matched type of service data is obtained according to the variable identifier, the placeholder is replaced by the matched service data, and the target service data recording text is obtained.

[0049] The placeholder is used to represent the position of the variable identifier, and the placeholder can be replaced by the business data. The variable identifier can be used to represent the type of the business data. In some embodiments of the present disclosure, the variable identifier can be placed in the middle of the placeholder. After matching the business data template, all the placeholders can be retrieved, and the variable identifier in the middle of the placeholder can be extracted. According to the type of the business data represented by the variable identifier, the placeholder can be replaced by the business data.

[0050] For example, the business data template can be represented as a placeholder + a variable identifier + a placeholder, and the variable identifier is riqi. The format can be converted to Date. The target business data record text can be represented as January 1, 2000.

[0051] In some embodiments of the present disclosure, the business data that needs to be recorded is sent to a message queue, a business data record generation message is returned, and a target business data record text is generated.

[0052] Figure 3 A flowchart for recording business data in an embodiment. After the input parameters, the output parameters, and the annotation configuration information are obtained by aspect-oriented programming, the recorded business data can be sent to a message queue. The message queue can decouple the system and improve the response speed. The method used can return to the calling party for continued use in a non-waiting manner.

[0053] In some embodiments of the present disclosure, the annotation configuration information includes an interface field corresponding to the business data. The interface is called according to the interface field, and the supplementary business data returned by the interface is received. The input parameters, the output parameters, the annotation configuration information, and the supplementary business data are stored in a data pool. The data in the data pool is used as the input parameter of the interface.

[0054] The annotation configuration information can include a field for specifying a business information query interface. The business information query interface can be used to supplement the deficiencies of the input parameters and the output parameters. In the business data template, the query service that needs to be called by the message of the corresponding business type can be configured. The query service can be called in sequence according to the order to obtain the supplementary information. The input parameters can include the business serial number and other information. According to the business serial number, each business module can be called to obtain the detailed business information. The input parameters, the output parameters, and the annotation configuration information can be placed in the data pool. The supplementary business data obtained can also be stored in the data pool as the input parameter of the business query service. The query result returned later can also be placed in the data pool for subsequent business data query.

[0055] In some embodiments of the present disclosure, a corresponding business browsing page is called according to different business types, and the business browsing page is configured by a business data template.

[0056] The browsing interface corresponding to the business type can be configured according to different types of business data templates, and can include detailed information such as a handling user, a business type, and a handling time. When the latest business data is obtained, it can also be added to the browsing page for customers to browse business details.

[0057] Figure 4 A schematic diagram of a business data recording method in an embodiment. In the business processing process, fields can be obtained from request information or response information for display. If some fields are default names and do not include annotations, the business data can be recorded after being obtained by a general method, and can be used for information query. If a specific field is used to refer to and includes annotations, the business data can be obtained from the specific field name through the annotations to complete the recording operation of the business data. In addition, an information query service can also be included, which can be used for query of completed tasks and browsing of completed businesses.

[0058] In the related art, after registration is performed using a registration module, only the originally registered business fields are displayed in the query stage. The business query function of the present disclosure can display a plurality of categories of information. When business data is obtained using a query statement, the newly added business data can not be updated in time, and the latest business data cannot be displayed in the query. The business processing flow is decoupled in the present disclosure, and different business flows do not affect each other, thereby increasing the business processing efficiency. Moreover, the information displayed on the information query page formed finally is relatively rich, the layout is targeted, and the user is facilitated to use.

[0059] It should be understood that, although each step in the flowchart involved in each embodiment as described above is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include a plurality of steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.

[0060] Based on the same inventive concept, the disclosure embodiments further provide a device for recording business data for implementing the above-mentioned recording method for business data. The device provides a solution similar to the implementation of the above-mentioned method, and thus the specific limitations of the device embodiments provided below can refer to the limitations of the recording method for business data described above, which will not be repeated here.

[0061] The device can include a system (including a distributed system), software (application), module, component, server, client, etc. using the method described in the embodiments of the present specification, and a device combined with necessary implementation hardware. Based on the same innovative concept, the device in one or more embodiments provided by the disclosure embodiments is described below. Since the implementation of the device to solve the problem is similar to the method, the implementation of the specific device in the embodiments of the present specification can refer to the implementation of the foregoing method, and the repeated parts will not be repeated. The term "unit" or "module" used below can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware is also possible and is conceived.

[0062] In one embodiment, as shown in Figure 5 A device 500 for recording business data is provided, which can be the aforementioned server, or a module, component, device, unit, etc. integrated in the server.

[0063] The device 500 can include:

[0064] An annotation definition module 502 is configured to obtain a business data recording annotation in a business data recording request, and obtain a business data recording operation matched with the business data recording annotation based on aspect-oriented programming;

[0065] A method calling module 504 is configured to execute the business data recording operation, and obtain input parameters, output parameters, and annotation configuration information of aspect-oriented programming;

[0066] A business data recording module 506 is configured to obtain business data to be recorded according to the input parameters, output parameters, and annotation configuration information, determine a preset business data template corresponding to a business data type to be recorded, and store the business data to be recorded into the preset business data template to generate a target business data recording text.

[0067] In one embodiment, the preset business data template includes a placeholder and a variable identifier, a matched business data type is obtained according to the variable identifier, the placeholder is replaced with the matched business data, and a target business data recording text is obtained.

[0068] In one embodiment, the service data needing to be recorded is sent to a message queue, a service data record generation message is returned, and a target service data record text is generated.

[0069] In one embodiment, the annotation configuration information includes an interface field corresponding to the service data, an interface is called according to the interface field, the supplementary service data returned by the interface is received, the input parameter, the output parameter, the annotation configuration information, and the supplementary service data are stored in a data pool, and the data in the data pool is used as an input parameter of the interface.

[0070] In one embodiment, a corresponding service browsing page is called according to different service types, and the service browsing page is configured through a service data template.

[0071] As to the apparatus in the above embodiments, the specific manners in which various modules perform operations have been described in detail in the embodiments of the method, and thus will not be described in detail here.

[0072] The various modules in the above recording apparatus for service data can be all or partially realized through software, hardware, and combinations thereof. The above modules can be embedded in or independent of a processor in a computer device in a hardware form, or can be stored in a memory in a computer device in a software form, so as to be called and executed by a processor to perform operations corresponding to the above various modules.

[0073] In one embodiment, a computer device is provided, which can be a server, and an internal structure diagram of the computer device can be as shown in Figure 6 The computer device includes a processor, a memory, and a network interface connected through a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The database of the computer device is configured to store service data. The network interface of the computer device is configured to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a recording method of service data.

[0074] In one embodiment, a computer device is provided, which can be a terminal, and an internal structure diagram of the computer device can be as shown in Figure 7As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the processor executes the computer program, it implements a method for recording business data. The display screen can be an LCD screen or an e-ink display screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.

[0075] Those skilled in the art will understand that Figure 6 , Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the computer device to which the present disclosure is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0076] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the methods described in any embodiment of this disclosure.

[0077] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the methods described in any embodiment of this disclosure.

[0078] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided by the present disclosure can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided by the present disclosure can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0079] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist, it should be considered as the scope of the present disclosure.

[0080] The above embodiments only express several implementation manners of the present disclosure, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present disclosure. It should be noted that for ordinary skilled persons in the art, without departing from the concept of the present disclosure, a number of modifications and improvements can be made, which are within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the appended claims.

Claims

1. A method for recording business data, characterized in that, The method includes: Retrieve business data record annotations from business data record requests, and retrieve business data record operations that match the business data record annotations based on aspect-oriented programming; Perform the business data recording operation to obtain the input parameters, output parameters, and annotation configuration information for aspect-oriented programming; Based on the input parameters, output parameters, and annotation configuration information, the business data to be recorded is obtained, the preset business data template corresponding to the business data type to be recorded is determined, the business data to be recorded is stored in the preset business data template, and the target business data record text is generated. The annotation configuration information includes an interface field corresponding to the business data. The interface is called according to the interface field, and the supplementary business data returned by the interface is received. The input parameters, output parameters, annotation configuration information, and supplementary business data are stored in the data pool, and the data in the data pool is used as the input parameters of the interface.

2. The method according to claim 1, characterized in that, The preset business data template includes placeholders and variable identifiers. The matching business data type is obtained based on the variable identifiers, and the placeholders are replaced with the matching business data to obtain the target business data record text.

3. The method according to claim 1, characterized in that, The required business data is sent to the message queue, a business data record generation message is returned, and the target business data record text is generated simultaneously.

4. The method according to claim 2, characterized in that, The corresponding business browsing page is invoked according to different business types, and the business browsing page is configured through a business data template.

5. A device for recording business data, characterized in that, The device includes: The annotation definition module is used to obtain business data record annotations in business data record requests and to obtain business data record operations that match the business data record annotations based on aspect-oriented programming. The method invocation module is used to execute the business data recording operation and obtain the input parameters, output parameters, and annotation configuration information of aspect-oriented programming. The business data recording module is used to obtain the business data to be recorded based on the input parameters, output parameters, and annotation configuration information, determine the preset business data template corresponding to the business data type to be recorded, and store the business data to be recorded into the preset business data template to generate the target business data recording text. The annotation configuration information includes an interface field corresponding to the business data. The interface is called according to the interface field, and the supplementary business data returned by the interface is received. The input parameters, output parameters, annotation configuration information, and supplementary business data are stored in the data pool, and the data in the data pool is used as the input parameters of the interface.

6. The apparatus according to claim 5, characterized in that, The preset business data template includes placeholders and variable identifiers. The matching business data type is obtained based on the variable identifiers, and the placeholders are replaced with the matching business data to obtain the target business data record text.

7. The apparatus according to claim 5, characterized in that, The required business data is sent to the message queue, a business data record generation message is returned, and the target business data record text is generated simultaneously.

8. The apparatus according to claim 6, characterized in that, The corresponding business browsing page is invoked according to different business types, and the business browsing page is configured through a business data template.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.

11. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Log recording method, device and electronic device

    CN109240665A

  • Template building method, file generation method, template system, template building device and computer equipment

    CN112329413A