CN111861692A - Account correcting method, system, server and storage medium based on rule engine - Google Patents
Account correcting method, system, server and storage medium based on rule engine Download PDFInfo
- Publication number
- CN111861692A CN111861692A CN202010730576.9A CN202010730576A CN111861692A CN 111861692 A CN111861692 A CN 111861692A CN 202010730576 A CN202010730576 A CN 202010730576A CN 111861692 A CN111861692 A CN 111861692A
- Authority
- CN
- China
- Prior art keywords
- fund
- change information
- strategy
- voucher
- modifying
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 230000008859 change Effects 0.000 claims abstract description 88
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 41
- 230000004048 modification Effects 0.000 claims abstract description 39
- 238000012986 modification Methods 0.000 claims abstract description 39
- 238000012937 correction Methods 0.000 claims abstract description 23
- 238000009966 trimming Methods 0.000 claims description 19
- 238000012545 processing Methods 0.000 claims description 12
- 238000012217 deletion Methods 0.000 claims description 6
- 230000037430 deletion Effects 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000011010 flushing procedure Methods 0.000 claims 1
- 230000006870 function Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000003247 decreasing effect Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004080 punching Methods 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 241000282326 Felis catus Species 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 239000000872 buffer Substances 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000009545 invasion Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000007115 recruitment Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/12—Accounting
- G06Q40/125—Finance or payroll
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 invention provides an account correcting method based on a rule engine, which comprises the following steps: acquiring fund change information of a service database, wherein the fund change information comprises fund quantity and fund type; determining a modification strategy based on the fund change information, wherein the modification strategy comprises settlement interest, income expenditure table updating and/or transaction flow canceling; sending the number-modifying strategy to the rule engine to obtain one or more algorithms corresponding to the number-modifying strategy; calculating the fund change information based on the one or more algorithms to generate an accrual voucher, the accrual voucher including an increase in the amount of funds, a decrease in the amount of funds, and/or a change in the fund category; and sending the revision voucher to a billing system so that the billing system executes account revision operation based on the revision voucher. The invention directly sends the computed number correction voucher to the account system for account correction through the rule engine, so that the business system has a simple structure.
Description
Technical Field
The embodiment of the invention relates to the technical field of finance, in particular to an account correcting method, system, server and storage medium based on a rule engine.
Background
The current business system reports the data related to finance to the accounting system in an accounting voucher mode, when the abnormal settled data is found in the operation process of the system, the data of the business database needs to be corrected through a specific number correction logic, and the accounting voucher is reported to the account system again after the data of the business database is corrected. When different services are transacted simultaneously, different positive punching operation flows need to be executed.
In the prior art, the service database is modified by executing the revision logic, and then the data of the service database is reported to the account system again for recruitment and revision, so that the revision room of the service database is complex and invasive to the system, which is not beneficial to functional decoupling. The pain and death are caused, and meanwhile, in order to adapt to different loyalty services, a corresponding functional module is added to each service system, so that the system structure redundancy is caused.
Disclosure of Invention
The invention provides an account correction method, a system, a server and a storage medium based on a rule engine.
In a first aspect, the present invention provides an account correcting method based on a rule engine, executed by a policy module, including:
acquiring fund change information of a service database, wherein the fund change information comprises fund quantity and fund type;
determining a modification strategy based on the fund change information, wherein the modification strategy comprises settlement interest, income expenditure table updating and/or transaction flow canceling;
sending the number-modifying strategy to the rule engine to obtain one or more algorithms corresponding to the number-modifying strategy;
calculating the fund change information based on the one or more algorithms to generate an accrual voucher, the accrual voucher including an increase in the amount of funds, a decrease in the amount of funds, and/or a change in the fund category;
and sending the revision voucher to a billing system so that the billing system executes account revision operation based on the revision voucher.
Further, if the fund change information is one or more than one, before determining the fix-up policy based on the fund change information, the method further includes:
generating an asynchronous message queue;
caching the one or more fund change information into the asynchronous message queue;
and reading the fund change information in sequence based on the computing power of the strategy module.
Further, the determining a fix policy based on the fund change information includes:
and comparing the fund type with a preset comparison table to determine a modification strategy.
Further, if the fund change information further includes a data source, the sending the repair voucher to a billing system includes:
determining a target billing system to receive the trimming credentials based on the data source;
and sending the number-modifying voucher to a target accounting system.
Further, before the sending the trimming policy to the rule engine, the method further includes:
acquiring a rule modification instruction input by a manager;
and executing an addition number modification strategy, a deletion number modification strategy and/or modifying an algorithm corresponding to the number modification strategy based on the rule modification instruction.
In a second aspect, the present invention provides an account correcting system based on a rule engine, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring fund change information of a service database, and the fund change information comprises fund quantity and fund type;
the strategy determining module is used for determining a number-modifying strategy based on the fund change information, wherein the number-modifying strategy comprises settlement interest, income expenditure table updating and/or transaction flow canceling;
the rule determining module is used for sending the number-modifying strategy to the rule engine so as to obtain one or more algorithms corresponding to the number-modifying strategy;
a calculation module to calculate the fund change information based on the one or more algorithms to generate a credit voucher, the credit voucher including an increase in the amount of funds, a decrease in the amount of funds, and/or a change in the fund category;
and the number correction module is used for sending the number correction voucher to a billing system so that the billing system executes account correction operation based on the number correction voucher.
Further, still include asynchronous processing module, asynchronous processing module includes:
the queue generating unit is used for generating an asynchronous message queue;
a caching unit, configured to cache the one or more fund change information to the asynchronous message queue;
and the reading unit is used for sequentially reading the fund change information based on the computing power of the strategy module.
Further, a rule modification module is also included, the rule modification module including:
the acquisition unit is used for acquiring a rule modification instruction input by a manager;
and the sending unit is used for executing the addition number-modifying strategy, the deletion number-modifying strategy and/or modifying the algorithm corresponding to the number-modifying strategy based on the rule modifying instruction.
In a third aspect, the present invention also provides a server, including a memory, a processor, and a program stored on the memory and executable on the processor, where the processor executes the program to implement a rule engine-based account correction method as described in any one of the above.
In a fourth aspect, a terminal-readable storage medium has stored thereon a program which, when executed by a processor, is capable of implementing a rules engine-based account reconciliation method as described in any of the above.
The invention directly sends the computed number correction voucher to the account system for account correction through the rule engine, so that the business system has a simple structure.
Drawings
Fig. 1 is a flowchart of a rule engine-based account updating method according to the first embodiment.
Fig. 2 is a flowchart of an alternative embodiment of the first embodiment.
Fig. 3 is a flowchart of the account updating method based on the rule engine according to the second embodiment.
Fig. 4 is a flowchart of an alternative embodiment of the second embodiment.
Fig. 5 is a block diagram of an account correction system based on a rule engine according to the third embodiment.
Fig. 6 is a block diagram of an alternative embodiment of the third embodiment.
Fig. 7 is a block diagram of a server in the fourth embodiment.
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.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, the first feature information may be the second feature information or the third feature information, and similarly, the second feature information and the third feature information may be the first feature information without departing from the scope of the present application. The first characteristic information, the second characteristic information and the third characteristic information are characteristic information of the distributed file system, but are not the same characteristic information. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "plurality", "batch" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
The terms and abbreviations used in the following examples have the following meanings:
binlog: a binary format file is used for recording SQL statement information updated by a user on a database, for example, SQL statements for changing a database table and contents are recorded in a binlog, but queries for contents such as the database table are not recorded. By default, the binlog log is in binary format and cannot be viewed using commands to view text tools (e.g., cat, vi, etc.), while mysql log parsing is used to view.
redis database: the redis is an open-source, network-supported, memory-based key-value pair (key-value) storage database, supports various data types and operations, and has a powerful function of managing data. The value types it supports to store include string (string), linked list (list), set (set), and ordered set (zset, e.g., sortedset).
Example one
The present embodiment provides an account correcting method based on a rule engine, which is executed by a policy module, and the present embodiment and the following embodiments subscribe log change information of a business database through a binlog file to obtain fund change information of the business database after change, as shown in fig. 1, specifically include the following steps:
s101, obtaining fund change information of a service database, wherein the fund change information comprises fund quantity and fund type.
In this step, the business database periodically acquires the latest business data from the business system for data storage and periodic update, and the business system includes one or more of the above steps for executing the upstream fund flow step and generating the business data. By subscribing to the binlog file in the log of the business database, the data of the business database can be monitored in real time, and fund change information is periodically acquired, wherein the fund change information is used for describing the fund change condition of the business database, including the fund quantity, and also comprises a fund type and/or a data source, and the data source is used for describing which business database or business system the fund comes from.
And S102, determining a number-modifying strategy based on the fund change information, wherein the number-modifying strategy comprises settlement interest, income and expenditure table updating and/or transaction flow canceling.
In this step, the trimming policy refers to what type of trimming operation needs to be done on the account table, but does not describe a specific data calculation process, and illustratively, the trimming policy includes, but is not limited to, settling interest, updating an income payment table, and/or canceling a transaction flow. In an alternative embodiment, optionally, the step comprises: and comparing the fund type with a preset comparison table to determine the number modification strategy.
In this step, a preset comparison table is pre-stored in a database of the policy module, where the comparison table stores keywords and values corresponding to the keywords, in this embodiment and other embodiments, the keywords are fund categories, for example, the fund categories include, but are not limited to, fund posting dates, currency symbols, and/or fund flow directions, and the values corresponding to the keywords are trimming policies, for example, the trimming policies include, but are not limited to, settlement interest, updating income and expenditure tables, and/or canceling transaction flow. Optionally, the database of the policy module is a redis database, the comparison table is stored in the redis database in a key-value pair (i.e., in a key-value form), and the revision policy corresponding to the fund category is obtained through comparison between the keyword and the comparison table.
S103, sending the number-modifying strategy to the rule engine to obtain one or more algorithms corresponding to the number-modifying strategy.
In this step, the algorithm is used to calculate the data of the account table, each of the number-modifying policies includes one or more algorithms, and each of the number-modifying policies may be the same as or different from the algorithms of the other number-modifying policies.
S104, calculating the fund change information based on the one or more algorithms to generate a credit voucher, wherein the credit voucher comprises increasing the fund amount, decreasing the fund amount and/or changing the fund category.
In this step, the revision voucher is only used for modifying the account of the accounting system, and does not affect the actual business data in the business system.
And S105, sending the number correction voucher to a billing system so that the billing system executes account correction operation based on the number correction voucher.
In this step, optionally, the fund change information further includes a data source, as shown in fig. 2, this step specifically includes: s1051, determining a target accounting system for receiving the trimming voucher based on the data source;
and S1052, sending the trimming voucher to a target accounting system.
In the above steps S1051 and S1052, one or more accounting systems are used to store the account data corresponding to the business database or business system. The data source is used for describing a service database or service system from which the funds originate, and the target accounting system for receiving the trimming voucher can be determined based on the data source.
In the embodiment, the decoupling of the number correction function and the service system is realized through the strategy module, so that the service correction does not need to change the service database, the account system is directly corrected, and the invasion to the system is avoided.
Example two
In this embodiment, an asynchronous processing procedure for acquiring information is added on the basis of the above embodiment, a large financial system generally includes a large number of service databases, and the operation efficiency of the system is improved by asynchronous processing, and the following method is executed by a policy module, as shown in fig. 3, and includes the following steps:
s201, obtaining fund change information of a business database, wherein the fund change information comprises fund quantity and fund type.
S2021, generating an asynchronous message queue.
In this step, the policy module adds plug-ins for implementing asynchronous message processing, illustratively, such as rockmq, ActiveMQ, RabbitMQ, ZeroMQ, Kafka, MetaMQ, and/or rockmq middleware to reduce system coupling and implement asynchronous processing of messages.
S2022, caching the one or more fund change information into the asynchronous message queue.
This step creates an asynchronous message queue in the policy module. When the fund change information data volume acquired by the strategy module is large, the system is cached in an asynchronous message queue to avoid blocking caused by instantly processing a large number of information processing requests, and a processing result does not need to be fed back immediately.
And S2023, sequentially reading the fund change information based on the computing power of the strategy module.
In the step, the strategy module reads the fund change information from the asynchronous message queue in sequence for processing when the computing power is idle, and determines the number-modifying strategy.
Based on the service requirement, the fund change information further includes fund change time, and then the step may further be: reading one or more fund change information in a preset time period based on the fund change time; and/or reading the fund change information before the preset time in sequence based on the fund change time.
Illustratively, the message queue buffers all the fund change information from time T0 through times T1, T2 to time T3, and the policy module may choose to read one or more of the fund change information from the asynchronous message queue for the time period T1-T2 or to read one or more of the fund change information buffered before time T3, based on the traffic demand.
S203, determining a number-modifying strategy based on the fund change information, wherein the number-modifying strategy comprises settlement interest, income expenditure table updating and/or transaction flow canceling.
S204, sending the number-modifying strategy to the rule engine to obtain one or more algorithms corresponding to the number-modifying strategy.
S205, calculating the fund change information based on the one or more algorithms to generate a credit voucher, wherein the credit voucher comprises increasing the fund amount, decreasing the fund amount and/or changing the fund category.
S206, the revision voucher is sent to a billing system, so that the billing system executes account revision operation based on the revision voucher.
In an alternative embodiment, as shown in fig. 4, step S204 further includes, before:
and S2071, acquiring a rule modification instruction input by a manager.
And S2072, executing an addition number modification strategy, a deletion number modification strategy and/or modifying an algorithm corresponding to the number modification strategy based on the rule modification instruction.
In steps S2071-S2072, the algorithm corresponding to the modification number-modifying policy means that a certain number-modifying policy is changed from the algorithm referred by the rule engine, specifically, the algorithm is increased, decreased and/or changed. Simultaneously with the step, the manager can also execute the operation of adding algorithms and/or deleting algorithms on one or more algorithms prestored in the rule engine based on business requirements.
According to the method and the device, the asynchronous message queue is created in the strategy module, so that the system operation smoothness is ensured, and the jamming is avoided. Meanwhile, the number-modifying strategy and the number-modifying strategy reference algorithm are modified, so that the system function has expansibility.
EXAMPLE III
As shown in fig. 5, the present embodiment provides an account correction system 3 based on a rule engine, which includes the following modules:
the first obtaining module 301 is configured to obtain fund change information of the service database, where the fund change information includes a fund amount and a fund category.
A policy determining module 302, configured to determine a fixed policy based on the fund change information, where the fixed policy includes settlement interest, revenue and expenditure table updating, and/or trade line canceling, and further configured to compare the fund type with a preset comparison table to determine the fixed policy. In this step, based on the service requirement, the fund change information further includes fund change time, and then the module is further configured to: reading one or more fund change information in a preset time period based on the fund change time; and/or reading the fund change information before the preset time in sequence based on the fund change time.
A rule determining module 303, configured to send the trimming policy to the rule engine to obtain one or more algorithms corresponding to the trimming policy. The algorithm is used for calculating the data of the account table, each number-modifying strategy comprises one or more algorithms, and the algorithm of each number-modifying strategy and the algorithm of other number-modifying strategies can be the same or different.
A calculation module 304 to calculate the fund change information based on the one or more algorithms to generate a credit voucher including increasing the amount of funds, decreasing the amount of funds, and/or changing the fund category.
A trimming module 305, configured to send the trimming voucher to a billing system, so that the billing system performs an account trimming operation based on the trimming voucher. Wherein the fund change information further comprises a data source, then the module is further configured to: determining a target billing system to receive the trimming credentials based on the data source; and sending the number-modifying voucher to a target accounting system.
In an alternative embodiment, as shown in fig. 6, further comprising:
an asynchronous caching module 306 for generating an asynchronous message queue; caching the one or more fund change information into the asynchronous message queue; and reading the fund change information in sequence based on the computing power of the strategy module.
In an alternative embodiment, further comprising:
a rule modification module 307, configured to obtain a rule modification instruction input by a manager; and executing an addition number modification strategy, a deletion number modification strategy and/or modifying an algorithm corresponding to the number modification strategy based on the rule modification instruction. The algorithm corresponding to the modification number-modifying strategy in the module refers to that the algorithm quoted by a certain number-modifying strategy from the rule engine is changed, specifically, the algorithm is increased, decreased and/or changed.
The account correcting system based on the rule engine provided by the embodiment of the invention can execute the account correcting method based on the rule engine provided by any embodiment of the invention, and has corresponding execution methods and beneficial effects of the functional modules.
Example four
The present embodiment provides a schematic structural diagram of a server, as shown in fig. 7, the server includes a processor 401, a memory 402, an input device 403, and an output device 404; the number of the processors 401 in the server may be one or more, and one processor 401 is taken as an example in the figure; the processor 401, memory 402, input device 403 and output device 404 in the device/terminal/server may be linked by a bus or other means, as exemplified by the linking via a bus in fig. 7.
The memory 402 may be used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the rule engine-based account punching method in the embodiment of the present invention (e.g., the first obtaining module 301, the policy determining module 302, etc.). The processor 401 executes various functional applications of the device/terminal/server and data processing by running software programs, instructions and modules stored in the memory 402, namely, the above-mentioned rule engine-based account correction method is realized.
The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage 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 402 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 402 may further include memory located remotely from the processor 401, which may be linked to the device/terminal/server through 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 means 403 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the device/terminal/server. The output device 404 may include a display device such as a display screen.
The embodiment of the invention also provides a server which can execute the account correcting method based on the rule engine provided by any embodiment of the invention, and the server has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a rule engine-based account punching method according to any embodiment of the present invention:
acquiring fund change information of a service database, wherein the fund change information comprises fund quantity and fund type;
determining a modification strategy based on the fund change information, wherein the modification strategy comprises settlement interest, income expenditure table updating and/or transaction flow canceling;
sending the number-modifying strategy to the rule engine to obtain one or more algorithms corresponding to the number-modifying strategy;
calculating the fund change information based on the one or more algorithms to generate an accrual voucher, the accrual voucher including an increase in the amount of funds, a decrease in the amount of funds, and/or a change in the fund category;
and sending the revision voucher to a billing system so that the billing system executes account revision operation based on the revision voucher.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical link having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted over any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be linked to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the link may be made to an external computer (for example, through the Internet using an Internet service provider).
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 (10)
1. An account correcting method based on a rule engine, which is executed by a policy module, is characterized by comprising the following steps:
acquiring fund change information of a service database, wherein the fund change information comprises fund quantity and fund type;
determining a modification strategy based on the fund change information, wherein the modification strategy comprises settlement interest, income expenditure table updating and/or transaction flow canceling;
sending the number-modifying strategy to the rule engine to obtain one or more algorithms corresponding to the number-modifying strategy;
calculating the fund change information based on the one or more algorithms to generate an accrual voucher, the accrual voucher including an increase in the amount of funds, a decrease in the amount of funds, and/or a change in the fund category;
and sending the revision voucher to a billing system so that the billing system executes account revision operation based on the revision voucher.
2. The method of claim 1, wherein the fund change information is one or more than one, and before determining the fix-up policy based on the fund change information, the method further comprises:
generating an asynchronous message queue;
caching the one or more fund change information into the asynchronous message queue;
and reading the fund change information in sequence based on the computing power of the strategy module.
3. The method of claim 1, wherein the determining a fix-up policy based on the fund change information comprises:
and comparing the fund type with a preset comparison table to determine a modification strategy.
4. The method of claim 1, wherein the fund change information further comprises a data source, and the sending the revision voucher to a billing system comprises:
determining a target billing system to receive the trimming credentials based on the data source;
and sending the number-modifying voucher to a target accounting system.
5. The method of claim 1, wherein before the sending the trimming policy to the rules engine, the method further comprises:
acquiring a rule modification instruction input by a manager;
and executing an addition number modification strategy, a deletion number modification strategy and/or modifying an algorithm corresponding to the number modification strategy based on the rule modification instruction.
6. An account correcting system based on a rule engine, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring fund change information of a service database, and the fund change information comprises fund quantity and fund type;
the strategy determining module is used for determining a number-modifying strategy based on the fund change information, wherein the number-modifying strategy comprises settlement interest, income expenditure table updating and/or transaction flow canceling;
the rule determining module is used for sending the number-modifying strategy to the rule engine so as to obtain one or more algorithms corresponding to the number-modifying strategy;
a calculation module to calculate the fund change information based on the one or more algorithms to generate a credit voucher, the credit voucher including an increase in the amount of funds, a decrease in the amount of funds, and/or a change in the fund category;
and the number correction module is used for sending the number correction voucher to a billing system so that the billing system executes account correction operation based on the number correction voucher.
7. The rules engine based account forwarding system of claim 6, further comprising an asynchronous processing module, wherein the asynchronous processing module comprises:
the queue generating unit is used for generating an asynchronous message queue;
a caching unit, configured to cache the one or more fund change information to the asynchronous message queue;
and the reading unit is used for sequentially reading the fund change information based on the computing power of the strategy module.
8. The rules engine based account reconciliation system of claim 6 further comprising a rule modification module comprising:
the acquisition unit is used for acquiring a rule modification instruction input by a manager;
and the sending unit is used for executing the addition number-modifying strategy, the deletion number-modifying strategy and/or modifying the algorithm corresponding to the number-modifying strategy based on the rule modifying instruction.
9. A server comprising a memory, a processor and a program stored on the memory and executable on the processor, wherein the processor when executing the program implements a rules engine based account flushing method as claimed in any one of claims 1 to 5.
10. A terminal readable storage medium having stored thereon a program which, when executed by a processor, is capable of implementing a rules engine based account reconciliation method as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010730576.9A CN111861692B (en) | 2020-07-27 | 2020-07-27 | Account checking method, system, server and storage medium based on rule engine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010730576.9A CN111861692B (en) | 2020-07-27 | 2020-07-27 | Account checking method, system, server and storage medium based on rule engine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111861692A true CN111861692A (en) | 2020-10-30 |
CN111861692B CN111861692B (en) | 2024-03-19 |
Family
ID=72947468
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010730576.9A Active CN111861692B (en) | 2020-07-27 | 2020-07-27 | Account checking method, system, server and storage medium based on rule engine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111861692B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112767109A (en) * | 2021-01-18 | 2021-05-07 | 姚瑶 | Artificial intelligence accounting automatic bookkeeping and tax declaring system |
CN114201501A (en) * | 2021-11-12 | 2022-03-18 | 北京达佳互联信息技术有限公司 | Message processing method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101782990A (en) * | 2009-01-20 | 2010-07-21 | 深圳市雁联计算系统有限公司 | Debit reversal business handling system and method in payment settlement integral business system |
US20150106893A1 (en) * | 2013-10-15 | 2015-04-16 | Microsoft Corporation | Secure remote modification of device credentials using device-generated credentials |
CN108564463A (en) * | 2018-03-28 | 2018-09-21 | 中国银行股份有限公司 | Correction method and system are rushed in a kind of transaction of bank abnormity |
CN110232565A (en) * | 2019-05-20 | 2019-09-13 | 平安银行股份有限公司 | Resource liquidation method, device, computer equipment and storage medium |
CN110335154A (en) * | 2019-07-17 | 2019-10-15 | 中国银行股份有限公司 | It is a kind of based on accounting processing method, equipment and the system of depositing guard system |
CN110910230A (en) * | 2019-11-04 | 2020-03-24 | 泰康保险集团股份有限公司 | Accounting method, accounting system and storage medium |
-
2020
- 2020-07-27 CN CN202010730576.9A patent/CN111861692B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101782990A (en) * | 2009-01-20 | 2010-07-21 | 深圳市雁联计算系统有限公司 | Debit reversal business handling system and method in payment settlement integral business system |
US20150106893A1 (en) * | 2013-10-15 | 2015-04-16 | Microsoft Corporation | Secure remote modification of device credentials using device-generated credentials |
CN108564463A (en) * | 2018-03-28 | 2018-09-21 | 中国银行股份有限公司 | Correction method and system are rushed in a kind of transaction of bank abnormity |
CN110232565A (en) * | 2019-05-20 | 2019-09-13 | 平安银行股份有限公司 | Resource liquidation method, device, computer equipment and storage medium |
CN110335154A (en) * | 2019-07-17 | 2019-10-15 | 中国银行股份有限公司 | It is a kind of based on accounting processing method, equipment and the system of depositing guard system |
CN110910230A (en) * | 2019-11-04 | 2020-03-24 | 泰康保险集团股份有限公司 | Accounting method, accounting system and storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112767109A (en) * | 2021-01-18 | 2021-05-07 | 姚瑶 | Artificial intelligence accounting automatic bookkeeping and tax declaring system |
CN114201501A (en) * | 2021-11-12 | 2022-03-18 | 北京达佳互联信息技术有限公司 | Message processing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111861692B (en) | 2024-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110494877B (en) | System and method for issuing and tracking digital tokens within distributed network nodes | |
AU2017221777B2 (en) | Generating integrated data records by correlating source data records from disparate data sources | |
US10783116B2 (en) | Systems and methods for managing data | |
CN111417941A (en) | Block chain lifecycle management | |
US8527531B2 (en) | Stream data generating method, stream data generating device and a recording medium storing stream data generating program | |
CN111596956B (en) | Information processing method and device based on block chain, electronic equipment and medium | |
CN109766362A (en) | Data processing method and device | |
CN111861692B (en) | Account checking method, system, server and storage medium based on rule engine | |
US20100174628A1 (en) | Use of separate rib ledgers in a computerized enterprisere source planning system | |
CN112068973A (en) | Asynchronous information processing method and device of policy mode, server and storage medium | |
CN111143383A (en) | Data updating method and device, electronic equipment and storage medium | |
US20200320632A1 (en) | Method and system for time series data quality management | |
WO2020185950A1 (en) | Analysis systems and methods | |
US10182128B1 (en) | Optimization of production systems | |
US11360964B2 (en) | Collaborative generation of ontology on a blockchain | |
JP2019149185A (en) | Asset inventory system and computer-implemented method of performing electronic collateralization search | |
CN118170768B (en) | Associated data dynamic quasi-real-time computing system, electronic equipment and storage medium | |
KR102620080B1 (en) | Method and apparatus for processing order data | |
US11922421B2 (en) | Systems and methods for pattern identification with enhanced event stream processing | |
CN113449005B (en) | Account management method and device | |
US12099514B2 (en) | Transforming data metrics to maintain compatibility in an enterprise data warehouse | |
US20180025424A1 (en) | System and method for electronic data submission processing | |
CN117149832A (en) | Hierarchical caching, data query method, apparatus, device, medium and program product | |
CN117437049A (en) | Instruction processing method, device, equipment and medium | |
WO2023232736A1 (en) | Improvement of concurrent writings in verifiable persistent data structures |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |