CN111127181A - Voucher bookkeeping method and device - Google Patents

Voucher bookkeeping method and device Download PDF

Info

Publication number
CN111127181A
CN111127181A CN201911347589.1A CN201911347589A CN111127181A CN 111127181 A CN111127181 A CN 111127181A CN 201911347589 A CN201911347589 A CN 201911347589A CN 111127181 A CN111127181 A CN 111127181A
Authority
CN
China
Prior art keywords
voucher
data
request
bookkeeping
consumer
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
Application number
CN201911347589.1A
Other languages
Chinese (zh)
Other versions
CN111127181B (en
Inventor
江明星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN201911347589.1A priority Critical patent/CN111127181B/en
Publication of CN111127181A publication Critical patent/CN111127181A/en
Application granted granted Critical
Publication of CN111127181B publication Critical patent/CN111127181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Abstract

The invention discloses a voucher bookkeeping method and device, and relates to the field of finance. One embodiment of the method comprises: after the business process is finished, acquiring basic data which corresponds to the business process and is used for generating the voucher so as to assemble and generate voucher accounting data and a voucher accounting request; generating corresponding monitoring data for the voucher bookkeeping request, and respectively sending the voucher bookkeeping request and the monitoring data to a first message queue and a second message queue; and the first consumer acquires the voucher bookkeeping data from the first message queue to assemble and generate the voucher, and meanwhile, the second consumer acquires corresponding monitoring data from the second message queue based on the request identifier, and monitors the processing progress and state information of the voucher bookkeeping data by the first consumer to update the monitoring data. The method realizes the decoupling separation of the business process and the voucher bookkeeping, can allocate resources according to needs, and improves the processing efficiency and the stability of the financial leasing process.

Description

Voucher bookkeeping method and device
Technical Field
The invention relates to the field of finance, in particular to a voucher bookkeeping method and device.
Background
The financial lease refers to that a lessee purchases a fixed asset appointed by a lessee from a seller appointed by the lessee according to the request of the lessee and the prior contract agreement of the two parties, and under the condition that the lessee has the ownership of the fixed asset, the lessee pays all rent, and the occupation, use and profit right of the fixed asset in a period are transferred to the lessee. Voucher accounting is an integral part of the financial rental process.
The existing voucher bookkeeping usually adopts a real-time blocking processing mode, and voucher bookkeeping and business processes are processed in the same thread. Meanwhile, with the increase of the services of the financial institutions, resource expansion is needed when the system performance reaches the bottleneck, and the voucher bookkeeping and the service flow are bound together, so that the same resources must be added for the voucher bookkeeping and the service flow. In addition, due to the particularity of the financial institution, the situation that the peak value is too high due to centralized processing of the business often occurs.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
the real-time blocking processing mode, the backspacing of the business process can be caused by the processing error of the voucher bookkeeping, and the corresponding business process is blocked; when the resources are expanded, the business process and the voucher bookkeeping have different resource occupation characteristics, and the increase of the same resources can cause resource waste; the peak value of the voucher bookkeeping processing cannot be smoothly filtered, and the stability of the system is influenced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a credential accounting method and apparatus, after a business process is completed, a message queue is used to implement credential accounting and state monitoring, so as to implement decoupling and separation of the business process and the credential accounting, allocate resources as needed, and improve processing efficiency and stability of a financial leasing process.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a voucher accounting method.
The voucher accounting method of the embodiment of the invention comprises the following steps: after the business process is finished, acquiring basic data which is corresponding to the business process and is used for generating the voucher so as to assemble and generate voucher accounting data and a voucher accounting request; wherein the credential billing request comprises a request identification and the credential billing data; generating corresponding monitoring data for the voucher bookkeeping request, and respectively sending the voucher bookkeeping request and the monitoring data to a first message queue and a second message queue; wherein the monitoring data comprises the request identification, the processing progress and the state information; and the first consumer acquires the voucher accounting data from the first message queue to assemble and generate a voucher, meanwhile, the second consumer acquires corresponding monitoring data from the second message queue based on the request identifier, and monitors the processing progress and state information of the voucher accounting data by the first consumer to update the monitoring data.
Optionally, generating a voucher accounting request comprises: segmenting the multiple assembled voucher bookkeeping data to obtain multiple groups of voucher bookkeeping data; generating corresponding voucher bookkeeping requests for the plurality of groups of voucher bookkeeping data respectively; wherein the voucher accounting request comprises the request identification and one set of voucher accounting data; sending the credential billing request to a first message queue, comprising: and respectively sending the generated plurality of voucher accounting requests to the first message queue.
Optionally, the obtaining, by the first consumer, the credential billing data from the first message queue includes: concurrently obtaining, using a plurality of first consumers, the voucher billing data from a plurality of voucher billing requests of the first message queue, respectively.
Optionally, the credentials include: a certificate master table, a certificate extension table and a certificate entry table; assembling a generated credential comprising: generating a voucher according to a set generation rule and the acquired voucher bookkeeping data; the generation rule is provided with the field names and the limiting conditions of the corresponding field values of the certificate main table, the certificate extension table and the certificate entry table, and the calculation sequence and the rolling difference.
Optionally, monitoring the processing progress and status information of the first consumer on the voucher billing data to update the monitoring data, comprising: the second consumer polls the first consumer through the request identifier to acquire the processing progress and state information of the first consumer to the voucher bookkeeping data; after the first consumer processes all credential billing data for completing the credential billing request, the second consumer updates the monitoring data.
Optionally, the method further comprises: and retrying the abnormal voucher bookkeeping data according to the processing progress and the state information of the monitoring data.
Optionally, the obtaining of basic data corresponding to the business process and used for generating a credential includes: and inquiring and acquiring basic data for generating the certificate in a database according to the set configuration file and the main key of the business process.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided a credential accounting apparatus.
The voucher keeping apparatus of the embodiment of the present invention includes: the data assembly module is used for acquiring basic data which corresponds to the business process and is used for generating the voucher after the business process processing is finished so as to assemble and generate voucher bookkeeping data and a voucher bookkeeping request; wherein the credential billing request comprises a request identification and the credential billing data; the data sending module is used for generating corresponding monitoring data for the voucher bookkeeping request and respectively sending the voucher bookkeeping request and the monitoring data to a first message queue and a second message queue; wherein the monitoring data comprises the request identification, the processing progress and the state information; and the accounting monitoring module is used for acquiring the voucher accounting data from the first message queue by the first consumer to assemble and generate a voucher, acquiring corresponding monitoring data from the second message queue by the second consumer based on the request identifier, and monitoring the processing progress and state information of the voucher accounting data by the first consumer to update the monitoring data.
Optionally, the data assembling module is further configured to: segmenting the multiple assembled voucher bookkeeping data to obtain multiple groups of voucher bookkeeping data; generating corresponding voucher bookkeeping requests for the plurality of groups of voucher bookkeeping data respectively; wherein the voucher accounting request comprises the request identification and one set of voucher accounting data; the data sending module is further configured to: and respectively sending the generated plurality of voucher accounting requests to the first message queue.
Optionally, the billing monitoring module is further configured to: concurrently obtaining, using a plurality of first consumers, the voucher billing data from a plurality of voucher billing requests of the first message queue, respectively.
Optionally, the credentials include: a certificate master table, a certificate extension table and a certificate entry table; the accounting monitoring module is further configured to: generating a voucher according to a set generation rule and the acquired voucher bookkeeping data; the generation rule is provided with the field names and the limiting conditions of the corresponding field values of the certificate main table, the certificate extension table and the certificate entry table, and the calculation sequence and the rolling difference.
Optionally, the billing monitoring module is further configured to: the second consumer polls the first consumer through the request identifier to acquire the processing progress and state information of the first consumer to the voucher bookkeeping data; after the first consumer processes all credential billing data for completing the credential billing request, the second consumer updates the monitoring data.
Optionally, the apparatus further comprises: and the retry module is used for retrying the abnormal voucher bookkeeping data according to the processing progress and the state information of the monitoring data.
Optionally, the data assembling module is further configured to: and inquiring and acquiring basic data for generating the certificate in a database according to the set configuration file and the main key of the business process.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided an electronic apparatus.
An electronic device of an embodiment of the present invention includes: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a credential billing method of an embodiment of the invention.
To achieve the above object, according to still another aspect of embodiments of the present invention, there is provided a computer-readable medium.
A computer-readable medium of an embodiment of the present invention has stored thereon a computer program that, when executed by a processor, implements a credential billing method of an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: after the business process is finished, voucher bookkeeping and state monitoring are achieved through the message queue, decoupling separation of the business process and voucher bookkeeping is achieved, resources can be distributed according to needs, and processing efficiency and stability of a financial leasing process are improved; when the number of the voucher accounting data is excessive, grouping processing is carried out, so that the transmission efficiency of the voucher accounting request is improved; and a plurality of consumers are used for processing a plurality of voucher accounting requests simultaneously, so that the processing efficiency is further improved.
One embodiment of the above invention has the following advantages or benefits: generating a certificate according to a set generation rule, and ensuring the validity of the generated certificate; the second consumer polls and inquires the first consumer, records the processing result of the voucher bookkeeping request, prevents the unprocessed voucher bookkeeping request from being lost and omitted, and ensures the data security; automatically retrying the voucher bookkeeping data which are processed abnormally according to the monitoring data to ensure the effective processing of each voucher bookkeeping data; the peak value of the voucher processing is smoothly processed based on the message queue, a message producer is not influenced by the blocking of a message consumer, and the stability of the financial leasing process is ensured.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of the main steps of a credential billing method according to an embodiment of the invention;
FIG. 2 is a schematic flow chart of a voucher accounting method according to an embodiment of the present invention;
FIG. 3 is a data processing flow diagram of a first consumer, according to an embodiment of the invention;
FIG. 4 is a schematic diagram of the main modules of a credential billing device according to an embodiment of the invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
FIG. 6 is a schematic diagram of a computer apparatus suitable for use in an electronic device to implement an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of the main steps of a credential billing method according to an embodiment of the invention. As shown in fig. 1, the voucher accounting method according to the embodiment of the present invention mainly includes the following steps:
step S101: and after the business process is finished, acquiring basic data which is corresponding to the business process and is used for generating the voucher so as to assemble and generate voucher accounting data and a voucher accounting request. The financial leasing process includes a business process processing and a voucher bookkeeping process, and the real-time requirement of voucher bookkeeping is low, so that in this embodiment, after the business process processing is finished, basic data corresponding to the business process is acquired from the database, and voucher bookkeeping data is assembled and generated, where the basic data includes all elements required for generating a voucher. After generating the credential billing data, a credential billing request is generated, the credential billing request including the request identification and the credential billing data.
Step S102: and generating corresponding monitoring data for the voucher bookkeeping request, and respectively sending the voucher bookkeeping request and the monitoring data to a first message queue and a second message queue. Unique monitoring data is generated for the voucher accounting request, the monitoring data comprising request identification, processing progress and status information. And then sending the voucher accounting request to the first message queue and sending the monitoring data to the second message queue.
Step S103: and the first consumer acquires the voucher accounting data from the first message queue to assemble and generate a voucher, meanwhile, the second consumer acquires corresponding monitoring data from the second message queue based on the request identifier, and monitors the processing progress and state information of the voucher accounting data by the first consumer to update the monitoring data.
And the first consumer acquires the voucher accounting data from the first message queue for consumption. The consumption process is as follows: and assembling the generated voucher according to a preset generation rule and the obtained voucher accounting data, and storing. Meanwhile, the second consumer acquires corresponding monitoring data from the second message queue based on the request identifier, polls the first consumer based on the request identifier, obtains the processing progress and state information of the first consumer to the voucher bookkeeping data, and then updates the acquired monitoring data.
The embodiment realizes the decoupling separation of the business process processing and the voucher bookkeeping process in the financial leasing process, can smoothly process the peak value of voucher processing, and ensures the stability and the processing efficiency of the financial leasing process.
Fig. 2 is a main flow diagram of a voucher accounting method according to an embodiment of the present invention. As shown in fig. 2, the voucher accounting method according to the embodiment of the present invention mainly includes the following steps:
step S201: after the processing completes the business process, the fields for voucher accounting are inquired out by calling an application program interface so as to assemble and generate voucher accounting data. The application program interface is realized in a unified way, and the realized functions are as follows: and associating the business process with the corresponding certificate through the configuration file, and then inquiring required elements in a database according to the configuration file of the certificate and the relevant main key of the business process.
The credential billing data satisfies the elements required for the credential generation process, which in one embodiment is a standard set of data structures, including: billing date, accounting institution, contract number, subject number, amount of occurrence, transaction type, and ancillary accounting codes, among others.
Step S202: and generating a voucher accounting request according to the voucher accounting data, and generating corresponding monitoring information for the voucher accounting request. In an embodiment, the credential billing request comprises: the main key, the request identification, the system related information and the voucher accounting data of the business process of the transaction, wherein the system related information comprises operators, operation time and the like.
When generating corresponding monitoring information for the voucher bookkeeping request, the relevance between the voucher bookkeeping request and the monitoring information needs to be uniquely determined according to the dimensions such as the voucher type, the associated record number, the accounting date and the like, and meanwhile, the auxiliary monitoring information is counted. The voucher types comprise a plurality of voucher types such as contract creation, asset entry, interest change, collection and accounting. The association record number is the global number (i.e. the request identifier) of the request, and all information of the request can be found through the number.
Wherein the monitoring information includes: the main key, the certificate code, the request identification, the processing state information description, the auxiliary monitoring information and the like of the request. The monitoring information is used for polling the voucher accounting request through the request identifier (possibly comprising a plurality of voucher generations, and inquiring the generation states of the voucher generations respectively), and summarizing the specific state of the request. The auxiliary monitoring information is an auxiliary summary of the voucher accounting data, and comprises data numbers, operators, operation time and the like. Wherein the number of data is the number of voucher billing data.
The data of the voucher accounting request is inserted into the database firstly, and then operation is carried out according to the data of the database. The voucher bookkeeping request corresponds to the monitoring information one by one, and all transaction information and transaction states can be directly acquired through the database and can be modified and regenerated on the basis.
Step S203: the credential billing request is sent to a first message queue while the monitoring data is sent to a second message queue. The first message queue is used for generating the voucher, and the second message queue is used for monitoring the voucher.
In a preferred embodiment, if a voucher accounting request contains too many voucher accounting data to be generated, multiple pieces of voucher accounting data can be segmented, and multiple generated messages are sent respectively, so that multiple generated consumers can be used for concurrent processing.
Step S204: the first consumer obtains the voucher accounting data from the first message queue for consumption to generate the voucher. In the embodiment, the voucher accounting data is consumed, that is, a voucher is generated by assembling the acquired voucher accounting data and a generation rule configured in the system. The generated certificate comprises a certificate main table, a certificate extension table and a certificate entry table, wherein the entry table comprises a calculation sequence, a rolling difference and the like.
In a preferred embodiment, the voucher can be generated based on the data content of the voucher billing data using the OGNL expression. The OGNL is an abbreviation of Object-Graph Navigation Language, is a powerful expression Language, and can access any attribute of an Object, call a method of the Object, traverse a structure diagram of the whole Object and realize functions such as field type conversion and the like through simple and consistent expression syntax.
Step S205: and the second consumer acquires the monitoring data from the second message queue and monitors the processing progress and the state information of the voucher accounting data of the first consumer so as to judge the overall processing progress and the state information. The second consumer obtains the required monitoring data from the second message queue based on the request identification.
The implementation process for judging the overall processing progress and the state information comprises the following steps: and polling and scanning the first consumer to check the unique corresponding voucher bookkeeping, and judging the overall processing progress and state by methods of processing state checking, record number matching and the like. The processing progress refers to how many pieces of voucher accounting data are processed, and the processing state is the summary of the record states of all the processed voucher accounting data at present. The record number matching is that the second consumer compares the record number information in the monitoring data with the processing state inquired by the polling request identification.
In an embodiment, the processing state of the first consumer comprises: initialization, in-process, process success, process failure, system error. The processing state of the second consumer includes: waiting for processing, partial success, total success, and total failure. In the embodiment, step S204 and step S205 are performed simultaneously.
Step S206: when the first consumer has processed all messages of the voucher billing request, the second consumer updates the final state of the corresponding monitoring data. In a preferred embodiment, when the system is abnormal, the message queue records error information, and stores the unprocessed voucher accounting request to prevent the memory data from losing. In addition, the result of the processing can be shown through the account, and the retrying processing of the voucher accounting can be manually/automatically initiated according to the error reason. The retry processing of the voucher bookkeeping is automatically initiated, and corresponding logic needs to be configured in the system according to actual service scenes to realize the retry of the voucher bookkeeping.
In the above embodiment, since the message queue is a processing mode of an asynchronous peak-eliminating mechanism, the message producer is not affected by the blocking of the message consumer. In addition, because a front-end and back-end isolation mechanism of the message queue is adopted, when the voucher accounting method of the embodiment is used, the actual business process module and the voucher accounting module are not in a one-to-one relationship. Therefore, the number of the services required to be started during deployment does not need to be consistent, and the services can be proportionally adjusted according to the service scene, so that the services can be distributed as required.
FIG. 3 is a data processing flow diagram for a first consumer, according to an embodiment of the invention. As shown in fig. 3, the processing of the voucher accounting request by the first consumer according to the embodiment of the present invention mainly includes the following steps:
step S301: the plurality of first consumers concurrently obtain the voucher accounting data from the plurality of voucher accounting requests of the first message queue respectively. When the number of the assembled voucher accounting data in step S201 exceeds the set threshold, the assembled voucher accounting data needs to be grouped and sent to the first message queue through a plurality of voucher accounting requests. Each voucher accounting request comprises a set of voucher accounting data. Subsequently using the plurality of first consumers to concurrently obtain the voucher billing data from the first message queue.
Step S302: and respectively assembling the generated certificates by the plurality of first consumers according to the pre-configured generation rule and the obtained certificate accounting data. The generation rule is provided with a field name of a certificate main table, a certificate extension table and a certificate entry table and a limiting condition of a corresponding field value, and the sequence and the rolling difference are calculated. The generated certificate comprises a certificate main table, a certificate extension table and a certificate entry table, wherein the entry table comprises a calculation sequence, a rolling difference and the like.
Step S303: the plurality of first consumers respectively store the generated certificates in the database. And after the voucher is generated, the voucher is stored in a storage.
According to the voucher bookkeeping method, after the business process is processed, voucher bookkeeping and state monitoring are achieved through the message queue, decoupling and separation of the business process and voucher bookkeeping are achieved, resources can be distributed according to needs, and processing efficiency and stability of a financial leasing process are improved; when the number of the voucher accounting data is excessive, grouping processing is carried out, so that the transmission efficiency of the voucher accounting request is improved; and a plurality of consumers are used for processing a plurality of voucher accounting requests simultaneously, so that the processing efficiency is further improved.
According to the voucher bookkeeping method, the voucher is generated according to the set generation rule, and the effectiveness of the generated voucher is guaranteed; the second consumer polls and inquires the first consumer, records the processing result of the voucher bookkeeping request, prevents the unprocessed voucher bookkeeping request from being lost and omitted, and ensures the data security; automatically retrying the voucher bookkeeping data which are processed abnormally according to the monitoring data to ensure the effective processing of each voucher bookkeeping data; the peak value of the voucher processing is smoothly processed based on the message queue, a message producer is not influenced by the blocking of a message consumer, and the stability of the financial leasing process is ensured.
Fig. 4 is a schematic diagram of the main modules of a credential billing device according to an embodiment of the present invention. As shown in fig. 4, the voucher accounting apparatus 400 according to the embodiment of the present invention mainly includes:
and the data assembling module 401 is configured to, after the business process processing is finished, obtain basic data, corresponding to the business process, for generating the credential, so as to assemble and generate credential billing data and a credential billing request. The financial leasing process includes a business process processing and a voucher bookkeeping process, and the real-time requirement of voucher bookkeeping is low, so that in this embodiment, after the business process processing is finished, basic data corresponding to the business process is acquired from the database, and voucher bookkeeping data is assembled and generated, where the basic data includes all elements required for generating a voucher. After generating the credential billing data, a credential billing request is generated, the credential billing request including the request identification and the credential billing data.
A data sending module 402, configured to generate corresponding monitoring data for the voucher billing request, and send the voucher billing request and the monitoring data to a first message queue and a second message queue, respectively. Unique monitoring data is generated for the voucher accounting request, the monitoring data comprising request identification, processing progress and status information. And then sending the voucher accounting request to the first message queue and sending the monitoring data to the second message queue.
And a billing monitoring module 403, configured to obtain, by the first consumer, the credential billing data from the first message queue to assemble and generate a credential, obtain, by the second consumer, corresponding monitoring data from the second message queue based on the request identifier, and monitor a processing progress and state information of the credential billing data by the first consumer, so as to update the monitoring data.
And the first consumer acquires the voucher accounting data from the first message queue for consumption. The consumption process is as follows: and assembling the generated voucher according to a preset generation rule and the obtained voucher accounting data, and storing. Meanwhile, the second consumer acquires corresponding monitoring data from the second message queue based on the request identifier, polls the first consumer based on the request identifier, obtains the processing progress and state information of the first consumer to the voucher bookkeeping data, and then updates the acquired monitoring data.
In addition, the credential accounting apparatus 400 according to the embodiment of the present invention may further include: and the retry module (not shown in the figure 4) is used for retrying the abnormal voucher accounting data according to the processing progress and the state information of the monitoring data.
From the above description, it can be seen that the credential is generated according to the set generation rule, and the validity of the generated credential is ensured; the second consumer polls and inquires the first consumer, records the processing result of the voucher bookkeeping request, prevents the unprocessed and completed voucher bookkeeping request from being lost and omitted, and ensures the data security.
Fig. 5 illustrates an exemplary system architecture 500 of a credential billing method or a credential billing device to which embodiments of the invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 501, 502, 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server that provides various services. The server may obtain the basic data, generate the voucher billing data, the voucher billing request and the monitoring data, send the voucher billing request and the monitoring data, generate the voucher, and the like, and feed back the processing result (e.g., the generated voucher) to the terminal device.
It should be noted that the credential billing method provided in the embodiment of the present application is generally performed by the server 505, and accordingly, the credential billing device is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The invention also provides an electronic device and a computer readable medium according to the embodiment of the invention.
The electronic device of the present invention includes: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a credential billing method of an embodiment of the invention.
The computer readable medium of the present invention has stored thereon a computer program which, when executed by a processor, implements a credential billing method of an embodiment of the present invention.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use with the electronic device implementing an embodiment of the present invention. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the computer system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, the processes described above with respect to the main step diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program containing program code for performing the method illustrated in the main step diagram. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program performs the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. 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 of the computer readable storage medium may include, but are not limited to: an electrical connection 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 present invention, 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. In the present invention, however, 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 computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a data assembly module, a data transmission module, and an accounting monitoring module. For example, the data assembly module may be further described as a module that acquires basic data for generating a voucher corresponding to the business process after the business process is finished so as to assemble voucher accounting data and a voucher accounting request.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: after the business process is finished, acquiring basic data which is corresponding to the business process and is used for generating the voucher so as to assemble and generate voucher accounting data and a voucher accounting request; wherein the credential billing request comprises a request identification and the credential billing data; generating corresponding monitoring data for the voucher bookkeeping request, and respectively sending the voucher bookkeeping request and the monitoring data to a first message queue and a second message queue; wherein the monitoring data comprises the request identification, the processing progress and the state information; and the first consumer acquires the voucher accounting data from the first message queue to assemble and generate a voucher, meanwhile, the second consumer acquires corresponding monitoring data from the second message queue based on the request identifier, and monitors the processing progress and state information of the voucher accounting data by the first consumer to update the monitoring data.
From the above description, it can be seen that after the business process is completed, the voucher bookkeeping and the state monitoring are realized through the message queue, so that the decoupling separation of the business process and the voucher bookkeeping is realized, resources can be allocated as required, and the processing efficiency and the stability of the financial leasing process are improved.
The product can execute the method provided by the embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the method provided by the embodiment of the present invention.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of credentialing, comprising:
after the business process is finished, acquiring basic data which is corresponding to the business process and is used for generating the voucher so as to assemble and generate voucher accounting data and a voucher accounting request; wherein the credential billing request comprises a request identification and the credential billing data;
generating corresponding monitoring data for the voucher bookkeeping request, and respectively sending the voucher bookkeeping request and the monitoring data to a first message queue and a second message queue; wherein the monitoring data comprises the request identification, the processing progress and the state information;
and the first consumer acquires the voucher accounting data from the first message queue to assemble and generate a voucher, meanwhile, the second consumer acquires corresponding monitoring data from the second message queue based on the request identifier, and monitors the processing progress and state information of the voucher accounting data by the first consumer to update the monitoring data.
2. The method of claim 1, wherein generating a voucher accounting request comprises:
segmenting the multiple assembled voucher bookkeeping data to obtain multiple groups of voucher bookkeeping data;
generating corresponding voucher bookkeeping requests for the plurality of groups of voucher bookkeeping data respectively; wherein the voucher accounting request comprises the request identification and one set of voucher accounting data;
sending the credential billing request to a first message queue, comprising: and respectively sending the generated plurality of voucher accounting requests to the first message queue.
3. The method of claim 2, wherein the first consumer retrieving the credential billing data from the first message queue comprises:
concurrently obtaining, using a plurality of first consumers, the voucher billing data from a plurality of voucher billing requests of the first message queue, respectively.
4. The method of claim 1, wherein the credentials comprise: a certificate master table, a certificate extension table and a certificate entry table;
assembling a generated credential comprising: generating a voucher according to a set generation rule and the acquired voucher bookkeeping data; the generation rule is provided with the field names and the limiting conditions of the corresponding field values of the certificate main table, the certificate extension table and the certificate entry table, and the calculation sequence and the rolling difference.
5. The method of claim 1, wherein monitoring the processing progress and status information of the first consumer for the voucher billing data to update the monitoring data comprises:
the second consumer polls the first consumer through the request identifier to acquire the processing progress and state information of the first consumer to the voucher bookkeeping data;
after the first consumer processes all credential billing data for completing the credential billing request, the second consumer updates the monitoring data.
6. The method of claim 5, further comprising:
and retrying the abnormal voucher bookkeeping data according to the processing progress and the state information of the monitoring data.
7. The method according to any one of claims 1 to 6, wherein obtaining basic data corresponding to the business process for generating a credential comprises:
and inquiring and acquiring basic data for generating the certificate in a database according to the set configuration file and the main key of the business process.
8. A credential billing device comprising:
the data assembly module is used for acquiring basic data which corresponds to the business process and is used for generating the voucher after the business process processing is finished so as to assemble and generate voucher bookkeeping data and a voucher bookkeeping request; wherein the credential billing request comprises a request identification and the credential billing data;
the data sending module is used for generating corresponding monitoring data for the voucher bookkeeping request and respectively sending the voucher bookkeeping request and the monitoring data to a first message queue and a second message queue; wherein the monitoring data comprises the request identification, the processing progress and the state information;
and the accounting monitoring module is used for acquiring the voucher accounting data from the first message queue by the first consumer to assemble and generate a voucher, acquiring corresponding monitoring data from the second message queue by the second consumer based on the request identifier, and monitoring the processing progress and state information of the voucher accounting data by the first consumer to update the monitoring data.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN201911347589.1A 2019-12-24 2019-12-24 Voucher accounting method and device Active CN111127181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911347589.1A CN111127181B (en) 2019-12-24 2019-12-24 Voucher accounting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911347589.1A CN111127181B (en) 2019-12-24 2019-12-24 Voucher accounting method and device

Publications (2)

Publication Number Publication Date
CN111127181A true CN111127181A (en) 2020-05-08
CN111127181B CN111127181B (en) 2023-10-31

Family

ID=70501927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911347589.1A Active CN111127181B (en) 2019-12-24 2019-12-24 Voucher accounting method and device

Country Status (1)

Country Link
CN (1) CN111127181B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112634005A (en) * 2020-12-30 2021-04-09 上海中通吉网络技术有限公司 Method and device for generating financial certificate and electronic equipment
CN113781191A (en) * 2021-07-21 2021-12-10 望海康信(北京)科技股份公司 Automatic certificate marking method and system, corresponding equipment and storage medium
CN114819780A (en) * 2022-07-01 2022-07-29 得分数字科技(珠海)有限公司 Process data monitoring method and device, storage medium and computer equipment
CN116362816A (en) * 2023-05-30 2023-06-30 浙江爱信诺航天信息技术有限公司 Voucher information omission recognition and processing method, system and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170310659A1 (en) * 2016-04-25 2017-10-26 International Business Machines Corporation Protection of application passwords using a secure proxy
CN107657516A (en) * 2016-07-24 2018-02-02 平安科技(深圳)有限公司 Generate the method and financial server of voucher
CN109493205A (en) * 2018-10-16 2019-03-19 深圳壹账通智能科技有限公司 Intelligent bookkeeping methods, computer readable storage medium and terminal device
CN110348976A (en) * 2019-06-04 2019-10-18 深圳前海新心金融管理有限公司 Financial core accounting system based on transaction journal
CN110533503A (en) * 2019-08-12 2019-12-03 厦门网宿有限公司 A kind of data processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170310659A1 (en) * 2016-04-25 2017-10-26 International Business Machines Corporation Protection of application passwords using a secure proxy
CN107657516A (en) * 2016-07-24 2018-02-02 平安科技(深圳)有限公司 Generate the method and financial server of voucher
CN109493205A (en) * 2018-10-16 2019-03-19 深圳壹账通智能科技有限公司 Intelligent bookkeeping methods, computer readable storage medium and terminal device
CN110348976A (en) * 2019-06-04 2019-10-18 深圳前海新心金融管理有限公司 Financial core accounting system based on transaction journal
CN110533503A (en) * 2019-08-12 2019-12-03 厦门网宿有限公司 A kind of data processing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112634005A (en) * 2020-12-30 2021-04-09 上海中通吉网络技术有限公司 Method and device for generating financial certificate and electronic equipment
CN113781191A (en) * 2021-07-21 2021-12-10 望海康信(北京)科技股份公司 Automatic certificate marking method and system, corresponding equipment and storage medium
CN114819780A (en) * 2022-07-01 2022-07-29 得分数字科技(珠海)有限公司 Process data monitoring method and device, storage medium and computer equipment
CN116362816A (en) * 2023-05-30 2023-06-30 浙江爱信诺航天信息技术有限公司 Voucher information omission recognition and processing method, system and medium
CN116362816B (en) * 2023-05-30 2023-09-26 浙江爱信诺航天信息技术有限公司 Voucher information omission recognition and processing method, system and medium

Also Published As

Publication number Publication date
CN111127181B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
CN107729139B (en) Method and device for concurrently acquiring resources
CN111127181B (en) Voucher accounting method and device
CN111460129B (en) Method, device, electronic equipment and storage medium for generating identification
CN111427701A (en) Workflow engine system and business processing method
CN110706093A (en) Accounting processing method and device
CN110688828A (en) File processing method and device, file processing system and computer equipment
CN112381453A (en) Information processing method, information processing apparatus, electronic device, and medium
CN111881329A (en) Account balance management method and system
CN113361838A (en) Business wind control method and device, electronic equipment and storage medium
CN113742389A (en) Service processing method and device
CN112948138A (en) Method and device for processing message
CN111126935A (en) Processing method and device of security data, electronic equipment and storage medium
CN111526184B (en) Business auditing method and device
CN113704222A (en) Method and device for processing service request
CN112671877B (en) Data processing method and device
CN111008202A (en) Distributed transaction processing method and framework
CN111179097B (en) Method, device, electronic equipment and storage medium for modifying warranty
CN115484149B (en) Network switching method, network switching device, electronic equipment and storage medium
CN111291038B (en) Data query method and device
CN113242306B (en) Block chain consensus method and device
CN110262756B (en) Method and device for caching data
CN115630836A (en) Service processing method and device, electronic equipment and storage medium
CN115619550A (en) Service data processing method and device
CN114756540A (en) Data processing method and device, electronic equipment and computer readable medium
CN117807027A (en) Log query method and device

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220922

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant