Shipping order processing method, device, electronic equipment and storage medium

By analyzing the order message and automatically sending requests, obtaining invoice images and repetitive results, the inefficiency problem caused by manual processing in the prior art is solved, and efficient letter of credit information processing is achieved.

CN114463077BActive Publication Date: 2025-02-11AGRICULTURAL BANK OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210113960.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-30
Publication Date
2025-02-11
Estimated Expiration
2042-01-30

AI Technical Summary

Technical Problem

In the prior art, downloading and querying letter of credit information requires manual checking and initiating requests one by one, resulting in waste of resources and inefficiency.

Method used

By analyzing the order sending message, the image acquisition request and invoice repetitive query request are automatically sent to the telex system, the invoice image and repetitive results are obtained, and the processing results are generated.

Benefits of technology

It avoids manual download and query requests one by one, significantly improves efficiency and reduces resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114463077B_ABST
    Figure CN114463077B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device, electronic device and storage medium for processing a mailing order. The method comprises: parsing a mailing order message, and automatically sending an image acquisition request to an electronic certificate system according to the invoice image identifier obtained by the parsing, and automatically sending an invoice duplication query request to the electronic certificate system according to the invoice information obtained by the parsing, thereby obtaining an invoice image and a duplication result, and generating a result of processing the mailing order message. Based on this, it is possible to avoid manually sending download requests and query requests one by one, effectively improving efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data query technology, and in particular to a method, device, electronic device and storage medium for processing mailing orders. Background Art

[0002] With the development of data security technology, some letter of credit information can also be transmitted through the Internet. For example, the electronic letter of credit information exchange system can rely on network and computer technology to realize the electronicization of letters of credit.

[0003] At present, the download and query of some letter of credit information, such as invoices, are usually manually downloaded and queried one by one by the handling personnel. However, faced with the demand for downloading and querying letter of credit information in a large number of shipping messages, the manual method requires the handling personnel to check the corresponding download and query targets one by one, and then initiate download and query requests one by one. This process wastes human resources and causes the download and query process to take too long and be inefficient. Summary of the invention

[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for processing mailings to improve the efficiency of mailing processing.

[0005] In a first aspect, an embodiment of the present application provides a method for processing a mailing order, the method comprising:

[0006] When receiving a delivery message, the delivery message is parsed to obtain an invoice image identifier and invoice information;

[0007] Sending an image acquisition request to the electronic certificate system according to the invoice image identifier, and obtaining the invoice image according to the result fed back by the electronic certificate system;

[0008] Sending an invoice duplication query request to the electronic certificate system according to the invoice information, and receiving the duplication result fed back by the electronic certificate system;

[0009] The result of processing the invoice message is generated according to the invoice image and the repetitive result. In a second aspect, the embodiment of the present application further provides a bill processing device, the bill processing device comprising:

[0010] The parsing module is used to parse the invoice message upon receiving the invoice message, and obtain the invoice image identifier and invoice information;

[0011] A first request module, used to send an image acquisition request to the electronic certificate system according to the invoice image identifier, and obtain the invoice image according to the result fed back by the electronic certificate system;

[0012] A second request module, used to send an invoice duplication query request to the electronic certificate system according to the invoice information, and receive a duplication result fed back by the electronic certificate system;

[0013] The processing result determination module is used to generate the result of processing the invoice message according to the invoice image and the repetitive result.

[0014] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising:

[0015] one or more processors;

[0016] a storage device for storing one or more programs,

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the order processing method provided in any embodiment of the present application.

[0018] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, a method for processing a shipment as provided in any embodiment of the present application is implemented.

[0019] The technical solution of the embodiment of the present application parses the delivery message, and automatically sends an image acquisition request to the electronic certificate system according to the invoice image identifier obtained by the analysis, and automatically sends an invoice duplication query request to the electronic certificate system according to the invoice information obtained by the analysis, thereby obtaining the invoice image and duplication result, and generating the result of processing the delivery message. Based on this, it can avoid the use of manual sending of download requests and query requests one by one, effectively improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A flowchart of a method for processing a mailing order provided in Example 1 of the present application;

[0021] Figure 2 A schematic diagram of the structure of a mailing order processing device provided in Example 2 of the present application;

[0022] Figure 3 A schematic diagram of the structure of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION

[0023] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0024] Embodiment 1

[0025] Figure 1 This is a flow chart of the method for processing a shipping order provided in the first embodiment of the present application. This embodiment is applicable to the scenario of shipping order processing. The method can be executed by a shipping order processing device, which can be implemented in hardware and / or software, and can generally be integrated in an electronic device such as a computer with data computing capabilities, and specifically includes the following steps:

[0026] Step 101: When a delivery message is received, the delivery message is parsed to obtain an invoice image identifier and invoice information.

[0027] It should be noted that the delivery message may include a message number, a delivery number, an invoice image identifier and invoice information, wherein the invoice information may include an invoice number and an invoice code. After parsing the above information, the information may be stored in the message table, the image table and the invoice table in the database respectively.

[0028] In addition, before parsing the delivery message and obtaining the invoice image identifier and invoice information, the delivery message needs to be verified. Specifically, the delivery message can be verified first to obtain the verification result; if the verification result is passed, the step of parsing the delivery message is executed; if the verification result is failed, the delivery message is discarded.

[0029] The signature verification process can specifically extract the original signature and signature elements in the delivery message, and input the signature elements into a pre-built signature generation device to obtain the corresponding verification signature; then compare the original signature with the verification signature. If the original signature and the verification signature are consistent, the verification result is determined to be passed; if the original signature and the verification signature are inconsistent, the verification result is determined to be failed.

[0030] It should be noted that the signature element may refer to an element in the delivery message used to generate a verification signature. The signature generation device may hash the other parts of the delivery message except the signature into a piece of data as a verification signature, wherein the hashing method of the signature generation device is consistent with the hashing method used to generate the original signature of the delivery message.

[0031] Step 102: Send an image acquisition request to the electronic certificate system according to the invoice image identifier, and obtain the invoice image according to the result fed back by the electronic certificate system.

[0032] In this step, the sender information of the delivery message can be obtained first, and any invoice image identifier and sender information obtained by parsing can be assembled to obtain an image acquisition request corresponding to the invoice image identifier; the image acquisition request is added to the first queue, and the image acquisition request is sent according to the queue order in the first queue.

[0033] The sender information may include a sender ID. It should be noted that when the electronic certificate system queries the invoice image, it can first query all the invoice images involved by the sender according to the sender ID, and then query the invoice image corresponding to the invoice image ID from the queried invoice images. In this way, the query efficiency can be improved. Therefore, in this step, the sender information of the delivery message can be obtained first.

[0034] In addition, when assembling the sender information and the invoice image mark, the assembly can be performed according to a certain data format. In a specific example, the assembled image acquisition request can be 32-bit data, of which the upper 16 bits can be used to place the sender information and the lower 16 bits can be used to place the invoice image mark. Of course, this example is only an example of assembly, and the specific assembly can be assembled according to the data format of the message required by the electronic certificate system.

[0035] The first queue of this step adopts the first-in-first-out method, that is, the image acquisition request that enters the queue first is issued first. For example, there are already 20 image acquisition requests waiting to be downloaded in the first queue, and this image acquisition request is arranged at the 21st position. After the previous 20 image acquisition requests are processed, this image acquisition request will be processed.

[0036] It should be noted that after sending an image acquisition request to the electronic certificate system, two types of messages will usually be received, one is a message discard notification message, and the other is a general processing confirmation message. Among them, the message discard notification message refers to the message that the electronic certificate system refuses to process the image acquisition request and discards the image acquisition request and then feeds back.

[0037] The general processing confirmation message usually has three contents: one is to indicate the failure of sending, one is to indicate the system timeout, and the other is to indicate the success of sending.

[0038] Therefore, in this step, if a message discard notification message is received from the electronic certificate system, or a general processing confirmation message is received from the electronic certificate system indicating a sending failure or a system timeout, it is determined that the request sending failed, and the next image acquisition request in the first queue is sent.

[0039] If a general processing confirmation message indicating successful transmission is fed back by the electronic certificate system, wait for the file download response message fed back by the electronic certificate system; determine the current processing status of each processing module, send the file download response message to the target processing module whose processing status meets the preset conditions, and the target processing module converts the file download response message into an invoice image; after obtaining the invoice image, send the next image acquisition request in the first queue.

[0040] It should be noted that the file download response message needs to be converted to obtain the final invoice image. There can be many processing modules with conversion processing capabilities. In order to ensure that the processing status of each processing module remains balanced, the processing status of each processing module can be determined first, and then the file download response message is sent to the target processing module whose processing status meets the preset conditions for conversion.

[0041] The processing state may refer to the idle state of the running memory of the processing module, for example, the total running memory of the processing module is 8G, and the idle memory is 4G, so the idle state is 50%. The processing modules are sorted from large to small according to the idle state, and then the processing module ranked first is used as the target processing module that meets the preset conditions.

[0042] Step 103: Send an invoice duplication query request to the electronic certificate system based on the invoice information, and receive the duplication result fed back by the electronic certificate system.

[0043] The action execution of this step can be that after all the image acquisition requests in the first queue are sent, an invoice duplication query request is assembled according to the invoice information. Specifically, the invoice information may include an invoice number and an invoice code. The invoice number and the invoice code are packaged according to a certain data format to obtain the invoice duplication query request. During the generation of the invoice duplication query request, it can be signed, and then the signed invoice duplication query request is added to the second queue, and the invoice duplication query request is sent according to the order of the second queue.

[0044] It should be noted that for invoice duplicate query requests, the electronic certificate system will also feedback two types of messages, one is the message discard notification message, and the other is the general processing confirmation message. Among them, the message discard notification message refers to the message that the electronic certificate system refuses to process the invoice duplicate query request and discards the invoice duplicate query request and then feedback.

[0045] The general processing confirmation message usually has three contents: one is to indicate the failure of sending, one is to indicate the failure of processing (such as system timeout or inability to process the request), and the other is to indicate the success of sending.

[0046] Specifically, if a message discard notification message is received from the electronic certificate system, or a general processing confirmation message is received from the electronic certificate system indicating a sending failure or a system timeout, it is determined that the request sending failed, and the next invoice duplication query request in the second queue is sent.

[0047] If a general processing confirmation message indicating successful transmission is received from the electronic certificate system, wait for the invoice query response message received from the electronic certificate system; determine the duplication result based on the invoice query response message, and send the next invoice duplication query request in the second queue.

[0048] Step 104: Generate the result of processing the delivery message according to the invoice image and the repetitive result.

[0049] In this step, after all the invoice image identifiers and invoice information in the delivery message are processed, the corresponding invoice images and duplication results are stored correspondingly according to the invoice information. For example, the invoice image and duplication result of invoice 1 are mapped and stored with the invoice information of invoice 1, so that the invoice image and duplication result can be viewed later.

[0050] In this embodiment, by parsing the invoice message, automatically sending an image acquisition request to the electronic certificate system according to the invoice image identifier obtained by the parsing, and automatically sending an invoice duplication query request to the electronic certificate system according to the invoice information obtained by the parsing, the invoice image and duplication result are obtained, and the result of processing the invoice message is generated. Based on this, it is possible to avoid manually sending download requests and query requests one by one, effectively improving efficiency.

[0051] Embodiment 2

[0052] Figure 2 This is a schematic diagram of the structure of a document processing device provided in Example 2 of the present application. The document processing device provided in the embodiment of the present application can execute the document processing method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. The device can be implemented in software and / or hardware, such as Figure 2 As shown, the order processing device specifically includes: a parsing module 201, a first request module 202, a second request module 203, and a processing result determination module 204.

[0053] The parsing module is used to parse the invoice message upon receiving the invoice message to obtain the invoice image identifier and invoice information;

