CN111652681A - Receipt processing method, server and computer readable storage medium - Google Patents

Receipt processing method, server and computer readable storage medium Download PDF

Info

Publication number
CN111652681A
CN111652681A CN202010481784.XA CN202010481784A CN111652681A CN 111652681 A CN111652681 A CN 111652681A CN 202010481784 A CN202010481784 A CN 202010481784A CN 111652681 A CN111652681 A CN 111652681A
Authority
CN
China
Prior art keywords
message
server
processing
bill
target
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.)
Pending
Application number
CN202010481784.XA
Other languages
Chinese (zh)
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.)
Shenzhen Ping An Medical Health Technology Service Co Ltd
Original Assignee
Ping An Medical and Healthcare Management 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 Ping An Medical and Healthcare Management Co Ltd filed Critical Ping An Medical and Healthcare Management Co Ltd
Priority to CN202010481784.XA priority Critical patent/CN111652681A/en
Publication of CN111652681A publication Critical patent/CN111652681A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Abstract

The application relates to big data, and provides a bill processing method, a server and a computer-readable storage medium, wherein the method is applied to a bill processing system, and comprises the following steps: when detecting that the target document resource is processed, the business server generates a message according to the document information of the target document to send to a message management server; the message is used for indicating the bill information of the target bill; after receiving the message, the message management server counts the number of messages to be forwarded according to the message, determines a thread for sending the message according to the number of the messages to be forwarded, and sends the message to a service processing server through the thread; and after receiving the message, the service processing server analyzes the message to obtain the bill information of the target bill and processes the service according to the bill information of the target bill. By adopting the process, the processing efficiency of the document can be improved. The application also relates to a block chain technology, and the receipt information is stored in the block chain.

Description

