CN115936637B - Electronic receipt pull method, system, electronic device and readable storage medium - Google Patents

Electronic receipt pull method, system, electronic device and readable storage medium Download PDF

Info

Publication number
CN115936637B
CN115936637B CN202310224773.7A CN202310224773A CN115936637B CN 115936637 B CN115936637 B CN 115936637B CN 202310224773 A CN202310224773 A CN 202310224773A CN 115936637 B CN115936637 B CN 115936637B
Authority
CN
China
Prior art keywords
electronic receipt
pulling
electronic
retry
bank
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310224773.7A
Other languages
Chinese (zh)
Other versions
CN115936637A (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.)
Accumulus Technologies Tianjin Co Ltd
Original Assignee
Accumulus Technologies Tianjin 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 Accumulus Technologies Tianjin Co Ltd filed Critical Accumulus Technologies Tianjin Co Ltd
Priority to CN202310224773.7A priority Critical patent/CN115936637B/en
Publication of CN115936637A publication Critical patent/CN115936637A/en
Application granted granted Critical
Publication of CN115936637B publication Critical patent/CN115936637B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

The invention provides an electronic receipt pulling method, an electronic receipt pulling system, electronic equipment and a readable storage medium, wherein the electronic receipt pulling method comprises the following steps: pulling an electronic receipt of the bank according to the pulling configuration of the bank; if the pulling fails, judging whether the maximum retry times are reached; if not, pushing the pulling task to a single pulling delay queue; re-pulling the electronic receipt according to a queue delay rule, wherein the queue delay rule is that the time interval for re-pulling the electronic receipt each time is increased; if the re-pulling fails, returning to the step of judging whether the maximum retry times are reached or not, until the electronic receipt is successfully pulled, or the pull retry times reach the maximum retry times. According to the invention, through the pull retry after the pull failure of the electronic receipt, various anomalies are conveniently processed without paying attention to the specific reasons of the pull failure, and the electronic receipt generation system of the bank is prevented from being crushed by too fast pull rate by controlling the retry time interval.

Description

Electronic receipt pull method, system, electronic device and readable storage medium
Technical Field
The embodiment of the invention relates to the field of Internet, in particular to an electronic receipt pulling method, an electronic receipt pulling system, electronic equipment and a readable storage medium.
Background
The electronic receipt is a payment certificate with legal effect, which is provided with a bank electronic seal and an electronic signature by a bank, is widely applied to scenes such as payment proof, collection proof and the like, and has better creditability.
In payment systems, typically to prove the actual payment and leave it as a proof, each electronic receipt needs to be kept in the system, and the electronic receipt is usually pulled by hypertext transfer protocol (Hyper Text Transfer Protocol, HTTP) or pulled by secure file transfer protocol (Secret File Transfer Protocol, SFTP), and there are a single-pen pull mode, a batch pull mode, etc. because the electronic receipt is a file and is relatively large, the pull process may fail due to time-out, network fluctuation, jitter of the data source system, etc., and the pull speed is not easy to control.
At present, aiming at various anomalies in the electronic receipt pulling process, the method has the advantages of long time consumption, complex processing process and incapability of processing various anomalies conveniently. And the pulling speed of the large-batch receipt pulling is not easy to control, and the pulling speed is too high to crush the electronic receipt generation system of the bank.
Disclosure of Invention
The embodiment of the invention provides an electronic receipt pulling method, an electronic device and a readable storage medium, which are used for solving the problems that the processing time of various anomalies in the existing electronic receipt pulling process is long, the processing process is complex, various anomalies cannot be processed conveniently, and the pulling speed is too fast to crush an electronic receipt generation system of a bank.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an electronic receipt pulling method, including:
after receiving a pulling instruction for pulling the electronic receipt, pulling the electronic receipt of the bank according to the pulling configuration of the bank;
if the electronic receipt fails to be pulled, judging whether the number of times of the pull retry of the electronic receipt reaches the maximum number of times of the retry;
if the maximum retry times are not reached, pushing the pulling task of the electronic receipt to a single pulling delay queue;
re-pulling the electronic receipt according to a queue delay rule of the single-pull delay queue, wherein the queue delay rule is that a time interval for re-pulling the electronic receipt each time is increased;
and if the electronic receipt is not successfully pulled, returning to the step of judging whether the pulling retry number of the electronic receipt reaches the maximum retry number or not until the electronic receipt is successfully pulled, or the pulling retry number reaches the maximum retry number.
Optionally, the pull configuration includes at least one of:
pulling mode, pulling address or SFTP address, pulling the key and account number cipher.
Optionally, the pulling mode includes at least one of the following:
single stroke pull, batch pull, and full pull.
Optionally, the method further comprises:
if the electronic receipt is successfully pulled, writing the file number of the electronic receipt into a database;
extracting a transaction order number corresponding to the electronic receipt according to a data analysis rule;
matching the transaction order number of the electronic receipt with the transaction order corresponding to the electronic receipt, and judging whether the matching of the transaction order number of the electronic receipt with the transaction order corresponding to the electronic receipt is successful or not;
if the transaction order number of the electronic receipt is successfully matched with the transaction order corresponding to the electronic receipt;
encrypting the electronic receipt, and storing the encrypted electronic receipt into a cloud storage.
Optionally, the method further comprises:
and if the matching of the transaction order number of the electronic receipt and the transaction order corresponding to the electronic receipt fails, triggering an alarm, wherein the alarm is used for reminding people to check the electronic receipt.
Optionally, the data parsing rule includes:
extracting the order number according to the content contained in the electronic receipt;
the content comprises a file name, a receipt number, a text and remarks of the electronic receipt.
Optionally, the method further comprises:
and compressing, packaging and storing all electronic receipts of the bank every day in a distributed file storage system, wherein the distributed file storage system is used for backup.
Optionally, the method further comprises:
if the number of retries of the electronic receipt is up to the maximum number of retries, the electronic receipt fails to be pulled, and the file number of the electronic receipt is written into the database.
Optionally, the method further comprises:
counting the number of the electronic receipts which are successfully pulled by the bank and the number of the electronic receipts which are failed to be pulled by the bank every day according to the data of the bank in the database;
counting the current day electronic receipt pulling success rate of the bank;
and if the success rate of pulling the electronic receipts on the same day of the bank is smaller than the set value, re-pulling all the electronic receipts on the same day of the bank according to the pulling configuration of the bank.
Optionally, the method further comprises:
if the user needs to inquire the receipt file, inquiring the encrypted electronic receipt in the cloud storage according to the receipt order number input by the user, decrypting the encrypted electronic receipt and returning the encrypted electronic receipt to the user.
In a second aspect, an embodiment of the present invention provides an electronic receipt pull system, including:
the first pulling module is used for pulling the electronic receipt of the bank according to the pulling configuration of the bank after receiving the pulling instruction for pulling the electronic receipt;
the first judging module is used for judging whether the number of the retries of the electronic receipt pulling reaches the maximum number of retries if the electronic receipt pulling fails;
the first retry module is used for pushing the pulling task of the electronic receipt to a single pulling delay queue if the maximum retry times are not reached;
the second pulling module is used for pulling the electronic receipt again according to a queue delay rule of the single pulling delay queue, wherein the queue delay rule is that the time interval for pulling the electronic receipt again is increased each time;
and the second retry module is used for returning to the step of judging whether the pulling retry times of the electronic receipt reach the maximum retry times or not if the pulling retry times of the electronic receipt are failed, until the electronic receipt is successfully pulled, or the pulling retry times reach the maximum retry times.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the electronic receipt pull method as described in the first aspect above.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the steps of the electronic receipt pulling method according to the first aspect.
In the invention, after a pulling instruction for pulling the electronic receipt is received, the electronic receipt of the bank is pulled according to the pulling configuration of the bank, so that the pulling of a plurality of electronic receipts of the bank can be controlled, if the situation of pulling failure of the electronic receipt occurs, a single pulling delay queue is utilized to realize the pulling retry, the pulling retry process does not need to be manually intervened, the specific cause of the pulling failure is not required, and for various anomalies in the pulling process, the retry pulling is only required to be carried out according to the queue delay rule until the pulling success or the pulling retry times reach the maximum retry times, and the time interval increment of pulling the electronic receipt again each time can effectively avoid the electronic receipt generation system of the bank from being crushed too fast, thereby enhancing the stability.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flowchart of an electronic receipt pulling method according to an embodiment of the present invention;
FIG. 2 is a flowchart of an electronic receipt retry pull method according to an embodiment of the present invention;
FIG. 3 is a flowchart of an overall process of an electronic receipt pull method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an electronic receipt pulling system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1 and 2, an embodiment of the present invention provides an electronic receipt pulling method, including:
step 11: after receiving a pulling instruction for pulling the electronic receipt, pulling the electronic receipt of the bank according to the pulling configuration of the bank;
the initiation of a pull instruction to pull an electronic receipt may be controlled by a receipt pull control center.
Step 12: if the electronic receipt fails to be pulled, judging whether the number of times of the pull retry of the electronic receipt reaches the maximum number of times of the retry;
step 13: if the maximum retry times are not reached, pushing the pulling task of the electronic receipt to a single pulling delay queue;
step 14: re-pulling the electronic receipt according to a queue delay rule of the single-pull delay queue, wherein the queue delay rule is that a time interval for re-pulling the electronic receipt each time is increased;
step 14 may be performed by the queue management system, and the queue management system according to the embodiments of the present invention is protected by increasing the time interval for re-pulling the electronic receipt each time, for example, if the pulling speed is unchanged, and re-pulling is set for one minute for the electronic receipt with a pull failure, the queue management system is easy to be blocked, and a large number of electronic receipts with a pull failure may be backlogged in the queue, which is easy to drag the queue management system.
The time interval increment of the re-pulling can control the pulling speed of the electronic receipt, so as to protect the queue management system, for example, if the queue delay rule is that the first time is 1 minute retry, the second time is 2 minutes retry, the third time is 5 minutes retry, the fourth time is 15 minutes retry, then after the 1 st minute of the first pulling failure, the electronic receipt is re-pulled for the first time, the 2 nd minute of the first pulling failure, the electronic receipt is re-pulled for the second time, the 5 th minute of the second pulling failure, the electronic receipt is re-pulled for the third time, and so on until the retry is successful or the maximum number of retries is reached.
In addition, the queue management system manages the single-pull delay queues of different banks, and after the electronic receipt pulling task is started, the single-pull delay queues of the corresponding banks are started according to the banks which have started the electronic receipt pulling task, so that the single-pull delay queues of the banks are prevented from collision.
Step 15: and if the electronic receipt is not successfully pulled, returning to the step of judging whether the pulling retry number of the electronic receipt reaches the maximum retry number or not until the electronic receipt is successfully pulled, or the pulling retry number reaches the maximum retry number.
In the invention, after a pulling instruction for pulling the electronic receipt is received, the electronic receipt of the bank is pulled according to the pulling configuration of the bank, so that the pulling of a plurality of electronic receipts of the bank can be controlled, if the situation of pulling failure of the electronic receipt occurs, a single pulling delay queue is utilized to realize the pulling retry, the pulling retry process does not need to be manually intervened, the specific cause of the pulling failure is not required, and for various anomalies in the pulling process, the retry pulling is only required to be carried out according to the queue delay rule until the pulling success or the pulling retry times reach the maximum retry times, and the time interval increment of pulling the electronic receipt again each time can effectively avoid the electronic receipt generation system of the bank from being crushed too fast, thereby enhancing the stability.
In an embodiment of the present invention, optionally, the pull configuration includes at least one of:
pulling mode, pulling address or SFTP address, pulling the key and account number cipher.
The pulling mode comprises the following steps: real-time pulling, T+1 day pulling and the like, wherein the real-time pulling is that the electronic receipt of the present day is pulled in the same day, such as setting 19:00 of the electronic receipt of the present day; day t+1 draws the next day draws the today's electronic receipt.
In an embodiment of the present invention, optionally, the pulling manner includes at least one of the following:
single stroke pull, batch pull, and full pull.
Pulling one electronic receipt at a time by pulling one pen; the batch pulling is to pull a plurality of electronic receipts at a time; and the whole amount of drawing is to draw all electronic receipts at one time by compressing all electronic receipts and the like.
The method also comprises an SFTP pulling mode and the like, wherein the SFTP pulling mode is that a bank pushes the electronic receipt to a remote file storage server, and the embodiment of the invention collects the electronic receipt through a login server.
In an embodiment of the present invention, please refer to fig. 3, optionally, further including:
if the electronic receipt is successfully pulled, writing the file number of the electronic receipt into a database;
extracting a transaction order number corresponding to the electronic receipt according to a data analysis rule;
matching the transaction order number of the electronic receipt with the transaction order corresponding to the electronic receipt, and judging whether the matching of the transaction order number of the electronic receipt with the transaction order corresponding to the electronic receipt is successful or not;
if the transaction order number of the electronic receipt is successfully matched with the transaction order corresponding to the electronic receipt;
encrypting the electronic receipt, and storing the encrypted electronic receipt into a cloud storage.
Further, after the pulling is successful, the electronic receipt pulled and retrieved is needed to be resolved according to a file resolving mode, for example, if the electronic receipt pulled and retrieved by a single pen is the electronic receipt, the transaction order number corresponding to the electronic receipt can be directly extracted according to a data resolving rule; if the electronic receipt is pulled out, splitting a plurality of electronic receipts of the batch into independent electronic receipts according to a splitting rule, and extracting a transaction order number corresponding to the electronic receipts according to a data analysis rule; if the electronic receipt is pulled in full quantity, all the electronic receipt is split into individual electronic receipt according to decompression mode, decompression password and the like of the compressed package, and then the transaction order number corresponding to the electronic receipt is extracted according to the data analysis rule.
Matching the transaction order number of the electronic receipt with the transaction order corresponding to the electronic receipt may be performed by a single number matching system.
Encrypting the electronic receipt may be performed by a write module.
In an embodiment of the present invention, optionally, the method further includes:
and if the matching of the transaction order number of the electronic receipt and the transaction order corresponding to the electronic receipt fails, triggering an alarm, wherein the alarm is used for reminding people to check the electronic receipt.
In an embodiment of the present invention, optionally, the data parsing rule includes:
extracting the order number according to the content contained in the electronic receipt;
the content comprises a file name, a receipt number, a text and remarks of the electronic receipt.
The extraction method is that the content contained in the electronic receipt information is read into a text, and the order number contained in the electronic receipt is obtained from the text according to the constructed regular expression.
Further, other non-secret information in the electronic receipt, such as transaction time, encrypted address and the like, can be extracted, and an index of the electronic receipt on the current day of the bank is made according to all the extracted information, so that the subsequent inquiry and extraction of the electronic receipt by the bank and bank clients are facilitated.
In an embodiment of the present invention, optionally, the method further includes:
and compressing, packaging and storing all electronic receipts of the bank every day in a distributed file storage system, wherein the distributed file storage system is used for backup.
The distributed file storage system contains all the pulled electronic receipts, including the transaction order numbers of the electronic receipts and the successful and failed matching of the transaction orders.
In an embodiment of the present invention, optionally, the method further includes:
if the number of retries of the electronic receipt is up to the maximum number of retries, the electronic receipt fails to be pulled, and the file number of the electronic receipt is written into the database.
The database stores the file numbers of all electronic receipts including successful and failed pull.
In an embodiment of the present invention, optionally, the method further includes:
counting the number of the electronic receipts which are successfully pulled by the bank and the number of the electronic receipts which are failed to be pulled by the bank every day according to the data of the bank in the database;
counting the current day electronic receipt pulling success rate of the bank;
and if the success rate of pulling the electronic receipts on the same day of the bank is smaller than the set value, re-pulling all the electronic receipts on the same day of the bank according to the pulling configuration of the bank.
If the bank re-pulls all electronic receipts on the same day successfully, the electronic receipts already successfully pulled in the cloud storage are covered and saved again.
Wherein, the setting value is set according to actual demand. If the success rate of pulling the electronic receipt on the same day of the bank is smaller than the set value, compared with the process of pulling a large number of failed electronic receipts again, the process of uniformly pulling all the electronic receipts on the same day of the bank again saves more time. Further, if the success rate of the bank to pull all the electronic receipts in the same day is still smaller than the set value or the difference is larger, an alarm is triggered to prompt manual intervention, and the abnormal electronic receipts are manually checked to perform reason statistics and analysis.
In an embodiment of the present invention, optionally, the method further includes:
if the user needs to inquire the receipt file, inquiring the encrypted electronic receipt in the cloud storage according to the receipt order number input by the user, decrypting the encrypted electronic receipt and returning the encrypted electronic receipt to the user.
Referring to fig. 4, the present invention further provides an electronic receipt pull system 40, including:
the first pulling module 41 is configured to, after receiving a pulling instruction for pulling an electronic receipt, pull the electronic receipt of the bank according to a pulling configuration of the bank;
a first judging module 42, configured to judge whether the number of retries of the electronic receipt reaches a maximum number of retries if the electronic receipt fails to be pulled;
a first retry module 43, configured to push the pulling task of the electronic receipt to a single pull delay queue if the maximum retry number is not reached;
a second pulling module 44, configured to re-pull the electronic receipt according to a queue delay rule of the single pull delay queue, where the queue delay rule is an increment of a time interval for re-pulling the electronic receipt each time;
and the second retry module 45 is configured to return to the step of determining whether the number of retries of the electronic receipt reaches the maximum number of retries if the electronic receipt is failed to be re-pulled, until the electronic receipt is successfully pulled, or the number of retries of the electronic receipt reaches the maximum number of retries.
Optionally, the pull configuration includes at least one of:
pulling mode, pulling address or SFTP address, pulling the key and account number cipher.
Optionally, the pulling mode includes at least one of the following:
single stroke pull, batch pull, and full pull.
Optionally, the electronic receipt pulling system 40 further includes:
the first processing module is used for writing the file number of the electronic receipt into a database if the electronic receipt is successfully pulled;
the second processing module is used for extracting the transaction order number corresponding to the electronic receipt according to the data analysis rule;
the third processing module is used for matching the transaction order number of the electronic receipt with the transaction order corresponding to the electronic receipt and judging whether the matching of the transaction order number of the electronic receipt with the transaction order corresponding to the electronic receipt is successful or not;
the fourth processing module is used for matching the transaction order number of the electronic receipt with the corresponding transaction order of the electronic receipt successfully;
and the fifth processing module is used for encrypting the electronic receipt and storing the encrypted electronic receipt into a cloud storage.
Optionally, the electronic receipt pulling system 40 further includes:
the electronic receipt checking system comprises a first alarm module, a second alarm module and a third alarm module, wherein the first alarm module is used for triggering an alarm if the matching of the transaction order number of the electronic receipt and the transaction order corresponding to the electronic receipt fails, and the alarm is used for reminding people to check the electronic receipt.
Optionally, the second processing module includes:
the data processing module is used for extracting the order number according to the content contained in the electronic receipt;
the content comprises a file name, a receipt number, a text and remarks of the electronic receipt.
Optionally, the electronic receipt pulling system 40 further includes:
and the sixth processing module is used for compressing, packaging and storing all electronic receipts of the bank in a distributed file storage system every day, wherein the distributed file storage system is used for backup.
Optionally, the electronic receipt pulling system 40 further includes:
and the third retry module is used for writing the file number of the electronic receipt into the database if the pulling retry number of the electronic receipt reaches the maximum retry number and the electronic receipt fails to be pulled.
Optionally, the electronic receipt pulling system 40 further includes:
the fourth retry module is used for counting the number of the electronic receipts which are successfully pulled by the bank and the electronic receipts which are failed to be pulled by the bank every day according to the data of the bank in the database;
counting the current day electronic receipt pulling success rate of the bank;
and if the success rate of pulling the electronic receipts on the same day of the bank is smaller than the set value, re-pulling all the electronic receipts on the same day of the bank according to the pulling configuration of the bank.
Optionally, the electronic receipt pulling system 40 further includes:
and the query module is used for inquiring the encrypted electronic receipt in the cloud storage according to the receipt order number input by the user if the user needs to inquire the receipt file, decrypting the encrypted electronic receipt and returning the encrypted electronic receipt to the user.
The electronic receipt pulling system provided by the embodiment of the invention can realize each process realized by the method embodiments of fig. 1 to 3 and achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
An embodiment of the present invention provides an electronic device 50, referring to fig. 5, and fig. 5 is a schematic block diagram of the electronic device 50 according to an embodiment of the present invention, including a processor 51, a memory 52, and a program or an instruction stored in the memory 52 and executable on the processor 51, where the program or the instruction implements steps in any one of the electronic receipt pulling methods of the present invention when executed by the processor.
The embodiment of the invention provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the embodiment of the electronic receipt pulling method according to any one of the above embodiments, and can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Computer-readable media include both permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a service classification device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present application.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (11)

1. An electronic receipt pulling method, comprising:
after receiving a pulling instruction for pulling the electronic receipt, pulling the electronic receipt of the bank according to the pulling configuration of the bank;
if the electronic receipt fails to be pulled, judging whether the number of times of the pull retry of the electronic receipt reaches the maximum number of times of the retry;
if the maximum retry times are not reached, pushing the pulling task of the electronic receipt to a single pulling delay queue;
re-pulling the electronic receipt according to a queue delay rule of the single-pull delay queue, wherein the queue delay rule is that a time interval for re-pulling the electronic receipt each time is increased;
if the electronic receipt is not successfully pulled, returning to the step of judging whether the pulling retry number of the electronic receipt reaches the maximum retry number or not until the electronic receipt is successfully pulled, or the pulling retry number reaches the maximum retry number;
if the electronic receipt is successfully pulled, writing the file number of the electronic receipt into a database;
extracting a transaction order number corresponding to the electronic receipt according to a data analysis rule;
matching the transaction order number of the electronic receipt with the transaction order corresponding to the electronic receipt, and judging whether the matching of the transaction order number of the electronic receipt with the transaction order corresponding to the electronic receipt is successful or not;
if the transaction order number of the electronic receipt is successfully matched with the transaction order corresponding to the electronic receipt;
encrypting the electronic receipt, and storing the encrypted electronic receipt into a cloud storage;
if the number of retries of the electronic receipt is up to the maximum number of retries, the electronic receipt fails to be pulled, and the file number of the electronic receipt is written into the database.
2. The method of claim 1, wherein the pull configuration comprises at least one of:
pulling mode, pulling address or SFTP address, pulling the key and account number cipher.
3. The method of claim 2, wherein the pull mode comprises at least one of:
single stroke pull, batch pull, and full pull.
4. The method as recited in claim 1, further comprising:
and if the matching of the transaction order number of the electronic receipt and the transaction order corresponding to the electronic receipt fails, triggering an alarm, wherein the alarm is used for reminding people to check the electronic receipt.
5. The method of claim 1, wherein the data parsing rule comprises:
extracting the order number according to the content contained in the electronic receipt;
the content comprises a file name, a receipt number, a text and remarks of the electronic receipt.
6. The method as recited in claim 1, further comprising:
and compressing, packaging and storing all electronic receipts of the bank every day in a distributed file storage system, wherein the distributed file storage system is used for backup.
7. The method as recited in claim 1, further comprising:
counting the number of the electronic receipts which are successfully pulled by the bank and the number of the electronic receipts which are failed to be pulled by the bank every day according to the data of the bank in the database;
counting the current day electronic receipt pulling success rate of the bank;
and if the success rate of pulling the electronic receipts on the same day of the bank is smaller than the set value, re-pulling all the electronic receipts on the same day of the bank according to the pulling configuration of the bank.
8. The method as recited in claim 1, further comprising:
if the user needs to inquire the receipt file, inquiring the encrypted electronic receipt in the cloud storage according to the receipt order number input by the user, decrypting the encrypted electronic receipt and returning the encrypted electronic receipt to the user.
9. An electronic receipt pull system, comprising:
the first pulling module is used for pulling the electronic receipt of the bank according to the pulling configuration of the bank after receiving the pulling instruction for pulling the electronic receipt;
the first judging module is used for judging whether the number of the retries of the electronic receipt pulling reaches the maximum number of retries if the electronic receipt pulling fails;
the first retry module is used for pushing the pulling task of the electronic receipt to a single pulling delay queue if the maximum retry times are not reached;
the second pulling module is used for pulling the electronic receipt again according to a queue delay rule of the single pulling delay queue, wherein the queue delay rule is that the time interval for pulling the electronic receipt again is increased each time;
the second retry module is used for returning to the step of judging whether the pulling retry number of the electronic receipt reaches the maximum retry number if the pulling retry number of the electronic receipt fails, until the pulling of the electronic receipt is successful, or the pulling retry number reaches the maximum retry number;
the first processing module is used for writing the file number of the electronic receipt into a database if the electronic receipt is successfully pulled;
the second processing module is used for extracting the transaction order number corresponding to the electronic receipt according to the data analysis rule;
the third processing module is used for matching the transaction order number of the electronic receipt with the transaction order corresponding to the electronic receipt and judging whether the matching of the transaction order number of the electronic receipt with the transaction order corresponding to the electronic receipt is successful or not;
the fourth processing module is used for matching the transaction order number of the electronic receipt with the corresponding transaction order of the electronic receipt successfully;
the fifth processing module is used for encrypting the electronic receipt and storing the encrypted electronic receipt into a cloud storage;
and the third retry module is used for writing the file number of the electronic receipt into the database if the pulling retry number of the electronic receipt reaches the maximum retry number and the electronic receipt fails to be pulled.
10. An electronic device, comprising: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the electronic receipt pull method of any one of claims 1 to 8.
11. A computer readable storage medium, characterized in that a computer program is stored on the computer readable storage medium, which computer program, when being executed by a processor, implements the steps of the electronic receipt pull method according to any one of claims 1 to 8.
CN202310224773.7A 2023-03-10 2023-03-10 Electronic receipt pull method, system, electronic device and readable storage medium Active CN115936637B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310224773.7A CN115936637B (en) 2023-03-10 2023-03-10 Electronic receipt pull method, system, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310224773.7A CN115936637B (en) 2023-03-10 2023-03-10 Electronic receipt pull method, system, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN115936637A CN115936637A (en) 2023-04-07
CN115936637B true CN115936637B (en) 2023-05-02

Family

ID=85835750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310224773.7A Active CN115936637B (en) 2023-03-10 2023-03-10 Electronic receipt pull method, system, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115936637B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924923A (en) * 2005-09-02 2007-03-07 徐平 Bank return bills real time automatic fetching method and system
CN101102360A (en) * 2007-08-07 2008-01-09 中兴通讯股份有限公司 A method for automatic form return
EP3131049A1 (en) * 2015-08-12 2017-02-15 Chicago Mercantile Exchange, Inc. Mitigation of latency disparity in a transaction processing system
CN107943845A (en) * 2017-11-01 2018-04-20 中国银行股份有限公司 A kind of electronic receipt generation method and equipment
CN108229925A (en) * 2018-02-01 2018-06-29 金蝶软件(中国)有限公司 The data matching method and system of electronic receipt
US10127615B1 (en) * 2016-06-14 2018-11-13 Chicago Stock Exchange, Inc. System and method for delaying an executable instruction that would otherwise be executable immediately upon arrival at an executing system
CN109064144A (en) * 2018-07-02 2018-12-21 平安科技(深圳)有限公司 Receipt acquisition methods, device, computer equipment and storage medium
CN109271410A (en) * 2018-08-31 2019-01-25 平安科技(深圳)有限公司 Extracting method, device and the computer readable storage medium of bank receipt
CN110716972A (en) * 2019-09-12 2020-01-21 上海易点时空网络有限公司 Method and device for processing error of high-frequency calling external interface
CN110866201A (en) * 2019-11-14 2020-03-06 深圳前海环融联易信息科技服务有限公司 Cache processing method and device, computer equipment and storage medium
CN111769950A (en) * 2020-06-24 2020-10-13 苏州浪潮智能科技有限公司 Key management method and system for token authentication in openstack system
CN113222726A (en) * 2021-05-25 2021-08-06 支付宝(杭州)信息技术有限公司 Electronic certificate processing method, device and equipment
CN114611153A (en) * 2022-02-16 2022-06-10 中国农业银行股份有限公司广西壮族自治区分行 Electronic receipt pushing system based on bank
CN114663212A (en) * 2022-04-18 2022-06-24 贵州电网有限责任公司 Bank receipt automatic management system applied to power grid financial management system
CN114692589A (en) * 2022-03-31 2022-07-01 中国建设银行股份有限公司 Method, device and equipment for generating electronic receipt file and computer storage medium
CN115221854A (en) * 2022-06-23 2022-10-21 深圳供电局有限公司 Electronic management system and method for bank receipt
CN115658753A (en) * 2022-11-07 2023-01-31 中国建设银行股份有限公司 Method and device for inquiring electronic receipt and related equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11538126B2 (en) * 2015-07-30 2022-12-27 The Government of the United States of America, as represented by the Secretary of Homeland Security Identity verification system and method

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924923A (en) * 2005-09-02 2007-03-07 徐平 Bank return bills real time automatic fetching method and system
CN101102360A (en) * 2007-08-07 2008-01-09 中兴通讯股份有限公司 A method for automatic form return
EP3131049A1 (en) * 2015-08-12 2017-02-15 Chicago Mercantile Exchange, Inc. Mitigation of latency disparity in a transaction processing system
US10127615B1 (en) * 2016-06-14 2018-11-13 Chicago Stock Exchange, Inc. System and method for delaying an executable instruction that would otherwise be executable immediately upon arrival at an executing system
CN107943845A (en) * 2017-11-01 2018-04-20 中国银行股份有限公司 A kind of electronic receipt generation method and equipment
CN108229925A (en) * 2018-02-01 2018-06-29 金蝶软件(中国)有限公司 The data matching method and system of electronic receipt
CN109064144A (en) * 2018-07-02 2018-12-21 平安科技(深圳)有限公司 Receipt acquisition methods, device, computer equipment and storage medium
CN109271410A (en) * 2018-08-31 2019-01-25 平安科技(深圳)有限公司 Extracting method, device and the computer readable storage medium of bank receipt
CN110716972A (en) * 2019-09-12 2020-01-21 上海易点时空网络有限公司 Method and device for processing error of high-frequency calling external interface
CN110866201A (en) * 2019-11-14 2020-03-06 深圳前海环融联易信息科技服务有限公司 Cache processing method and device, computer equipment and storage medium
CN111769950A (en) * 2020-06-24 2020-10-13 苏州浪潮智能科技有限公司 Key management method and system for token authentication in openstack system
CN113222726A (en) * 2021-05-25 2021-08-06 支付宝(杭州)信息技术有限公司 Electronic certificate processing method, device and equipment
CN114611153A (en) * 2022-02-16 2022-06-10 中国农业银行股份有限公司广西壮族自治区分行 Electronic receipt pushing system based on bank
CN114692589A (en) * 2022-03-31 2022-07-01 中国建设银行股份有限公司 Method, device and equipment for generating electronic receipt file and computer storage medium
CN114663212A (en) * 2022-04-18 2022-06-24 贵州电网有限责任公司 Bank receipt automatic management system applied to power grid financial management system
CN115221854A (en) * 2022-06-23 2022-10-21 深圳供电局有限公司 Electronic management system and method for bank receipt
CN115658753A (en) * 2022-11-07 2023-01-31 中国建设银行股份有限公司 Method and device for inquiring electronic receipt and related equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"数控电子回单系统研制开发";张细刚;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》(第第01期期);第C029-58页 *

Also Published As

Publication number Publication date
CN115936637A (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US10819501B2 (en) Validating one or more blockchains without ledger limitations
EP3734489B1 (en) Evidence collection method and system based on blockchain evidence storage
US20190207770A1 (en) Methods for access control of contract data in a distributed system with distributed consensus and contract generator and validation server thereof
US8825798B1 (en) Business event tracking system
CN110020843B (en) Red purse picking method and device based on escrow account and electronic equipment
CN110334153B (en) Authorization method, system, device and equipment in block chain type account book
CN111815454B (en) Data uplink method and device, electronic equipment and storage medium
CN112636957A (en) Early warning method and device based on log, server and storage medium
CN102739774A (en) Method and system for obtaining evidence under cloud computing environment
US20210133742A1 (en) Detection of security threats in a network environment
CN111339540A (en) Computer accounting data anti-theft device and control method thereof
CN110727679A (en) Cooperative tracking method, system, device and equipment for court case
CN115936637B (en) Electronic receipt pull method, system, electronic device and readable storage medium
CN114490715A (en) Data extraction method and device, electronic equipment and storage medium
CN117495521A (en) Digital bill generation method and device, electronic equipment and storage medium
CN115299009A (en) System and method for gateway communications for distributed ledger system
CN117035986A (en) Remote double-record loan method and device, electronic equipment and storage medium
US20120089849A1 (en) Cookie management system and method
CN112598501B (en) Bank electronic evidence processing method and system
CN114626849A (en) Data protection method and protection device based on block chain
CN113642046A (en) Method and equipment for issuing operation and maintenance lists in batches
JP2009042986A (en) Management system, method and program for marketing sales history of financial product
CN110781523B (en) Method and apparatus for processing information
US20190312848A1 (en) Distributed encryption of mainframe data
WO2018172669A1 (en) Method and device for managing the storage of digital documents

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