CN109993651B - Data accounting service instruction set checking method, device, computer equipment and medium - Google Patents

Data accounting service instruction set checking method, device, computer equipment and medium Download PDF

Info

Publication number
CN109993651B
CN109993651B CN201910288632.5A CN201910288632A CN109993651B CN 109993651 B CN109993651 B CN 109993651B CN 201910288632 A CN201910288632 A CN 201910288632A CN 109993651 B CN109993651 B CN 109993651B
Authority
CN
China
Prior art keywords
operation instruction
business
logic unit
service
verification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910288632.5A
Other languages
Chinese (zh)
Other versions
CN109993651A (en
Inventor
王永海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Softcom Power Information Technology Group Co Ltd
Original Assignee
Softcom Power Information Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Softcom Power Information Technology Group Co Ltd filed Critical Softcom Power Information Technology Group Co Ltd
Priority to CN201910288632.5A priority Critical patent/CN109993651B/en
Publication of CN109993651A publication Critical patent/CN109993651A/en
Application granted granted Critical
Publication of CN109993651B publication Critical patent/CN109993651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The embodiment of the invention discloses a method, a device, computer equipment and a medium for verifying a data accounting service instruction set. The data accounting service instruction set checking method comprises the following steps: receiving a monetary business document submitted by a user, and acquiring an operation instruction set corresponding to the monetary business document; determining the verification sequence of each operation instruction in the operation instruction set according to the business logic relationship corresponding to the monetary business document, wherein the business logic relationship is determined according to the business process of the monetary business document; and selecting a target logic algorithm from the preset logic algorithm set according to the amount logic relation of the operation instructions adjacent to the verification sequence, and performing amount data verification on the operation instructions adjacent to the verification sequence according to the target logic algorithm. The problem that accuracy and timeliness are difficult to guarantee in a mode of manually checking accounts for system verification is solved, automatic verification of the operation instruction set of the money data accounting service is achieved, and instruction errors in the system can be found comprehensively and timely.

Description

Data accounting service instruction set checking method, device, computer equipment and medium
Technical Field
The embodiment of the invention relates to a data processing technology, in particular to a method, a device, computer equipment and a medium for verifying a data accounting service instruction set.
Background
With the popularization of enterprise informatization, each enterprise and public institution starts to establish a money data accounting management system to help users perform complex money data management, but the business processes to be processed by the system are complex, and in order to adapt to complex and variable business processing processes, when performing system research and development design, the operation instructions of each processing unit of the business processes are usually distributed into a plurality of functional modules, and then the business process arrangement among the functional modules is completed by using a program code or a service interface.
Due to the complex structure of the money data accounting management system, the generation error of the operation instruction of the system business process may occur because the program code is wrongly written in the system development process, or the occurrence situation of related problems is not fully considered in the system design link, and the error check under the specific situation is lacked. Currently, there is no method for effectively verifying the system amount data operation instruction. In the related technology, a manual account checking mode is mostly adopted, normal operation of system operation instructions is checked through checking of amount data in the system, the manual account checking mode is simple and rough, efficiency is low, and accuracy and timeliness of data checking cannot be guaranteed. And once the problem of inconsistent amount data occurs, error points are difficult to find, and hidden dangers are left for users to use the system.
Disclosure of Invention
The embodiment of the invention provides a method and a device for verifying a data accounting service instruction set, computer equipment and a storage medium, which can realize automatic verification of a money data accounting service operation instruction set, and can comprehensively and timely find instruction errors in a system, thereby greatly improving the working efficiency of a user.
In a first aspect, an embodiment of the present invention provides a method for checking a data accounting service instruction set, including:
receiving a monetary business document submitted by a user, and acquiring an operation instruction set corresponding to the monetary business document;
determining the verification sequence of each operation instruction in the operation instruction set according to the business logic relationship corresponding to the monetary business document, wherein the business logic relationship is determined according to the business process of the monetary business document;
and selecting a target logic algorithm from a preset logic algorithm set according to the amount logic relation of the operation instructions adjacent to the verification sequence, and carrying out amount data verification on the operation instructions adjacent to the verification sequence according to the target logic algorithm.
In a second aspect, an embodiment of the present invention further provides a data accounting service instruction set checking apparatus, including:
the operation instruction set acquisition module is used for receiving the monetary business document submitted by a user and acquiring an operation instruction set corresponding to the monetary business document;
the operation instruction verification sequence determining module is used for determining the verification sequence of each operation instruction in the operation instruction set according to the business logic relationship corresponding to the monetary business document; and the business logic relationship is a business logic unit execution rule which is established in advance according to the monetary business document.
And the amount data verification module is used for selecting a target logic algorithm from a preset logic algorithm set according to the amount logic relationship of the operation instructions adjacent to the verification sequence and verifying the amount data of the operation instructions adjacent to the verification sequence according to the target logic algorithm.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the data accounting service instruction set checking method provided in any embodiment of the present invention when executing the program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the program, when executed by a processor, implements the data accounting service instruction set checking method provided in any embodiment of the present invention.
The embodiment of the invention selects the target logic algorithm from the preset logic algorithm set by determining the verification sequence of each operation instruction in the operation instruction set of the money data accounting service, according to the money logical relationship of the operation instructions adjacent to the verification sequence, and verifies the money data of the operation instructions adjacent to the verification sequence by adopting the target logic algorithm. The method solves the problems that the efficiency is low and the accuracy and timeliness are difficult to guarantee in a mode of carrying out system amount data verification through manual account checking, realizes automatic verification of the amount data accounting service operation instruction set, can comprehensively and timely find instruction errors in the system, and greatly improves the working efficiency of users.
Drawings
Fig. 1 is a flowchart of a data accounting service instruction set checking method according to a first embodiment of the present invention;
FIG. 2A is a logical tree diagram of the operation instruction set amount data for an external payment document according to one embodiment of the present invention;
FIG. 2B is a diagram of a logical forest of instruction set amount data for operating an outward payment document according to a second embodiment of the present invention;
fig. 3 is a flowchart of a data accounting service instruction set checking method in the third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data accounting service instruction set checking apparatus in a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a data accounting service instruction set verification method according to an embodiment of the present invention, where the data accounting service in this embodiment may be a money amount data accounting service, and is applicable to a case of verifying money amount data corresponding to an operation instruction related to the data accounting service, and the method may be executed by a data accounting service instruction set verification device, where the device may be implemented by software and/or hardware, and is generally integrated in a computer device, and specifically includes the following steps:
and step 110, receiving the monetary business document submitted by the user, and acquiring an operation instruction set corresponding to the monetary business document.
It should be noted that the monetary transaction document is a transaction document carrying monetary data, and may have different names according to different types of transactions. For example, for the type of transaction for the payment-out transaction, the monetary transaction document may be referred to as a payment-out document. As another example, for the type of transaction for a collection transaction, the monetary transaction document may be referred to as a collection document, or the like.
The operation instruction may be a command to process the business document according to a business process in the amount data accounting system. Taking the external payment service as an example, the operation instruction at least comprises an online bank document submitting instruction, an online bank document receiving instruction, a financial voucher generating instruction, a transaction accounting instruction, a bank sending instruction and the like. And at least one operating instruction corresponding to the monetary business document is called an operating instruction set of the monetary business document. And forming a set of operation instructions by an operation instruction set corresponding to at least one money data accounting business document.
Optionally, at least one monetary business document submitted by a user is received, and a document identifier of each monetary business document is obtained; and binding the single data identifier with an operation instruction generated based on the monetary business document to obtain a set of operation instructions corresponding to at least one monetary business document.
Optionally, the bill identification may be a unique encoded identification corresponding to each monetary business bill, and according to the bill identification, whether an operation instruction generated based on the monetary business bill is repeatedly generated or not generated may be checked. By binding the data identifier with the operation instruction generated based on the monetary business document, the operation instruction with the corresponding monetary value of the monetary business document corresponding to each monetary business document can be determined.
Optionally, the set of operation instructions is queried according to the document identifier, so that an operation instruction set of each monetary business document can be obtained.
And step 120, determining the verification sequence of each operation instruction in the operation instruction set according to the business logic relationship corresponding to the monetary business document, wherein the business logic relationship is determined according to the business process of the monetary business document.
Optionally, according to a business logic relationship of the monetary business document, an execution sequence of each preset business logic unit is predetermined, where the business logic unit may be a function unit in the monetary data accounting system based on business process customization, the business logic unit includes each operation instruction in an operation instruction set, one business logic unit includes one or more operation instructions, and for two adjacent business logic units, a business logic unit with a previous execution sequence is a first business logic unit, and a business logic unit with a subsequent execution sequence is a second business logic unit;
and determining the verification sequence of each operation instruction according to the execution sequence of the first service logic unit and the second service logic unit.
Optionally, when the monetary business document submitted by the receiving user is a single monetary business document, a logic tree is constructed according to a corresponding business logic unit of the predetermined monetary business document. Each service logic unit corresponds to each level of the logic tree, and the verification sequence of each operation instruction in the operation instruction set is determined according to each level of the logic tree.
For example, when the monetary business document submitted by the receiving user is a single monetary business document A, the document identifier of the monetary business document A is obtained; and binding the single data identifier with an operation instruction generated based on the monetary business document to obtain an operation instruction set corresponding to the monetary business document A, and constructing the operation instruction set corresponding to the monetary business document A into a logic tree.
The technical solution of the embodiment is further explained by taking the logical tree diagram of the operation instruction set and the amount data of the external payment document shown in fig. 2A as an example. The user submits a 100 ten thousand external payment business documents, and the business logic relation corresponding to the external payment business is as follows: the method comprises the steps of document application, document submission, document receiving, document settlement and instruction sending, wherein the business logic relation is sequentially executed according to the sequence. And the unique code corresponding to the external payment business document is identified as 001, so that the business logic units are determined to be a 001 document application unit, a 001 document submission unit, a 001 document receiving unit, a 001 document settlement unit and a 001 instruction sending unit according to the business logic relationship of the external payment business document, and all the business logic units are sequentially executed according to the sequence. Each business logic unit is constructed as a logic tree 001. Since the 001 document corresponds to five business logic units, the constructed logic tree 001 corresponds to five levels. Wherein, the 001 bill applying unit corresponds to the first level of the logic tree 001, and comprises an operation instruction which is a payment applying instruction, and the amount is 100 ten thousand; the 001 bill submitting unit corresponds to a second level of the logic tree 001 and comprises an operation instruction which is a payment submitting instruction, the amount of the operation instruction is 100 ten thousand, and the operation instruction is the next level of the payment applying instruction; the 001 receipt receiving unit corresponds to the third level of the logic tree 001 and comprises an operation instruction which is a payment receiving instruction, the amount of the operation instruction is 100 ten thousand, and the operation instruction is the next level of the payment submitting instruction; the 001 bill settlement unit corresponds to the fourth level of the logic tree 001, and comprises three operation instructions, which are respectively: the voucher command, the accounting command and the bank command are all 100 thousands, and the three operation commands are all the next level of the payment receiving command; the 001 instruction sending unit corresponds to the fifth level of the logic tree 001, and includes an operation instruction which is a bank instruction to be sent, and the amount of the operation instruction is 100 ten thousand, which is the next level of the bank instruction. Thereby determining the verification sequence of each operation instruction in the external payment service operation instruction set according to each level of the logic tree.
And step 130, selecting a target logic algorithm from the preset logic algorithm set according to the amount logic relationship of the operation instructions adjacent to the verification sequence, and performing amount data verification on the operation instructions adjacent to the verification sequence according to the target logic algorithm.
Note that the logical relationship of the amounts may refer to a relationship between amount data that the operation instructions have. In the embodiment of the present application, it may refer to verifying a logical relationship between amount data of sequentially adjacent operation instructions, such as: multiple relationships, additive equalities, or equalities, etc.
Optionally, the preset logic algorithm set may include a splitting algorithm, a parallel algorithm, and the like.
The splitting algorithm is that if the sum of the operating instructions in the first service logic unit is equal to the sum of the operating instructions in the second service logic unit, the sum data passes the verification.
The parallel algorithm is that if the sum of the money amount of the operation instruction in the first service logic unit and the money amount of the operation instruction in the second service logic unit has a money amount multiple relation and the money amount multiple is the same as the number of the operation instructions in the second service logic unit, the money amount data passes the verification.
Optionally, if it is determined that one operation instruction in the first service logic unit corresponds to one operation instruction in the second service logic unit and the amount of one operation instruction in the first service logic unit is equal to the amount of one operation instruction in the second service logic unit, selecting a splitting algorithm and performing amount data verification on the operation instruction of the second service logic unit according to the splitting algorithm;
if one operation instruction in the first service logic unit corresponds to at least two operation instructions in the second service logic unit, and the sum of one operation instruction in the first service logic unit is equal to the sum of the sums of at least two operation instructions in the second service logic unit, selecting a splitting algorithm, and carrying out sum data verification on the operation instruction of the second service logic unit according to the splitting algorithm;
if one operation instruction in the first service logic unit corresponds to at least two operation instructions in the second service logic unit, the sum of one operation instruction in the first service logic unit and the sum of at least two operation instructions in the second service logic unit have a sum multiple relation, and the sum multiple corresponding to the sum multiple relation is the same as the number of at least two operation instructions in the second service logic unit, selecting a parallel algorithm, and performing sum data verification on the operation instruction of the second service logic unit according to the parallel algorithm.
According to the technical scheme of the embodiment of the invention, the verification sequence of each operation instruction in the operation instruction set of the money data accounting service is determined, the target logic algorithm is selected from the preset logic algorithm set according to the money logical relationship of the operation instructions adjacent to the verification sequence, and the money data verification is carried out on the operation instructions adjacent to the verification sequence by adopting the target logic algorithm. The method solves the problems that the efficiency is low and the accuracy and timeliness are difficult to guarantee in a mode of carrying out system amount data verification through manual account checking, realizes automatic verification of the amount data accounting service operation instruction set, can comprehensively and timely find instruction errors in the system, and greatly improves the working efficiency of users.
Example two
The embodiment of the present invention further illustrates step 130 of the above embodiment.
Optionally, the monetary business document submitted by the user may be a single monetary business document, and the set of the operation instructions corresponding to the monetary business document is constructed as a logical tree.
If the set of the operation instructions corresponding to one monetary service bill is constructed into an independent logic tree, the splitting algorithm is that the sum of the money of the operation instructions in the previous level is equal to the sum of the money of the operation instructions in the corresponding next level in two adjacent levels. Can be expressed as:
Figure BDA0002024141000000091
wherein Y represents the amount of the operation instruction of the upper level of the two adjacent levels;
xithe amount of money representing the ith operation instruction of the next level in two adjacent levels;
i represents the ith operation instruction in the next level, and ranges from 1 to n;
n represents the total number of operation instructions in the next level.
The parallel algorithm is characterized in that the sum of the operation instructions of the previous level in two adjacent levels and the sum of the operation instructions of the next level have a sum multiple relation, and the sum multiple is the same as the number of the operation instructions of the next level;
can be expressed as:
Figure BDA0002024141000000092
wherein Y represents the amount of the operation instruction of the upper level of the two adjacent levels;
xithe amount of money representing the ith operation instruction of the next level in two adjacent levels;
i represents the ith operation instruction in the next level, and ranges from 1 to n;
n represents the total number of operation instructions in the next level.
The steps of checking the amount data of the operation instructions adjacent to the verification sequence according to the target logic algorithm are described by way of example.
For the out-payment document 001, an operational instruction set amount data logical tree 001 is established. For example, the first level of the logical tree 001 contains an operation instruction: the payment application instruction corresponds to an operation instruction contained in the second layer: and paying the submitting instruction, and the sum of the two operation instructions is the same, so the splitting algorithm is selected to carry out sum data verification on the operation instructions adjacent to the verification sequence in the first level and the second level. Specifically, the amount of the payment application instruction in the first level is extracted to be 100 ten thousand, and the amount of the payment application instruction in the first level is judged to be equal to the amount of the payment submission instruction in the second level, so that the verification is passed.
For example, the third level of the logic tree 001 contains an operation instruction: the payment receiving instruction corresponds to three operation instructions contained in the fourth layer: the system comprises a voucher instruction, a bookkeeping instruction and a banking instruction, wherein the sum of the operation instructions in the third level and the sum of the operation instructions in the fourth level has a sum multiple relation, and the sum multiple is the same as the number of the operation instructions in the fourth level. Therefore, parallel algorithm is adopted to carry out money data verification on the operation instructions adjacent to the verification sequence in the third level and the fourth level. Specifically, the sum of the payment receiving instruction extracted from the third level is 100 ten thousand, the sum of the voucher instruction, the accounting instruction and the bank instruction calculated from the fourth level is 300 ten thousand, the sum of the operation instruction in the third level and the sum of the operation instruction in the fourth level is judged to be in triple relation, and the formed sum multiple is the same as the number of the operation instructions in the fourth level, so that the verification is passed.
Optionally, the monetary transaction document submitted by the user may be at least two monetary transaction documents, and each monetary transaction document may construct an individual logical tree. For at least two monetary business documents with the same business logic relationship, a logic forest with the same business logic relationship, the same hierarchy and the same operation instruction in each hierarchy can be constructed. The description will be given by taking the logic forest diagram of the amount data of the external payment document operation instruction set shown in fig. 2B as an example. For example, three users submit 100 ten thousand, 200 ten thousand and 300 ten thousand foreign payment service documents, and the unique coded identifiers corresponding to the three foreign payment service documents are 001, 002 and 003 respectively. The three payment-outside services have the same business logic relationship, so three independent logical trees are constructed as 001, 002 and 003. The three independent logical trees have the same hierarchy, and the operation instructions in each hierarchy are the same. And arranging the three independent logic trees in a word to form a logic forest.
For a logical forest, the splitting algorithm can be expressed as:
Figure BDA0002024141000000101
wherein j represents the jth monetary transaction document, and ranges from 1 to m as a positive integer;
y represents the sum of the operation instruction of the previous level of two adjacent levels of the logic tree formed by the jth sum service bill;
xjirepresenting the ith operation instruction amount in a logic tree formed by jth amount service bills and in the next level of two adjacent levels;
i represents the ith operation instruction in the next level of two adjacent levels in the logic tree, and ranges from 1 to n;
n represents the total number of operation instructions in the next level of two adjacent levels in the logical tree.
The parallel algorithm can be expressed as:
Figure BDA0002024141000000111
wherein j represents the jth monetary transaction document, and ranges from 1 to m as a positive integer;
y represents the sum of the operation instruction of the previous level of two adjacent levels of the logic tree formed by the jth sum service bill;
xjirepresenting the ith operation instruction amount in a logic tree formed by jth amount service bills and in the next level of two adjacent levels;
i represents the ith operation instruction in the next level of two adjacent levels in the logic tree, and ranges from 1 to n;
n represents the total number of operation instructions in the next level of two adjacent levels in the logical tree.
According to the embodiment of the invention, a target logic algorithm is selected from a preset logic algorithm set according to the amount logic relation of the operation instructions adjacent to the verification sequence, and the amount data verification is carried out on the operation instructions adjacent to the verification sequence by adopting the target logic algorithm. The method solves the problems that the efficiency is low and the accuracy and timeliness are difficult to guarantee in a mode of carrying out system amount data verification through manual account checking, realizes automatic verification of the amount data accounting service operation instruction set, can comprehensively and timely find instruction errors in the system, and greatly improves the working efficiency of users.
EXAMPLE III
Fig. 3 is a flowchart of a data accounting service instruction set verification method provided in the third embodiment of the present invention, and the technical solution of the present embodiment is further detailed on the basis of the above technical solution, as shown in fig. 3, the method specifically includes the following steps:
and 310, receiving the monetary business document submitted by the user, and acquiring an operation instruction set corresponding to the monetary business document.
And step 320, determining the verification sequence of each operation instruction in the operation instruction set according to the business logic relationship corresponding to the monetary business document, wherein the business logic relationship is determined according to the business process of the monetary business document.
And 330, selecting a target logic algorithm from the preset logic algorithm set according to the amount logic relationship of the operation instructions adjacent to the verification sequence, and performing amount data verification on the operation instructions adjacent to the verification sequence according to the target logic algorithm.
And 340, if the check fails, searching for the target operation instruction with the error in the operation instruction set through a binary search algorithm.
Optionally, the amount data of the operation instructions adjacent to the verification sequence is verified according to the target logic algorithm, and when the verification fails, the case that the amount logic relationship of the operation instructions adjacent to the verification sequence is incorrect is described. At this time, a binary search algorithm may be used to perform a binary search on the operation instruction set to find the target operation instruction with an error.
And if the whole logic forest has the condition of failed verification, indicating that the amount logic relation of the operation instructions between adjacent layers has errors. Because the operation instructions between the levels have very strict cross-checking relationship, when the operation instruction of one level has error, all levels below the level have error. Therefore, according to the method for verifying the inter-level data accounting service instruction set of each layer of the logic tree introduced in the embodiment, the first wrong layer in the whole logic forest is determined, then the whole logic forest is split by adopting a binary search algorithm, and the split small logic forest is respectively subjected to related layer error search, so that the error point is quickly found.
Optionally, when performing a binary search by using a binary search algorithm, the total number of logic trees of a logic forest is first divided by 2, and a large logic forest is split into two small logic forests. For example, the logical forest described for the above embodiment contains three independent logical trees 001, 002, and 003. Dividing the total number of logical trees contained in the logical forest by 3 by 2 yields a number of 1.5. At this time, one logical forest may be split into two small logical forests, that is, each of the two split small logical forests includes 1.5 trees, and as can be known from the logical forest splitting algorithm and the parallel algorithm described in the above embodiments, the number of logical trees included in one logical forest is required to be a positive integer. Therefore, rounding of the total number of logical trees contained in the two small logical forests is required, where rounding may be used. Optionally, the total number of logic trees of the previous small logic forest may be rounded to obtain 2, and then the total number of logic trees included in the next small logic forest is obtained by subtracting the total number of logic trees included in the large logic forest and the previous small logic forest, that is, the total number of logic trees included in the next small logic forest is 1 by subtracting 2 from 3. The previous logical forest contains logical trees 001 and 002 and the next logical forest contains logical trees 003. Then, according to the method for verifying the data accounting service instruction set between the levels of the logic trees in the above embodiment, a faulted level in a large logic forest is verified, and at this time, the faulted level is locked, but it is not determined which logic tree has a faulted related level. And then, the two small logic forests are verified according to the verified error layer. Optionally, the related levels of the two logic trees in the previous small logic forest may be checked separately, if both checks pass, the previous small logic forest is proved to be correct. And then, checking the related level of a logic tree contained in the next small logic forest, and if the checking fails, proving 003 that the position amount data of the related level of the logic tree is in error, and finding an error point.
The embodiment of the invention can comprehensively and quickly find the instruction error in the system through the binary search algorithm, thereby greatly improving the working efficiency of the user and effectively avoiding the economic loss of the user.
Example four
Fig. 4 is a schematic structural diagram of a data accounting service instruction set checking apparatus provided in an embodiment of the present invention, where the apparatus includes:
an operation instruction set obtaining module 410, configured to receive a monetary business document submitted by a user, and obtain an operation instruction set corresponding to the monetary business document;
an operation instruction verification order determining module 420, configured to determine, according to a business logic relationship corresponding to the monetary business document, a verification order of each operation instruction in the operation instruction set; the business logic relation is a business logic unit execution rule which is established in advance according to the monetary business document.
And the amount data checking module 430 is configured to select a target logic algorithm from the preset logic algorithm set according to the amount logic relationship between the operation instructions adjacent to the verification sequence, and perform amount data checking on the operation instructions adjacent to the verification sequence according to the target logic algorithm.
The operation instruction set obtaining module 410 is specifically configured to:
receiving at least one monetary business document submitted by a user, and acquiring a document identifier of each monetary business document;
binding the data identifier with an operation instruction generated based on the monetary business document to obtain a set of operation instructions corresponding to at least one monetary business document;
and acquiring an operation instruction set corresponding to the monetary service bill, wherein the operation instruction set comprises the following steps:
and inquiring the set of the operation instructions according to the bill identification to obtain the operation instruction set of each monetary business bill.
The operation instruction verification order determining module 420 is specifically configured to:
according to the business logic relationship of the monetary business document, the execution sequence of each preset business logic unit is predetermined, wherein each business logic unit comprises each operation instruction in an operation instruction set, one business logic unit comprises one or more operation instructions, and for two adjacent business logic units, the business logic unit with the former execution sequence is a first business logic unit, and the business logic unit with the latter execution sequence is a second business logic unit;
and determining the verification sequence of each operation instruction according to the execution sequence of the first service logic unit and the second service logic unit.
The amount data checking module 430 is specifically configured to:
when judging that one operation instruction in the first service logic unit corresponds to one operation instruction in the second service logic unit and the sum of one operation instruction in the first service logic unit is equal to the sum of one operation instruction in the second service logic unit, selecting a splitting algorithm and carrying out sum data verification on the operation instruction of the second service logic unit according to the splitting algorithm;
when one operation instruction in the first service logic unit corresponds to at least two operation instructions in the second service logic unit, and the sum of one operation instruction in the first service logic unit is equal to the sum of the sums of at least two operation instructions in the second service logic unit, selecting a splitting algorithm, and carrying out sum data verification on the operation instruction of the second service logic unit according to the splitting algorithm;
when one operation instruction in the first service logic unit corresponds to at least two operation instructions in the second service logic unit, the sum of one operation instruction in the first service logic unit and the sum of a plurality of operation instructions in the second service logic unit have a sum multiple relation, and the sum multiple is the same as the number of at least two operation instructions in the second service logic unit, selecting a parallel algorithm, and performing sum data verification on the operation instructions of the second service logic unit according to the parallel algorithm.
Optionally, the money data accounting service instruction set checking device further includes an error finding module, configured to find, if the checking fails, a target operation instruction with an error in the operation instruction set by using a binary finding algorithm.
The device can execute the data accounting service instruction set verification method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer device for implementing the data accounting service instruction set checking method according to the fifth embodiment of the present invention, as shown in fig. 5, the computer device includes a processor 52, a memory 50, an input device 54, and an output device 56; the number of processors 52 in the computer device may be one or more, and one processor 52 is taken as an example in fig. 5; the processor 52, memory 50, input device 54, and output device 56 in the computer apparatus may be connected by a bus or other means, as exemplified by a bus connection in fig. 5.
The memory 50 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the data accounting service instruction set verification method in the embodiment of the present invention (for example, the operation instruction set acquisition module 410, the operation instruction verification order determination module 420, and the amount data verification module 430 in the data accounting service instruction set verification apparatus). The processor 52 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the memory 50, namely, implements the above-mentioned data accounting service instruction set verification method.
The memory 50 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 50 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 50 may further include memory located remotely from the processor 52, which may be connected to the device/terminal/server via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 54 may be used to receive inputted amount data or character information and to generate key signal inputs related to user settings and function controls of the computer apparatus. The output device 56 may include a display device such as a display screen.
EXAMPLE six
The sixth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the computer-executable instructions are used for executing a data accounting service instruction set verification method when executed by a computer processor
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the data accounting service instruction set checking method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the above money data accounting service instruction set checking apparatus, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A data accounting service instruction set checking method is characterized by comprising the following steps:
receiving a monetary business document submitted by a user, and acquiring an operation instruction set corresponding to the monetary business document;
determining the verification sequence of each operation instruction in the operation instruction set according to the business logic relationship corresponding to the monetary business document, wherein the business logic relationship is determined according to the business process of the monetary business document;
and selecting a target logic algorithm from a preset logic algorithm set according to the amount logic relation of the operation instructions adjacent to the verification sequence, and carrying out amount data verification on the operation instructions adjacent to the verification sequence according to the target logic algorithm.
2. The data accounting service instruction set verification method of claim 1, wherein the receiving of the monetary service document submitted by the user comprises:
receiving at least one monetary business document submitted by a user, and acquiring a document identifier of each monetary business document;
binding the bill identification with an operation instruction generated based on the monetary business bill to obtain a set of operation instructions corresponding to at least one monetary business bill;
and acquiring an operation instruction set corresponding to the monetary service bill, wherein the operation instruction set comprises the following steps:
and inquiring the set of the operating instructions according to the bill identification to obtain an operating instruction set of each monetary business bill.
3. The data accounting service instruction set verification method of claim 1, wherein the step of determining the verification sequence of each operation instruction in the operation instruction set according to the service logic relationship corresponding to the monetary service bill comprises:
according to the business logic relationship of the monetary business document, determining an execution sequence of each preset business logic unit in advance, wherein each business logic unit comprises each operation instruction in the operation instruction set, one business logic unit comprises one or more operation instructions, and for two adjacent business logic units, the business logic unit with the former execution sequence is a first business logic unit, and the business logic unit with the latter execution sequence is a second business logic unit;
and determining the verification sequence of each operation instruction according to the execution sequence of the first service logic unit and the second service logic unit.
4. The data accounting service instruction set checking method of claim 3, wherein the preset logic algorithm set comprises a splitting algorithm and a parallel algorithm;
the splitting algorithm is that the sum of the money of the operation instruction in the first service logic unit is equal to the sum of the money of the operation instruction in the second service logic unit;
the parallel algorithm is that the sum of the money amount of the operation instruction in the first service logic unit and the money amount of the operation instruction in the second service logic unit has a money amount multiple relation, and the money amount multiple corresponding to the money amount multiple relation is the same as the number of the operation instructions in the second service logic unit.
5. The data accounting service instruction set verification method of claim 4, wherein the step of selecting a target logic algorithm from a preset logic algorithm set according to the logical relationship of the money amounts of the operation instructions adjacent to the verification sequence, and performing the money amount data verification on the operation instructions adjacent to the verification sequence according to the target logic algorithm comprises:
if the operation instruction in the first service logic unit corresponds to the operation instruction in the second service logic unit and the sum of the operation instruction in the first service logic unit is equal to the sum of the operation instruction in the second service logic unit, selecting the splitting algorithm and carrying out sum data verification on the operation instruction in the second service logic unit according to the splitting algorithm;
if one of the operation instructions in the first service logic unit corresponds to at least two of the operation instructions in the second service logic unit, and the sum of one of the operation instructions in the first service logic unit is equal to the sum of the sums of at least two of the operation instructions in the second service logic unit, selecting the splitting algorithm, and carrying out sum data verification on the operation instructions of the second service logic unit according to the splitting algorithm;
if one of the operation instructions in the first service logic unit corresponds to at least two of the operation instructions in the second service logic unit, the sum of one of the operation instructions in the first service logic unit and the sum of at least two of the operation instructions in the second service logic unit has a multiple relation of sum, and the multiple of sum corresponding to the multiple relation of sum is the same as the number of at least two of the operation instructions in the second service logic unit, selecting the parallel algorithm, and performing sum data verification on the operation instructions of the second service logic unit according to the parallel algorithm.
6. The method for verifying the data accounting service instruction set according to claim 1, wherein after the selecting a target logic algorithm from a preset logic algorithm set according to the logical relationship of the money amounts of the operation instructions adjacent to each other in the verification order and performing the money amount data verification on the operation instructions adjacent to each other in the verification order according to the target logic algorithm, the method further comprises:
and if the verification fails, searching the target operation instruction with errors in the operation instruction set through a binary search algorithm.
7. A data accounting service instruction set checking apparatus, comprising:
the operation instruction set acquisition module is used for receiving the monetary business document submitted by a user and acquiring an operation instruction set corresponding to the monetary business document;
the operation instruction verification sequence determining module is used for determining the verification sequence of each operation instruction in the operation instruction set according to the business logic relationship corresponding to the monetary business document; the business logic relationship is a business logic unit execution rule which is established in advance according to the monetary business document;
and the amount data verification module is used for selecting a target logic algorithm from a preset logic algorithm set according to the amount logic relationship of the operation instructions adjacent to the verification sequence and verifying the amount data of the operation instructions adjacent to the verification sequence according to the target logic algorithm.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the data accounting service instruction set checking method as claimed in any one of claims 1 to 6 when executing the program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a data accounting service instruction set checking method according to any one of claims 1 to 6.
CN201910288632.5A 2019-04-11 2019-04-11 Data accounting service instruction set checking method, device, computer equipment and medium Active CN109993651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910288632.5A CN109993651B (en) 2019-04-11 2019-04-11 Data accounting service instruction set checking method, device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910288632.5A CN109993651B (en) 2019-04-11 2019-04-11 Data accounting service instruction set checking method, device, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN109993651A CN109993651A (en) 2019-07-09
CN109993651B true CN109993651B (en) 2021-03-19

Family

ID=67133228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910288632.5A Active CN109993651B (en) 2019-04-11 2019-04-11 Data accounting service instruction set checking method, device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN109993651B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111563075B (en) * 2020-05-06 2024-01-23 政采云有限公司 Service verification system, method and equipment and storage medium
CN112184368A (en) * 2020-09-18 2021-01-05 北京罗克维尔斯科技有限公司 Transaction data processing method and device and server
CN112465628A (en) * 2020-12-02 2021-03-09 软通动力信息技术(集团)股份有限公司 Data verification method and device, electronic equipment and storage medium
CN113129121A (en) * 2021-04-28 2021-07-16 北京数聚智连科技股份有限公司 E-commerce platform financial reconciliation accounting method and device
CN113204371B (en) * 2021-05-28 2023-09-19 金蝶软件(中国)有限公司 Access control method, related device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294125B (en) * 2016-07-25 2019-07-30 重庆农村商业银行股份有限公司 Core banking system data processing method
CN109559215A (en) * 2018-10-16 2019-04-02 深圳壹账通智能科技有限公司 Business datum accounting method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN109993651A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN109993651B (en) Data accounting service instruction set checking method, device, computer equipment and medium
CN103150647B (en) Report file disposal route, server and system
WO2020259035A1 (en) Service code generating and executing methods and devices
US10402406B2 (en) Predictive database for computer processes
CN110969528A (en) Transaction channel routing method, device, server and computer storage medium
CN112348326A (en) Bank business processing method and system
CN113076410A (en) Abnormal information processing method, device, equipment and storage medium
CN111292178A (en) Demand matching method and device, storage medium and electronic equipment
CN114004217B (en) Message signature element extraction method and system
CN114936921A (en) Loan risk control method and device
CN112633996B (en) Credit order distribution method, computer equipment and readable storage medium thereof
US12020246B2 (en) Intelligent distributed ledger consent optimizing apparatus for asset transfer
CN115470498A (en) Optimization method for intelligent contract reentry attack vulnerability based on auction refund transaction
CN109324963A (en) The method and terminal device of automatic test profitable result
CN111506784B (en) Asset creditor matching method, device, computer equipment and storage medium
EP4298544A1 (en) An apparatus, method and computer program product for identifying a validation check for a set of numbers
CN114443495A (en) Interface test case generation method, device, equipment and storage medium
CN114255134A (en) Account number disassembling method and device and storage medium
CN114490415A (en) Service testing method, computer device, storage medium, and computer program product
CN111932368B (en) Credit card issuing system and construction method and device thereof
CN110349025B (en) Method and device for preventing loss of contract assets based on non-cost transaction output
CN115994743B (en) Document abstract specification management method and system
US11625698B2 (en) Intelligent distributed ledger consent optimizing apparatus for asset transfer
CN114897625A (en) Risk control method and device in bank online business handling
CN115878753A (en) Electronic acceptance draft input system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100193, No. 5, building 16, east 10, East Hospital, No. 502 Wang Dong Road, Beijing, Haidian District

Applicant after: Softcom power information technology (Group) Co., Ltd

Address before: 100193, No. 5, building 16, east 10, East Hospital, No. 502 Wang Dong Road, Beijing, Haidian District

Applicant before: ISOFTSTONE INFORMATION TECHNOLOGY (Group) Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant