Business instruction execution method, device, computer equipment and storage medium

By extracting and parallel screening to process business instructions to be executed, the problem of inefficient authorization screening in traditional technology is solved, and the ability to efficiently execute business instructions is achieved.

CN113886452BActive Publication Date: 2025-05-23INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111190978.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-13
Publication Date
2025-05-23
Estimated Expiration
2041-10-13

AI Technical Summary

Technical Problem

In traditional technology, when banks handle large amounts of transaction business instructions, authorization screening is inefficient, resulting in the inability to efficiently execute business instructions.

Method used

By extracting the business instructions to be executed into the instruction queue according to the preset instruction extraction conditions, determining the instruction data amount in the instruction queue and calling the corresponding number of instruction screening threads, performing parallel screening processing, obtaining the target business instructions, and executing their corresponding business processing operations.

Benefits of technology

It realizes rapid screening of large-scale business instructions, improves the efficiency of business instructions execution, and can efficiently handle parallel business processing operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113886452B_ABST
    Figure CN113886452B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for executing business instructions. The method comprises: extracting the business instructions to be executed in the target database into the instruction queue according to the preset instruction extraction conditions; determining the instruction data volume in the instruction queue, and calling the instruction screening threads corresponding to the instruction data volume; the instruction data volume is the data volume of the business instructions to be executed in the instruction queue; through the instruction screening threads, the business instructions to be executed in the instruction queue are screened and processed in parallel to obtain the target business instructions; the user corresponding to the target business instruction has the authorization authority for the target business instruction, and the target business instruction is a business instruction that has not been repeatedly authorized by multiple users; executing the business processing operation corresponding to the target business instruction. The use of this method can improve the efficiency of business instruction execution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, computer equipment and storage medium for executing a business instruction. Background Art

[0002] Data processing runs through all areas of social production and social life, and is widely used in various enterprises and businesses. Financial institutions such as banks process thousands of transaction business data every day and perform authorization screening operations on each transaction business instruction initiated by the user to obtain executable business instructions.

[0003] However, in traditional technology, when banks conduct authorization screening for transaction business instructions initiated by users, they only process one transaction business instruction at a time. But if a large number of business instructions are received at the same time, it is obvious that this business instruction processing method requires a lot of time to screen and obtain executable business instructions, and thus it is impossible to efficiently execute the business processing operations corresponding to the business instructions.

[0004] Therefore, in the traditional technology, there is a problem that the business instructions cannot be executed efficiently. Summary of the invention

[0005] Based on this, it is necessary to provide a business instruction execution method, device, computer equipment and storage medium that can improve the efficiency of business instruction execution in response to the above technical problems.

[0006] A method for executing a business instruction, the method comprising:

[0007] According to the preset instruction extraction conditions, extract the business instructions to be executed in the target database into the instruction queue;

[0008] Determine the amount of instruction data in the instruction queue, and call instruction screening threads corresponding to the amount of instruction data; the amount of instruction data is the amount of data of the business instructions to be executed in the instruction queue;

[0009] Through the instruction screening thread, the business instructions to be executed in the instruction queue are screened and processed in parallel to obtain a target business instruction; the user corresponding to the target business instruction has authorization authority for the target business instruction, and the target business instruction is a business instruction that has not been repeatedly authorized by multiple users;

[0010] Execute the business processing operation corresponding to the target business instruction.

[0011] In one embodiment, before the step of extracting the to-be-executed business instructions in the target database into the instruction queue according to the preset instruction extraction condition, the method further includes:

[0012] Receive the business instruction to be screened sent by the front end; the business instruction to be screened is determined according to the business instruction authorization operation of the user; the business instruction authorization operation is an operation to authorize the corresponding business instruction to be authorized; the business instruction to be authorized is a business instruction determined according to the authority information of the user;

[0013] Screening the business instructions to be screened according to preset screening conditions;

[0014] The business instructions to be screened that meet the preset screening conditions are used as the business instructions to be executed in the target database.

[0015] In one embodiment, screening the service instructions to be screened according to the preset authorization screening conditions includes:

[0016] If the user corresponding to the business instruction to be screened does not repeatedly perform the business instruction authorization operation on the business instruction to be screened within a preset time, and other users with authorization authority for the business instruction to be screened do not perform the business instruction authorization operation on the business instruction to be screened, it is determined that the business instruction to be screened meets the preset screening condition.

[0017] In one embodiment, the method further comprises:

[0018] If the business instruction to be executed in the target database cannot be extracted to the instruction queue within the preset acquisition time, a business instruction re-retrieval message is sent to the front end; the business instruction re-retrieval message is used to prompt the user corresponding to the business instruction to be executed to re-perform the business instruction authorization operation;

[0019] Return to the step of extracting the to-be-executed business instructions in the target database into the instruction queue according to the preset instruction extraction condition, until the to-be-executed business instructions in the target database are extracted.

[0020] In one embodiment, the method further comprises:

[0021] If the time interval for calling the instruction screening thread exceeds the preset time interval threshold, and / or if the number of repeated processing of the screening process for the pending business instructions in the instruction queue exceeds the preset processing number threshold, and the target business instruction cannot be obtained, the steps of determining the amount of instruction data in the instruction queue and calling the instruction screening threads corresponding to the amount of instruction data are executed until the target business instruction is obtained.

[0022] In one embodiment, the process of screening the to-be-executed business instructions in the instruction queue in parallel through the instruction screening thread to obtain the target business instruction includes:

[0023] If the user corresponding to the business instruction to be executed has the operation authority for the execution account, and the execution amount corresponding to the business instruction to be executed is not greater than the execution amount threshold, and the user corresponding to the business instruction to be executed does not repeatedly perform the authorization operation on the business instruction to be executed within a preset time, and other users with authorization authority for the business instruction to be executed do not perform the authorization operation on the business instruction to be executed, then it is determined that the business instruction to be executed has passed the screening, and the business instruction to be executed is used as the target business instruction.

[0024] In one embodiment, the preset instruction extraction conditions include: instruction extraction data volume, instruction fetch time, instruction reprocessing time, instruction maximum extraction time, instruction extraction time interval, instruction extraction times, instruction storage time, instruction processing status, and at least one of the instruction queues.

[0025] A service instruction execution device, the device comprising:

[0026] An instruction extraction module is used to extract the to-be-executed business instructions in the target database into an instruction queue according to preset instruction extraction conditions;

[0027] A thread calling module, used to determine the amount of instruction data in the instruction queue, and call instruction screening threads corresponding to the amount of instruction data; the amount of instruction data is the amount of data of the business instructions to be executed in the instruction queue;

[0028] A parallel screening module is used to screen and process the business instructions to be executed in the instruction queue in parallel through the instruction screening thread to obtain a target business instruction; the user corresponding to the target business instruction has authorization authority for the target business instruction, and the target business instruction is a business instruction that has not been repeatedly authorized by multiple users;

[0029] An execution module is used to execute the business processing operation corresponding to the target business instruction.

[0030] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0031] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0032] The above-mentioned business instruction execution method, device, computer equipment and storage medium extract the business instructions to be executed in the target database into the instruction queue according to the preset instruction extraction conditions; then, determine the instruction data volume in the instruction queue, and call the instruction screening threads corresponding to the instruction data volume; wherein the instruction data volume is the data volume of the business instructions to be executed in the instruction queue; then, through the instruction screening threads, the business instructions to be executed in the instruction queue are screened and processed in parallel to obtain the target business instructions; wherein the user corresponding to the target business instructions has the authorization authority for the target business instructions, and the target business instructions are business instructions that have not been repeatedly authorized by multiple users; finally, execute the business processing operation corresponding to the target business instructions; in this way, when processing a large number of business instructions, the business instructions are screened and processed in parallel by calling the instruction screening threads corresponding to the instruction data volume extracted from the instruction queue, so that each business instruction to be executed in the instruction queue has a corresponding thread to screen and process the business instructions to be executed, so that it is possible to quickly screen whether a large number of business instructions to be executed have been repeatedly authorized by users, quickly obtain the target business instructions that have not been repeatedly authorized, and then efficiently execute the business processing operations corresponding to the target transaction instructions. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 An application environment diagram of a service instruction execution method in an embodiment;

[0034] Figure 2 A schematic diagram of a flow chart of a method for executing a service instruction in an embodiment;

[0035] Figure 3 A schematic flow chart of a method for executing a service instruction in another embodiment;

[0036] Figure 4 A schematic diagram of module association of a method and system for executing a business instruction in one embodiment;

[0037] Figure 5 is a structural block diagram of a service instruction execution device in one embodiment;

[0038] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0040] The business instruction execution method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the front end 110 communicates with the server 120 through the network. Among them, the server 120 extracts the business instructions to be executed in the target database into the instruction queue according to the preset instruction extraction conditions; then, the server 120 determines the instruction data volume in the instruction queue, and calls the instruction screening thread corresponding to the instruction data volume; wherein the instruction data volume is the data volume of the business instructions to be executed in the instruction queue; then, the server 120 screens and processes the business instructions to be executed in the instruction queue in parallel through the instruction screening thread to obtain the target business instruction; wherein, the user corresponding to the target business instruction has the authorization authority for the target business instruction, and the target business instruction is a business instruction that has not been repeatedly authorized by multiple users; finally, the server 120 executes the business processing operation corresponding to the target business instruction. In actual applications, the front end 110 can be, but is not limited to, the interface displayed by the browser in various personal computers, laptops, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented with an independent server or a server cluster composed of multiple servers.

[0041] In one embodiment, Figure 2 As shown, a business instruction execution method is provided, and the method is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0042] Step S210: extract the to-be-executed business instructions in the target database into an instruction queue according to the preset instruction extraction condition.

[0043] Among them, the preset instruction extraction conditions can be set according to system performance or user experience feedback. For example, the preset instruction extraction conditions can include but are not limited to the amount of instruction extraction data, instruction storage time, number of instruction extraction times, etc.

[0044] The target database is used to store the pending business instructions that are waiting to be extracted after being screened.

[0045] The instruction queue is used to sequentially store pending business instructions waiting to be executed.

[0046] The business instructions to be executed are obtained by screening the business instructions to be screened based on preset screening conditions.

[0047] In a specific implementation, the server will extract the pending business instructions stored in the target database according to the preset instruction extraction conditions, and store the pending business instructions in the instruction queue in the order of extraction time. For example, if the preset instruction extraction conditions include the time when the pending instructions are stored in the target database and the preset business instruction extraction data volume, then the server can extract instructions according to the time when the pending instructions are stored in the target database, and extract the pending business instructions first stored in the target data into the instruction queue, and the data volume of the pending business instructions extracted each time is the preset business instruction extraction data volume, so that the pending business instructions in the instruction queue are stored in time order, and the business instruction extraction data volume of each business instruction is known; wherein, the pending business instructions are the server filtering the pending business instructions based on the preset filtering conditions, and the business instructions that pass the filtering are obtained as the pending business instructions, and the business instructions with execution are registered in the target data waiting to be extracted.

[0048] Step S220, determining the instruction data volume in the instruction queue, and calling instruction screening threads of a number corresponding to the instruction data volume; the instruction data volume is the data volume of the business instructions to be executed in the instruction queue.

[0049] Among them, the instruction screening thread is used to perform the task of screening and processing the business instructions to be executed.

[0050] In the specific implementation, the preset instruction extraction conditions include the amount of data extracted each time the instruction is extracted. The server can determine the amount of data of the pending business instructions extracted and stored in the instruction queue each time based on the preset instruction extraction data amount, so that the server can call the same number of instruction screening threads as the amount of instruction extraction data, thereby ensuring that each pending business instruction in the instruction queue has a corresponding instruction screening thread.

[0051] Step S230, through the instruction screening thread, the business instructions to be executed in the instruction queue are screened in parallel to obtain the target business instruction; the user corresponding to the target business instruction has the authorization authority for the target business instruction, and the target business instruction is a business instruction that has not been repeatedly authorized by multiple users.

[0052] The screening process includes screening the authorization permissions of the users corresponding to the business instructions to be executed, and determining whether the business instructions to be executed are repeatedly authorized.

[0053] Specifically, after the server calls the instruction screening threads corresponding to the data volume of the business instructions to be executed, since each business instruction to be executed in the instruction queue has a corresponding instruction screening thread, the server can screen each business instruction to be executed at the same time to determine whether the user corresponding to the business instruction to be executed has the instruction authorization authority, and whether the business instruction to be executed has been repeatedly authorized by multiple users at the same authorization level, so as to quickly obtain the target business instruction, and the user corresponding to the target business instruction has the authorization authority for the target business instruction, and the target business instruction has not been repeatedly authorized by multiple users at the same authorization level; wherein, multiple users at the same authorization level are multiple users at the same authorization level as the user corresponding to the business instruction to be executed.

[0054] Step S240: executing the business processing operation corresponding to the target business instruction.

[0055] The business processing operation is performed based on the authorization opinion of the user corresponding to the target business instruction.

[0056] Specifically, after the server determines the target business instruction that can be executed, it executes the business processing operation corresponding to the target business instruction according to the authorization opinion of the user sent by the front end. Specifically, the user's authorization opinion includes authorization consent or authorization rejection. When the authorization opinion is authorization consent, if the user corresponding to the target business instruction is not the highest-level authorized user, the target business instruction needs to be sent to the next-level authorized user of the user corresponding to the target business instruction to perform authorization operations on the target business instruction until the highest-level authorized user corresponding to the target business instruction completes the authorization operation, and the server executes the business processing operation corresponding to the business instruction; if the user corresponding to the target business instruction is the highest-level authorized user, the corresponding processing operation is performed according to the different business types corresponding to the target business instruction, which can be a transfer operation. Then the server will deduct the corresponding amount from the payment account according to the execution amount corresponding to the target business instruction, transfer the corresponding amount to the receiving account, and generate a transfer record for the payment account and the receiving account corresponding to the target business instruction; when the authorization opinion is authorization rejection, the server returns a message to the front end indicating that the transaction instruction execution failed.

[0057] In the above-mentioned business instruction execution method, by extracting the business instructions to be executed in the target database into the instruction queue according to the preset instruction extraction conditions; then, determining the instruction data volume in the instruction queue, and calling the instruction screening threads corresponding to the instruction data volume; wherein the instruction data volume is the data volume of the business instructions to be executed in the instruction queue; then, through the instruction screening threads, the business instructions to be executed in the instruction queue are screened and processed in parallel to obtain the target business instructions; wherein, the user corresponding to the target business instructions has the authorization authority for the target business instructions, and the target business instructions are business instructions that have not been repeatedly authorized by multiple users; finally, executing the business processing operation corresponding to the target business instructions; in this way, when processing a large number of business instructions, the business instructions are screened and processed in parallel by calling the instruction screening threads corresponding to the instruction data volume extracted from the instruction queue, so that each business instruction to be executed in the instruction queue has a corresponding thread to screen and process the business instructions to be executed, so that it is possible to quickly screen whether a large number of business instructions to be executed have been repeatedly authorized by users, quickly obtain the target business instructions that have not been repeatedly authorized, and then efficiently execute the business processing operations corresponding to the target transaction instructions.

[0058] In another embodiment, before the step of extracting the business instructions to be executed in the target database into the instruction queue according to the preset instruction extraction conditions, the method also includes: receiving the business instructions to be screened sent by the front end; screening and processing the business instructions to be screened according to the preset screening conditions; and using the business instructions to be screened that meet the preset screening conditions as the business instructions to be executed in the target database.

[0059] The business instructions to be screened are determined according to the business instruction authorization operation of the user.

[0060] The business instruction authorization operation is an operation for authorizing the corresponding business instruction to be authorized.

[0061] The service instruction to be authorized is a service instruction determined according to the authority information of the user.

[0062] The preset screening condition is used to determine whether the service instruction to be screened is repeatedly authorized.

[0063] In a specific implementation, the front end determines the business instructions for which the user has authorization authority based on the user information stored in the corresponding database of the user who needs to authorize the business instructions. Specifically, the user can log in to the business system based on the identity information, for example, through the U shield (a tool for electronic signature and digital authentication of online banking), and the front end can obtain the user information corresponding to the user who needs to authorize the business instructions in the database corresponding to the front end based on the identity information. The user information may include whether the user has authorization authority for the account corresponding to the business instruction, the user's authorization level, the user's personal identity information, and the authorization limit, so that the front end can determine whether the user who needs to authorize the business instruction has authorization authority for the corresponding account, and whether the amount corresponding to the business instruction is not greater than the authorization limit, and then determine the business instructions that the user who needs to authorize the business instruction can authorize, and use the above business instructions as business instructions to be authorized.

[0064] Then, users who need to authorize business instructions can perform authorization selection operations on the front end for the business instructions to be authorized. Users can choose to authorize certain business instructions in a batch, authorize multiple batches of business instructions, authorize a batch of business instructions, and not authorize business instructions. At least one of the authorization methods to implement the authorization operation of the business instructions to be authorized; wherein, each batch of business instructions will be marked with a unique batch number, and all business instructions in a batch will also be marked in sequence. For example, business instructions in a batch with batch number 1 will be recorded as "1-1", "1-2", "1-3"..., and so on. Users can view all business instructions in this batch and select the business instructions that need to be authorized. Then, the front end will mark the business instructions selected by the user for authorization and transcode them into a string of "1" according to the user's authorization selection operation for the authorized business instructions, and mark the business instructions that the user did not select for authorization and transcode them into a string of "0". In this way, all business instructions to be authorized in a batch can be represented by "0" or "1"; among them, the business instructions corresponding to the string "1" will be used as business instructions to be screened; among them, the user has two authorization methods for the business instructions with screening: authorization to agree to execute the business instructions or authorization to refuse to execute the business instructions, so that the front end can determine the user's authorization opinion.

[0065] Afterwards, the front end sends the transcoded business instructions, the authorization opinions of the users who need to authorize the business instructions, and the personal identity information of the users who need to authorize the business instructions to the server. The server will screen the business instructions to be screened, that is, the business instructions corresponding to the character string "1" in the transcoded business instructions according to the preset screening conditions, and determine the business instructions that have not been repeatedly authorized in the business instructions to be screened as the business instructions to be screened that meet the preset screening conditions, and then store the business instructions to be screened that meet the preset screening conditions as the business instructions to be executed in the corresponding target database.

[0066] According to the technical solution of this embodiment, the business instruction to be executed is obtained based on the screening process of the business instruction to be screened; the business instruction to be screened is determined based on the user's authorization operation on the corresponding business instruction to be authorized; the business instruction to be authorized is a business instruction obtained based on the user's permission information; in this way, through the step-by-step business instruction processing method, it is ensured that the user corresponding to the business instruction to be executed has the authorization authority for the business instruction to be executed, and the business instruction to be executed is a business instruction that meets the preset screening conditions, so that the business instruction waiting to be executed can be accurately determined.

[0067] In another embodiment, the business instructions to be screened are screened according to preset authorization screening conditions, including: if the user corresponding to the business instruction to be screened does not repeatedly perform the business instruction authorization operation on the business instruction to be screened within a preset time, and other users with authorization authority for the business instruction to be screened do not perform the business instruction authorization operation on the business instruction to be screened, then it is determined that the business instruction to be screened meets the preset screening conditions.

[0068] Among them, the preset time can be adjusted dynamically.

[0069] Among them, other users who have authorization authority for the business instruction to be screened are authorized users of the same level who have authorization authority for the business instruction to be screened.

[0070] The authorized users at the same level are users at the same authorization level as the user corresponding to the business instruction to be screened.

[0071] In a specific implementation, the process of the server screening and processing the business instructions to be screened is carried out in the business instruction recording layer, and the business instruction recording layer has a database storing user information and instruction information of the business instructions to be screened; wherein the user information may include whether the user has authorization authority for the account corresponding to the business instruction, the user's authorization level, the user's personal identity information, and the authorization limit, and the instruction information of the business instructions to be screened includes the processing status of the business instructions to be screened; the server queries the database for user information and instruction information corresponding to the business instructions to be screened according to the received transcoded business instructions; if the server determines after query that the user corresponding to the business instruction to be screened has not repeatedly performed the authorization operation on the business instruction to be screened within a preset time, and the authorized user of the same level who has the authorization authority for the business instruction to be screened has not performed the authorization operation on the business instruction to be screened, then the server determines that the above-mentioned business instruction to be screened meets the preset screening condition, and uses the above-mentioned business instruction to be screened that meets the preset screening condition as the business instruction to be executed; wherein the authorized user of the same level is a user at the same authorization level as the user corresponding to the business instruction to be screened, that is, the authorized user of the same level and the user corresponding to the business instruction to be screened do not need to authorize and agree with each other when performing the business instruction authorization operation, and the server can execute the operation corresponding to the business instruction.

[0072] The technical solution of this embodiment determines the business instructions to be screened that meet the preset screening conditions by judging whether the user corresponding to the business instructions to be screened has not repeatedly performed the business instruction authorization operation on the business instructions to be screened within a preset time, and judging whether other users with authorization authority for the business instructions to be screened have not performed the business instruction authorization operation on the business instructions to be screened; in this way, the business instructions to be screened that meet the preset screening conditions are used as the business instructions to be executed, preventing the business instructions to be executed from being repeatedly authorized business instructions, thereby further ensuring the accurate authorization of the business instructions.

[0073] In another embodiment, the method further includes: if the business instructions to be executed in the target database cannot be extracted into the instruction queue within the preset acquisition time, sending a business instruction re-retrieval message to the front end; returning to the step of extracting the business instructions to be executed in the target database into the instruction queue according to the preset instruction extraction conditions, until the business instructions to be executed in the target database are extracted.

[0074] The preset acquisition time may be a self-set acquisition time.

[0075] The service instruction re-introduction message is used to prompt the user corresponding to the service instruction to be executed to re-perform the service instruction authorization operation.

[0076] In a specific implementation, the situation in which the business instructions to be executed in the target database cannot be extracted into the instruction queue within the preset acquisition time may include: due to a failure in the business system, the server cannot extract the business instructions to be executed in the target database into the instruction queue according to the preset instruction extraction conditions; or the server cannot extract the business instructions to be executed according to the preset instruction extraction conditions; or the server cannot store the extracted business instructions to be executed into the instruction queue according to the preset instruction conditions; if any of the above failure situations occurs, the server can send a business instruction re-retrieval message to the front end, and the user who needs to authorize the business instruction can re-authorize the authorized business instruction according to the business instruction re-retrieval interface displayed on the front end, so that the front end can obtain the business instructions to be screened, and send the business instructions to be screened to the server, the server screens the business instructions to be screened according to the preset screening conditions to obtain the business instructions to be executed, stores the business instructions to be executed in the target database, and executes the steps of extracting the business instructions to be executed in the target database into the instruction queue according to the preset instruction extraction conditions again, until the server can successfully extract the business instructions to be executed in the target data into the instruction queue.

[0077] The technical solution of this embodiment is as follows: if the business instructions to be executed in the target database cannot be extracted into the instruction queue within the preset acquisition time, a business instruction re-retrieval message is sent to the front end; then, the process returns to the step of extracting the business instructions to be executed in the target database into the instruction queue according to the preset instruction extraction conditions, until the business instructions to be executed in the target database are extracted; in this way, if a business system fails and the business instructions to be executed cannot be extracted into the instruction queue within the preset acquisition time, a business instruction re-retrieval message can be sent to the front end; thereby, the business instructions to be executed can be re-extracted, thereby avoiding the problem of being unable to screen and process the business instructions to be executed due to the inability to extract the business instructions to be executed into the instruction queue; and the reliability of the business instruction extraction and processing operation can be improved.

[0078] In another embodiment, the method further includes: if the time interval for calling the instruction screening thread exceeds a preset time interval threshold, and / or if the number of repeated processing of screening and processing the pending business instructions in the instruction queue exceeds a preset processing number threshold, and the target business instruction still cannot be obtained, then the steps of determining the amount of instruction data in the instruction queue and calling a number of instruction screening threads corresponding to the amount of instruction data are executed until the target business instruction is obtained.

[0079] The preset time interval threshold may be a self-set maximum instruction screening thread start time interval.

[0080] The preset processing times threshold may be the maximum processing times for screening the business instructions to be executed.

[0081] In the specific implementation, when the server calls the instruction screening threads corresponding to the amount of instruction data and performs screening and processing on the business instructions to be executed in parallel, if some human interference operations occur, such as the user corresponding to the target business instruction re-authorizes the business instruction on the front end, specifically, the user can decide to authorize the business instructions that were not selected for authorization when performing the authorization selection operation for the business instructions to be authorized after checking the detailed information of the business instructions that were not selected for authorization, then the business instruction re-authorization operation is performed on the front end, resulting in the failure of the server's screening and processing, and the business instructions need to be screened and processed again; the human interference operation can also be the staff corresponding to the business system restarting the system, resulting in the interruption of the server's screening and processing of the business instructions to be executed, and the business instructions need to be processed again. Each time the server calls the instruction screening thread corresponding to the instruction data volume, it will record the start time of the instruction screening thread and determine the time interval between the start times of the instruction screening thread in two adjacent screening and processing tasks; and the server will determine the number of times the same business instruction to be executed is screened and processed; if the server determines that the start time interval of the instruction screening thread is greater than the preset maximum instruction screening thread start time interval, or the server determines that the number of times the same business instruction to be executed is screened and processed is greater than the maximum number of times the business instruction to be executed is screened and processed, or when both of the above conditions are met at the same time, it is still impossible to obtain the target business instruction by screening the business instruction to be executed through the instruction screening thread, the server determines that the reason for the failure of the server to perform the screening and processing operation on the business instruction to be executed is that human interference has occurred, then the server will no longer reprocess the business instruction through human intervention, but will automatically call the instruction screening thread with the data volume corresponding to the data volume of the business instruction to be executed stored in the instruction queue, and screen and process the business instruction to be executed in parallel until the target business instruction can be obtained.

[0082] According to the technical solution of this embodiment, when the time interval for calling the instruction screening thread exceeds the preset time interval threshold, and / or the number of repeated processing of screening and processing the business instructions to be executed in the instruction queue exceeds the preset processing number threshold, the target business instruction cannot be obtained. By calling the instruction screening threads of a number corresponding to the data volume of the business instructions to be executed in the instruction queue, the business instructions to be executed are screened and processed to obtain the target business instructions. In this way, when the target business instruction cannot be obtained within the preset threshold, the instruction screening thread is automatically called for screening and processing to obtain the target business instruction. This improves the reliability of the business instruction screening and processing operations.

[0083] In another embodiment, through the instruction screening thread, the pending business instructions in the instruction queue are screened and processed in parallel to obtain the target business instruction, including: if the user corresponding to the pending business instruction has the operation authority for the execution account, and the execution amount corresponding to the pending business instruction is not greater than the execution amount threshold, and the user corresponding to the pending business instruction has not repeatedly performed the authorization operation on the pending business instruction within a preset time, and other users with authorization authority for the pending business instruction have not performed the authorization operation on the pending business instruction, then it is determined that the pending business instruction has passed the screening, and the pending business instruction is used as the target business instruction.

[0084] The operation authority may include, but is not limited to, authorization authority, entry authority, management authority, and other authorities.

[0085] Among them, the execution amount threshold is the authorization limit corresponding to the business instruction to be executed.

[0086] Among them, other users who have authorization authority for the business instruction to be executed are authorized users of the same level who have authorization authority for the business instruction to be executed.

[0087] The above-mentioned authorized users at the same level are users at the same authorization level as the user corresponding to the business instruction to be executed.