[0054] The first request module is used to send an image acquisition request to the electronic certificate system according to the invoice image identifier, and obtain the invoice image according to the result fed back by the electronic certificate system;

[0055] The second request module is used to send an invoice duplication query request to the electronic certificate system according to the invoice information, and receive the duplication result fed back by the electronic certificate system;

[0056] The processing result determination module is used to generate the result of processing the delivery message according to the invoice image and the repetitive result.

[0057] In this embodiment, by parsing the invoice message, automatically sending an image acquisition request to the electronic certificate system according to the invoice image identifier obtained by the parsing, and automatically sending an invoice duplication query request to the electronic certificate system according to the invoice information obtained by the parsing, the invoice image and duplication result are obtained, and the result of processing the invoice message is generated. Based on this, it is possible to avoid manually sending download requests and query requests one by one, effectively improving efficiency.

[0058] Furthermore, the device also includes:

[0059] The signature verification module is used to verify the signature of the delivery message and obtain the verification result;

[0060] The signature verification processing module is used to execute the step of parsing the delivery message if the signature verification result is passed, and discard the delivery message if the signature verification result is failed.

[0061] Furthermore, the signature verification module includes:

[0062] The verification signature determination module is used to extract the original signature and signature elements in the delivery message, and input the signature elements into a pre-built signature generation device to obtain a corresponding verification signature;

[0063] The signature comparison module is used to compare the original signature with the verification signature. If the original signature and the verification signature are consistent, the verification result is determined to be passed; if the original signature and the verification signature are inconsistent, the verification result is determined to be failed.

[0064] Furthermore, the first request module includes:

[0065] An image acquisition request acquisition unit is used to acquire the sender information of the invoice message, and assemble any invoice image identifier obtained by parsing with the sender information to obtain an image acquisition request corresponding to the invoice image identifier;

[0066] The image acquisition request sending unit is used to add the image acquisition request to the first queue and send the image acquisition request according to the queue order in the first queue.

[0067] Furthermore, the first request module includes:

[0068] A first sending failure determination unit is used to determine that the request sending fails and send the next image acquisition request in the first queue if a message discard notification message is received from the electronic certificate system, or a general processing confirmation message is received from the electronic certificate system for indicating a sending failure or a system timeout;

[0069] A response message receiving unit, used for waiting to receive a file download response message fed back by the electronic certificate system if a general processing confirmation message indicating successful transmission is received from the electronic certificate system;

[0070] The conversion unit is used to determine the current processing status of each processing module, send the file download response message to the target processing module whose processing status meets the preset conditions, and the target processing module converts the file download response message into an invoice image; after obtaining the invoice image, send the next image acquisition request in the first queue.

[0071] Furthermore, the second request module includes:

[0072] An invoice repetition query request generating unit, used for assembling an invoice repetition query request according to the invoice information after all the image acquisition requests in the first queue have been sent;

[0073] The invoice duplication query request sending unit is used to add the invoice duplication query request to the second queue and send the invoice duplication query request in the order of the second queue.

[0074] Furthermore, the second request module includes:

[0075] A first sending failure determination unit is used to determine that the request sending has failed and send the next invoice duplication query request in the second queue if a message discard notification message is received from the electronic certificate system, or a general processing confirmation message is received from the electronic certificate system indicating a sending failure or a system timeout;

[0076] An invoice query response message receiving unit is used to wait for an invoice query response message fed back by the electronic certificate system if a general processing confirmation message indicating successful transmission is received from the electronic certificate system;

[0077] The repetitive result determining unit is used to determine the repetitive result according to the invoice query response message and send the next invoice repetitive query request in the second queue.

[0078] Embodiment 3

[0079] Figure 3 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present application is shown in FIG. Figure 3 As shown, the electronic device includes a processor 310, a memory 320, an input device 330 and an output device 340; the number of the processor 310 in the electronic device can be one or more. Figure 3 A processor 310 is taken as an example; the processor 310, the memory 320, the input device 330 and the output device 340 in the electronic device can be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0080] The memory 320, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the order processing method in the embodiment of the present invention (for example, the parsing module 201, the first request module 202, the second request module 203, and the processing result determination module 204 in the order processing device). The processor 310 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 320, that is, realizes the above-mentioned order processing method:

