CN114500509A - Financial certificate transmission method and device, storage medium, sending end and receiving end - Google Patents
Financial certificate transmission method and device, storage medium, sending end and receiving end Download PDFInfo
- Publication number
- CN114500509A CN114500509A CN202210094837.1A CN202210094837A CN114500509A CN 114500509 A CN114500509 A CN 114500509A CN 202210094837 A CN202210094837 A CN 202210094837A CN 114500509 A CN114500509 A CN 114500509A
- Authority
- CN
- China
- Prior art keywords
- financial
- data
- certificate
- voucher
- group
- 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
- 230000005540 biological transmission Effects 0.000 title claims abstract description 99
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000012545 processing Methods 0.000 claims description 80
- 238000004590 computer program Methods 0.000 claims description 17
- 238000012795 verification Methods 0.000 claims description 13
- 238000012546 transfer Methods 0.000 claims description 2
- 239000002609 medium Substances 0.000 description 12
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 6
- 230000003993 interaction Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 101100018862 Mus musculus Ifnar1 gene Proteins 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 210000001503 joint Anatomy 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000012120 mounting media Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- 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)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Marketing (AREA)
- Signal Processing (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The embodiment of the invention discloses a financial certificate transmission method, a device, a storage medium, a sending end and a receiving end, wherein the method is applied to the financial certificate sending end and comprises the following steps: reading at least one piece of financial certificate data from a pre-stored database to be sent; dividing the at least one piece of financial voucher data into at least one group, and respectively determining attribute information of each group of financial voucher data; generating a data message corresponding to the current group of financial voucher data based on the current group of financial voucher data and attribute information of the current group of financial voucher data aiming at each group of financial voucher data; and sequentially sending each data message to a financial certificate receiving terminal. According to the technical scheme, batch transmission of the financial voucher data can be achieved by adopting a data message mode, the transmission efficiency of the financial voucher data can be effectively improved, the data transmission difficulty is reduced, and the consumption of bandwidth resources is reduced.
Description
Technical Field
The embodiment of the invention relates to the technical field of data transmission, in particular to a financial certificate transmission method, a financial certificate transmission device, a financial certificate transmission storage medium, a sending end and a receiving end.
Background
With the rapid development of economy, daily generated accounting data is increasing. The financial data transmission efficiency in posting is very important because the posting data can be generated in different systems, and posting between the systems is inevitable at this time, for example, the digital intelligent financial management integrated product accounting module needs to post to the accounting system of the integrated financial accounting management platform for carrying out posting.
The current financial data transmission usually adopts a file transmission mode, and data transmission is carried out in a data line mode according to a format defined by a receiver. However, this method cannot realize batch transmission of data, and requires a long time for data transmission when the amount of data is large, and thus the data transmission efficiency is low. In addition, when the accounting voucher attribute of the receiving party is changed, the data needs to be retransmitted, and the process is cumbersome.
Therefore, how to improve the efficiency of transmitting the financial data in posting is a technical problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides a financial voucher transmission method, a financial voucher transmission device, a storage medium, a sending end and a receiving end, which can be used for transmitting financial voucher data in batches in a data message mode and improving the transmission efficiency of the financial voucher data.
In a first aspect, an embodiment of the present invention provides a method for transmitting a financial certificate, where the method is applied to a financial certificate sending end, and the method includes:
reading at least one piece of financial certificate data from a pre-stored database to be sent;
dividing the at least one piece of financial voucher data into at least one group, and respectively determining attribute information of each group of financial voucher data;
generating a data message corresponding to the current group of financial voucher data based on the current group of financial voucher data and attribute information of the current group of financial voucher data aiming at each group of financial voucher data;
and sequentially sending each data message to a financial certificate receiving terminal.
In a second aspect, an embodiment of the present invention provides a method for transmitting a financial certificate, which is applied to a financial certificate receiving end, and the method includes:
receiving at least one data message sent by a financial certificate sending terminal; each data message is generated based on each group of financial certificate data and attribute information of each corresponding group of financial certificate data; each group of financial voucher data is generated by dividing at least one piece of financial voucher data read from a pre-stored database to be sent on the basis of the financial voucher sending end; each set of financial voucher data comprises at least one piece of financial voucher data;
processing each data message respectively, and feeding back a corresponding processing result to the financial certificate sending end, so that the financial certificate sending end updates the transmission state of the at least one piece of financial certificate data in the database to be sent based on the processing result; wherein the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message.
In a third aspect, an embodiment of the present invention further provides a financial credential transmission apparatus, applied to a financial credential sending end, including:
the data reading module is used for reading at least one piece of financial certificate data from a pre-stored database to be sent;
the data grouping module is used for dividing the at least one piece of financial voucher data into at least one group and respectively determining attribute information of each group of financial voucher data;
the data message generating module is used for generating a data message corresponding to the current group of financial voucher data based on the current group of financial voucher data and the attribute information of the current group of financial voucher data aiming at each group of financial voucher data;
and the data message sending module is used for sequentially sending each data message to the financial certificate receiving end.
In a fourth aspect, an embodiment of the present invention provides a financial document transmission apparatus, applied to a financial document receiving end, including:
the data message receiving module is used for receiving at least one data message sent by the financial certificate sending terminal; each data message is generated based on each group of financial certificate data and attribute information of each corresponding group of financial certificate data; each group of financial voucher data is generated by dividing at least one piece of financial voucher data read from a pre-stored database to be sent on the basis of the financial voucher sending end; each set of financial voucher data comprises at least one piece of financial voucher data;
the data message processing module is used for respectively processing each data message and feeding back a corresponding processing result to the financial certificate sending end so that the financial certificate sending end updates the transmission state of the at least one piece of financial certificate data in the database to be sent based on the processing result; wherein the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the financial credential transmission method as provided in the first or second aspect of the present invention.
In a sixth aspect, an embodiment of the present invention provides a financial certificate sending end, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the financial certificate transmission method according to the first aspect of the present invention.
In a seventh aspect, an embodiment of the present invention provides a financial certificate receiving end, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the financial certificate transmission method according to the second aspect of the present invention.
The embodiment of the invention provides a financial certificate transmission scheme, which is applied to a financial certificate sending terminal and comprises the following steps: reading at least one piece of financial certificate data from a pre-stored database to be sent; dividing the at least one piece of financial voucher data into at least one group, and respectively determining attribute information of each group of financial voucher data; generating a data message corresponding to the current group of financial voucher data based on the current group of financial voucher data and attribute information of the current group of financial voucher data aiming at each group of financial voucher data; and sequentially sending each data message to a financial certificate receiving terminal. According to the technical scheme, batch transmission of the financial voucher data can be realized in a data message mode, the transmission efficiency of the financial voucher data is effectively improved, the difficulty of data transmission is reduced, and the consumption of bandwidth resources is reduced.
Drawings
FIG. 1 is a flow chart of a method for transmitting financial credentials according to an embodiment of the present invention;
FIG. 2 is a flowchart of a financial document transmission method according to another embodiment of the present invention;
fig. 3 is a schematic diagram of interaction between a sending end of a financial certificate and a receiving end of the financial certificate according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a financial document transmission apparatus according to another embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a financial document transmission apparatus according to still another embodiment of the present invention;
fig. 6 is a block diagram of a financial certificate sending end according to an embodiment of the present invention;
fig. 7 is a block diagram of a receiving end of a financial certificate according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and the embodiments of the present invention are illustrative only and are not intended to limit the scope of the present invention.
It should be understood that the various steps recited in the method embodiments of the present invention may be performed in a different order and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the invention is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present invention are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in the present invention are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present invention are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 is a flowchart of a financial certificate transmission method according to an embodiment of the present invention, where the embodiment of the present invention is applicable to batch transmission of financial certificate data, and the method is applied to a financial certificate sending end. As shown in fig. 1, the method specifically includes the following steps:
and S110, reading at least one piece of financial voucher data from a pre-stored database to be sent.
The financial voucher may refer to a bookkeeping voucher which is compiled according to a certain format and used for recording economic services. In particular, the financial credentials may include collection credentials, payment credentials, transfer credentials, and the like. Optionally, the financial credential data comprises a credential header and at least one credential entry. That is, a piece of financial instrument data includes an instrument header and at least one instrument entry. The header may be used to represent basic information of the financial certificate, for example, the header may include an origination time, a certificate number, a certificate digest, a certificate type, and the like. The voucher entry may be a record indicating that the financial transaction should be borrowed and credited to an account and its amount.
In the embodiment of the invention, the sending end of the financial voucher can read at least one piece of financial voucher data from the pre-stored database to be sent according to a provincial and municipal concurrent execution mode, so that the data reading efficiency can be improved. Optionally, reading at least one piece of financial credential data from a pre-stored database to be sent, which may include: reading at least one certificate head and a certificate entry corresponding to each certificate head from a pre-stored database to be sent; and generating at least one piece of financial certificate data based on the at least one certificate head and the certificate entry corresponding to each certificate head. It can be understood that, since a piece of financial certificate data includes a certificate header and at least one certificate entry, reading at least one piece of financial certificate data is equivalent to reading at least one certificate header and at least one certificate entry corresponding to each certificate header, and thus, the financial certificate data can be generated for each certificate header and the corresponding certificate entry thereof.
S120, dividing the at least one piece of financial voucher data into at least one group, and respectively determining attribute information of each group of financial voucher data.
In the embodiment of the present invention, the financial voucher data can be divided into groups according to different standards, for example, the division can be performed based on the number of the financial voucher data, or the division can be performed based on the initiation time of the financial voucher data. For example, assuming that there are 10000 pieces of financial certificate data in total, if the number of grouped pieces is set to 1000, every 1000 pieces of financial certificate data may be divided into one group, and finally, all the financial certificate data may be divided into ten groups, and each group contains the same number of pieces of financial certificate data. Or, if the initial time is set as zero and the time interval is set as 10 minutes, the financial document data falling into each 10 minutes may be divided into one group, and the number of pieces of financial document data included in each group may be the same or different, which is closely related to the frequency of the economic business transaction in different time periods.
In embodiments of the present invention, the attribute information may be used to characterize attributes of the financial credential data. It should be noted that a set of financial document data corresponds to a set of attribute information, and therefore, for each set of financial document data, the corresponding attribute information can be determined. The set of attribute information may include one or more pieces of attribute information, which is not limited herein. Optionally, the attribute information includes identification information of the sending end of the financial credential, an encryption password, a sending sequence number, and whether the sending end is the last group of sending data. Wherein, the identification information of the sending end of the financial voucher can be used for carrying out unique identification on the sending end of the financial voucher. The encryption password can be a butt joint password after the financial certificate data are encrypted, can be set by a user, and can also be randomly generated by a financial certificate sending end. The transmit sequence number may be used to characterize the currently transmitted set of financial credential data as being in the order of transmission. Whether it is the last set of transmission data may be used to determine whether the set of financial credential data currently transmitted is the last set of transmission data.
S130, aiming at each group of financial voucher data, generating a data message corresponding to the current group of financial voucher data based on the current group of financial voucher data and attribute information of the current group of financial voucher data.
The data packet may refer to a data unit for switching and transmission, that is, a data block to be sent at a time. The data message may support multiple data exchange languages, for example, the data message may support JS Object Notation (JSON) and Extensible Markup Language (XML). The JSON is a lightweight data exchange format, adopts a text format completely independent of a programming language to store and represent data, has a simple and clear hierarchical structure, is easy for a user to read and write, and is also easy for machine analysis and generation. XML is a markup language that can be used to transmit and store data. It should be noted that the data packet includes complete data information to be sent, and can support transmission of multiple pieces of financial credential data at a time, and the length thereof is not limited and can be changed. In addition, because the XML message has a complex format, a large volume, and a large occupied bandwidth, the JSON message is preferably used in the embodiment of the present invention.
In the embodiment of the invention, for each group of financial voucher data, the data message corresponding to the current group of financial voucher data can be generated according to the current group of financial voucher data and the attribute information of the current group of financial voucher data. It can be understood that a set of financial document data has a set of attribute information, and a data message can be correspondingly generated based on the set of financial document data and the corresponding attribute information. Specifically, each group of financial voucher data is attached with corresponding attribute information, and a complete data message can be generated.
And S140, sequentially sending the data messages to a financial certificate receiving end.
The receiving end of the financial voucher can be used for receiving and processing the data message from the sending end of the financial voucher. In the embodiment of the invention, the sending end of the financial certificate can directly send each data message to the receiving end of the financial certificate in sequence, or the third-party platform can receive each data message from the sending end of the financial certificate first and then send each data message to the receiving end of the financial certificate in sequence, and the sending way of the data messages is not limited at all. Illustratively, the sending end of the financial voucher can send the JSON message to the receiving end of the financial voucher in an Air mode of a distributed application interconnection platform.
In the embodiment of the present invention, the data packet may have a plurality of transmission formats, which is not limited herein. Illustratively, the JSON message sending format may include docking system information RequestInfo, docking sequence number information syncicateinfo, and credential data vchiitemlist. The credential data vchiitemlist may include a credential header VchTl and credential entry list information VchList.
The embodiment of the invention provides a financial certificate transmission method, which is applied to a financial certificate sending terminal and comprises the following steps: reading at least one piece of financial certificate data from a pre-stored database to be sent; dividing at least one piece of financial voucher data into at least one group, and respectively determining attribute information of each group of financial voucher data; generating a data message corresponding to the current group of financial voucher data based on the current group of financial voucher data and the attribute information of the current group of financial voucher data aiming at each group of financial voucher data; and sequentially sending each data message to a financial certificate receiving terminal. According to the technical scheme, batch transmission of the financial voucher data can be realized in a data message mode, the transmission efficiency of the financial voucher data is effectively improved, the difficulty of data transmission is reduced, and the consumption of bandwidth resources is reduced.
In the above technical solution, optionally, after sending each group of data packets to the financial certificate receiving end in sequence, the method further includes: receiving processing results of the data messages fed back by the financial certificate receiving end; wherein the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message; and updating the transmission state of the at least one piece of financial certificate data in the database to be transmitted based on the processing result.
In an embodiment of the present invention, the processing result may include a result of the receipt of each financial credential data in each data message by the financial credential receiving end. The receiving result may be used to characterize whether the receiving end of the financial voucher successfully receives each piece of financial voucher data in each data message. Specifically, the reception result may include reception success and reception failure. After the financial voucher receiving end receives the data message from the financial voucher sending end, the data in the data message is processed, a processing result is fed back to the financial voucher sending end, and then the transmission state of at least one piece of corresponding financial voucher data in a database to be sent is updated by the financial voucher sending end according to the processing result. The processing result may include a total number of processing, a failure number, and a success number. The transmission status may include not sent, processing success, and processing failure.
It should be noted that, the initialized state of the financial voucher data in the database to be sent is unsent, and the sending end of the financial voucher can correspondingly change the data state according to the processing result fed back by the receiving end of the financial voucher. Specifically, if the data message fails to be received, globallerros error code error information is returned; and if the data message is failed to be processed, specific DetailErros voucher error information and error codes are returned, and meanwhile, the transmission state of the corresponding financial voucher data in the database to be sent is changed into processing failure, so that development, operation and maintenance personnel can conveniently backtrack and search the problem, and the voucher data processing failure is specifically analyzed. And when the data message is successfully processed, changing the transmission state of the corresponding financial certificate data in the database to be sent into the processing success.
The advantage of setting up like this is, can be through the financial document sending end according to the processing result to each data message that the receiving end of financial document feedbacks, treat the transmission state of at least one piece of financial document data in the database of sending and update to can in time update the financial document data state in the database of sending.
Fig. 2 is a flowchart of a financial certificate transmission method according to another embodiment of the present invention, which is applicable to a situation where a financial certificate receiving end and a financial certificate sending end perform information interaction to enable the financial certificate sending end to perform batch transmission of financial certificate data. The method is applied to a financial certificate receiving end and comprises the following steps:
s210, receiving at least one data message sent by a financial certificate sending end; each data message is generated based on each group of financial certificate data and attribute information of each corresponding group of financial certificate data; each group of financial voucher data is generated by dividing at least one piece of financial voucher data read from a pre-stored database to be sent on the basis of the financial voucher sending end; each set of financial credential data comprises at least one piece of financial credential data.
In the embodiment of the invention, at least one piece of financial voucher data is read from a pre-stored database to be sent by a financial voucher receiving terminal, the financial voucher data is divided into groups to generate each group of financial voucher data, corresponding data messages are generated based on each group of financial voucher data and attribute information of each corresponding group of financial voucher data, the generated data messages are sent to the financial voucher receiving terminal, and then the financial voucher receiving terminal receives at least one data message from a financial voucher sending terminal.
S220, processing each data message respectively, and feeding back a corresponding processing result to the financial certificate sending end so that the financial certificate sending end updates the transmission state of the at least one piece of financial certificate data in the database to be sent based on the processing result; wherein the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message.
In the embodiment of the invention, after the financial voucher receiving end receives at least one data message sent by the financial voucher sending end, each data message can be analyzed to obtain corresponding financial voucher data, and then each financial voucher data is processed, and the processing result can be fed back to the financial voucher sending end, so that the financial voucher sending end can correspondingly change the transmission state of the financial voucher data in the database to be sent according to the processing result fed back by the financial voucher receiving end. Specifically, if the data message fails to be received, globaleerrors error code error information is returned; if the data message fails to be processed, specific detaileroros voucher error information and error codes are returned, and meanwhile, the transmission state of corresponding financial voucher data in a database to be sent is changed into processing failure, so that development, operation and maintenance personnel can conveniently trace back and search problems, and the specific analysis is that which voucher data fails to be processed. And when the data message is successfully processed, changing the transmission state of the corresponding financial certificate data in the database to be sent into the processing success state.
In the embodiment of the present invention, optionally, the data message further includes an idempotent key corresponding to each piece of financial credential data; correspondingly, each data message is processed respectively, which includes: analyzing each data message respectively, and extracting each financial certificate data and a corresponding idempotent key contained in the data message; performing idempotent verification on the financial voucher data corresponding to the idempotent key, and judging whether target financial voucher data identical to the idempotent key exist or not; after each data message is processed, the method further comprises the following steps: and when the target financial voucher data identical to the idempotent key exists, deleting the financial voucher data corresponding to the idempotent key.
The idempotent key may refer to an identification number of the financial credential data, and may be used to uniquely identify the financial credential data. Specifically, the idempotent key may consist of a system number, a voucher number, an accounting date, and a six-digit issuer number. The idempotent check may refer to a check operation performed on the idempotent of the financial credential data, and may be used to determine whether the same financial credential data as the idempotent key exists. Here, idempotent is understood to mean the property of having the same result for a resource itself when a certain resource is requested a number of times.
In the embodiment of the present invention, the data message may include an idempotent key corresponding to each financial credential data. After the financial certificate receiving end receives at least one data message sent by the financial certificate sending end, the financial certificate data corresponding to each data message and the corresponding idempotent key can be obtained by analyzing each data message, and then idempotent verification can be carried out according to the financial certificate data corresponding to the idempotent key, and whether the financial certificate data same as the idempotent key exists or not is judged. It will be appreciated that if the same financial credential data exists as the idempotent key, it may indicate that the financial credential data corresponding to the idempotent key has been recorded, i.e., the financial credential data has been inserted and accounted for. In order to avoid repeated processing of data, the financial voucher data corresponding to the idempotent key can be deleted after analyzing and processing each data message.
The advantage that sets up like this lies in, can be through whether the financial voucher data that the idempotent key inquiry corresponds exist at financial voucher receiving terminal, source side and the concrete voucher number that can the accurate positioning data can avoid inserting the wrong book keeping operation problem that leads to because of data repeatability again, make things convenient for follow-up to trace back to data source side again.
The embodiment of the invention provides a financial certificate transmission method, which is applied to a financial certificate receiving end and comprises the following steps: receiving at least one data message sent by a financial certificate sending terminal; each data message is generated based on each group of financial certificate data and attribute information of each corresponding group of financial certificate data; each group of financial voucher data is generated by dividing at least one piece of financial voucher data read from a pre-stored database to be sent on the basis of a financial voucher sending end; each set of financial voucher data comprises at least one piece of financial voucher data; processing each data message respectively, and feeding back a corresponding processing result to the financial certificate sending end so that the financial certificate sending end updates the transmission state of at least one piece of financial certificate data in a database to be sent based on the processing result; and the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message. According to the technical scheme, at least one data message sent by the financial voucher sending end can be received and processed through the financial voucher receiving end, and the corresponding processing result is fed back to the financial voucher sending end, so that the financial voucher sending end can timely update the transmission state of at least one piece of financial voucher data in a database to be sent according to the processing result.
Fig. 3 is a schematic diagram of interaction between a sending end of a financial certificate and a receiving end of the financial certificate according to an embodiment of the present invention. The interaction between the financial certificate sending terminal and the financial certificate receiving terminal comprises three processes, namely inquiring single certificate JSON assembly, assembling a plurality of certificates JSON, sending messages and updating the transmission state.
Specifically, in the process of inquiring single voucher JSON assembly, a financial voucher receiving end generates a plurality of receiving tasks according to province and city concurrency, and initializes the receiving state to be in receiving waiting, namely, starts to wait for a financial voucher sending end to transmit data; and then, the financial certificate sending end reads the certificate head and the certificate entry information in a concurrent manner according to the provincial code and row code mode to carry out JSON splicing to form a single certificate JSON character string VchItem, generates a unique idempotent key, stores the unique idempotent key into a to-be-sent database trpr _ ifar _ vch, and sets the initialization state as unsent.
In the process of assembling the multiple certificates JSON, the financial certificate sending end reads the certificate JSON data VchItem which is not sent successfully in the database trpr _ ifar _ vch to be sent according to province and city concurrency to assemble a Json-List, namely VchItemList, and adds the identification information, the encryption password, the sending sequence number, whether the last group of sending data is or not and other attribute information of the financial certificate sending end to generate a complete JSON message.
In the process of sending the message and updating the transmission state, the financial certificate sending end sends the complete JSON message to a financial certificate receiving end in a distributed application interconnection platform Air mode, and waits for the result processed by the financial certificate receiving end; after the financial voucher receiving end receives the JSON message, whether the task encryption password passes the verification and whether the task is generated or completed is judged, the JSON message is analyzed into a plurality of voucher objects, then security verification (system authority verification), accounting verification (including loan balance verification, financial accounting product existence verification, accounting subject existence verification and the like) and idempotent verification are carried out on the voucher objects, a processing result of each voucher data is sent to the financial voucher sending end after the processing is completed, and then the transmission state of at least one piece of financial voucher data in a database to be sent is updated by the financial voucher sending end according to the processing result.
Fig. 4 is a schematic structural diagram of a financial document transmission apparatus according to another embodiment of the present invention. As shown in fig. 4, the apparatus is applied to a financial certificate sending terminal, and includes:
a data reading module 410, configured to read at least one piece of financial credential data from a pre-stored database to be sent;
a data grouping module 420, configured to divide the at least one piece of financial credential data into at least one group, and determine attribute information of each group of financial credential data respectively;
a data message generating module 430, configured to generate, for each set of financial credential data, a data message corresponding to a current set of financial credential data based on the current set of financial credential data and attribute information of the current set of financial credential data;
and a data message sending module 440, configured to send each data message to the financial certificate receiving end in sequence.
The embodiment of the invention provides a financial voucher transmission device, which is applied to a financial voucher sending end, and the device firstly reads at least one piece of financial voucher data from a pre-stored database to be sent, then divides the at least one piece of financial voucher data into at least one group, respectively determines attribute information of each group of financial voucher data, further generates data messages corresponding to the current group of financial voucher data according to the current group of financial voucher data and the attribute information of the current group of financial voucher data aiming at each group of financial voucher data, and then sequentially sends each data message to a financial voucher receiving end. According to the technical scheme, batch transmission of the financial voucher data can be realized in a data message mode, the transmission efficiency of the financial voucher data is effectively improved, the difficulty of data transmission is reduced, and the consumption of bandwidth resources is reduced.
Further, the financial credential data comprises a credential header and at least one credential entry; the data reading module 410 includes:
the certificate information reading unit is used for reading at least one certificate head and a certificate entry corresponding to each certificate head from a pre-stored database to be sent;
and the voucher data generation module is used for generating at least one piece of financial voucher data based on the at least one voucher head and the voucher entry corresponding to each voucher head.
Further, the attribute information includes identification information of the sending end of the financial certificate, an encryption password, a sending sequence number and whether the sending end is the last group of sending data.
Further, the apparatus further comprises:
the processing result receiving module is used for receiving the processing results of the data messages fed back by the financial certificate receiving terminal after the data messages are sequentially sent to the financial certificate receiving terminal; wherein the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message;
and the state updating module is used for updating the transmission state of the at least one piece of financial certificate data in the database to be sent based on the processing result.
The device can execute the methods provided by all the embodiments of the invention, and has corresponding functional modules and beneficial effects for executing the methods. For technical details which are not described in detail in the embodiments of the present invention, reference may be made to the methods provided in all the aforementioned embodiments of the present invention.
Fig. 5 is a schematic structural diagram of a financial document transmission apparatus according to still another embodiment of the invention. As shown in fig. 5, the apparatus is applied to a financial certificate receiving end, and includes:
a data message receiving module 510, configured to receive at least one data message sent by a financial credential sending end; each data message is generated based on each group of financial certificate data and attribute information of each corresponding group of financial certificate data; each group of financial voucher data is generated by dividing at least one piece of financial voucher data read from a pre-stored database to be sent on the basis of the financial voucher sending end; each set of financial voucher data comprises at least one piece of financial voucher data;
a data message processing module 520, configured to process each data message respectively, and feed back a corresponding processing result to the financial credential sending end, so that the financial credential sending end updates a transmission state of the at least one piece of financial credential data in the to-be-sent database based on the processing result; wherein the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message.
The embodiment of the invention provides a financial certificate transmission device, which is applied to a financial certificate receiving end and comprises the following components: receiving at least one data message sent by a financial certificate sending terminal; each data message is generated based on each group of financial certificate data and attribute information of each corresponding group of financial certificate data; each group of financial voucher data is generated by dividing at least one piece of financial voucher data read from a pre-stored database to be sent on the basis of the financial voucher sending end; each set of financial voucher data comprises at least one piece of financial voucher data; processing each data message respectively, and feeding back a corresponding processing result to the financial certificate sending end, so that the financial certificate sending end updates the transmission state of the at least one piece of financial certificate data in the database to be sent based on the processing result; wherein the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message. According to the technical scheme, at least one data message sent by the financial voucher sending end can be received and processed through the financial voucher receiving end, and the corresponding processing result is fed back to the financial voucher sending end, so that the transmission state of at least one piece of financial voucher data in a database to be sent can be timely updated according to the processing result by the financial voucher sending end.
Furthermore, the data message also comprises an idempotent key corresponding to each financial certificate data; the data packet processing module 520 includes:
the data message analysis unit is used for respectively analyzing each data message and extracting each financial certificate data and corresponding idempotent keys contained in the data message;
the idempotent verification unit is used for performing idempotent verification on the financial voucher data corresponding to the idempotent key and judging whether target financial voucher data identical to the idempotent key exist or not;
the data packet processing module 520 further includes:
and the data deleting unit is used for deleting the financial certificate data corresponding to the idempotent key when the target financial certificate data same as the idempotent key exists after the data messages are respectively processed. The device can execute the methods provided by all the embodiments of the invention, and has corresponding functional modules and beneficial effects for executing the methods. For technical details which are not described in detail in the embodiments of the present invention, reference may be made to the methods provided in all the aforementioned embodiments of the present invention.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the financial credential transmission method provided by embodiments of the present invention.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the above-described financial credential transmission operation, and may also perform the relevant operations in the financial credential transmission method provided by any embodiments of the present invention.
The embodiment of the invention provides a financial certificate sending terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the financial certificate sending terminal can be integrated with the financial certificate transmission device provided by the embodiment of the invention. Fig. 6 is a block diagram of a financial credential sending end according to an embodiment of the present invention. The financial credential sender 600 may include: the device comprises a memory 601, a processor 602 and a computer program stored on the memory 601 and executable by the processor, wherein the processor 602 implements the financial certificate transmission method according to the embodiment of the invention when executing the computer program.
The financial certificate sending end provided by the embodiment of the invention reads at least one piece of financial certificate data from a pre-stored database to be sent; dividing the at least one piece of financial voucher data into at least one group, and respectively determining attribute information of each group of financial voucher data; generating a data message corresponding to the current group of financial voucher data based on the current group of financial voucher data and attribute information of the current group of financial voucher data aiming at each group of financial voucher data; and sequentially sending each data message to a financial certificate receiving terminal. According to the technical scheme, batch transmission of the financial voucher data can be realized in a data message mode, the transmission efficiency of the financial voucher data is effectively improved, the difficulty of data transmission is reduced, and the consumption of bandwidth resources is reduced.
The embodiment of the invention provides a financial certificate receiving terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the financial certificate receiving terminal can be integrated with the financial certificate transmission device provided by the embodiment of the invention. Fig. 7 is a block diagram of a receiving end of a financial certificate according to an embodiment of the present invention. The financial document receiving end 700 may include: a memory 701, a processor 702 and a computer program stored on the memory 701 and executable by the processor, wherein the processor 702 implements the financial certificate transmission method according to the embodiment of the present invention when executing the computer program.
The financial certificate receiving terminal provided by the embodiment of the invention receives at least one data message sent by the financial certificate sending terminal; each data message is generated based on each group of financial certificate data and attribute information of each corresponding group of financial certificate data; each group of financial voucher data is generated by dividing at least one piece of financial voucher data read from a pre-stored database to be sent on the basis of the financial voucher sending end; each set of financial voucher data comprises at least one piece of financial voucher data; processing each data message respectively, and feeding back a corresponding processing result to the financial certificate sending end, so that the financial certificate sending end updates the transmission state of the at least one piece of financial certificate data in the database to be sent based on the processing result; wherein the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message. According to the technical scheme, at least one data message sent by the financial voucher sending end can be received and processed through the financial voucher receiving end, and the corresponding processing result is fed back to the financial voucher sending end, so that the financial voucher sending end can timely update the transmission state of at least one piece of financial voucher data in a database to be sent according to the processing result.
The financial certificate transmission device, the storage medium, the financial certificate sending terminal and the financial certificate receiving terminal provided in the above embodiments can execute the financial certificate transmission method provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to a financial credential transmission method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (11)
1. A financial certificate transmission method is applied to a financial certificate sending terminal, and comprises the following steps:
reading at least one piece of financial certificate data from a pre-stored database to be sent;
dividing the at least one piece of financial voucher data into at least one group, and respectively determining attribute information of each group of financial voucher data;
generating a data message corresponding to the current group of financial voucher data based on the current group of financial voucher data and attribute information of the current group of financial voucher data aiming at each group of financial voucher data;
and sequentially sending each data message to a financial certificate receiving terminal.
2. The method of claim 1, wherein the financial credential data comprises a credential header and at least one credential entry;
reading at least one piece of financial certificate data from a pre-stored database to be sent, comprising:
reading at least one certificate head and a certificate entry corresponding to each certificate head from a pre-stored database to be sent;
and generating at least one piece of financial certificate data based on the at least one certificate head and the certificate entry corresponding to each certificate head.
3. The method of claim 1, wherein the attribute information comprises identification information of the sender of the financial credential, an encryption password, a sending sequence number, and whether it is the last set of sending data.
4. The method of claim 1, wherein after sending the sets of data packets to the financial document receiving end in sequence, the method further comprises:
receiving processing results of the data messages fed back by the financial certificate receiving end; wherein the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message;
and updating the transmission state of the at least one piece of financial certificate data in the database to be transmitted based on the processing result.
5. A financial certificate transmission method is applied to a financial certificate receiving end, and comprises the following steps:
receiving at least one data message sent by a financial certificate sending terminal; each data message is generated based on each group of financial certificate data and attribute information of each corresponding group of financial certificate data; each group of financial voucher data is generated by dividing at least one piece of financial voucher data read from a pre-stored database to be sent on the basis of the financial voucher sending end; each set of financial voucher data comprises at least one piece of financial voucher data;
processing each data message respectively, and feeding back a corresponding processing result to the financial certificate sending end, so that the financial certificate sending end updates the transmission state of the at least one piece of financial certificate data in the database to be sent based on the processing result; wherein the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message.
6. The method of claim 5, wherein the data message further includes an idempotent key corresponding to each financial credential data;
processing each data message respectively, including:
analyzing each data message respectively, and extracting each financial certificate data and a corresponding idempotent key contained in the data message;
performing idempotent verification on the financial voucher data corresponding to the idempotent key, and judging whether target financial voucher data identical to the idempotent key exist or not;
after each data message is processed, the method further comprises the following steps:
and when the target financial voucher data identical to the idempotent key exists, deleting the financial voucher data corresponding to the idempotent key.
7. The utility model provides a financial document transmission device, its characterized in that is applied to financial document sending end, the device includes:
the data reading module is used for reading at least one piece of financial certificate data from a pre-stored database to be sent;
the data grouping module is used for dividing the at least one piece of financial voucher data into at least one group and respectively determining attribute information of each group of financial voucher data;
the data message generating module is used for generating a data message corresponding to the current group of financial voucher data based on the current group of financial voucher data and the attribute information of the current group of financial voucher data aiming at each group of financial voucher data;
and the data message sending module is used for sequentially sending each data message to the financial certificate receiving end.
8. A financial voucher transmission device, which is applied to a financial voucher receiving end, comprises:
the data message receiving module is used for receiving at least one data message sent by the financial certificate sending terminal; each data message is generated based on each group of financial certificate data and attribute information of each corresponding group of financial certificate data; each group of financial voucher data is generated by dividing at least one piece of financial voucher data read from a pre-stored database to be sent on the basis of the financial voucher sending end; each set of financial voucher data comprises at least one piece of financial voucher data;
the data message processing module is used for respectively processing each data message and feeding back a corresponding processing result to the financial certificate sending end so that the financial certificate sending end updates the transmission state of the at least one piece of financial certificate data in the database to be sent based on the processing result; wherein the processing result comprises a receiving result of the financial certificate receiving end to each piece of financial certificate data in each data message.
9. A computer-readable storage medium, on which a computer program is stored, the program, when executed by a processing device, implementing a financial instrument transfer method as claimed in any one of claims 1-4 or claims 5-6.
10. A financial credential sender comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the financial credential transmission method as defined in any one of claims 1-4.
11. A financial credential receiving terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements a financial credential transmission method as defined in any one of claims 5 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210094837.1A CN114500509B (en) | 2022-01-26 | 2022-01-26 | Financial certificate transmission method, device, storage medium, transmitting end and receiving end |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210094837.1A CN114500509B (en) | 2022-01-26 | 2022-01-26 | Financial certificate transmission method, device, storage medium, transmitting end and receiving end |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114500509A true CN114500509A (en) | 2022-05-13 |
CN114500509B CN114500509B (en) | 2024-05-31 |
Family
ID=81477212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210094837.1A Active CN114500509B (en) | 2022-01-26 | 2022-01-26 | Financial certificate transmission method, device, storage medium, transmitting end and receiving end |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114500509B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018073323A (en) * | 2016-11-04 | 2018-05-10 | セイコーエプソン株式会社 | Financial report creation system, financial report creation terminal and financial report creation program |
CN108765118A (en) * | 2018-05-18 | 2018-11-06 | 北京大账房网络科技股份有限公司 | Bill is mixed to sweep the method and system for generating voucher |
CN110827001A (en) * | 2019-11-07 | 2020-02-21 | 深圳乐信软件技术有限公司 | Accounting event bookkeeping method, system, equipment and storage medium |
CN112308523A (en) * | 2020-11-02 | 2021-02-02 | 平安普惠企业管理有限公司 | Management method, device, equipment and storage medium of certificate information |
CN112559540A (en) * | 2020-12-10 | 2021-03-26 | 安徽兆尹信息科技股份有限公司 | Financial accounting method, system, storage medium and electronic device |
CN113869998A (en) * | 2021-12-02 | 2021-12-31 | 亿海蓝(北京)数据技术股份公司 | Financial certificate automatic generation method and device, electronic equipment and readable storage medium |
-
2022
- 2022-01-26 CN CN202210094837.1A patent/CN114500509B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2018073323A (en) * | 2016-11-04 | 2018-05-10 | セイコーエプソン株式会社 | Financial report creation system, financial report creation terminal and financial report creation program |
CN108765118A (en) * | 2018-05-18 | 2018-11-06 | 北京大账房网络科技股份有限公司 | Bill is mixed to sweep the method and system for generating voucher |
CN110827001A (en) * | 2019-11-07 | 2020-02-21 | 深圳乐信软件技术有限公司 | Accounting event bookkeeping method, system, equipment and storage medium |
CN112308523A (en) * | 2020-11-02 | 2021-02-02 | 平安普惠企业管理有限公司 | Management method, device, equipment and storage medium of certificate information |
CN112559540A (en) * | 2020-12-10 | 2021-03-26 | 安徽兆尹信息科技股份有限公司 | Financial accounting method, system, storage medium and electronic device |
CN113869998A (en) * | 2021-12-02 | 2021-12-31 | 亿海蓝(北京)数据技术股份公司 | Financial certificate automatic generation method and device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114500509B (en) | 2024-05-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020169061A1 (en) | Method for recording data block on blockchain, and leader accounting node and medium | |
CN104572122B (en) | A kind of generating means and method of software application data | |
CN111371892A (en) | High-concurrency distributed message pushing system and method | |
CN110515965A (en) | Business paper processing method, device, computer equipment and storage medium | |
CN106528823B (en) | A kind of configuration of message and output method and device | |
CN101572696A (en) | Method and device for validating data on webpage form | |
CN110727580A (en) | Response data generation method, full-flow interface data processing method and related equipment | |
CN112288577A (en) | Transaction processing method and device for distributed service, electronic equipment and medium | |
CN112671734A (en) | Message processing method facing multiple data sources and related equipment thereof | |
Georgiou et al. | Fault-tolerant semifast implementations of atomic read/write registers | |
CN108228432A (en) | A kind of distributed link tracking, analysis method and server, global scheduler | |
CN107451301B (en) | Processing method, device, equipment and storage medium for real-time delivery bill mail | |
CN110069506B (en) | Service data maintenance method, device and server | |
CN113065953B (en) | Futures relay trading system based on distribution type | |
CN100570600C (en) | Be used to realize interactive method of asynchronous transaction and data handling system | |
CN111698310B (en) | Multi-test environment scheduling method and device based on SWIFT network | |
CN112634005A (en) | Method and device for generating financial certificate and electronic equipment | |
CN114500509B (en) | Financial certificate transmission method, device, storage medium, transmitting end and receiving end | |
US20230269085A1 (en) | Systems and methods for using secure, encrypted communications across distributed computer networks to efficiently update cryptography-based digital repositories for performing blockchain operations in decentralized applications | |
CN109766388B (en) | Method and system for storing data into HBase | |
CN113807968A (en) | Block chain user request processing method, device, request server and storage medium | |
CN107180054B (en) | Data processing method and device | |
CN112785302B (en) | Message statistics method and device, electronic equipment and readable storage medium | |
CN110647416A (en) | Message queue tracking and recording method and system | |
CN112965993B (en) | Data processing system, method, device and storage medium |
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 |