Reconciliation logic configuration method and device, storage medium and electronic equipment
The abstract syntax tree is generated through the reconciliation syntax parser, which solves the problem of cumbersome operations in the reconciliation logic configuration, realizes efficient reconciliation logic configuration, and improves configuration efficiency.
Patent Information
- Application Number
- CN202411373838.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-03
AI Technical Summary
The prior art has cumbersome operation in the reconciliation logic configuration, low efficiency, and difficult to configure easily.
By detecting the target reconciliation logic editing instructions, obtaining the cross-checking relationship, and using the reconciliation grammar parser for syntax analysis, generating an abstract syntax tree for reconciliation logic verification, thereby realizing reconciliation logic configuration.
There is no need to write reconciliation scripts every time, which simplifies the configuration process, reduces the delivery cycle, and improves the configuration efficiency of reconciliation logic.
Smart Images

Figure CN119248285A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, storage medium and electronic device for configuring account reconciliation logic. Background Art
[0002] At present, related technologies usually implement reconciliation logic through lengthy reconciliation script codes. When the reconciliation logic needs to be modified or added, the corresponding reconciliation script needs to be edited and put online again, which makes the operation cumbersome and inefficient. Based on this, there is currently no good solution for how to conveniently configure the reconciliation logic to improve the configuration efficiency of the reconciliation logic. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a reconciliation logic configuration method, device, storage medium and electronic device to solve the problems of cumbersome operation and low configuration efficiency of related technologies; that is, an embodiment of the present invention can conveniently perform reconciliation logic configuration to effectively improve the configuration efficiency of the reconciliation logic.
[0004] According to one aspect of an embodiment of the present invention, a method for configuring reconciliation logic is provided, the method comprising:
[0005] When a target reconciliation logic editing instruction for a target reconciliation logic is detected, a target cross-reference relationship indicated by the target reconciliation logic editing instruction is obtained, where a cross-reference relationship is used to indicate a numerical operation relationship and / or a comparison operation relationship corresponding to a reconciliation logic;
[0006] The target cross-check relationship is parsed by a reconciliation syntax parser to obtain a target abstract syntax tree of the target cross-check relationship, wherein an abstract syntax tree includes at least one reconciliation variable node, and a reconciliation variable node is used to indicate a reconciliation variable, and an abstract syntax tree of the cross-check relationship is used to perform a reconciliation logic check on the corresponding reconciliation logic;
[0007] The target abstract syntax tree is used to perform a reconciliation logic check on the target reconciliation logic to obtain a reconciliation logic check result of the target reconciliation logic.
[0008] According to another aspect of an embodiment of the present invention, a device for configuring account reconciliation logic is provided, the device comprising:
[0009] an acquisition unit, configured to acquire, when a target reconciliation logic editing instruction for a target reconciliation logic is detected, a target cross-reference relationship indicated by the target reconciliation logic editing instruction, wherein a cross-reference relationship is used to indicate a numerical operation relationship and / or a comparison operation relationship corresponding to a reconciliation logic;
[0010] a processing unit, configured to perform syntax parsing on the target cross-reference relationship through a reconciliation syntax parser to obtain a target abstract syntax tree of the target cross-reference relationship, wherein an abstract syntax tree includes at least one reconciliation variable node, wherein a reconciliation variable node is used to indicate a reconciliation variable, and an abstract syntax tree of the cross-reference relationship is used to perform reconciliation logic verification on a corresponding reconciliation logic;
[0011] The processing unit is further configured to use the target abstract syntax tree to perform a reconciliation logic check on the target reconciliation logic to obtain a reconciliation logic check result of the target reconciliation logic.
[0012] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a processor and a memory storing a program, wherein the program comprises instructions, which, when executed by the processor, enable the processor to perform the above-mentioned method.
[0013] According to another aspect of an embodiment of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above-mentioned method.
[0014] An embodiment of the present invention can obtain a target cross-reference relationship indicated by a target reconciliation logic editing instruction when a target reconciliation logic editing instruction is detected, where a cross-reference relationship is used to indicate a numerical operation relationship and / or a comparison operation relationship corresponding to a reconciliation logic; and can perform syntax parsing on the target cross-reference relationship through a reconciliation syntax parser to obtain a target abstract syntax tree of the target cross-reference relationship, where an abstract syntax tree includes at least one reconciliation variable node, where a reconciliation variable node is used to indicate a reconciliation variable, and an abstract syntax tree of a cross-reference relationship is used to perform reconciliation logic verification on the corresponding reconciliation logic; based on this, the target abstract syntax tree can be used to perform reconciliation logic verification on the target reconciliation logic to obtain a reconciliation logic verification result of the target reconciliation logic. It can be seen that the embodiment of the present invention can perform syntax analysis on any cross-reference relationship through the reconciliation syntax parser, so as to conveniently parse the corresponding abstract syntax tree for reconciliation logic verification, thereby eliminating the need to write a corresponding reconciliation script each time the reconciliation logic is edited, and eliminating the need to re-upload the corresponding reconciliation script. In other words, the embodiment of the present invention can configure the reconciliation logic by setting and putting online the cross-reference relationship of the reconciliation logic, thereby realizing low-code development and online, which can effectively shorten the delivery cycle; based on this, the embodiment of the present invention can conveniently configure the reconciliation logic to effectively improve the configuration efficiency of the reconciliation logic. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Further details, features and advantages of the invention are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0016] Figure 1 A schematic diagram of a flow chart of a method for configuring account reconciliation logic according to an exemplary embodiment of the present invention is shown;
[0017] Figure 2 A schematic diagram showing a flow chart of another method for configuring account reconciliation logic according to an exemplary embodiment of the present invention;
[0018] Figure 3 A schematic diagram showing a flow chart of another method for configuring account reconciliation logic according to an exemplary embodiment of the present invention is shown;
[0019] Figure 4 A schematic block diagram of a reconciliation logic configuration device according to an exemplary embodiment of the present invention is shown;
[0020] Figure 5 A block diagram of an exemplary electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0021] Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0022] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0023] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0024] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0025] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0026] It should be noted that the execution subject of the reconciliation logic configuration method provided in the embodiment of the present invention may be one or more electronic devices; wherein the electronic device may be a terminal (i.e., a client) or a server. Then, when the execution subject includes multiple electronic devices, and the multiple electronic devices include at least one terminal and at least one server, the reconciliation logic configuration method provided in the embodiment of the present invention may be jointly executed by the terminal and the server. Accordingly, the terminals mentioned here may include, but are not limited to: smart phones, tablet computers, laptop computers, desktop computers, smart watches, smart voice interaction devices, smart home appliances, and the like. The server mentioned here may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, and the like.
[0027] Based on the above description, an embodiment of the present invention proposes a method for configuring account reconciliation logic, which can be executed by the electronic device mentioned above (such as a terminal or a server); or, the method for configuring account reconciliation logic can be executed by the terminal and the server together. For the sake of convenience, the following description will be given by taking the electronic device executing the method for configuring account reconciliation logic as an example; Figure 1 As shown, the reconciliation logic configuration method may include the following steps S101-S103:
[0028] S101, when a target reconciliation logic editing instruction for a target reconciliation logic is detected, a target cross-reference relationship indicated by the target reconciliation logic editing instruction is obtained, where a cross-reference relationship is used to indicate a numerical operation relationship and / or a comparison operation relationship corresponding to a reconciliation logic.
[0029] Among them, the cross-check relationship can also be called the cross-check formula, which is the rule for amount verification in the reconciliation process; it should be understood that the reconciliation logic (also called the reconciliation verification logic) itself can be an amount numerical operation (such as four arithmetic operations) and a comparison operation. Based on this, the embodiment of the present invention can abstract the reconciliation logic into a cross-check relationship (i.e., a mathematical formula) composed of numerical operations and comparison operations, so that one reconciliation logic can correspond to a cross-check relationship, that is, a cross-check relationship can be used to represent a reconciliation logic; then accordingly, when editing a reconciliation logic, the cross-check relationship of the corresponding reconciliation logic can be edited to realize the editing of the corresponding reconciliation logic.
[0030] Optionally, the target reconciliation logic may be any reconciliation logic, which is not limited in the embodiment of the present invention. Optionally, a reconciliation logic may be a reconciliation logic for at least one account, or a reconciliation logic for at least one subject (such as a project, etc.), etc.; this is not limited in the embodiment of the present invention.
[0031] S102, through the reconciliation syntax parser, the target cross-reference relationship is parsed to obtain a target abstract syntax tree of the target cross-reference relationship, an abstract syntax tree includes at least one reconciliation variable node, a reconciliation variable node is used to indicate a reconciliation variable, and an abstract syntax tree of the cross-reference relationship is used to perform reconciliation logic verification on the corresponding reconciliation logic.
[0032] Among them, the reconciliation syntax parser (also known as the reconciliation syntax analyzer) can be generated through antlr (Another Tool for Language Recognition, an open source syntax analysis tool, such as antlr4, etc.), that is, the electronic device can generate a reconciliation syntax parser through antlr. Among them, antlr can have the functions of lexical analysis, syntax analysis, and generating syntax analyzer (i.e. syntax analyzer) code according to the specified language; for example, antlr can generate syntax analyzer code corresponding to languages such as Java, Python, JavaScript, C++, etc. Among them, a syntax parser can also be expressed as Parser. Based on this, using the reconciliation syntax parser to perform syntax analysis on the target cross-reference relationship can also refer to: using antlr to perform syntax analysis on the target cross-reference relationship, that is, using the reconciliation syntax parser generated in antlr to perform syntax analysis on the target cross-reference relationship.
[0033] Optionally, the reconciliation syntax parser can be generated based on the reconciliation syntax format file, and the reconciliation syntax format file supports the definition of at least one numerical operator, at least one comparison operator, a number format (i.e., defining a number), and a variable format (i.e., defining a variable); that is, the electronic device can generate a reconciliation syntax parser based on the reconciliation syntax format file through antlr. Among them, a numerical operator can be used to indicate a numerical operation method, and a comparison operator can be used to indicate a comparison operation method.
[0034] Optionally, at least one numerical operator, at least one comparison operator, digital format, and variable format defined in the reconciliation syntax format file may be set according to experience or according to actual needs, and the embodiment of the present invention does not limit this. Exemplarily, at least one numerical operator may include but is not limited to left brackets, right brackets, plus signs, minus signs, multiplication signs, division signs, and decimal points, etc., in which case the reconciliation syntax format file may be used to define left brackets, right brackets, plus signs, minus signs, multiplication signs, division signs, and decimal points, respectively; or at least one comparison operator may include but is not limited to greater than, greater than or equal to, less than, less than or equal to, and equal to, in which case the reconciliation syntax format file may be used to define greater than, greater than or equal to, less than, less than or equal to, and equal to, etc., respectively.
[0035] Optionally, the electronic device may also generate a Listener (observer) and a Visitor (visitor) through antlr, which is not limited in the embodiment of the present invention; wherein, the electronic device may traverse each node in the target abstract syntax tree through the visitor in the order of traversal of the syntax tree nodes, and may send each traversed node to the observer, so that each node may be processed accordingly through the observer.
[0036] Optionally, a node in the target abstract syntax tree may include a reconciliation variable in the target cross-reference relationship, in which case the node may be a reconciliation variable node; and / or, a node in the target abstract syntax tree may include a number in the target cross-reference relationship, in which case the node may be a numeric node; and / or, a node in the target abstract syntax tree may include a numerical operator in the target cross-reference relationship, in which case the node may be a numerical operation node; and / or, a node in the target abstract syntax tree may include a comparison operator in the target cross-reference relationship, in which case the node may be a comparison operation node; and / or, a node in the target abstract syntax tree may include a left bracket or a right bracket in the target cross-reference relationship, in which case the node may be a bracket node, and so on.
[0037] S103, using the target abstract syntax tree to perform a reconciliation logic check on the target reconciliation logic, and obtaining a reconciliation logic check result of the target reconciliation logic.
[0038] In an embodiment of the present invention, the electronic device can traverse each node in the target abstract syntax tree according to the traversal order of the syntax tree nodes, and use the currently traversed node as the current node; if the current node is a reconciliation variable node, determine the value path of the reconciliation variable indicated by the current node, and obtain the value indicated by the current node according to the value path of the reconciliation variable indicated by the current node, and the value indicated by the current node is the value of the reconciliation variable indicated by the current node; if the current node is a numerical operation node, perform numerical operation on the value indicated by the child node of the current node according to the numerical operation method indicated by the current node to obtain the value indicated by the current node; if the current node is a comparison operation node, perform comparison operation on the value indicated by the child node of the current node according to the comparison operation method indicated by the current node to obtain the comparison operation result; after traversing each node in the target abstract syntax tree, the reconciliation logic verification result of the target reconciliation logic can be determined based on the comparison operation result. Correspondingly, if the current node is a number node or a bracket node, the current node may not be processed.
[0039] Optionally, the syntax tree node traversal order may be a preset traversal order in antlr, which is not limited in the embodiment of the present invention; illustratively, the syntax tree node traversal order may be a depth-first traversal, and so on.
[0040] Optionally, the electronic device may, through an accessor, traverse each node in the target abstract syntax tree in the order of traversal of the syntax tree nodes, and use the currently traversed node as the current node; based on this, the current node may be sent to the observer through the accessor, so that the current node may be processed or cached through the observer, such as determining the value path of the reconciliation variable indicated by the current node through the observer, so as to determine the reconciliation logic verification result of the target reconciliation logic based on the comparison operation result, and so on.
[0041] Optionally, a reconciliation variable can be any variable, which is not limited in the embodiment of the present invention; illustratively, a reconciliation variable can be the account balance of an account, the income amount of an account, the expenditure amount of an account, etc. Among them, a reconciliation variable can have a value path to obtain the value of the corresponding reconciliation variable (such as the value of the corresponding reconciliation variable at the current system time, or the value of the corresponding reconciliation variable at a specified time, etc.); optionally, the specified time can be any time, which is not limited in the embodiment of the present invention.
[0042] Optionally, when performing a numerical operation on the value indicated by the child node of the current node according to the numerical operation mode indicated by the current node to obtain the value indicated by the current node, the electronic device may perform a numerical operation on the value indicated by each of the two child nodes of the current node according to the numerical operation mode indicated by the current node to obtain the value indicated by the current node. Optionally, the numerical operation mode indicated by the current node may be a numerical operation mode indicated by any numerical operator in at least one numerical operator, which is not limited in the embodiment of the present invention; illustratively, when the numerical operation mode indicated by the current node is addition operation, the value indicated by each of the two child nodes of the current node may be added, so that the addition operation result is used as the value indicated by the current node, and so on.
[0043] Optionally, when a comparison operation is performed on the values indicated by the child nodes of the current node (i.e., each of the two child nodes of the current node) in accordance with the comparison operation method indicated by the current node, and a comparison operation result is obtained, it can be determined whether the value indicated by each of the two child nodes of the current node conforms to the comparison operation method indicated by the current node. If the value indicated by each of the two child nodes of the current node conforms to the comparison operation method indicated by the current node, the comparison operation indication information passed will be used as the comparison operation result; if the value indicated by each of the two child nodes of the current node does not conform to the comparison operation method indicated by the current node, the comparison operation indication information not passed will be used as the comparison operation result. Exemplarily, assuming that the comparison operation mode indicated by the current node is greater than, when the value indicated by the left child node of the current node is greater than the value indicated by the right child node, it can be determined that the value indicated by each of the two child nodes of the current node conforms to the comparison operation mode indicated by the current node; when the value indicated by the left child node of the current node is less than or equal to the value indicated by the right child node, it can be determined that the value indicated by each of the two child nodes of the current node does not conform to the comparison operation mode indicated by the current node, and so on. In an embodiment of the present invention, when the current node is a comparison operation node, the current node can be the root node of the target abstract syntax tree.
[0044] Optionally, both the comparison operation passing indication information and the comparison operation failing indication information may be set according to experience or according to actual needs, which is not limited in the embodiment of the present invention.
[0045] Optionally, when determining the reconciliation logic verification result of the target reconciliation logic based on the comparison operation result, the electronic device may use the comparison operation result as the reconciliation logic verification result of the target reconciliation logic. At this time, when the reconciliation logic verification result of the target reconciliation logic is the passing of the comparison operation indication information, the reconciliation logic verification result of the target reconciliation logic can be used to indicate that the target reconciliation logic has passed the reconciliation logic verification; when the reconciliation logic verification result of the target reconciliation logic is the failing of the comparison operation indication information, the reconciliation logic verification result of the target reconciliation logic can be used to indicate that the target reconciliation logic has failed the reconciliation logic verification; or, when the comparison operation result is the passing of the comparison operation indication information, the passing of the comparison operation indication information can be used to indicate that the target reconciliation logic has failed the reconciliation logic verification. The reconciliation logic verification indication information is used as the reconciliation logic verification result of the target reconciliation logic. When the comparison operation result is the comparison operation indication information that fails to pass, the reconciliation logic verification indication information that fails to pass can be used as the reconciliation logic verification result of the target reconciliation logic. At this time, when the reconciliation logic verification result of the target reconciliation logic is the reconciliation logic verification indication information that passes, the reconciliation logic verification result of the target reconciliation logic can be used to indicate that the target reconciliation logic passes the reconciliation logic verification. When the reconciliation logic verification result of the target reconciliation logic is the reconciliation logic verification indication information that fails to pass, the reconciliation logic verification result of the target reconciliation logic can be used to indicate that the target reconciliation logic fails to pass the reconciliation logic verification, and so on. Optionally, the reconciliation logic verification indication information that passes and the reconciliation logic verification indication information that fails can be set according to experience or according to actual needs, and the embodiments of the present invention do not limit this.
[0046] Optionally, the electronic device may also, when a traversal exception or a numerical operation exception occurs, use the indication information of not passing the reconciliation logic check as the reconciliation logic check result of the target reconciliation logic; illustratively, when any node is a reconciliation variable node, and the value of the reconciliation variable indicated by any node is a null value, it can be determined that the numerical operation is abnormal, or when the divisor of the division operation is 0, it can be determined that the numerical operation is abnormal, or when the parent node of the two child nodes is not a numerical operation node or a comparison operation node, it can be determined that the traversal is abnormal, and so on; the embodiment of the present invention does not limit this. Optionally, the electronic device may also throw out a traversal exception prompt of the target reconciliation logic when a traversal exception occurs (such as including but not limited to the reconciliation logic identifier and traversal exception prompt of the target reconciliation logic), and / or may throw out a numerical operation exception prompt of the target reconciliation logic when a numerical operation exception occurs (such as including but not limited to the reconciliation logic identifier and numerical operation exception prompt of the target reconciliation logic); optionally, the traversal exception prompt and the numerical operation exception prompt may be set according to experience or according to actual needs, and the embodiment of the present invention does not limit this.
[0047] Optionally, if the reconciliation logic verification result of the target reconciliation logic is used to indicate that the target reconciliation logic has not passed the reconciliation logic verification, the reconciliation logic verification exception indication information of the target reconciliation logic may be thrown; if the reconciliation logic verification result of the target reconciliation logic is used to indicate that the target reconciliation logic has passed the reconciliation logic verification, the reconciliation logic verification exception indication information of the target reconciliation logic is not thrown. Optionally, the reconciliation logic verification exception indication information of the target reconciliation logic may include but is not limited to the reconciliation logic identifier of the target reconciliation logic (such as the reconciliation logic name or reconciliation logic number, etc.) and the reconciliation logic verification exception indication information, etc.; Optionally, the reconciliation logic verification exception indication information may be set according to experience or according to actual needs, and the embodiment of the present invention does not limit this.
[0048] To summarize, taking antlr4 as an example, the electronic device can obtain the target cross-reference relationship, and use antlr4 (i.e., the reconciliation syntax parser generated by antlr4) to perform syntax analysis on the target cross-reference relationship to obtain the target abstract syntax tree (i.e., parsed into the target abstract syntax tree); based on this, the target abstract syntax tree can be traversed, and the indicated value of the reconciliation variable node (such as account balance) can be obtained, and numerical operations (such as addition, subtraction, multiplication and division) of the value can be performed according to the four arithmetic operators (i.e., numerical operators), and then comparison operations can be performed according to the comparison operator (i.e., comparison operation method) to obtain the comparison operation result, such as Figure 2 shown.
[0049] An embodiment of the present invention can obtain a target cross-reference relationship indicated by a target reconciliation logic editing instruction when a target reconciliation logic editing instruction is detected, where a cross-reference relationship is used to indicate a numerical operation relationship and / or a comparison operation relationship corresponding to a reconciliation logic; and can perform syntax parsing on the target cross-reference relationship through a reconciliation syntax parser to obtain a target abstract syntax tree of the target cross-reference relationship, where an abstract syntax tree includes at least one reconciliation variable node, where a reconciliation variable node is used to indicate a reconciliation variable, and an abstract syntax tree of a cross-reference relationship is used to perform reconciliation logic verification on the corresponding reconciliation logic; based on this, the target abstract syntax tree can be used to perform reconciliation logic verification on the target reconciliation logic to obtain a reconciliation logic verification result of the target reconciliation logic. It can be seen that the embodiment of the present invention can perform syntax analysis on any cross-reference relationship through the reconciliation syntax parser, so as to conveniently parse the corresponding abstract syntax tree for reconciliation logic verification, thereby eliminating the need to write a corresponding reconciliation script each time the reconciliation logic is edited, and eliminating the need to re-upload the corresponding reconciliation script. In other words, the embodiment of the present invention can configure the reconciliation logic by setting and putting online the cross-reference relationship of the reconciliation logic, thereby realizing low-code development and online, which can effectively shorten the delivery cycle; based on this, the embodiment of the present invention can conveniently configure the reconciliation logic to effectively improve the configuration efficiency of the reconciliation logic.
[0050] Based on the above description, the embodiment of the present invention also proposes a more specific reconciliation logic configuration method, which can be executed by the electronic device mentioned above (such as a terminal or a server); or, the reconciliation logic configuration method can be executed by the terminal and the server together. For the sake of convenience, the following description will be given by taking the electronic device executing the reconciliation logic configuration method as an example; please refer to Figure 3 The reconciliation logic configuration method may include the following steps S301-S304:
[0051] S301, in response to a target reconciliation logic editing operation for a target reconciliation logic detected in a reconciliation editing interface, and determining that a target reconciliation logic editing instruction is detected, the target cross-reference relationship indicated by the target reconciliation logic editing instruction is the cross-reference relationship set by the target reconciliation logic editing operation.
[0052] The target reconciliation logic editing operation is a reconciliation logic adding operation or a reconciliation logic modifying operation. A reconciliation logic adding operation supports adding a cross-reference relationship of a reconciliation logic, and a reconciliation logic modifying operation supports modifying a cross-reference relationship of a reconciliation logic.
[0053] In an embodiment of the present invention, the electronic device may display a reconciliation editing interface. In this case, a user (such as a reconciliation personnel or management personnel, etc.) may perform a target reconciliation logic editing operation on the target reconciliation logic in the reconciliation editing interface. The target reconciliation logic editing operation may be a target reconciliation logic new operation or a target reconciliation logic modification operation for the target reconciliation logic, which is not limited in this embodiment of the present invention. Optionally, the reconciliation editing interface may include but is not limited to a reconciliation logic add button and an edit button for each added reconciliation logic in the added reconciliation logic set, etc., which is not limited in the embodiments of the present invention; accordingly, when the target reconciliation logic editing operation is a target reconciliation logic add operation, the user may perform a click operation or a long press operation (an operation in which the pressing time is greater than a preset pressing time threshold) on the reconciliation logic add button to implement the new reconciliation logic area display operation, and the electronic device may respond to the new reconciliation logic area display operation and display the new reconciliation logic area (such as displaying the new reconciliation logic area in the reconciliation editing interface or displaying the new reconciliation logic area in the form of a pop-up window, etc.). In this case, the user may enter the cross-reference relationship of the target reconciliation logic in the new reconciliation logic area to implement the target reconciliation logic editing operation. At this time, the cross-reference relationship set for the target reconciliation logic editing operation can be the user input or, when the target reconciliation logic editing operation is the target reconciliation logic modification operation, the target reconciliation logic can be an added reconciliation logic, then the user can click or long press the edit button of the target reconciliation logic to realize the editing area display operation of the target reconciliation logic, then the electronic device can respond to the editing area display operation for the target reconciliation logic, display the editing area of the target reconciliation logic (such as displaying the editing area of the target reconciliation logic in the reconciliation editing interface, or displaying the editing area of the target reconciliation logic in the form of a pop-up window, etc.), in this case, the user can modify the cross-reference relationship of the target reconciliation logic in the editing area of the target reconciliation logic to realize the target reconciliation logic editing operation, at this time, the cross-reference relationship set by the target reconciliation logic editing operation can be the cross-reference relationship of the modified target reconciliation logic, etc.; the embodiment of the present invention does not limit this. It can be seen that the embodiment of the present invention can realize the configuration of the reconciliation logic in a visual way, and the user only needs to configure the cross-reference relationship of the target reconciliation logic, which can simplify the configuration process, thereby improving user stickiness.
[0054] Optionally, the preset pressing duration threshold may be set based on experience or actual needs, which is not limited in the embodiment of the present invention.
[0055] Optionally, the user may also perform a reconciliation logic deletion operation on any added reconciliation logic, and the electronic device may respond to the reconciliation logic deletion operation on any added reconciliation logic, thereby deleting the abstract syntax tree and / or cross-reference relationship of any added reconciliation logic. Exemplarily, the reconciliation editing interface may also include a delete button for each added reconciliation logic, in which case the user may perform a click operation or a long press operation on the delete button of any added reconciliation logic, etc., to implement the reconciliation logic deletion operation on any added reconciliation logic.
[0056] Optionally, the user can also perform a reconciliation logic screening operation on the added reconciliation logic set, and the electronic device can respond to the reconciliation logic screening operation and display the cross-reference relationship of all reconciliation logics indicated by the reconciliation logic screening operation; illustratively, the reconciliation editing interface can also include a screening editing area and a reconciliation logic screening button. In this case, the user can enter the screening instruction information (such as one or more reconciliation variables, etc.) in the screening editing area, and perform a click operation or a long press operation on the reconciliation logic screening button to implement the reconciliation logic screening operation. Among them, all the reconciliation logics indicated by the reconciliation logic screening operation can be all the reconciliation logics indicated by the screening instruction information.
[0057] It can be seen that the embodiment of the present invention allows users to conveniently view the added reconciliation logic, and can clearly and conveniently see which reconciliations have been covered, which can effectively avoid the occurrence of missed reconciliations and repeated reconciliations.
[0058] Optionally, the user can also perform a reconciliation logic deduplication operation on the added reconciliation logic set, and the electronic device can respond to the reconciliation logic deduplication operation and perform a deduplication process on the added reconciliation logic set to obtain the added reconciliation logic set after the deduplication process; exemplarily, the reconciliation editing interface may include a reconciliation logic deduplication button, in which case the user can perform a click operation or a long press operation on the reconciliation logic deduplication button to implement the reconciliation logic deduplication operation. Optionally, when performing a deduplication process on the added reconciliation logic set to obtain the added reconciliation logic set after the deduplication process, the electronic device can respectively compare the cross-reference relationship of each added reconciliation logic in the added reconciliation logic set to remove the added reconciliation logic with the same cross-reference relationship; or, the abstract syntax tree of the cross-reference relationship of each added reconciliation logic can be compared to remove the added reconciliation logic with the same abstract syntax tree, thereby implementing a deduplication process on the added reconciliation logic set to obtain the added reconciliation logic set after the deduplication process, and so on; the embodiment of the present invention is not limited to this. Based on this, repeated reconciliation logic verification of the same reconciliation logic can be avoided, which can effectively save resources.
[0059] Optionally, the electronic device can also determine whether the cross-reference relationship set by the target reconciliation logic editing operation supports parsing out an abstract syntax tree; if it is determined that the cross-reference relationship set by the target reconciliation logic editing operation supports parsing out an abstract syntax tree, then trigger the execution to determine that the target reconciliation logic editing instruction is detected; if it is determined that the cross-reference relationship set by the target reconciliation logic editing operation does not support parsing out an abstract syntax tree, then throw out parsing exception indication information of the cross-reference relationship set by the target reconciliation logic editing operation. Optionally, the cross-reference relationship set by the target reconciliation logic editing operation can be parsed, and it can be determined within a preset parsing monitoring time whether the abstract syntax tree of the cross-reference relationship set by the target reconciliation logic editing operation is parsed out. Then, when the abstract syntax tree of the cross-reference relationship set by the target reconciliation logic editing operation is detected within the preset parsing monitoring time, it can be determined that the cross-reference relationship set by the target reconciliation logic editing operation supports parsing out an abstract syntax tree; when the abstract syntax tree of the cross-reference relationship set by the target reconciliation logic editing operation is not detected within the preset parsing monitoring time, it can be determined that the cross-reference relationship set by the target reconciliation logic editing operation does not support parsing out an abstract syntax tree, and so on. Optionally, both the analysis abnormality indication information and the preset analysis monitoring time may be set according to experience or according to actual needs, which is not limited in the embodiment of the present invention.
[0060] In other embodiments, the user may perform a target reconciliation logic editing operation on the client, and send the target reconciliation logic editing instruction to the electronic device. At this time, the target reconciliation logic editing instruction may carry the cross-reference relationship set by the target reconciliation logic editing operation (i.e., carry the target cross-reference relationship); in this case, the electronic device may determine that the target reconciliation logic editing instruction is detected when receiving the target reconciliation logic editing instruction, etc.; the present invention is not limited to this. In this case, the user may perform a corresponding operation on the client to send the corresponding instruction to the electronic device, so that the electronic device responds to the corresponding instruction; illustratively, the client may also determine whether the cross-reference relationship set by the target reconciliation logic editing operation supports parsing out an abstract syntax tree; if it is determined that the cross-reference relationship set by the target reconciliation logic editing operation supports parsing out an abstract syntax tree, then trigger the execution of sending the target reconciliation logic editing instruction to the electronic device, and so on.
[0061] S302, when a target reconciliation logic editing instruction for a target reconciliation logic is detected, a target cross-reference relationship indicated by the target reconciliation logic editing instruction is obtained, where a cross-reference relationship is used to indicate a numerical operation relationship and / or a comparison operation relationship corresponding to a reconciliation logic.
[0062] It should be understood that when the electronic device responds to the target reconciliation logic editing operation to determine that the target reconciliation logic editing instruction is detected, the cross-reference relationship set by the target reconciliation logic editing operation can be used as the target cross-reference relationship indicated by the target reconciliation logic editing instruction to achieve the acquisition of the target cross-reference relationship; or, when the electronic device receives the target reconciliation logic editing instruction to determine that the target reconciliation logic editing instruction is detected, the cross-reference relationship carried by the target reconciliation logic editing instruction can be used as the target cross-reference relationship to achieve the acquisition of the target cross-reference relationship, and so on; the embodiments of the present invention are not limited to this.
[0063] S303, through the reconciliation syntax parser, the target cross-reference relationship is parsed to obtain a target abstract syntax tree of the target cross-reference relationship, an abstract syntax tree includes at least one reconciliation variable node, a reconciliation variable node is used to indicate a reconciliation variable, and an abstract syntax tree of the cross-reference relationship is used to perform reconciliation logic verification on the corresponding reconciliation logic.
[0064] S304, using the target abstract syntax tree, performing a reconciliation logic check on the target reconciliation logic, and obtaining a reconciliation logic check result of the target reconciliation logic.
[0065] Optionally, the electronic device can detect the reconciliation logic verification trigger condition for the target reconciliation logic; when the reconciliation logic verification trigger condition for the target reconciliation logic is detected, the trigger execution adopts the target abstract syntax tree to perform the reconciliation logic verification on the target reconciliation logic, and obtain the reconciliation logic verification result of the target reconciliation logic. Optionally, the electronic device can determine the preset verification interval duration corresponding to the target reconciliation logic, and from the time the target abstract syntax tree is obtained, every preset verification interval duration, determine that the reconciliation logic verification trigger condition for the target reconciliation logic is detected; and / or, when the user's verification trigger operation for the target reconciliation logic is detected (such as a click operation or a long press operation on the verification trigger button of the target reconciliation logic, etc.), it is determined that the reconciliation logic verification trigger condition for the target reconciliation logic is detected; and / or, when the target abstract syntax tree is obtained, it is determined to detect the reconciliation logic verification trigger condition for the target reconciliation logic, etc.; the embodiment of the present invention does not limit this. Optionally, the preset verification interval duration can be set according to experience or according to actual needs, and the embodiment of the present invention does not limit this. In this case, after obtaining the target abstract syntax tree, the electronic device can cache the target abstract syntax tree to facilitate subsequent triggering and execution of the target abstract syntax tree, perform reconciliation logic verification on the target reconciliation logic, and obtain the reconciliation logic verification result of the target reconciliation logic.
[0066] Optionally, when the electronic device detects a reconciliation logic verification trigger condition for the target reconciliation logic, it may trigger the execution of the above-mentioned syntax parsing of the target cross-reference relationship through the reconciliation syntax parser to obtain the target abstract syntax tree of the target cross-reference relationship; in this case, the electronic device may not cache the target abstract syntax tree, but cache the target cross-reference relationship, and so on; the embodiments of the present invention are not limited to this.
[0067] In summary, it can be seen that the embodiments of the present invention can abstract complex reconciliation logic into clear and concise cross-reference relationships, and can use syntax parsing to obtain the corresponding abstract syntax tree to implement reconciliation logic verification; and can implement visual reconciliation logic configuration, thereby improving the development efficiency of reconciliation.
[0068] The embodiment of the present invention can respond to the target reconciliation logic editing operation detected for the target reconciliation logic in the reconciliation editing interface, and determine that the target reconciliation logic editing instruction is detected, and the target cross-check relationship indicated by the target reconciliation logic editing instruction is the cross-check relationship set by the target reconciliation logic editing operation. Then correspondingly, when the target reconciliation logic editing instruction for the target reconciliation logic is detected, the target cross-check relationship indicated by the target reconciliation logic editing instruction can be obtained, and a cross-check relationship is used to indicate a numerical operation relationship and / or a comparison operation relationship corresponding to a reconciliation logic; and the target cross-check relationship can be parsed by the reconciliation syntax parser to obtain the target abstract syntax tree of the target cross-check relationship, an abstract syntax tree includes at least one reconciliation variable node, a reconciliation variable node is used to indicate a reconciliation variable, and an abstract syntax tree of the cross-check relationship is used to perform reconciliation logic verification on the corresponding reconciliation logic; based on this, the target abstract syntax tree can be used to perform reconciliation logic verification on the target reconciliation logic to obtain the reconciliation logic verification result of the target reconciliation logic. It can be seen that the embodiment of the present invention can visually configure the target reconciliation logic (such as adding or modifying) through the target reconciliation logic editing operation, so that the cross-reference relationship set by the target reconciliation logic editing operation is used as the target cross-reference relationship to parse the target abstract syntax tree, thereby realizing the reconciliation logic configuration for the target reconciliation logic; based on this, the embodiment of the present invention can conveniently perform the reconciliation logic configuration to effectively improve the configuration efficiency of the reconciliation logic.
[0069] Based on the description of the relevant embodiments of the above-mentioned reconciliation logic configuration method, the embodiment of the present invention also proposes a reconciliation logic configuration device, which can be a computer program (including program code) running in an electronic device; Figure 4 As shown, the reconciliation logic configuration device may include an acquisition unit 401 and a processing unit 402. The reconciliation logic configuration device may execute Figure 1 or Figure 3 The account reconciliation logic configuration method shown, that is, the account reconciliation logic configuration device can run the above-mentioned units:
[0070] An acquisition unit 401 is used to acquire a target cross-reference relationship indicated by the target reconciliation logic editing instruction when a target reconciliation logic editing instruction is detected, where a cross-reference relationship is used to indicate a numerical operation relationship and / or a comparison operation relationship corresponding to a reconciliation logic;
[0071] The processing unit 402 is used to perform syntax parsing on the target cross-reference relationship through a reconciliation syntax parser to obtain a target abstract syntax tree of the target cross-reference relationship, where an abstract syntax tree includes at least one reconciliation variable node, where a reconciliation variable node is used to indicate a reconciliation variable, and an abstract syntax tree of the cross-reference relationship is used to perform reconciliation logic verification on the corresponding reconciliation logic;
[0072] The processing unit 402 is further configured to use the target abstract syntax tree to perform a reconciliation logic check on the target reconciliation logic to obtain a reconciliation logic check result of the target reconciliation logic.
[0073] In one implementation, when the processing unit 402 uses the target abstract syntax tree to perform a reconciliation logic check on the target reconciliation logic and obtains a reconciliation logic check result of the target reconciliation logic, it can be specifically used to:
[0074] Traverse each node in the target abstract syntax tree in the order of syntax tree node traversal, and use the currently traversed node as the current node;
[0075] If the current node is a reconciliation variable node, determining a value path of the reconciliation variable indicated by the current node, and obtaining the value indicated by the current node according to the value path of the reconciliation variable indicated by the current node, and the value indicated by the current node is the value of the reconciliation variable indicated by the current node;
[0076] If the current node is a numerical operation node, then according to the numerical operation mode indicated by the current node, a numerical operation is performed on the value indicated by the child node of the current node to obtain the value indicated by the current node;
[0077] If the current node is a comparison operation node, then a comparison operation is performed on the value indicated by the child node of the current node according to the comparison operation mode indicated by the current node to obtain a comparison operation result;
[0078] After traversing each node in the target abstract syntax tree, a reconciliation logic verification result of the target reconciliation logic is determined based on the comparison operation result.
[0079] In another embodiment, the reconciliation syntax parser is generated based on a reconciliation syntax format file, and the reconciliation syntax format file supports defining at least one numeric operator, at least one comparison operator, a numeric format, and a variable format.
[0080] In another implementation, the processing unit 402 may also be used to:
[0081] In response to a target reconciliation logic editing operation for the target reconciliation logic detected in the reconciliation editing interface, and determining that the target reconciliation logic editing instruction is detected, the target cross-reference relationship indicated by the target reconciliation logic editing instruction is the cross-reference relationship set by the target reconciliation logic editing operation;
[0082] The target reconciliation logic editing operation is a reconciliation logic adding operation or a reconciliation logic modifying operation. A reconciliation logic adding operation supports adding a cross-reference relationship of a reconciliation logic, and a reconciliation logic modifying operation supports modifying a cross-reference relationship of a reconciliation logic.
[0083] In another implementation, the processing unit 402 may also be used to:
[0084] Determine whether the cross-reference relationship set by the target reconciliation logic editing operation supports parsing an abstract syntax tree;
[0085] If it is determined that the cross-reference relationship set by the target reconciliation logic editing operation supports parsing an abstract syntax tree, triggering the execution of the determination that the target reconciliation logic editing instruction is detected;
[0086] If it is determined that the cross-reference relationship set by the target reconciliation logic editing operation does not support parsing of an abstract syntax tree, parsing exception indication information of the cross-reference relationship set by the target reconciliation logic editing operation is thrown.
[0087] In another implementation, the processing unit 402 may also be used to:
[0088] If the reconciliation logic verification result of the target reconciliation logic indicates that the target reconciliation logic fails the reconciliation logic verification, then throwing reconciliation logic verification exception indication information of the target reconciliation logic;
[0089] If the reconciliation logic verification result of the target reconciliation logic is used to indicate that the target reconciliation logic passes the reconciliation logic verification, then reconciliation logic verification exception indication information of the target reconciliation logic is not thrown.
[0090] In another implementation, the processing unit 402 may also be used to:
[0091] Detecting a reconciliation logic verification trigger condition for the target reconciliation logic;
[0092] When a reconciliation logic verification trigger condition for the target reconciliation logic is detected, the target abstract syntax tree is used to trigger execution, and a reconciliation logic verification is performed on the target reconciliation logic to obtain a reconciliation logic verification result of the target reconciliation logic.
[0093] According to one embodiment of the present invention, Figure 4 Each unit in the shown reconciliation logic configuration device can be separately or completely combined into one or several other units to constitute, or one (some) of the units can be further divided into multiple functionally smaller units to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units are divided based on logical functions. In actual applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present invention, any reconciliation logic configuration device may also include other units. In actual applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0094] According to another embodiment of the present invention, the program can be executed by running a program on a general electronic device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 1 or Figure 3 A computer program (including program code) for each step involved in the corresponding method shown in Figure 4 The reconciliation logic configuration device shown in and the reconciliation logic configuration method of the embodiment of the present invention are implemented. The computer program can be recorded on, for example, a computer storage medium, and loaded into the above-mentioned electronic device through the computer storage medium and run therein.
[0095] An embodiment of the present invention can obtain a target cross-reference relationship indicated by a target reconciliation logic editing instruction when a target reconciliation logic editing instruction is detected, where a cross-reference relationship is used to indicate a numerical operation relationship and / or a comparison operation relationship corresponding to a reconciliation logic; and can perform syntax parsing on the target cross-reference relationship through a reconciliation syntax parser to obtain a target abstract syntax tree of the target cross-reference relationship, where an abstract syntax tree includes at least one reconciliation variable node, where a reconciliation variable node is used to indicate a reconciliation variable, and an abstract syntax tree of a cross-reference relationship is used to perform reconciliation logic verification on the corresponding reconciliation logic; based on this, the target abstract syntax tree can be used to perform reconciliation logic verification on the target reconciliation logic to obtain a reconciliation logic verification result of the target reconciliation logic. It can be seen that the embodiment of the present invention can perform syntax analysis on any cross-reference relationship through the reconciliation syntax parser, so as to conveniently parse the corresponding abstract syntax tree for reconciliation logic verification, thereby eliminating the need to write a corresponding reconciliation script each time the reconciliation logic is edited, and eliminating the need to re-upload the corresponding reconciliation script. In other words, the embodiment of the present invention can configure the reconciliation logic by setting and putting online the cross-reference relationship of the reconciliation logic, thereby realizing low-code development and online, which can effectively shorten the delivery cycle; based on this, the embodiment of the present invention can conveniently configure the reconciliation logic to effectively improve the configuration efficiency of the reconciliation logic.
[0096] Based on the description of the above method embodiment and device embodiment, the exemplary embodiment of the present invention further provides an electronic device, including: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to enable the electronic device to perform the method according to the embodiment of the present invention when executed by the at least one processor.
[0097] Exemplary embodiments of the present invention also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform a method according to an embodiment of the present invention.
[0098] An exemplary embodiment of the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform a method according to an embodiment of the present invention.
[0099] refer to Figure 5, a block diagram of an electronic device 500 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0100] like Figure 5 As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0101] A plurality of components in the electronic device 500 are connected to the I / O interface 505, including: an input unit 506, an output unit 507, a storage unit 508, and a communication unit 509. The input unit 506 may be any type of device capable of inputting information to the electronic device 500, and the input unit 506 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 507 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 508 may include, but is not limited to, a disk, an optical disk. The communication unit 509 allows the electronic device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0102] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above. For example, in some embodiments, the reconciliation logic configuration method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 500 via the ROM 502 and / or the communication unit 509. In some embodiments, the computing unit 501 may be configured to execute the reconciliation logic configuration method in any other appropriate manner (e.g., by means of firmware).
[0103] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0104] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0105] As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0106] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0107] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0108] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0109] Furthermore, it should be understood that what is disclosed above is only a preferred embodiment of the present invention, and certainly cannot be used to limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A method for configuring account reconciliation logic, characterized in that: include: When a target reconciliation logic editing instruction for a target reconciliation logic is detected, a target cross-reference relationship indicated by the target reconciliation logic editing instruction is obtained, where a cross-reference relationship is used to indicate a numerical operation relationship and / or a comparison operation relationship corresponding to a reconciliation logic; The target cross-check relationship is parsed by a reconciliation syntax parser to obtain a target abstract syntax tree of the target cross-check relationship, wherein an abstract syntax tree includes at least one reconciliation variable node, and a reconciliation variable node is used to indicate a reconciliation variable, and an abstract syntax tree of the cross-check relationship is used to perform a reconciliation logic check on the corresponding reconciliation logic; The target abstract syntax tree is used to perform a reconciliation logic check on the target reconciliation logic to obtain a reconciliation logic check result of the target reconciliation logic.
2. The method according to claim 1, characterized in that The adopting the target abstract syntax tree to perform a reconciliation logic check on the target reconciliation logic to obtain a reconciliation logic check result of the target reconciliation logic includes: Traverse each node in the target abstract syntax tree in the order of syntax tree node traversal, and use the currently traversed node as the current node; If the current node is a reconciliation variable node, determining a value path of the reconciliation variable indicated by the current node, and obtaining the value indicated by the current node according to the value path of the reconciliation variable indicated by the current node, and the value indicated by the current node is the value of the reconciliation variable indicated by the current node; If the current node is a numerical operation node, then according to the numerical operation mode indicated by the current node, a numerical operation is performed on the value indicated by the child node of the current node to obtain the value indicated by the current node; If the current node is a comparison operation node, then a comparison operation is performed on the value indicated by the child node of the current node according to the comparison operation mode indicated by the current node to obtain a comparison operation result; After traversing each node in the target abstract syntax tree, a reconciliation logic verification result of the target reconciliation logic is determined based on the comparison operation result.
3. The method according to claim 1 or 2, characterized in that: The reconciliation syntax parser is generated based on a reconciliation syntax format file, and the reconciliation syntax format file supports defining at least one numerical operator, at least one comparison operator, a number format, and a variable format.
4. The method according to claim 1 or 2, characterized in that: The method further comprises: In response to a target reconciliation logic editing operation for the target reconciliation logic detected in the reconciliation editing interface, and determining that the target reconciliation logic editing instruction is detected, the target cross-reference relationship indicated by the target reconciliation logic editing instruction is the cross-reference relationship set by the target reconciliation logic editing operation; The target reconciliation logic editing operation is a reconciliation logic adding operation or a reconciliation logic modifying operation. A reconciliation logic adding operation supports adding a cross-reference relationship of a reconciliation logic, and a reconciliation logic modifying operation supports modifying a cross-reference relationship of a reconciliation logic.
5. The method according to claim 4, characterized in that The method further comprises: Determine whether the cross-reference relationship set by the target reconciliation logic editing operation supports parsing an abstract syntax tree; If it is determined that the cross-reference relationship set by the target reconciliation logic editing operation supports parsing an abstract syntax tree, triggering the execution of the determination that the target reconciliation logic editing instruction is detected; If it is determined that the cross-reference relationship set by the target reconciliation logic editing operation does not support parsing of an abstract syntax tree, parsing exception indication information of the cross-reference relationship set by the target reconciliation logic editing operation is thrown.
6. The method according to claim 1 or 2, characterized in that: The method further comprises: If the reconciliation logic verification result of the target reconciliation logic indicates that the target reconciliation logic fails the reconciliation logic verification, then throwing reconciliation logic verification exception indication information of the target reconciliation logic; If the reconciliation logic verification result of the target reconciliation logic is used to indicate that the target reconciliation logic passes the reconciliation logic verification, then reconciliation logic verification exception indication information of the target reconciliation logic is not thrown.
7. The method according to claim 1 or 2, characterized in that: The method further comprises: Detecting a reconciliation logic verification trigger condition for the target reconciliation logic; When a reconciliation logic verification trigger condition for the target reconciliation logic is detected, the target abstract syntax tree is used to trigger execution, and a reconciliation logic verification is performed on the target reconciliation logic to obtain a reconciliation logic verification result of the target reconciliation logic.
8. A reconciliation logic configuration device, characterized in that: The device comprises: an acquisition unit, configured to acquire, when a target reconciliation logic editing instruction for a target reconciliation logic is detected, a target cross-reference relationship indicated by the target reconciliation logic editing instruction, wherein a cross-reference relationship is used to indicate a numerical operation relationship and / or a comparison operation relationship corresponding to a reconciliation logic; a processing unit, configured to perform syntax parsing on the target cross-reference relationship through a reconciliation syntax parser to obtain a target abstract syntax tree of the target cross-reference relationship, wherein an abstract syntax tree includes at least one reconciliation variable node, wherein a reconciliation variable node is used to indicate a reconciliation variable, and an abstract syntax tree of the cross-reference relationship is used to perform reconciliation logic verification on a corresponding reconciliation logic; The processing unit is further configured to use the target abstract syntax tree to perform a reconciliation logic check on the target reconciliation logic to obtain a reconciliation logic check result of the target reconciliation logic.
9. An electronic device, characterized in that: include: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-7.