[0081] When receiving the invoice message, the invoice message is parsed to obtain the invoice image identifier and invoice information;

[0082] Send an image acquisition request to the electronic certificate system according to the invoice image identifier, and obtain the invoice image according to the feedback from the electronic certificate system;

[0083] Send an invoice duplication query request to the electronic certificate system based on the invoice information, and receive the duplication results fed back by the electronic certificate system;

[0084] Generate the result of processing the invoice message based on the invoice image and duplication results.

[0085] Furthermore, before parsing the invoice message to obtain the invoice image identifier and invoice information, the method further includes:

[0086] Verify the signature of the delivery message and obtain the verification result;

[0087] If the signature verification result is passed, the step of parsing the delivery message is executed. If the signature verification result is failed, the delivery message is discarded.

[0088] Furthermore, the signature of the delivery message is verified to obtain the verification result, including:

[0089] Extract the original signature and signature elements from the delivery message, and input the signature elements into a pre-built signature generation device to obtain the corresponding verification signature;

[0090] Compare the original signature with the verification signature. If the original signature and the verification signature are consistent, the verification result is determined to be passed.

[0091] If the original signature is inconsistent with the verification signature, the verification result is determined to be failed.

[0092] Furthermore, an image acquisition request is sent to the electronic certificate system according to the invoice image identifier, including:

[0093] Obtain the sender information of the delivery message, and assemble any invoice image identifier obtained by parsing with the sender information to obtain an image acquisition request corresponding to the invoice image identifier;

[0094] The image acquisition request is added to the first queue, and the image acquisition request is sent according to the queue order in the first queue.

[0095] Furthermore, the invoice image is obtained based on the feedback from the electronic certificate system, including:

[0096] If a message discard notification message is received from the electronic certificate system, or a general processing confirmation message is received from the electronic certificate system indicating a sending failure or a system timeout, it is determined that the request sending has failed, and the next image acquisition request in the first queue is sent;

[0097] If the general processing confirmation message indicating successful transmission is fed back by the electronic certificate system, wait for the file download response message fed back by the electronic certificate system;

[0098] Determine the current processing status of each processing module, send the file download response message to the target processing module whose processing status meets the preset conditions, and the target processing module converts the file download response message into an invoice image;

[0099] After the invoice image is obtained, the next image acquisition request in the first queue is sent.

[0100] Furthermore, an invoice duplication query request is sent to the electronic certificate system based on the invoice information, including:

[0101] After all the image acquisition requests in the first queue are sent, an invoice repetition query request is assembled according to the invoice information;

[0102] The invoice duplication query request is added to the second queue, and the invoice duplication query request is sent in the order of the second queue.

[0103] Furthermore, the repetitive results of the electronic certificate system feedback are received, including:

[0104] If a message discard notification message is received from the electronic certificate system, or a general processing confirmation message indicating a sending failure or a system timeout is received from the electronic certificate system, it is determined that the request sending has failed, and the next invoice duplication query request in the second queue is sent;

[0105] If the general processing confirmation message indicating successful sending is fed back by the electronic certificate system, wait for the invoice query response message fed back by the electronic certificate system;

[0106] The duplication result is determined according to the invoice query response message, and the next invoice duplication query request in the second queue is sent.

[0107] The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 320 may further include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0108] Embodiment 4

[0109] Embodiment 4 of the present application further provides a storage medium including computer executable instructions, which are used to execute a method for processing a shipping order when executed by a computer processor. The method includes:

[0110] When receiving the invoice message, the invoice message is parsed to obtain the invoice image identifier and invoice information;

[0111] Send an image acquisition request to the electronic certificate system according to the invoice image identifier, and obtain the invoice image according to the feedback from the electronic certificate system;