[0088] In the specific implementation, the process of the server calling the instruction screening thread to screen and process the business instructions to be executed is carried out in the business instruction processing layer. The business instruction processing layer has a database storing user information and instruction information of the business instructions to be executed; the user information may include whether the user has authorization authority for the account corresponding to the business instruction, the user's authorization level, the user's personal identity information, and the authorization limit; the instruction information of the business instructions to be executed includes the processing status of the business instructions to be executed; the server queries the user information and instruction information corresponding to the business instructions to be executed in the database corresponding to the business instruction processing layer according to the business instructions to be executed stored in the instruction queue; if the server determines after the query that the user corresponding to the business instruction to be executed has the authorization authority to the account corresponding to the business instruction to be executed, the server will query the user information and instruction information corresponding to the business instructions to be executed. If the authorization authority of the business instruction to be executed is met, and the execution amount corresponding to the business instruction to be executed is not greater than the authorization limit, and the user corresponding to the business instruction to be executed has not repeatedly performed the authorization operation on the business instruction to be executed within the preset time, and the authorized user at the same level who has the authorization authority for the business instruction to be executed has not performed the authorization operation on the business instruction to be executed, then the business instruction to be executed is determined to have passed the screening, and the above-mentioned business instruction to be executed that has passed the screening is used as the target business instruction; wherein, the authorized user at the same level is a user at the same authorization level as the user corresponding to the business instruction to be executed, that is, the authorized user at the same level and the user corresponding to the business instruction to be executed do not need to authorize and agree with each other when performing the business instruction authorization operation, and the server can execute the operation corresponding to the business instruction.

[0089] The technical solution of this embodiment determines whether the user corresponding to the business instruction to be executed has the operation authority for the execution account, determines whether the execution amount corresponding to the business instruction to be executed is not greater than the authorization limit, determines whether the user corresponding to the business instruction to be executed has not repeatedly performed the authorization operation on the business instruction to be executed within a preset time, and determines whether other users with authorization authority for the business instruction to be executed have not performed the authorization operation on the business instruction to be executed; in this way, through a step-by-step multiple permission verification process, the business instructions to be executed that pass the screening can be determined, and the business instructions to be executed that pass the screening can be used as the target business instructions; thereby avoiding the problem of erroneous authorization and repeated authorization of business instructions; and accurate target business instructions can be obtained.

[0090] In another embodiment, the preset instruction extraction conditions include: instruction extraction data volume, instruction fetch time, instruction reprocessing time, instruction maximum extraction time, instruction extraction time interval, instruction extraction times, instruction storage time, instruction processing status, and at least one of the instruction queues.

[0091] Specifically, the preset instruction extraction conditions include a variety of extraction parameters; based on the amount of instruction extraction data, the server can determine the amount of data of the pending business instructions extracted from the target database each time, so that the instruction screening threads corresponding to the amount of extracted data can be called; based on the instruction retrieval time and the instruction storage time, the server can determine the extraction order of the pending business instructions, and determine how long it will take for the pending business instructions to be extracted into the instruction queue after being stored in the target database, thereby determining the range of time used for the pending business instructions to be extracted from the storage in the target database to the extraction into the instruction queue; based on the instruction re-processing time, the server can determine the time interval between the screening time and the extraction time for the pending business instructions that were last extracted from the target database to the instruction queue but have not been processed; based on According to the maximum instruction extraction time, the server can determine the maximum extraction time required to extract the pending business instruction from the target database to the instruction queue; according to the instruction extraction time interval, the server can determine the extraction time interval for each extraction of the pending business instruction in the target database; according to the number of instruction extractions, the server can determine the extraction number threshold for repeated extraction of the pending business instruction in the target database; according to the instruction processing status, the server can determine whether the pending business instruction is in a successful extraction state, a failed extraction state and is being repeatedly extracted, or a state that cannot be extracted; according to the instruction queue, the server can store the pending business instruction extracted from the target database in the corresponding instruction queue for subsequent screening and processing operations; and these extraction parameters can be dynamically adjusted according to the processing situation of the business system.

[0092] The technical solution of this embodiment extracts the business instructions to be executed by setting extraction conditions including multiple extraction parameters, so as to fully obtain the instruction information of the business instructions to be executed stored in the instruction queue; and then, based on the instruction information, the business instructions to be executed can be effectively screened and processed.

[0093] In another embodiment, Figure 3 As shown, a business instruction execution method is provided, and the method is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0094] Step S310, receiving the business instructions to be screened sent by the front end; the business instructions to be screened are determined according to the user's business instruction authorization operation; the business instruction authorization operation is an operation to authorize the corresponding business instructions to be authorized; the business instructions to be authorized are business instructions determined according to the user's authority information.

[0095] Step S320: If the user corresponding to the business instruction to be screened does not repeatedly perform the business instruction authorization operation on the business instruction to be screened within a preset time, and other users with authorization authority for the business instruction to be screened do not perform the business instruction authorization operation on the business instruction to be screened, it is determined that the business instruction to be screened meets the preset screening conditions.

[0096] Step S330: The business instructions to be screened that meet the preset screening condition are used as the business instructions to be executed in the target database.

[0097] Step S340: extract the to-be-executed business instructions in the target database into an instruction queue according to the preset instruction extraction condition.

[0098] Step S350, determining the instruction data volume in the instruction queue, and calling instruction screening threads of a number corresponding to the instruction data volume; the instruction data volume is the data volume of the business instructions to be executed in the instruction queue.

[0099] Step S360, through the instruction screening thread, the business instructions to be executed in the instruction queue are screened and processed in parallel to obtain a target business instruction; the user corresponding to the target business instruction has authorization authority for the target business instruction, and the target business instruction is a business instruction that has not been repeatedly authorized by multiple users.