Receipt processing method, server and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a document processing method, a server, and a computer-readable storage medium.
Background
With the development of internet technology, internet-based documents, such as order management, are in high favor of various enterprises. In the document management process, documents are often required to be processed to meet corresponding business requirements. The order processing flow will be described below by taking the settlement system as an example. The process of the clearing and settlement system to process the order is generally as follows: the clearing and settlement system regularly schedules a timing task through a timer every day to collect order data of the service end system on the previous day and synchronously stores the order data into the clearing and settlement system so as to carry out clearing and settlement and other operations in the following. However, the method causes the processing process of the document to be not timely enough and has lower processing efficiency.
Disclosure of Invention
The embodiment of the application provides a bill processing method, a server and a computer-readable storage medium, which can improve the bill processing efficiency.
In a first aspect, an embodiment of the present application provides a document processing method, which is applied to a document processing system, where the document processing system includes a service server, a message management server, and a service processing server, and the method includes:
when detecting that the target bill resource is processed, the business server generates a message according to the bill information of the target bill and sends the message to the message management server; the message is used for indicating the bill information of the target bill;
after receiving the message sent by the service server, the message management server counts the number of messages to be forwarded according to the message;
the message management server determines a thread for sending the message according to the number of the messages to be forwarded, and sends the message to the service processing server through the thread;
and after receiving the message sent by the message management server, the service processing server analyzes the message to obtain the bill information of the target bill and processes the service according to the bill information of the target bill.
Optionally, the document information is stored in a block chain, and the generating, by the service server, a message according to the document information of the target document includes:
the business server builds a message queue message body in a specified format according to the receipt information of the target receipt by calling a preset software development kit;
and the service server generates a message comprising the message queue message body with the specified format.
Optionally, the determining, by the message management server, a thread for sending the message according to the number of the messages to be forwarded includes:
if the number of the messages to be forwarded is larger than or equal to a first number, the message management server creates a new thread and determines the new thread as a thread for sending the messages; wherein the first number is the number of messages that can be processed by a second number of threads run by the message management server;
and if the number of the messages to be forwarded is smaller than the first number, the message management server determines a target thread in the second number of running threads as a thread for sending the messages.
Optionally, before the message management server determines a thread for sending the message according to the number of the messages to be forwarded and sends the message to the service processing server through the thread, the method further includes:
the message management server generates a notification message and sends the notification message to the service processing server, wherein the notification message is used for notifying the message management server of message update;
after receiving the notification message sent by the message management server, the service processing server sends a message acquisition request to the message management server;
and the message management server executes the steps of determining the thread for sending the message according to the number of the messages to be forwarded after receiving the message acquisition request sent by the service processing server, and sending the message to the service processing server through the thread.
Optionally, before the business server generates a message according to the document information of the target document, the method further includes:
the business server determines the processing level of the target bill according to the bill information of the target bill;
if the processing level is urgent, the business server executes a step of generating a message according to the bill information of the target bill;
and if the processing level is not urgent, the business server executes a step of generating a message according to the bill information of the target bill when the processing time indicated by the processing level is reached.
Optionally, the determining, by the service server, the processing level of the target document according to the document information of the target document includes:
the business server inquires whether a priority processing bill list comprises information in the bill information of the target bill;
and if the priority processing bill list comprises the information in the bill information of the target bill, the business server determines that the processing level of the target bill is urgent.
Optionally, after receiving the message sent by the message management server, the service processing server obtains the document information of the target document by parsing according to the message, and before performing service processing according to the document information of the target document, the method further includes:
the business processing server monitors the message sent by the message management server through a specified message queue monitoring service;
and the service processing server receives the message sent by the message management server when monitoring the message sent by the message management server through a specified message queue monitoring service.
Optionally, the performing, by the service processing server, service processing according to the document information of the target document includes:
the business processing server calls a preset database sub-table script to generate a database table comprising the receipt information of the target receipt;
and the business processing server calls the database sub-table script to perform database sub-table processing on the database table comprising the receipt information of the target receipt.
Optionally, the performing, by the service processing server, service processing according to the document information of the target document includes:
and if the business processing server determines that the processing rule of the bill information of the target bill comprises a settlement rule, performing settlement processing according to the settlement rule and the bill information of the target bill.
In a second aspect, embodiments of the present application provide a server, where the server includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, and the memory stores a computer program, where the computer program includes program instructions, and the processor is configured to call the program instructions to perform operations performed by the service server in the first aspect, or perform operations performed by the message management server in the first aspect, or perform operations performed by the service processing server in the first aspect.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, where the computer program is executed by a processor to implement the foregoing document processing method.
In summary, when detecting that the processing of the target document resource is completed, the service server may generate a message according to the document information of the target document, and sends the message to the message management server, so that after the message management server receives the message, the number of messages to be forwarded can be counted according to the messages, and the thread for sending the messages can be determined according to the number of the messages to be forwarded, and sends the message to the service processing server through the thread, so that after the service processing server receives the message, the document information of the target document is obtained through analysis according to the message, and business processing is carried out according to the document information of the target document, and compared with the situation that in the prior art, the business processing server obtains the document information from the business server every other day for processing, so that the document processing efficiency is low, the processing efficiency of the document information is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an architecture of a document processing system according to an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating a document processing method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram of another document processing method provided by an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, a schematic diagram of a document processing system according to an embodiment of the present invention is shown. The document processing system can comprise a business server 10, a message management server 20 and a business processing server 30. The message management server 20 can establish communication with the service server 10 and the service processing server 30, respectively.
The service server 10 may manage information such as document information of each of the plurality of documents. The service server 10 may be, for example, a payment server or a document management server (e.g., an order management server). The service server 10 may be one or more. The message management server 20 may also be referred to as a message queue server, and the message management server 20 may implement functions of forwarding, managing, and the like of messages. The message management server 20 may be, for example, a RabbitMQ server. The message management server 20 may be one or more. The business processing server 30 may perform business processing based on information such as document information of documents. The service processing server 30 may be, for example, a clearing server according to different service scenarios. In one embodiment, when the business processing server 30 is a clearing server, the process of conducting business processing according to the document information of the document may include a process of conducting clearing according to the document information of the document, and the like. The business processing server 30 may be one or more.
In one embodiment, the business server 10 may generate a message according to the document information of the target document when detecting that the processing of the target document resource is completed, and send the message to the message management server 20. The message is used to indicate document information for the target document. The message management server 20 may, after receiving the message sent by the service server 10, count the number of messages to be forwarded according to the message, determine a thread for sending the message according to the number of messages to be forwarded, and then send the message to the service processing server 30 through the thread. After receiving the message sent by the message management server 20, the service processing server 30 may analyze the message to obtain the document information of the target document, and perform service processing according to the document information of the target document. Compared with the prior art that the document information of the document is acquired at an interval of one day to perform business processing, and the document processing process is not timely, the processing process of the document can be more timely by adopting the above process, and the document processing efficiency is improved.
In an application scenario, after the user successfully pays an order for a certain commodity, the order management server may detect that the order payment processing for the commodity is completed. When the order management server detects that the order payment processing of the commodity is completed, generating a message according to the order information of the order of the commodity, and sending the message to the message management server; the message is used to indicate order information for an order for the item. And after receiving the message sent by the order management server, the message management server counts the number of the messages to be forwarded according to the message. And the message management server determines a thread for sending the message according to the number of the messages to be forwarded and sends the message to the clearing server through the thread. And after receiving the message sent by the message management server, the clearing server analyzes the message to obtain order information of the order of the commodity and performs service processing according to the order information of the order of the commodity.
Please refer to fig. 2, which is a flowchart illustrating a document processing method according to an embodiment of the present application. The method is applied to a bill processing system, and the bill processing system can comprise a business server, a message management server and a business processing server. Specifically, the method may include:
s201, when detecting that the target bill resource is processed, the service server generates a message according to bill information of the target bill and sends the message to the message management server.
Wherein the message may be used to indicate document information for the target document. The target document may be any document. Wherein the document information includes, but is not limited to, at least one of: document basic information (which may include document identification information such as an order number), resource operator information (such as merchant information), resource information (such as merchandise information), and logistics information, among others. The resource processing may include other business processing processes such as payment processing, and the embodiments of the present application are not limited.
In one embodiment, the process of the business server generating the message according to the document information of the target document may be as follows: the service server builds a Message Queue (MQ) Message body with a specified format according to the document information of the target document by calling a preset software development kit, and generates a Message comprising the Message Queue Message body with the specified format. In one embodiment, a Software Development Kit (SDK) may include message generation rules.
In one embodiment, the business server may invoke a preset message generation rule included in the software development kit, and construct a message queue message body in a specified format according to the document information of the target document, so as to generate a message including the message queue message body in the specified format. The software development kit is adopted, namely the SDK is adopted to process the document information, and the method has the following advantages: compared with the prior art that the processing flow of one party needs to be correspondingly adjusted when the processing flow is changed, the service line and the service processing line are decoupled through the software development kit.
In an embodiment, the process that the business server calls a message generation rule included in a preset software development kit and constructs a message queue message body in a specified format according to the document information of the target document may call the message generation rule included in the preset software development kit for the business server, and assemble the document information of the target document to obtain the message queue message body in the specified format.
In one embodiment, the business server can also call a first interface exposed to the outside of the software development kit and transfer the document information of the target document to the software development kit. In one embodiment, the service server may also call a second interface exposed to the outside of the software toolkit to send the message to the message management server.
In one embodiment, the service server may establish a reliability message mechanism, and may send the message to the message management server through the reliability message mechanism, such as Java + MySQL + mybatis. Because a reliable message mechanism is used, the service server can effectively avoid the sending of the message by mistake or missing, thereby ensuring the reliability of the message sending process. In addition, the reliability message mechanism can also be used for carrying out local serialized storage on the message, so that the message stored locally can be obtained for resending in the case of message sending failure and the like.
In one embodiment, when the resource processing includes payment processing, the business server may determine that the payment processing of the target document is completed when the payment authorization information sent by the user terminal for the target document is detected.
In one embodiment, when the resource processing includes payment processing, the service server may verify the payment authorization information after detecting the payment authorization information sent by the user terminal for the target document, and determine that the payment processing of the target document is completed if the verification is passed.
In one embodiment, when the resource processing includes payment processing, the business server may determine that the target document payment processing is complete upon detecting a payment result for the target document, such as a result of a successful payment or a result of a completed payment.
S202, after receiving the message sent by the service server, the message management server counts the number of messages to be forwarded according to the message.
S203, the message management server determines a thread for sending the message according to the number of the messages to be forwarded, and sends the message to the service processing server through the thread.
The message management server may, after receiving the message sent by the service server, take the message as a message to be forwarded, count the number of messages to be forwarded to determine a thread for sending the message, and send the message to the service processing server through the thread. By adopting the process, the reliable transmission of the message can be ensured.
For example, suppose the message is message 1, and the number of existing messages to be forwarded by the service processing server is l. After receiving the message 1 sent by the service server, the message management server also takes the message 1 as a message to be forwarded, then counts the number of the messages to be forwarded as (l +1) to determine a thread for forwarding the message 1, and can send the message 1 to the service processing server through the thread.
In one embodiment, the determining, by the message management server, the thread for sending the message according to the number of the messages to be forwarded may include: and if the number of the messages to be forwarded is larger than or equal to the first number, the message management server creates a new thread and determines the new thread as the thread for sending the messages. By adopting the process, the sending rate of the message can be accelerated. For example, the message is message 1, the number of messages to be forwarded is 1, and the first number is m,. If 1 > m, the message management server creates a new thread and determines this new thread as the thread to send message 1.
In one embodiment, the first number may be a preset number threshold. In one embodiment, the first number may be the number of messages that the second number of threads run by the message management server are also capable of processing. In one embodiment, the number of messages that can also be processed by the second number of threads run by the message management server may be the sum of the number of messages that can also be processed by each thread of the second number of threads, or may be the number of messages that can also be processed by each thread of the second number of threads.
In one embodiment, the message management server may determine the number of created new threads according to the number of messages to be forwarded, and when the number of new threads is multiple, one of the new threads may be determined as a thread for sending the message.
In one embodiment, the determining, by the message management server, the thread for sending the message according to the number of the messages to be forwarded may further include: and if the number of the messages to be forwarded is smaller than the first number, the message management server determines a target thread in the second number of running threads as a thread for sending the messages. The process can reuse the existing threads, and avoids the loss of the message server caused by frequently creating the threads. For example, the message is message 1, the number of messages to be forwarded is 1, the first number is m, and the second number is n. If 1 < m, the message management server determines the target thread of the n threads of operation as the thread for sending message 1.
In one embodiment, the target thread includes, but is not limited to, being obtained by any of the following: random selection mode, polling selection mode, and selection mode according to thread weight. Accordingly, the target thread may refer to a randomly selected thread, or to a thread that is polled for selection, or to a thread that is selected by thread weight. In one embodiment, the thread weight may be determined based on the number of messages that the thread is also capable of processing, with the greater the number of messages that are also capable of processing, the greater the weight of the thread. It should be noted that the target thread may also adopt other determination manners, and the determination manner of the target thread is not limited in this embodiment. It is emphasized that the document information may also be stored in a node of a block chain in order to further ensure the privacy and security of the document information.
And S204, after receiving the message sent by the message management server, the service processing server analyzes the message to obtain the bill information of the target bill and processes the service according to the bill information of the target bill.
In the embodiment of the application, the business processing server can obtain the bill information of the target bill according to the message analysis after receiving the message sent by the message management server, and process the bill information according to the bill information of the target bill. In addition, the embodiment of the application also solves the problem that the working pressure of the business processing server is high due to the fact that a large amount of document information is acquired at one time in the prior art, and the embodiment of the application can reduce the risk of downtime of the business processing server and save resource loss of the business processing server.
In an embodiment, the process of the business processing server analyzing the document information of the target document according to the message may be as follows: and the service processing server analyzes the message queue message body with the specified format included in the message according to the specified format to obtain the bill information of the target bill.
In an embodiment, the process that the business processing server performs business processing according to the document information of the target document may call a preset library-splitting table script for the business processing server to perform library-splitting table-splitting processing on the document information of the target document. In one embodiment, the sublist script may be a script written using a distributed microservice database access framework, such as a Sharding-JDBC or Sharding-Sphere framework. In one embodiment, the distributed microservice database access framework may also be referred to as a database access layer microservice framework, or the like.
In an embodiment, the process that the service processing server calls a preset sub-base sub-table script to perform sub-base sub-table processing on the document information of the target document may be to call the preset sub-base sub-table script for the service processing server to generate a database table including the document information of the target document, and call the sub-base sub-table script to perform sub-base sub-table processing on the database table including the document information of the target document. The process of the database-dividing and table-dividing process may include dividing the database table into a plurality of databases and/or dividing the database table into a plurality of database tables, and so on.
In an embodiment, the process of performing, by the business processing server, business processing according to the document information of the target document may be to query, for the business processing server, a processing rule for the document information of the target document, and perform business processing on the document information of the target document according to the processing rule for the document information of the target document. In an embodiment, the business processing server may determine, according to the type of the target document and a correspondence between a preset type and a processing rule, at least one processing rule corresponding to the type of the target document as a processing rule for document information of the target document. Or, the business processing server may further determine, according to the document information of the target document and the correspondence between the preset document information and the processing rule, at least one processing rule corresponding to the document information of the target document as a processing rule for the document information of the target document.
In an embodiment, the process of performing, by the business processing server, business processing according to the document information of the target document may be that if it is determined that the processing rule of the document information of the target document includes a settlement rule, the business processing server performs settlement processing according to the settlement rule and the document information of the target document.
For example, the settlement rule includes an electronic resource settlement rule for a resource operator, and the business processing server may perform electronic resource settlement processing for the resource operator corresponding to the document information of the target document according to the electronic resource settlement rule for the resource operator included in the settlement rule. If so, the business processing server transfers the electronic resource which is corresponding to the bill information of the target bill and is to be distributed to the resource operator into the account corresponding to the resource operator.
In one embodiment, the processing rule of the business processing server for the document information of the target document may further include at least one of the following: data cleaning rules, account checking rules, document splitting rules and clearing rules. The business processing server can be a clearing server. It should be noted that the processing rule of the business processing server for the document information of the target document may further include other processing rules, which is not described in detail herein.
In one embodiment, the business processing server can also perform the sub-base and sub-table processing according to the document information of the target document and the processing rule of the target document. Or, the business processing server can also read the document information of the target document and the processing rule of the document information of the target document from the database, and perform business processing on the document information of the target document according to the processing rule, if the processing rule of the document information of the target document is determined to include the settlement rule, perform settlement processing according to the settlement rule and the document information of the target document.
In an embodiment, each processing rule in the processing rules for the document information of the target document may correspond to a method group, the method group may include at least one function, and the business processing server may perform business processing according to the function and the document information of the target document.
In one embodiment, the service processing server may further output a processing report through the terminal device after performing the service processing, so that the processing report can be conveniently viewed by relevant personnel. In one embodiment, the process report may include process result information.
In the embodiment shown in fig. 2, when the business server detects that the processing of the target document resource is completed, the business server may generate a message according to the document information of the target document, and send the message to the message management server, so that the message management server may count the number of messages to be forwarded according to the message after receiving the message, determine a thread for sending the message according to the number of the messages to be forwarded, and send the message to the business processing server through the thread, so that the business processing server obtains the document information of the target document according to the message analysis after receiving the message, performs business processing according to the document information of the target document, and improves the processing efficiency of the document information.
Please refer to fig. 3, which is a flowchart illustrating another document processing method according to an embodiment of the present application. The method is applied to a bill processing system, and the bill processing system can comprise a business server, a message management server and a business processing server. Compared with the embodiment of fig. 2, the embodiment of the present application introduces an emergency situation of document processing at the service server to consider whether to generate a message immediately for sending to the message management server.
Specifically, the method may include:
s301, when detecting that the processing of the target bill resource is completed, the business server determines the processing level of the target bill according to the bill information of the target bill.
The business server can determine the processing level of the target document according to the preset level determination rule and the document information of the target document. Wherein the preset level determination rule may include any one of: the rules are set according to the bill types, the rules are set according to the bill information, the rules are set according to the processing level labels, and the rules are set according to the priority processing bill lists. The rules set according to the document information may include rules set according to resource information included in the document information or resource operator information.
In an embodiment, the preset level determination rule includes a rule set according to a document type, and the process of the business server determining the processing level of the target document according to the preset level determination rule and the document information of the target document may be as follows: and the business server determines the bill type of the target bill according to the bill information of the target bill, and determines the processing level corresponding to the bill type of the target bill as the processing level of the target bill according to the corresponding relation between the bill type and the processing level.
In one embodiment, the preset level determination rule includes a rule set according to document information, the rule set according to the document information includes a rule set according to resource information, and when the document information of the target document includes the resource information, the process of the business server determining the processing level of the target document according to the preset level determination rule and the document information of the target document may be as follows: the business server can determine the bill type of the target bill according to the resource information included in the bill information of the target bill, and determine the processing level corresponding to the bill type of the target bill as the processing level of the target bill according to the corresponding relation between the bill type and the processing level.
In one embodiment, the preset level determination rule includes a rule set according to document information, and the rule set according to the document information includes a rule set according to resource operator information, and when the document information of the target document includes the resource operator information, the process of the business server determining the processing level of the target document according to the preset level determination rule and the document information of the target document may be as follows: the business server can determine the processing level corresponding to the resource operator information included in the bill information of the target bill as the processing level of the target bill according to the corresponding relation between the resource operator information and the processing level.
In one embodiment, the document information of the target document may include resource operator information, which may include identification information of the resource operator, and the service server may determine, according to a correspondence between the identification information of the resource operator and the processing level, a processing level corresponding to the identification information of the resource operator included in the target document as the processing level for the target document. The identification information of the resource operator may refer to information, such as a name, for uniquely identifying the resource operator.
In one embodiment, the document information of the target document includes the resource operator information, which may include a level of the resource operator, and the service server may determine, according to a correspondence between the level of the resource operator and the processing level, a processing level corresponding to the level of the resource operator included in the target document as the processing level for the target document. The higher the level, the more urgent is the processing level indication.
In an embodiment, the preset level determination rule includes a rule set according to the processing level tag, and when the document information of the target document carries the processing level tag, the process of the business server determining the processing level of the target document according to the preset level determination rule and the document information of the target document may be as follows: the business server can determine the processing level of the target document according to the processing level label carried by the document information of the target document. The processing level label indicates the level of processing of the target document.
In an embodiment, the preset level determination rule includes a rule set according to a prioritized document list, and the process of the business server determining the processing level of the target document according to the preset level determination rule and the document information of the target document may be as follows: the business server inquires whether the priority processing bill list comprises information (such as resource information or resource operator information) in the bill information of the target bill; and if the priority processing bill list comprises the information in the bill information of the target bill, the business server determines that the processing level of the target bill is urgent.
In one embodiment, the business processing server obtains the priority processing document list, generates a target message according to the priority processing document list and sends the target message to the message management server, and therefore the message management server forwards the target message to the business server. The business server can receive the target message and analyze the target message to obtain a priority processing bill list.
S302, if the processing level is urgent, the business server generates a message according to the bill information of the target bill and sends the message to the message management server.
In the embodiment of the application, in order to process the more important document in time, the business server can generate a message according to the document information of the target document when the processor level is emergency, and send the message to the message management server. For a means for generating a message according to the document information of the target document, refer to the embodiment in fig. 2, which is not described herein again in this embodiment of the present application.
In one embodiment, if the processing level is not urgent, the service server performs the step of generating a message according to the document information of the target document when the processing time indicated by the processing level is reached. That is, when the processing level is not urgent, the service server may generate a message according to the document information of the target document after a certain time interval. The processing time may be a time point or a time period.
And S303, after receiving the message sent by the service server, the message management server counts the number of messages to be forwarded according to the message.
S304, the message management server determines a thread for sending the message according to the number of the messages to be forwarded, and sends the message to the service processing server through the thread.
S305, after receiving the message sent by the message management server, the service processing server analyzes the message to obtain the bill information of the target bill, and performs service processing according to the bill information of the target bill.
Steps S303 to S305 can refer to steps S202 to S204 in the embodiment of fig. 2, which is not described herein again in this embodiment of the present application.
In one embodiment, before the message management server determines a thread for sending the message according to the number of the messages to be forwarded and sends the message to the service processing server through the thread, the message management server may further generate a notification message for notifying the message management server of message update; and the service processing server sends a message acquisition request to the message management server after receiving the notification message sent by the message management server, so that the message management server executes the step of determining a thread for sending the message according to the number of the messages to be forwarded after receiving the message acquisition request sent by the service processing server, and sending the message to the service processing server through the thread. Wherein, the message acquisition request is used for requesting the service server to send the message. By adopting the process, the service processing server can control the receiving process of the message, so that the message can be received more flexibly.
In one embodiment, the traffic processing server may run a designated message listening service. The specified message listening queue may refer to a message listening service for the message management server. The service processing server can analyze the received message sent by the message management server to obtain the bill information of the target bill according to the message, monitor the message sent by the message management server through the designated message queue monitoring service before performing service processing according to the bill information of the target bill, and receive the message sent by the message management server when the message sent by the message management server is monitored through the designated message queue monitoring service. By designating the message queue monitoring service, the message sent by the message management server can be monitored in time, so that the condition of wrong receiving or missed receiving of the message is avoided.
In one embodiment, the service processing server may also receive the notification message sent by the message management server when monitoring the notification message sent by the message management server through the designated message queue.
In the embodiment shown in fig. 3, when the business server detects that the processing of the target document resource is completed, the business server determines the processing level of the target document according to the document information of the target document, and when the processing level is urgent, generates a message according to the document information of the target document, and sends the message to the message management server, so that the message management server sends the message to the business processing server for business processing.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
Please refer to fig. 4, which is a schematic structural diagram of a server according to an embodiment of the present disclosure. The server referred to in fig. 4 may be a document processing system including a business server, a message management server, or a business processing server. The server described in this embodiment may include: a processor 1000, an input device 2000, an output device 3000, and a memory 4000. The processor 1000, the input device 2000, the output device 3000, and the memory 4000 may be connected by a bus or other means. In one embodiment, the input device 2000 is an optional device. In one embodiment, input device 2000 and output device 3000 may be standard wired or wireless communication interfaces.
The Processor 1000 may be a Central Processing Unit (CPU), and may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 4000 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 4000 is used to store a set of program codes (i.e., computer programs, which may include program instructions), and the processor 1000, the input device 2000, and the output device 3000 may call the program codes stored in the memory 4000. Specifically, the method comprises the following steps:
when the server shown in fig. 4 is a service server, the processor 1000 is configured to call the program code to perform the operations performed by the service server in the embodiments of fig. 2 and 3.
When the server shown in fig. 4 is a message management server, the processor 1000 is configured to call the program code to perform the operations performed by the message management server in the embodiments of fig. 2 and 3.
When the server shown in fig. 4 is a service processing server, the processor 1000 is configured to call the program code to perform the operations performed by the service processing server in the embodiments of fig. 2 and 3.
The functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of sampling hardware, and can also be realized in a form of sampling software functional units.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the above embodiments of the methods. The computer readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A bill processing method is characterized in that the method is applied to a bill processing system, the bill processing system comprises a business server, a message management server and a business processing server, and the method comprises the following steps:
when detecting that the target bill resource is processed, the business server generates a message according to the bill information of the target bill and sends the message to the message management server; the message is used for indicating the bill information of the target bill;
after receiving the message sent by the service server, the message management server counts the number of messages to be forwarded according to the message;
the message management server determines a thread for sending the message according to the number of the messages to be forwarded, and sends the message to the service processing server through the thread;
and after receiving the message sent by the message management server, the service processing server analyzes the message to obtain the bill information of the target bill and processes the service according to the bill information of the target bill.
2. The method according to claim 1, wherein the document information is stored in a block chain, and the business server generates a message according to the document information of the target document, comprising:
the business server builds a message queue message body in a specified format according to the receipt information of the target receipt by calling a preset software development kit;
and the service server generates a message comprising the message queue message body with the specified format.
3. The method according to claim 1 or 2, wherein the determining, by the message management server, the thread for sending the message according to the number of the messages to be forwarded comprises:
if the number of the messages to be forwarded is larger than or equal to a first number, the message management server creates a new thread and determines the new thread as a thread for sending the messages; wherein the first number is the number of messages that can be processed by a second number of threads run by the message management server;
and if the number of the messages to be forwarded is smaller than the first number, the message management server determines a target thread in the second number of running threads as a thread for sending the messages.
4. The method according to claim 1, wherein before the message management server determines a thread for sending the message according to the number of messages to be forwarded and sends the message to the service processing server through the thread, the method further comprises:
the message management server generates a notification message and sends the notification message to the service processing server, wherein the notification message is used for notifying the message management server of message update;
after receiving the notification message sent by the message management server, the service processing server sends a message acquisition request to the message management server;
and the message management server executes the steps of determining the thread for sending the message according to the number of the messages to be forwarded after receiving the message acquisition request sent by the service processing server, and sending the message to the service processing server through the thread.
5. The method of claim 1, wherein before the business server generates the message according to the document information of the target document, the method further comprises:
the business server determines the processing level of the target bill according to the bill information of the target bill;
if the processing level is urgent, the business server executes a step of generating a message according to the bill information of the target bill;
and if the processing level is not urgent, the business server executes a step of generating a message according to the bill information of the target bill when the processing time indicated by the processing level is reached.
6. The method of claim 5, wherein the determining, by the business server, the processing level for the target document based on the document information for the target document comprises:
the business server inquires whether a priority processing bill list comprises information in the bill information of the target bill;
and if the priority processing bill list comprises the information in the bill information of the target bill, the business server determines that the processing level of the target bill is urgent.
7. The method according to claim 1, wherein after receiving the message sent by the message management server, the service processing server obtains document information of the target document by parsing according to the message, and before performing service processing according to the document information of the target document, the method further comprises:
the business processing server monitors the message sent by the message management server through a specified message queue monitoring service;
and the service processing server receives the message sent by the message management server when monitoring the message sent by the message management server through a specified message queue monitoring service.
8. The method according to claim 1 or 7, wherein the business processing server performs business processing according to the document information of the target document, and comprises:
the business processing server calls a preset database sub-table script to generate a database table comprising the receipt information of the target receipt;
and the business processing server calls the database sub-table script to perform database sub-table processing on the database table comprising the receipt information of the target receipt.
9. A server, characterized in that the server comprises a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, the memory storing a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform operations performed by the service server in any of claims 1 or 2 or 5 or 6, or to perform operations performed by the message management server in any of claims 1 or 3 or 4, or to perform operations performed by the service processing server in any of claims 1 or 4 or 7 or 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the method according to any one of claims 1-8.
CN202010481784.XA 2020-05-29 2020-05-29 Receipt processing method, server and computer readable storage medium Pending CN111652681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010481784.XA CN111652681A (en) 2020-05-29 2020-05-29 Receipt processing method, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010481784.XA CN111652681A (en) 2020-05-29 2020-05-29 Receipt processing method, server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111652681A true CN111652681A (en) 2020-09-11