[0112] Send an invoice duplication query request to the electronic certificate system based on the invoice information, and receive the duplication results fed back by the electronic certificate system;

[0113] Generate the result of processing the invoice message based on the invoice image and duplication results.

[0114] Furthermore, before parsing the invoice message to obtain the invoice image identifier and invoice information, the method further includes:

[0115] Verify the signature of the delivery message and obtain the verification result;

[0116] If the signature verification result is passed, the step of parsing the delivery message is executed. If the signature verification result is failed, the delivery message is discarded.

[0117] Furthermore, the signature of the delivery message is verified to obtain the verification result, including:

[0118] Extract the original signature and signature elements from the delivery message, and input the signature elements into a pre-built signature generation device to obtain the corresponding verification signature;

[0119] Compare the original signature with the verification signature. If the original signature and the verification signature are consistent, the verification result is determined to be passed.

[0120] If the original signature is inconsistent with the verification signature, the verification result is determined to be failed.

[0121] Furthermore, an image acquisition request is sent to the electronic certificate system according to the invoice image identifier, including:

[0122] Obtain the sender information of the delivery message, and assemble any invoice image identifier obtained by parsing with the sender information to obtain an image acquisition request corresponding to the invoice image identifier;

[0123] The image acquisition request is added to the first queue, and the image acquisition request is sent according to the queue order in the first queue.

[0124] Furthermore, the invoice image is obtained based on the feedback from the electronic certificate system, including:

[0125] If a message discard notification message is received from the electronic certificate system, or a general processing confirmation message is received from the electronic certificate system indicating a sending failure or a system timeout, it is determined that the request sending has failed, and the next image acquisition request in the first queue is sent;

[0126] If the general processing confirmation message indicating successful transmission is fed back by the electronic certificate system, wait for the file download response message fed back by the electronic certificate system;

[0127] Determine the current processing status of each processing module, send the file download response message to the target processing module whose processing status meets the preset conditions, and the target processing module converts the file download response message into an invoice image;

[0128] After the invoice image is obtained, the next image acquisition request in the first queue is sent.

[0129] Furthermore, an invoice duplication query request is sent to the electronic certificate system based on the invoice information, including:

[0130] After all the image acquisition requests in the first queue are sent, an invoice repetition query request is assembled according to the invoice information;

[0131] The invoice duplication query request is added to the second queue, and the invoice duplication query request is sent in the order of the second queue.

[0132] Furthermore, the repetitive results of the electronic certificate system feedback are received, including:

[0133] If a message discard notification message is received from the electronic certificate system, or a general processing confirmation message indicating a sending failure or a system timeout is received from the electronic certificate system, it is determined that the request sending has failed, and the next invoice duplication query request in the second queue is sent;

[0134] If the general processing confirmation message indicating successful sending is fed back by the electronic certificate system, wait for the invoice query response message fed back by the electronic certificate system;

[0135] The duplication result is determined according to the invoice query response message, and the next invoice duplication query request in the second queue is sent.

[0136] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the above method operations, can also execute related operations in the order processing method provided in any embodiment of the present application.

[0137] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0138] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0139] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A method for processing a shipment, characterized in that: The method comprises: When receiving a delivery message, the delivery message is parsed to obtain an invoice image identifier and invoice information; Sending an image acquisition request to the electronic certificate system according to the invoice image identifier, and obtaining the invoice image according to the result fed back by the electronic certificate system; Sending an invoice duplication query request to the electronic certificate system according to the invoice information, and receiving the duplication result fed back by the electronic certificate system; Generate a result of processing the invoice message according to the invoice image and the repeatability result; The sending of an image acquisition request to the electronic certificate system according to the invoice image identifier includes: Obtain the sender information of the invoice message, and assemble any invoice image identifier obtained by parsing with the sender information to obtain an image acquisition request corresponding to the invoice image identifier; Adding the image acquisition request to a first queue, and sending the image acquisition request according to the queue order in the first queue; The invoice image is obtained according to the feedback result of the electronic certificate system, including: If a message discard notification message is received from the electronic certificate system, or a general processing confirmation message indicating a sending failure or a system timeout is received from the electronic certificate system, it is determined that the request has failed to be sent, and the next image acquisition request in the first queue is sent; If the general processing confirmation message indicating successful transmission is fed back by the electronic certificate system, wait for the file download response message fed back by the electronic certificate system; Determine the current processing status of each processing module, send the file download response message to the target processing module whose processing status meets the preset conditions, and convert the file download response message into an invoice image by the target processing module; After obtaining the invoice image, a next image acquisition request in the first queue is sent.

