Operation instruction processing method, device, computer equipment and storage medium
By generating a set of pending instructions and judging whether there are matching instructions in the historical results, the problem of low processing efficiency of operation instructions is solved, and more efficient data processing and resource utilization is achieved.
Patent Information
- Application Number
- CN202010461898.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-27
- Publication Date
- 2025-08-22
- Estimated Expiration
- 2040-05-27
AI Technical Summary
In the prior art, the operation instruction processing efficiency is low, especially when the user terminal has limited computing power and massive data processing, resulting in high resource occupancy and affecting the processing speed.
By generating a set of pending instructions, it is determined whether there are matching processed instructions in the historical processing results. If there is, the result of the processed instructions will be used, otherwise it will be sent to the management server for processing, and data security and transparency can be ensured in combination with blockchain technology.
It improves the efficiency of operation instructions processing, shortens the time to obtain processing results, reduces the resource usage of management servers, and improves processing speed.
Smart Images

Figure CN111679858B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to an operation instruction processing method, device, computer equipment and storage medium. Background Art
[0002] Data processing to obtain processing results is achieved by inputting operation instructions. The user terminal obtains the operation instructions input by the user and transmits the operation instructions to the management server to obtain target data from the massive data stored in the management server. The target data is processed to obtain processing results and fed back to the user terminal. Since the amount of data contained in massive data is huge and cannot be stored in the user terminal, and the computing power of the user terminal is limited, the method of sending operation instructions to the management server is adopted to process the massive data and obtain processing results.
[0003] However, the above method requires the user to edit the operation instruction and then send it to the management server. If any character in the operation instruction is entered incorrectly, the operation instruction cannot be executed, resulting in low operation instruction input efficiency. Even if the operation instruction has been executed, it must be sent to the management server again. When multiple operation instructions are sent to the management server at the same time, the resource utilization rate of the management server is high, which affects the processing speed of the management server and takes a long time to process the operation instructions. Therefore, the existing technical method has the problem of low efficiency in processing operation instructions. Summary of the Invention
[0004] The embodiments of the present invention provide a method, apparatus, computer device and storage medium for processing an operation instruction, aiming to solve the problem of low efficiency in processing operation instructions in existing technical methods.
[0005] In a first aspect, an embodiment of the present invention provides a method for processing an operation instruction, comprising:
[0006] If instruction generation information input by the user is received, a pre-stored method function matching the instruction generation information is obtained to generate a set of instructions to be processed, wherein the set of instructions to be processed includes sequentially generated instructions to be processed, and the instructions to be processed include one method function and parameter values corresponding to the method function;
[0007] Determining whether the pre-stored historical processing results include a processed instruction that matches any of the pending instructions in the pending instruction set;
[0008] If the historical processing results include a processed instruction that matches any of the instructions to be processed, the instruction processing result of the processed instruction is used as the first processing result of the set of instructions to be processed;
[0009] The pending instructions in the pending instruction set that are not included in the historical processing results are sent to the management server, so that the processing results fed back by the management server are used as the second processing results of the pending instruction set, wherein the first processing result and the second processing result are jointly used as the instruction set processing results corresponding to the pending instruction set.
[0010] In a second aspect, an embodiment of the present invention provides an operation instruction processing device, comprising:
[0011] a to-be-processed instruction set generating unit, configured to, upon receiving instruction generation information input by a user, obtain a pre-stored method function matching the instruction generation information to generate an to-be-processed instruction set, wherein the to-be-processed instruction set includes sequentially generated to-be-processed instructions, each of which includes a method function and parameter values corresponding to the method function;
[0012] a pending instruction set determination unit, configured to determine whether the pre-stored historical processing results contain a processed instruction that matches any pending instruction in the pending instruction set;
[0013] a first processing result acquiring unit configured to, if the historical processing results include a processed instruction that matches any of the instructions to be processed, use the instruction processing result of the processed instruction as the first processing result of the set of instructions to be processed;
[0014] The second processing result acquisition unit is used to send the pending instructions in the pending instruction set that are not included in the historical processing results to the management server, so as to use the processing results fed back by the management server as the second processing results of the pending instruction set, wherein the first processing result and the second processing result are jointly used as the instruction set processing results corresponding to the pending instruction set.
[0015] In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the operation instruction processing method described in the first aspect when executing the computer program.
[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the operation instruction processing method described in the first aspect above.
[0017] Embodiments of the present invention provide an operation instruction processing method, apparatus, and computer device. A corresponding set of pending instructions is generated based on instruction generation information and a pre-stored method function. The method determines whether there is a processed instruction in the historical processing results that matches any pending instruction in the pending instruction set. If a processed instruction matching the pending instruction exists in the historical processing results, the pending instruction in the pending instruction set that matches the processed instruction does not need to be sent to a management server for repeated processing. This shortens the time required to obtain processing results and improves the efficiency of processing the pending instruction set. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 A flowchart of a method for processing an operation instruction provided by an embodiment of the present invention;
[0020] Figure 2 A schematic diagram of an application scenario of the operation instruction processing method provided by an embodiment of the present invention;
[0021] Figure 3 A schematic diagram of a sub-flow diagram of an operation instruction processing method provided by an embodiment of the present invention;
[0022] Figure 4 Another flowchart of the method for processing an operation instruction provided by an embodiment of the present invention;
[0023] Figure 5 Another flowchart of the method for processing an operation instruction provided by an embodiment of the present invention;
[0024] Figure 6 A schematic diagram of another sub-flow of the operation instruction processing method provided by an embodiment of the present invention;
[0025] Figure 7 Another flowchart of the method for processing an operation instruction provided by an embodiment of the present invention;
[0026] Figure 8 Another flowchart of the method for processing an operation instruction provided by an embodiment of the present invention;
[0027] Figure 9 A schematic block diagram of an operation instruction processing device provided by an embodiment of the present invention;
[0028] Figure 10A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0030] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0031] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0032] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0033] See also Figure 1 , Figure 1 is a flow chart of an operation instruction processing method provided by an embodiment of the present invention, Figure 2Schematic diagram of an application scenario of the operation instruction processing method provided in an embodiment of the present invention. The operation instruction processing method is applied to a user terminal 10, and the method is executed by an application software installed in the user terminal 10. The management server 20 communicates with the user terminal 10 by establishing a network connection with the user terminal 10. The user can input instruction generation information through the user terminal 10 to generate a set of instructions to be processed. The user terminal 10 executes the operation instruction processing method to process the set of instructions to be processed to obtain a corresponding first processing result and a second processing result. In the process of processing the set of instructions to be processed, the user terminal 10 can send the instructions to be processed to the management server 20. The management server 20 processes the instructions to be processed and feeds back the corresponding second processing result to the user terminal. The user terminal 10 is a terminal device for executing the operation instruction processing method, such as a desktop computer, a laptop computer, a tablet computer or a mobile phone, and the management server 20 is an enterprise terminal for establishing a network connection with the user terminal 10 to transmit data information. Figure 2 The figure only illustrates data information transmission between one user terminal 10 and the management server 20. In actual applications, the management server 20 may also transmit data information with multiple user terminals 10 at the same time.
[0034] like Figure 1 As shown, the method includes steps S110 to S140.
[0035] S110. If instruction generation information input by the user is received, a pre-stored method function matching the instruction generation information is obtained to generate a set of instructions to be processed, wherein the set of instructions to be processed includes instructions to be processed generated in sequence, and the instructions to be processed include a method function and a parameter value corresponding to the method function.
[0036] If the instruction generation information input by the user is received, a pre-stored method function that matches the instruction generation information is obtained to generate a set of instructions to be processed, wherein the set of instructions to be processed includes instructions to be processed that are generated in sequence, and the instructions to be processed include one method function and a parameter value corresponding to the method function. The instruction generation information includes function keywords and parameter value configuration information, and the instruction generation information includes one or more function keywords. One function keyword corresponds to one target function. The parameter value configuration information includes configuration information corresponding to all function keywords. One function keyword corresponds to a set of configuration information in the parameter value configuration information. A method function set is pre-stored in the user terminal, and the method function set includes all method functions available to the user. The parameter values of the method functions included in the method function set are all empty, and the method function with the configured parameter value can be used as the instruction to be processed. According to the instruction generation information input by the user, the pre-stored method function that matches the instruction generation information can be obtained, and a set of pending instructions containing pending instructions can be further generated. The pending instructions are instruction codes constructed by the user to process the data. After the pending instructions are input into the management server, the instruction processing results corresponding to the pending instructions can be obtained, wherein a pending instruction includes a method function and one or more parameter values corresponding to the method function.
[0037] For example, the information contained in a certain instruction to be processed is shown in Table 1.
[0038]
[0039] Table 1
[0040] In one embodiment, if Figure 3 As shown, step S110 includes sub-steps S111, S112 and S113.
[0041] S111 , obtaining a pre-stored method function that matches any of the function keywords and feeding it back to the user as an alternative method function for selection by the user.
[0042] Pre-stored method functions matching any of the function keywords are retrieved and fed back to the user as candidate method functions for selection. The candidate method functions matching the function keyword may include one, multiple, or zero method functions. The function keyword is keyword information for searching a method function set. Method functions included in the method function set can be searched based on the function keyword. The function keyword is English letters or Chinese characters.
[0043] For example, if a function keyword is "s", the two method functions "state" and "sort" that match "s" in the method function set are fed back to the user as alternative method functions.
[0044] Before feeding back the alternative method function to the user for the user to select, it also includes: judging whether the number of method functions in the alternative method function is zero; if the number of method functions in the alternative method function is zero, then feeding back to the user a prompt message that the alternative method function has not been obtained; if the number of method functions in the alternative method function is not zero, executing the step of feeding back the alternative method function to the user for the user to select.
[0045] S112: Acquire a method function selected by the user based on the candidate method functions as a target method function.
[0046] A method function selected by the user based on the candidate method function is obtained as the target method function. After obtaining the candidate method function, the user can input corresponding function selection information, and according to the function selection information, a method function in the candidate method function can be determined as the corresponding target method function.
[0047] S113: Obtain a set of configuration information corresponding to the target method function in the parameter value configuration information, so as to configure the parameter values in the target method function to obtain a corresponding instruction to be processed.
[0048] Obtain a set of configuration information corresponding to the target method function in the parameter value configuration information, so as to configure the parameter values in the target method function to obtain a corresponding instruction to be processed. The parameter value configuration information includes configuration information corresponding to each function keyword. One function keyword can correspond to one target method function. According to the above correspondence, a set of configuration information corresponding to the target method function in the parameter value configuration information can be obtained. According to the configuration information, the parameter values in the method function can be configured to obtain an instruction to be processed. Obtain all the instructions to be processed generated according to the instruction generation information to obtain a set of instructions to be processed.
[0049] S120: Determine whether the pre-stored historical processing results include a processed instruction that matches any of the to-be-processed instructions in the to-be-processed instruction set.
[0050] The generated set of pending instructions can be fed back to the user for confirmation. The user can modify the set of pending instructions or enter corresponding confirmation information. If the confirmation information entered by the user based on the set of pending instructions is received, it is determined whether the pre-stored historical processing results contain a processed instruction that matches any of the pending instructions in the set of pending instructions. After each pending instruction is input into the management server, the management server processes the data based on the pending instruction to obtain an instruction processing result and feeds it back to the user terminal. After the user terminal obtains the instruction processing result, it can store the instruction processing result. All stored instruction processing results are the above-mentioned historical processing results, and each instruction processing result in the historical processing results corresponds to a processed instruction. To avoid repeatedly sending pending instructions with the same method function and corresponding parameter values to the management server, it is determined whether there is a processed instruction in the historical processing results that matches any of the pending instructions in the set of pending instructions. If there is a processed instruction in the historical processing results that matches the pending instruction, there is no need to send the pending instruction in the set of pending instructions that matches the processed instruction to the management server for processing. Specifically, based on the method function and corresponding parameter values of the instruction to be processed, it can be determined whether the method function and parameter values in each processed instruction are the same as those of the instruction to be processed, so as to determine whether the instruction to be processed matches the processed instruction.
[0051] In addition, in order to ensure the timeliness of each instruction processing result in the historical processing results, a storage period for each instruction processing result can also be set. The instruction processing results that exceed the storage period will be deleted from the historical processing results. Setting the storage period can avoid changes in the data information stored in the management server after a long interval, resulting in differences in the two instruction processing results obtained after two identical pending instructions with a long interval are sent to the management server.
[0052] For example, the storage period of each instruction processing result can be set to 3 days. If the storage time of the instruction processing result in the historical processing results is greater than 3 days, the instruction processing result exceeds the above storage period and needs to be deleted from the historical processing results.
[0053] In one embodiment, if Figure 4 As shown, step S120 also includes steps S1201 and S150.
[0054] S1201: If the historical processing results do not include any processed instructions that match any of the instructions to be processed, send the instruction set to be processed to a management server to obtain an instruction set processing result corresponding to the instruction set to be processed.
[0055] If the historical processing results do not include any processed instructions that match any of the pending instructions, it indicates that each pending instruction in the pending instruction set needs to be sent to the management server for processing. By sending the pending instruction set to the management server, the corresponding instruction set processing results can be obtained. The instruction set processing results include the instruction processing results corresponding to each pending instruction.
[0056] S150: Add the portion of the instruction set processing result that is not included in the historical processing result to the historical processing result for storage.
[0057] Since the instruction set processing results obtained in this case are not included in the historical processing results, after the instruction set processing results are obtained, the instruction set processing results can be added to the historical processing results to store the instruction set processing results.
[0058] In one embodiment, if Figure 5 As shown, step S121 is also included before step S1201.
[0059] S121. If instruction modification information input by the user is received, obtain the processed instructions in the historical processing results that match the instruction modification information to generate a set of pending instructions corresponding to the instruction modification information, wherein the set of pending instructions includes the pending instructions generated in sequence.
[0060] If instruction modification information input by the user is received, the processed instructions matching the instruction modification information in the historical processing results are obtained to generate a set of pending instructions corresponding to the instruction modification information, wherein the set of pending instructions includes at least one pending instruction generated in sequence. The instruction modification information includes instruction retrieval information and parameter value modification information. The instruction modification information is the information input by the user to modify the corresponding processed instruction in the historical processing results. After obtaining the processed instruction corresponding to the instruction modification information in the historical processing results, the parameter values in the obtained processed instruction are modified to obtain the set of pending instructions.
[0061] The set of instructions to be processed is sent to the management server to obtain the instruction set processing results corresponding to the set of instructions to be processed. Since the instructions to be processed obtained after modifying the parameter values in the processed instructions are different from the processed instructions of the historical processing results, the obtained instructions to be processed can be directly sent to the management server for processing.
[0062] In one embodiment, if Figure 6 As shown, step S121 includes sub-steps S1211 and S1212.
[0063] S1211. Retrieve the historical processing results according to the instruction retrieval information, and use a processed instruction that matches the instruction retrieval information as a target modification instruction.
[0064] The historical processing results are retrieved according to the instruction retrieval information, so as to select a processed instruction that matches the instruction retrieval information as a target modification instruction. The instruction modification information may include one or more instruction retrieval information, and the instruction retrieval information may be in English letters or Chinese characters. Thus, one or more processed instructions may be retrieved and used as target modification instructions. The specific method for retrieving the target modification instruction is the same as the method for retrieving the method function set.
[0065] S1212: Modify the parameter value configured in the target modification instruction according to the parameter value modification information corresponding to the target modification instruction to obtain a corresponding instruction to be processed.
[0066] Based on the parameter value modification information corresponding to the target modification instruction, the parameter value configured in the target modification instruction is modified to obtain a corresponding instruction to be processed. The parameter value modification information contains modification information corresponding to each instruction retrieval information. One instruction retrieval information corresponds to one target modification instruction. Based on the above correspondence, a set of modification information corresponding to the target modification instruction in the parameter value modification information can be obtained. Based on the modification information, the parameter value in the target modification instruction is modified to obtain a pending instruction. By obtaining all pending instructions generated based on the instruction modification information, a pending instruction set can be obtained.
[0067] S130: If the historical processing results include a processed instruction that matches any of the instructions to be processed, use the instruction processing result of the processed instruction as the first processing result of the set of instructions to be processed.
[0068] If the historical processing results contain a processed instruction that matches any of the pending instructions, the instruction processing result of the processed instruction is used as the first processing result of the pending instruction set. If the historical processing results contain a processed instruction that matches the pending instruction, there is no need to send the pending instructions in the pending instruction set that match the processed instruction to the management server. Instead, the instruction processing result of the processed instruction that matches each pending instruction in the historical processing results is obtained as the first processing result of the pending instruction set.
[0069] S140. Send the pending instructions in the pending instruction set that are not included in the historical processing results to the management server, so that the processing results fed back by the management server are used as the second processing results of the pending instruction set, wherein the first processing result and the second processing result are jointly used as the instruction set processing results corresponding to the pending instruction set.
[0070] The pending instructions in the pending instruction set that are not included in the historical processing results are sent to the management server, so that the processing results fed back by the management server are used as the second processing results of the pending instruction set, wherein the first processing result and the second processing result are jointly used as the instruction set processing results corresponding to the pending instruction set.
[0071] In one embodiment, if Figure 7 As shown, step S150 is further included after step S140.
[0072] S150: Add the portion of the instruction set processing result that is not included in the historical processing result to the historical processing result for storage.
[0073] The portion of the instruction set processing result not included in the historical processing result is added to the historical processing result for storage. Since the second processing results are all instruction processing results for pending instructions that do not match the processed instructions in the historical processing results, to avoid repeatedly sending the pending instructions corresponding to the second processing results to the management server, after obtaining the second processing result, the second processing result in the instruction set processing result can be added to the historical processing results to store the second processing result.
[0074] In one embodiment, if Figure 8 As shown, step S140 also includes step S140a after step S140.
[0075] S140a, uploading the instruction set processing result to the blockchain.
[0076] The instruction set processing results are uploaded to the blockchain. Based on the instruction set processing results, corresponding summary information is obtained. Specifically, the summary information is obtained by hashing the instruction set processing results, for example, by processing the instruction set processing results using the SHA256S algorithm. Uploading the obtained summary information to the blockchain ensures its security and transparency to users. Users can download the summary information from the blockchain through their user terminals to verify whether the instruction set processing results stored in the historical processing results have been tampered with. The blockchain referred to in this example is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and encryption algorithms. Blockchain is essentially a decentralized database, a series of data blocks generated using cryptographic methods. Each data block contains information about a batch of network transactions, which is used to verify the validity of the information (to prevent counterfeiting) and generate the next block. A blockchain can include the blockchain underlying platform, the platform product service layer, and the application service layer.
[0077] In the operation instruction processing method provided in the embodiment of the present invention, a corresponding set of instructions to be processed is generated based on instruction generation information and pre-stored method functions, and it can be determined whether there is a processed instruction in the historical processing results that matches any of the instructions to be processed in the set of instructions to be processed. If there is a processed instruction that matches the instruction to be processed in the historical processing results, there is no need to send the instructions to be processed that match the processed instruction in the set of instructions to be processed to the management server for repeated processing, which shortens the time to obtain the processing results and can improve the efficiency of processing the set of instructions to be processed.
[0078] The embodiment of the present invention further provides an operation instruction processing device, which is used to execute any embodiment of the above-mentioned operation instruction processing method. Figure 9 , Figure 9 FIG. 1 is a schematic block diagram of an operation instruction processing device provided by an embodiment of the present invention. The operation instruction processing device may be configured in a user terminal 10 .
[0079] like Figure 9 As shown, the operation instruction processing device 100 includes: a to-be-processed instruction set generating unit 110 , a to-be-processed instruction set determining unit 120 , a first processing result acquiring unit 130 and a second processing result acquiring unit 140 .
[0080] The pending instruction set generation unit 110 is used to obtain a pre-stored method function that matches the instruction generation information to generate a pending instruction set if instruction generation information is received from the user, wherein the pending instruction set includes pending instructions generated in sequence, and the pending instructions include a method function and a parameter value corresponding to the method function.
[0081] In other embodiments of the invention, the to-be-processed instruction set generating unit 110 includes: an alternative method function feedback unit, a target method function acquiring unit and a to-be-processed instruction generating unit.
[0082] An alternative method function feedback unit is used to obtain a pre-stored method function that matches any of the function keywords and feed it back to the user as an alternative method function for the user to select; a target method function acquisition unit is used to obtain a method function selected by the user based on the alternative method function as the target method function; and a pending instruction generation unit is used to obtain a set of configuration information corresponding to the target method function in the parameter value configuration information, so as to configure the parameter value in the target method function to obtain a corresponding pending instruction.
[0083] The to-be-processed instruction set determining unit 120 is configured to determine whether the pre-stored historical processing results contain a processed instruction that matches any of the to-be-processed instructions in the to-be-processed instruction set.
[0084] In other embodiments of the invention, the operation instruction processing device 100 further includes: an instruction set processing result acquisition unit.
[0085] The instruction set processing result acquiring unit is configured to send the instruction set to be processed to a management server to acquire an instruction set processing result corresponding to the instruction set to be processed if the historical processing result does not include any processed instruction that matches any of the instructions to be processed.
[0086] In other embodiments of the invention, the operation instruction processing device 100 further includes: a processed instruction modification unit.
[0087] A processed instruction modification unit is used to obtain processed instructions that match the instruction modification information in the historical processing results to generate a set of pending instructions corresponding to the instruction modification information if instruction modification information input by the user is received, wherein the set of pending instructions includes pending instructions generated in sequence.
[0088] In other embodiments of the invention, the processed instruction modification unit includes: a historical processing result retrieval unit and a parameter value modification unit.
[0089] A historical processing result retrieval unit is used to retrieve the historical processing result according to the instruction retrieval information, so as to take a processed instruction that matches the instruction retrieval information as a target modification instruction; a parameter value modification unit is used to modify the parameter value configured in the target modification instruction according to the parameter value modification information corresponding to the target modification instruction to obtain a corresponding instruction to be processed.
[0090] The first processing result acquiring unit 130 is configured to, if the historical processing results include a processed instruction that matches any of the instructions to be processed, use the instruction processing result of the processed instruction as the first processing result of the set of instructions to be processed.
[0091] The second processing result acquisition unit 140 is used to send the pending instructions in the pending instruction set that are not included in the historical processing results to the management server, so as to use the processing results fed back by the management server as the second processing results of the pending instruction set, wherein the first processing result and the second processing result are jointly used as the instruction set processing results corresponding to the pending instruction set.
[0092] In other embodiments of the invention, the operation instruction processing device 100 further includes: an instruction set processing result adding unit.
[0093] The instruction set processing result adding unit is used to add the part of the instruction set processing result that is not included in the historical processing result to the historical processing result for storage.
[0094] In other embodiments of the invention, the operation instruction processing device 100 further includes: an uploading unit.
[0095] The uploading unit is used to upload the processing result of the instruction set to the blockchain.
[0096] The operation instruction processing device provided in the embodiment of the present invention applies the above-mentioned operation instruction processing method, generates a corresponding set of instructions to be processed according to the instruction generation information and the pre-stored method function, and can determine whether there is a processed instruction in the historical processing results that matches any of the instructions to be processed in the set of instructions to be processed. If there is a processed instruction that matches the instruction to be processed in the historical processing results, there is no need to send the instructions to be processed that match the processed instructions in the set of instructions to be processed to the management server for repeated processing, which shortens the time to obtain the processing results and can improve the efficiency of processing the set of instructions to be processed.
[0097] The above-mentioned operation instruction processing device can be implemented in the form of a computer program. The computer program can be used in Figure 10 Runs on the computer equipment shown.
[0098] See also Figure 10 , Figure 10 It is a schematic block diagram of a computer device provided by an embodiment of the present invention.
[0099] See Figure 10 The computer device 500 includes a processor 502 , a memory, and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0100] The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may execute an operation instruction processing method.
[0101] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
[0102] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the operation instruction processing method.
[0103] The network interface 505 is used for network communication, such as providing data information transmission. Those skilled in the art will understand that Figure 10 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0104] In which, the processor 502 is used to run the computer program 5032 stored in the memory to implement the following functions: if the instruction generation information input by the user is received, obtain the pre-stored method function matching the instruction generation information to generate a set of instructions to be processed, wherein the set of instructions to be processed includes instructions to be processed generated in sequence, and the instructions to be processed include a method function and a parameter value corresponding to the method function; determine whether the pre-stored historical processing results include a processed instruction matching any of the instructions to be processed in the set of instructions to be processed; if the historical processing results include a processed instruction matching any of the instructions to be processed, use the instruction processing result of the processed instruction as the first processing result of the set of instructions to be processed; send the instructions to be processed in the set of instructions to be processed that are not included in the historical processing results to the management server, so that the processing result fed back by the management server is used as the second processing result of the set of instructions to be processed, wherein the first processing result and the second processing result are together used as the instruction set processing result corresponding to the set of instructions to be processed.
[0105] In one embodiment, when the processor 502 receives instruction generation information input by a user, it obtains a pre-stored method function that matches the instruction generation information to generate a set of instructions to be processed, wherein the set of instructions to be processed includes the steps of generating instructions to be processed in sequence, and performs the following operations: obtaining a pre-stored method function that matches any of the function keywords as an alternative method function and feeding it back to the user for the user to select; obtaining a method function selected by the user based on the alternative method function as a target method function; obtaining a set of configuration information corresponding to the target method function in the parameter value configuration information, so as to configure the parameter values in the target method function to obtain a corresponding instruction to be processed.
[0106] In one embodiment, after executing the step of determining whether the pre-stored historical processing results contain processed instructions that match any of the pending instructions in the pending instruction set, the processor 502 further performs the following operations: if the historical processing results do not contain processed instructions that match any of the pending instructions, the pending instruction set is sent to the management server to obtain the instruction set processing result corresponding to the pending instruction set.
[0107] In one embodiment, before executing the step of sending the set of instructions to be processed to the management server to obtain the instruction set processing results corresponding to the set of instructions to be processed, the processor 502 also performs the following operations: if instruction modification information input by the user is received, the processed instructions matching the instruction modification information in the historical processing results are obtained to generate a set of instructions to be processed corresponding to the instruction modification information, wherein the set of instructions to be processed includes instructions to be processed generated sequentially.
[0108] In one embodiment, when the processor 502 receives instruction modification information input by a user and obtains the processed instructions in the historical processing results that match the instruction modification information to generate a set of instructions to be processed corresponding to the instruction modification information, the processor 502 performs the following operations: retrieving the historical processing results according to a piece of instruction retrieval information to take a processed instruction that matches the instruction retrieval information as a target modification instruction; and modifying the parameter value configured in the target modification instruction according to the parameter value modification information corresponding to the target modification instruction to obtain a corresponding instruction to be processed.
[0109] In one embodiment, the processor 502 further performs the following operation: adding a portion of the instruction set processing result that is not included in the historical processing result to the historical processing result for storage.
[0110] In one embodiment, the processor 502 further performs the following operation: uploading the result of processing the instruction set to the blockchain.
[0111] Those skilled in the art will understand that Figure 10 The embodiment of the computer device shown in the figure does not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such an embodiment, the structure and function of the memory and processor are the same as those in the figure. Figure 10 The embodiments shown are consistent and will not be described again here.
[0112] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc.
[0113] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the following steps are implemented: upon receiving instruction generation information input by a user, obtaining a pre-stored method function that matches the instruction generation information to generate a set of instructions to be processed, wherein the set of instructions to be processed includes sequentially generated instructions to be processed, each instruction to be processed including a method function and parameter values corresponding to the method function; determining whether a pre-stored historical processing result includes a processed instruction that matches any of the instructions to be processed in the set of instructions to be processed; if the historical processing result includes a processed instruction that matches any of the instructions to be processed, using the instruction processing result of the processed instruction as the first processing result of the set of instructions to be processed; and sending the instructions to be processed in the set of instructions to be processed that are not included in the historical processing result to a management server, so that the processing result fed back by the management server is used as the second processing result of the set of instructions to be processed, wherein the first processing result and the second processing result are collectively used as the instruction set processing result corresponding to the set of instructions to be processed.
[0114] In one embodiment, if instruction generation information input by a user is received, a pre-stored method function matching the instruction generation information is obtained to generate a set of instructions to be processed, wherein the set of instructions to be processed includes the steps of generating instructions to be processed in sequence, including: obtaining a pre-stored method function matching any of the function keywords as an alternative method function and feeding it back to the user for selection by the user; obtaining a method function selected by the user based on the alternative method function as a target method function; obtaining a set of configuration information corresponding to the target method function in the parameter value configuration information, so as to configure the parameter values in the target method function to obtain a corresponding instruction to be processed.
[0115] In one embodiment, after the step of determining whether the pre-stored historical processing results contain processed instructions that match any of the pending instructions in the pending instruction set, the step further includes: if the historical processing results do not contain processed instructions that match any of the pending instructions, sending the pending instruction set to the management server to obtain the instruction set processing result corresponding to the pending instruction set.
[0116] In one embodiment, before the step of sending the set of instructions to be processed to the management server to obtain the instruction set processing results corresponding to the set of instructions to be processed, it also includes: if instruction modification information entered by the user is received, obtaining the processed instructions in the historical processing results that match the instruction modification information to generate a set of instructions to be processed corresponding to the instruction modification information, wherein the set of instructions to be processed includes the instructions to be processed generated sequentially.
[0117] In one embodiment, if instruction modification information input by a user is received, the step of obtaining the processed instructions in the historical processing results that match the instruction modification information to generate a set of pending instructions corresponding to the instruction modification information includes: retrieving the historical processing results according to a piece of instruction retrieval information to take a processed instruction that matches the instruction retrieval information as a target modification instruction; and modifying the parameter value configured in the target modification instruction according to the parameter value modification information corresponding to the target modification instruction to obtain a corresponding pending instruction.
[0118] In one embodiment, the method further includes: adding a portion of the instruction set processing result that is not included in the historical processing result to the historical processing result for storage.
[0119] In one embodiment, the method further includes uploading the processing result of the instruction set to the blockchain.
[0120] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0121] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, or units with the same function may be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0122] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
[0123] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0124] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the existing technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a computer-readable storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in various embodiments of the present invention.
[0125] The computer-readable storage medium is a physical, non-transient storage medium. The computer-readable storage medium may be an internal storage unit of the aforementioned device, such as a physical storage medium such as a hard disk or memory of the device. The storage medium may also be an external storage device of the device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, or other physical storage medium equipped on the device.
[0126] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A method for processing an operation instruction, applied to a user terminal, wherein the user terminal communicates with a management server, characterized in that: The method comprises: If instruction generation information input by the user is received, a pre-stored method function matching the instruction generation information is obtained to generate a set of instructions to be processed, wherein the set of instructions to be processed includes sequentially generated instructions to be processed, and the instructions to be processed include one method function and parameter values corresponding to the method function; Determining whether the pre-stored historical processing results include a processed instruction that matches any of the pending instructions in the pending instruction set; If the historical processing results include a processed instruction that matches any of the instructions to be processed, the instruction processing result of the processed instruction is used as the first processing result of the set of instructions to be processed; Sending the pending instructions in the pending instruction set that are not included in the historical processing results to the management server, and using the processing result fed back by the management server as the second processing result of the pending instruction set, wherein the first processing result and the second processing result are jointly used as the instruction set processing result corresponding to the pending instruction set; The instruction generation information includes function keywords and parameter value configuration information, and obtaining a pre-stored method function that matches the instruction generation information to generate a set of instructions to be processed includes: Obtaining a pre-stored method function that matches any of the function keywords and feeding it back to the user as an alternative method function for the user to select; Obtaining a method function selected by the user according to the candidate method function as a target method function; A set of configuration information corresponding to the target method function in the parameter value configuration information is obtained to configure the parameter values in the target method function to obtain a corresponding instruction to be processed.
2. The operation instruction processing method according to claim 1, characterized in that: After determining whether the pre-stored historical processing results include a processed instruction that matches any of the pending instructions in the pending instruction set, the method further includes: If the historical processing results do not include any processed instructions that match any of the instructions to be processed, the instruction set to be processed is sent to a management server to obtain an instruction set processing result corresponding to the instruction set to be processed.
3. The operation instruction processing method according to claim 2, characterized in that: Before sending the instruction set to be processed to the management server to obtain the instruction set processing result corresponding to the instruction set to be processed, the method further includes: If instruction modification information input by the user is received, the processed instructions matching the instruction modification information in the historical processing results are obtained to generate a set of pending instructions corresponding to the instruction modification information, wherein the set of pending instructions includes the pending instructions generated in sequence.
4. The operation instruction processing method according to claim 3, characterized in that: The instruction modification information includes instruction retrieval information and parameter value modification information, and obtaining processed instructions matching the instruction modification information in the historical processing results to generate a set of instructions to be processed corresponding to the instruction modification information includes: Retrieving the historical processing result according to a piece of instruction retrieval information, so as to use a processed instruction that matches the instruction retrieval information as a target modification instruction; The parameter value configured in the target modification instruction is modified according to the parameter value modification information corresponding to the target modification instruction to obtain a corresponding instruction to be processed.
5. The operation instruction processing method according to claim 2, characterized in that: Also includes: The portion of the instruction set processing result that is not included in the historical processing result is added to the historical processing result for storage.
6. The operation instruction processing method according to claim 1, characterized in that: Also includes: The processing result of the instruction set is uploaded to the blockchain.
7. An operation instruction processing device, characterized in that: include: a to-be-processed instruction set generating unit, configured to, upon receiving instruction generation information input by a user, obtain a pre-stored method function matching the instruction generation information to generate an to-be-processed instruction set, wherein the to-be-processed instruction set includes sequentially generated to-be-processed instructions, each of which includes a method function and parameter values corresponding to the method function; a pending instruction set determination unit, configured to determine whether the pre-stored historical processing results contain a processed instruction that matches any pending instruction in the pending instruction set; a first processing result acquiring unit configured to, if the historical processing results include a processed instruction that matches any of the instructions to be processed, use the instruction processing result of the processed instruction as the first processing result of the set of instructions to be processed; a second processing result obtaining unit, configured to send the pending instructions in the pending instruction set that are not included in the historical processing results to the management server, so as to use the processing result fed back by the management server as the second processing result of the pending instruction set, wherein the first processing result and the second processing result are jointly used as the instruction set processing result corresponding to the pending instruction set; The instruction generation information includes function keywords and parameter value configuration information, and obtaining a pre-stored method function that matches the instruction generation information to generate a set of instructions to be processed includes: Obtaining a pre-stored method function that matches any of the function keywords and feeding it back to the user as an alternative method function for the user to select; Obtaining a method function selected by the user according to the candidate method function as a target method function; A set of configuration information corresponding to the target method function in the parameter value configuration information is obtained to configure the parameter values in the target method function to obtain a corresponding instruction to be processed.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the operation instruction processing method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to execute the operation instruction processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Command management device and command management method
CN103488524A
Big data processing method and apparatus based on instruction set generation
CN104965687A