Family

ID=72344634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010481784.XA Pending CN111652681A (en) 2020-05-29 2020-05-29 Receipt processing method, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111652681A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347099A (en) * 2020-10-27 2021-02-09 口碑(上海)信息技术有限公司 Data processing method and device, computing equipment and computer readable storage medium
CN112910988A (en) * 2021-01-28 2021-06-04 网宿科技股份有限公司 Resource acquisition method and resource scheduling device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306277A (en) * 2015-11-19 2016-02-03 中国建设银行股份有限公司 Message scheduling method and message scheduling device for message queues
CN105991407A (en) * 2015-02-12 2016-10-05 腾讯科技(深圳)有限公司 Message processing method, message processing device and processing server
CN107705179A (en) * 2017-10-10 2018-02-16 掌合天下(北京)信息技术有限公司 Order management method and device
CN109472577A (en) * 2018-09-26 2019-03-15 中国平安人寿保险股份有限公司 Account keeps accounts method, apparatus, computer equipment and storage medium
CN109936593A (en) * 2017-12-15 2019-06-25 网宿科技股份有限公司 A kind of method and system of message distribution

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991407A (en) * 2015-02-12 2016-10-05 腾讯科技(深圳)有限公司 Message processing method, message processing device and processing server
CN105306277A (en) * 2015-11-19 2016-02-03 中国建设银行股份有限公司 Message scheduling method and message scheduling device for message queues
CN107705179A (en) * 2017-10-10 2018-02-16 掌合天下(北京)信息技术有限公司 Order management method and device
CN109936593A (en) * 2017-12-15 2019-06-25 网宿科技股份有限公司 A kind of method and system of message distribution
CN109472577A (en) * 2018-09-26 2019-03-15 中国平安人寿保险股份有限公司 Account keeps accounts method, apparatus, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112347099A (en) * 2020-10-27 2021-02-09 口碑(上海)信息技术有限公司 Data processing method and device, computing equipment and computer readable storage medium
CN112910988A (en) * 2021-01-28 2021-06-04 网宿科技股份有限公司 Resource acquisition method and resource scheduling device