2. The method according to claim 1, characterized in that Before parsing the invoice message to obtain the invoice image identifier and invoice information, the method further includes: Verify the signature of the delivery message and obtain the verification result; If the signature verification result is passed, the step of parsing the delivery message is executed; if the signature verification result is failed, the delivery message is discarded.

3. The method according to claim 2, characterized in that The step of verifying the signature of the delivery message and obtaining the verification result includes: Extracting the original signature and signature elements from the delivery message, and inputting the signature elements into a pre-built signature generation device to obtain a corresponding verification signature; Compare the original signature with the verification signature, and if the original signature is consistent with the verification signature, determine that the verification result is passed; If the original signature is inconsistent with the verification signature, the verification result is determined to be failed.

4. The method according to claim 1, characterized in that: The sending of an invoice duplication query request to the electronic certificate system according to the invoice information includes: After all the image acquisition requests in the first queue are sent, assembling an invoice repetitive query request according to the invoice information; The invoice duplication query request is added to a second queue, and the invoice duplication query request is sent in the order of the second queue.

5. The method according to claim 4, characterized in that The receiving of the repetitive results fed back by the electronic certificate system includes: If a message discard notification message is received from the electronic certificate system, or a general processing confirmation message indicating a sending failure or a system timeout is received from the electronic certificate system, it is determined that the request has failed to be sent, and the next invoice duplication query request in the second queue is sent; If the general processing confirmation message indicating successful sending is fed back by the electronic certificate system, wait for the invoice query response message fed back by the electronic certificate system; The duplication result is determined according to the invoice query response message, and the next invoice duplication query request in the second queue is sent.

6. A delivery order processing device, characterized in that: The device comprises: The parsing module is used to parse the invoice message upon receiving the invoice message, and obtain the invoice image identifier and invoice information; A first request module, used to send an image acquisition request to the electronic certificate system according to the invoice image identifier, and obtain the invoice image according to the result fed back by the electronic certificate system; A second request module, used to send an invoice duplication query request to the electronic certificate system according to the invoice information, and receive a duplication result fed back by the electronic certificate system; A processing result determination module, used for generating a result of processing the invoice message according to the invoice image and the repetitiveness result; The first request module is specifically used for: Obtain the sender information of the invoice message, and assemble any invoice image identifier obtained by parsing with the sender information to obtain an image acquisition request corresponding to the invoice image identifier; Adding the image acquisition request to a first queue, and sending the image acquisition request according to the queue order in the first queue; If a message discard notification message is received from the electronic certificate system, or a general processing confirmation message indicating a sending failure or a system timeout is received from the electronic certificate system, it is determined that the request has failed to be sent, and the next image acquisition request in the first queue is sent; If the general processing confirmation message indicating successful transmission is fed back by the electronic certificate system, wait for the file download response message fed back by the electronic certificate system; Determine the current processing status of each processing module, send the file download response message to the target processing module whose processing status meets the preset conditions, and convert the file download response message into an invoice image by the target processing module; After obtaining the invoice image, a next image acquisition request in the first queue is sent.

7. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the order processing method as described in any one of claims 1-5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the order processing method as described in any one of claims 1-5 is implemented.

Citation Information

Patent Citations

  • Ticket image downloading method, ticket processing device, system and ticket server

    CN106910275A

  • Invoice electronic image management method and device for pharmaceutical industry

    CN111209427A

  • Method and system for issuing invoices after caching

    CN112801722A