[0100] Step S370: executing the business processing operation corresponding to the target business instruction.

[0101] It should be noted that the specific limitations of the above steps can be found in the specific limitations of a business instruction execution method mentioned above, which will not be repeated here.

[0102] It should be understood that although Figure 2 and Figure 3 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 and Figure 3 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0103] To facilitate the understanding of those skilled in the art, Figure 4The module association diagram of a business instruction execution method and system in an embodiment is shown in the figure. As shown in the figure, the system for implementing the business instruction execution method is composed of a front end and a back end; wherein the front end is composed of a business instruction access layer 401, which is used to perform interactive operations with users. The back end is composed of a business instruction recording layer 402, a business instruction extraction layer 403, and a business instruction processing layer 404. The business instruction recording layer 402 is used to receive information sent by the front end, which includes: transcoded business instructions (including business instructions to be screened), the authorization opinions of users who need to authorize the business instructions, and the user personal identity information corresponding to the user who needs to authorize the business instructions, and distribute the messages sent by the front end to different Paas (Platform asaService, Platform as a Service) cloud containers based on the user personal identity information; specifically, in order to facilitate the processing of authorization operations of users of the same company, the user's company can be determined according to the user's personal identity information, and the information corresponding to users belonging to the same company is stored in a cloud container, and all subsequent processing operations on business instructions are also performed on the cloud container; in addition, the business instruction recording layer 402 also needs to screen the business instructions to be screened according to the preset screening conditions; the business instructions to be screened that meet the preset screening conditions are used as business instructions to be executed, and the business instructions to be executed are registered in the target database. The business instruction extraction layer 403 is used to extract the business instructions to be executed in the target database into the instruction queue according to the preset instruction extraction conditions, and determine the data volume of the business instructions to be executed in the instruction queue. The business instruction processing layer 404 is used to call instruction screening threads of a number corresponding to the instruction data volume, and screen and process the to-be-executed business instructions in the instruction queue in parallel to obtain target business instructions.

[0104] In one embodiment, Figure 5 As shown, a business instruction execution device is provided, including: an instruction extraction module 510, a thread calling module 520, a parallel screening module 530 and an execution module 540, wherein:

[0105] The instruction extraction module 510 is used to extract the to-be-executed business instructions in the target database into the instruction queue according to the preset instruction extraction conditions.

[0106] The thread calling module 520 is used to determine the instruction data volume in the instruction queue and call instruction screening threads corresponding to the instruction data volume; the instruction data volume is the data volume of the business instructions to be executed in the instruction queue.

[0107] The parallel screening module 530 is used to screen and process the pending business instructions in the instruction queue in parallel through the instruction screening thread to obtain the target business instruction; the user corresponding to the target business instruction has the authorization authority for the target business instruction, and the target business instruction is a business instruction that has not been repeatedly authorized by multiple users.

[0108] The execution module 540 is used to execute the business processing operation corresponding to the target business instruction.

[0109] In one of the embodiments, the business instruction execution device also includes: an instruction receiving module, used to receive the business instructions to be screened sent by the front end; the business instructions to be screened are determined according to the user's business instruction authorization operation; the business instruction authorization operation is an operation to authorize the corresponding business instructions to be authorized; the business instructions to be authorized are business instructions determined according to the user's permission information; an instruction screening module, used to screen and process the business instructions to be screened according to preset screening conditions; an instruction determination module, used to use the business instructions to be screened that meet the preset screening conditions as business instructions to be executed.

[0110] In one of the embodiments, the instruction screening module is specifically used to determine that the business instruction to be screened meets the preset screening condition if the user corresponding to the business instruction to be screened does not repeatedly perform the business instruction authorization operation on the business instruction to be screened within a preset time, and other users with authorization authority for the business instruction to be screened do not perform the business instruction authorization operation on the business instruction to be screened.

[0111] In one of the embodiments, the business instruction execution device further includes: an instruction retrieval module, which is used to send a business instruction retrieval message to the front end if the business instructions to be executed in the target database cannot be extracted into the instruction queue within the preset acquisition time; and a return module, which is used to return to the step of extracting the business instructions to be executed in the target database into the instruction queue according to the preset instruction extraction conditions until the business instructions to be executed in the target database are extracted.

[0112] In one embodiment, the business instruction execution device further includes: a target business instruction determination module, which is used to determine the amount of instruction data in the instruction queue and call the instruction screening threads corresponding to the amount of instruction data if the time interval for calling the instruction screening thread exceeds a preset time interval threshold, and / or if the target business instruction cannot be obtained after the repeated processing times of screening the business instructions to be executed in the instruction queue exceeds a preset processing times threshold, then the step of determining the amount of instruction data in the instruction queue and calling the instruction screening threads corresponding to the amount of instruction data is executed until the target business instruction is obtained.

[0113] In one embodiment, the parallel screening module 530 is specifically used to determine that the business instruction to be executed has passed the screening and use the business instruction to be executed as the target business instruction if the user corresponding to the business instruction to be executed has the operation authority for the execution account, and the execution amount corresponding to the business instruction to be executed is not greater than the execution amount threshold, and the user corresponding to the business instruction to be executed has not repeatedly performed the authorization operation on the business instruction to be executed within a preset time, and other users who have authorization authority for the business instruction to be executed have not performed the authorization operation on the business instruction to be executed.

[0114] In one embodiment, the preset instruction extraction conditions include: instruction extraction data volume, instruction fetch time, instruction reprocessing time, instruction maximum extraction time, instruction extraction time interval, instruction extraction times, instruction storage time, instruction processing status, and at least one of the instruction queues.