Similar Documents

Publication Publication Date Title
US11681697B2 (en) Method and device for interface operation and maintenance
CN108960691B (en) Method and device for determining article stock for server system
US9521104B2 (en) Outgoing communications inventory
KR100905353B1 (en) Trading system
US7610172B2 (en) Method and system for monitoring non-occurring events
CN111835467B (en) Message sending method, device, computer equipment and storage medium
CN110895472A (en) Method and device for identifying service change
CN111325501B (en) Logistics state management method, device, equipment and storage medium
CN110705893B (en) Service node management method, device, equipment and storage medium
CN111652681A (en) Receipt processing method, server and computer readable storage medium
CN111475369A (en) Log monitoring adding method and device, computer equipment and storage medium
CN114090366A (en) Method, device and system for monitoring data
CN101075969B (en) Method, apparatus and system for controlling data transmission
CN111880948A (en) Data refreshing method and device, electronic equipment and computer readable storage medium
CN110267215B (en) Data detection method, equipment and storage medium
CN112860504A (en) Monitoring method and device, computer storage medium and electronic equipment
CN114205322A (en) Message sending method and device, electronic equipment and storage medium
CN110955581A (en) Online software abnormity warning method and device, electronic equipment and storage medium
CN112015815B (en) Data synchronization method, device and computer readable storage medium
CN111901224A (en) Method, device and equipment for loading delayed messages and computer readable storage medium
CN104486047B (en) Self-aided terminal monitoring method, device and system
CN114201466B (en) Anti-cache breakdown method, device, equipment and readable storage medium
CN112445597B (en) Timing task scheduling method and device
CN111539665B (en) Mail monitoring method, device, equipment and storage medium
CN113141280B (en) Inspection method of electronic price tag system, server and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20220525

Address after: 518000 China Aviation Center 2901, No. 1018, Huafu Road, Huahang community, Huaqiang North Street, Futian District, Shenzhen, Guangdong Province

Applicant after: Shenzhen Ping An medical and Health Technology Service Co.,Ltd.

Address before: Room 12G, Area H, 666 Beijing East Road, Huangpu District, Shanghai 200001

Applicant before: PING AN MEDICAL AND HEALTHCARE MANAGEMENT Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20200911

RJ01 Rejection of invention patent application after publication