[0115] For the specific definition of a business instruction execution device, please refer to the definition of a business instruction execution method above, which will not be repeated here. Each module in the above-mentioned business instruction execution device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0116] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used 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 the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store business instruction execution data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a business instruction execution method is implemented.

[0117] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0118] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned method for executing a business instruction. The steps of the method for executing a business instruction here may be the steps of the method for executing a business instruction in each of the above-mentioned embodiments.

[0119] In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the above-mentioned method for executing a business instruction. The steps of the method for executing a business instruction may be the steps of the method for executing a business instruction in each of the above-mentioned embodiments.

[0120] Those of ordinary skill 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, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application 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 or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0121] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0122] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for executing a business instruction, It is characterized in that include: Receive the business instruction to be screened sent by the front end, wherein the business instruction to be screened is determined according to the business instruction authorization operation of the user, the business instruction authorization operation is an operation to authorize the corresponding business instruction to be authorized, and the business instruction to be authorized is a business instruction determined according to the authority information of the user; The business instructions to be screened are screened according to the preset screening conditions, including: if the user corresponding to the business instructions to be screened does not repeatedly perform the business instruction authorization operation on the business instructions to be screened within a preset time, and other users with authorization authority for the business instructions to be screened do not perform the business instruction authorization operation on the business instructions to be screened, then it is determined that the business instructions to be screened meet the preset screening conditions; The business instructions to be screened that meet the preset screening conditions are used as the business instructions to be executed in the target database; According to the preset instruction extraction conditions, extract the business instructions to be executed into the instruction queue; Determine the amount of instruction data in the instruction queue, and call instruction screening threads corresponding to the amount of instruction data; the amount of instruction data is the amount of data of the business instructions to be executed in the instruction queue; Through the instruction screening thread, the business instructions to be executed in the instruction queue are screened and processed in parallel to obtain a target business instruction; the user corresponding to the target business instruction has authorization authority for the target business instruction, and the target business instruction is a business instruction that has not been repeatedly authorized by multiple users; Execute the business processing operation corresponding to the target business instruction.

2. The method according to claim 1, It is characterized in that The method further comprises: If the business instruction to be executed in the target database cannot be extracted to the instruction queue within the preset acquisition time, a business instruction re-retrieval message is sent to the front end; the business instruction re-retrieval message is used to prompt the user corresponding to the business instruction to be executed to re-perform the business instruction authorization operation; Return to the step of extracting the to-be-executed business instructions in the target database into the instruction queue according to the preset instruction extraction condition, until the to-be-executed business instructions in the target database are extracted.

3. The method according to claim 1, It is characterized in that The method further comprises: If the time interval for calling the instruction screening thread exceeds the preset time interval threshold, and / or if the number of repeated processing of the screening process for the pending business instructions in the instruction queue exceeds the preset processing number threshold, and the target business instruction still cannot be obtained, the steps of determining the amount of instruction data in the instruction queue and calling the instruction screening threads corresponding to the amount of instruction data are executed until the target business instruction is obtained.

4. The method according to claim 1, It is characterized in that The method of screening and processing the to-be-executed business instructions in the instruction queue in parallel through the instruction screening thread to obtain the target business instruction includes: If the user corresponding to the business instruction to be executed has the operation authority for the execution account, and the execution amount corresponding to the business instruction to be executed is not greater than the execution amount threshold, and the user corresponding to the business instruction to be executed does not repeatedly perform the authorization operation on the business instruction to be executed within a preset time, and other users with authorization authority for the business instruction to be executed do not perform the authorization operation on the business instruction to be executed, then it is determined that the business instruction to be executed has passed the screening, and the business instruction to be executed is used as the target business instruction.

5. The method according to claim 1, It is characterized in that The preset instruction extraction conditions include: instruction extraction data volume, instruction fetching time, instruction reprocessing time, instruction maximum extraction time, instruction extraction time interval, instruction extraction times, instruction storage time, instruction processing status, and at least one of the instruction queues.

6. A business instruction execution device, It is characterized in that The device comprises: An instruction receiving module is used to receive the business instruction to be screened sent by the front end, wherein the business instruction to be screened is determined according to the business instruction authorization operation of the user, the business instruction authorization operation is an operation to authorize the corresponding business instruction to be authorized, and the business instruction to be authorized is a business instruction determined according to the authority information of the user; The instruction screening module is used to screen the business instructions to be screened according to the preset screening conditions, including: if the user corresponding to the business instruction to be screened does not repeatedly perform the business instruction authorization operation on the business instruction to be screened within a preset time, and other users with authorization authority for the business instruction to be screened do not perform the business instruction authorization operation on the business instruction to be screened, then it is determined that the business instruction to be screened meets the preset screening conditions; An instruction determination module, used to take the to-be-screened business instructions that meet the preset screening conditions as the to-be-executed business instructions in the target database; An instruction extraction module, used to extract the to-be-executed business instructions into an instruction queue according to preset instruction extraction conditions; A thread calling module, used to determine the amount of instruction data in the instruction queue, and call instruction screening threads corresponding to the amount of instruction data; the amount of instruction data is the amount of data of the business instructions to be executed in the instruction queue; A parallel screening module is used to screen and process the business instructions to be executed in the instruction queue in parallel through the instruction screening thread to obtain a target business instruction; the user corresponding to the target business instruction has authorization authority for the target business instruction, and the target business instruction is a business instruction that has not been repeatedly authorized by multiple users; The execution module is used to execute the business processing operation corresponding to the target business instruction.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Remote authorization request scheduling method, service server and scheduling system

    CN104657207A

  • Multi-thread task processing method and device and storage medium

    CN109582455A