CN111626878A - Order processing method and device, electronic equipment and storage medium - Google Patents

Order processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111626878A
CN111626878A CN202010466022.2A CN202010466022A CN111626878A CN 111626878 A CN111626878 A CN 111626878A CN 202010466022 A CN202010466022 A CN 202010466022A CN 111626878 A CN111626878 A CN 111626878A
Authority
CN
China
Prior art keywords
order
order processing
interface
service interface
party server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010466022.2A
Other languages
Chinese (zh)
Other versions
CN111626878B (en
Inventor
刘琳琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taikang Insurance Group Co Ltd
Taikang Pension Insurance Co Ltd
Original Assignee
Taikang Insurance Group Co Ltd
Taikang Pension Insurance 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 Taikang Insurance Group Co Ltd, Taikang Pension Insurance Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN202010466022.2A priority Critical patent/CN111626878B/en
Publication of CN111626878A publication Critical patent/CN111626878A/en
Application granted granted Critical
Publication of CN111626878B publication Critical patent/CN111626878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance
    • 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/0613Third-party assisted
    • 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 provides an order processing method, an order processing device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving an order processing request, wherein the order processing request comprises an identifier of a third-party server; according to the identification of the third-party server, if the fact that a mapping rule is configured for the third-party server in advance is determined, according to the mapping rule, an order processing flow of the third-party server is mapped into a target order processing flow, and the target order processing flow is an order processing flow in an order processing device; processing the order according to the target order processing flow to obtain an order processing result; and sending the processing result of the order to a third-party server. According to the order processing method and device, the processing flow of the third-party server to the order is mapped to the processing flow of the third-party server to the order, the problem that codes need to be written aiming at the order processing flow of the third-party server in advance is solved, and the order output efficiency is improved.

Description

Order processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data technologies, and in particular, to an order processing method and apparatus, an electronic device, and a storage medium.
Background
Currently, users can purchase insurance products on third party platforms in addition to insurance products in an insurance sales platform. After the user places an order on the third-party platform, the third-party platform is in butt joint with the insurance sales platform, and the insurance sales platform performs order output according to the order output flow of the third-party platform and then feeds back the order output to the third-party platform so as to complete the order output of the third-party platform.
In the prior art, in order to enable a third-party platform to smoothly issue an order, an output flow of the third-party platform needs to be stored in an insurance sales platform in advance, that is, a code needs to be written in advance according to the output flow of the third-party platform and stored in the insurance sales platform. And when the insurance sales platform executes the export flow of the third-party platform, calling the code corresponding to the third-party platform to execute. However, when there are many third-party platforms, technicians need to write codes for each third-party platform, and the code development cycle is long, thereby affecting the order-issuing efficiency of the third-party platforms.
Disclosure of Invention
The application provides an order processing method, an order processing device, electronic equipment and a storage medium, and the order output efficiency is improved.
A first aspect of the present application provides an order processing method, including:
receiving an order processing request, wherein the order processing request comprises an identifier of a third-party server;
according to the identifier of the third-party server, if it is determined that a mapping rule is configured for the third-party server in advance, mapping an order processing flow of the third-party server into a target order processing flow according to the mapping rule, wherein the target order processing flow is an order processing flow in the order processing device;
processing the order according to the target order processing flow to obtain an order processing result;
and sending the processing result of the order to the third-party server.
Optionally, the processing module is further configured to determine a type of the order according to the order processing request; and determining an order processing flow of the third-party server according to the type of the order.
Optionally, the order processing flow of the third-party server is as follows: calling a flow executed by a first service interface of the order processing device, wherein the target order processing flow is as follows: calling a flow executed by a second service interface of the order processing device, wherein the mapping rule is as follows: the first service interface is an interface which is adapted to the order processing flow setting of the third-party server, and the second service interface is an interface which is adapted to the order processing flow setting of the order processing device;
the order request includes an identifier of the first service interface, and the mapping of the order processing flow of the third-party server to the target order processing flow according to the mapping rule includes: mapping the first service interface to the second service interface according to the interface mapping rule and the identifier of the first service interface;
the processing the order according to the target order processing flow comprises the following steps: and calling the second service interface to process the order.
Optionally, the mapping the first service interface to the second service interface according to the interface mapping rule and the identifier of the first service interface includes: determining a second service interface mapped by the first service interface according to the interface mapping rule and the identifier of the first service interface; and converting the message identified by the first service interface into the message identified by the second service interface.
Optionally, the processing module is further configured to determine, if it is determined that there are multiple second service interfaces mapped by the first service interface according to the interface mapping rule and the identifier of the first service interface, the second service interface mapped by the first service interface among the multiple second service interfaces according to the service field of the first service interface.
Correspondingly, the processing module is specifically configured to invoke the second service interface mapped by the first service interface, process the order, and obtain a processing result of the order.
Optionally, the number of the first service interfaces is multiple, and the order processing request includes a calling sequence of the first service interfaces; the calling the second service interface to process the order includes: and sequentially calling the second service interfaces mapped by the first service interface according to the calling sequence of the first service interface, and processing the order.
Optionally, the method further includes: and processing the order according to a preset order processing flow if the third-party server is determined not to be configured with a mapping rule in advance according to the identifier of the third-party server.
Optionally, the order is an insurance order.
Optionally, the second service interface includes any one of the following: the system comprises a premium measuring and calculating interface, an insurance application service verification interface, an insurance application service submission interface, an order withdrawing interface, a premium account receiving interface and an order state updating interface.
A second aspect of the present application provides an order processing apparatus comprising:
and the receiving and sending module is used for receiving an order processing request, wherein the order processing request comprises an identifier of the third-party server.
The processing module is used for mapping an order processing flow of the third-party server into a target order processing flow according to the mapping rule if the mapping rule is determined to be configured for the third-party server in advance according to the identifier of the third-party server, and processing the order according to the target order processing flow to obtain a processing result of the order; the target order processing flow is an order processing flow in the order processing device;
the transceiver module is further configured to send the processing result of the order to the third-party server.
Optionally, the processing module is further configured to determine a type of the order according to the order processing request; and determining an order processing flow of the third-party server according to the type of the order.
Optionally, the order processing flow of the third-party server is as follows: calling a flow executed by a first service interface of the order processing device, wherein the target order processing flow is as follows: calling a flow executed by a second service interface of the order processing device, wherein the mapping rule is as follows: the first service interface is an interface adapted to the order processing flow setting of the third-party server, and the second service interface is an interface adapted to the order processing flow setting of the order processing device.
The order request includes an identifier of the first service interface, and the processing module is specifically configured to map the first service interface to the second service interface according to the interface mapping rule and the identifier of the first service interface, and call the second service interface to process the order.
Optionally, the processing module is specifically configured to determine, according to the interface mapping rule and the identifier of the first service interface, a second service interface mapped by the first service interface; and converting the message identified by the first service interface into the message identified by the second service interface.
Optionally, the processing module is further configured to determine, if it is determined that there are multiple second service interfaces mapped by the first service interface according to the interface mapping rule and the identifier of the first service interface, the second service interface mapped by the first service interface among the multiple second service interfaces according to the service field of the first service interface.
Correspondingly, the processing module is specifically configured to invoke the second service interface mapped by the first service interface to process the order.
Optionally, the number of the first service interfaces is multiple, and the order processing request includes a calling order of the first service interfaces.
The processing module is specifically configured to sequentially call the second service interfaces mapped by the first service interface according to a call sequence of the first service interface, and process the order.
Optionally, the processing module is further configured to process the order according to a preset order processing flow if it is determined that the mapping rule is not configured in advance for the third-party server according to the identifier of the third-party server.
Optionally, the order is an insurance order.
Optionally, the second service interface includes any one of the following: the system comprises a premium measuring and calculating interface, an insurance application service verification interface, an insurance application service submission interface, an order withdrawing interface, a premium account receiving interface and an order state updating interface.
A third aspect of the present application provides an electronic device comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored in the memory, so that the electronic equipment executes the order processing method.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon computer-executable instructions, which, when executed by a processor, implement the above-mentioned order processing method.
The application provides an order processing method, an order processing device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving an order processing request, wherein the order processing request comprises an identifier of a third-party server; according to the identification of the third-party server, if the fact that a mapping rule is configured for the third-party server in advance is determined, according to the mapping rule, an order processing flow of the third-party server is mapped into a target order processing flow, and the target order processing flow is an order processing flow in an order processing device; processing the order according to the target order processing flow; and sending the processing result of the order to a third-party server. According to the order processing method and device, the processing flow of the third-party server to the order is mapped to the processing flow of the third-party server to the order, the problem that codes are written aiming at the order processing flow of the third-party server in advance is solved, and the order output efficiency is improved.
Drawings
Fig. 1 is a schematic view of a scenario in which the order processing method provided in the present application is applicable;
FIG. 2 is a first flowchart illustrating an order processing method according to the present application;
FIG. 3 is a second flowchart illustrating an order processing method according to the present application;
fig. 4 is a third schematic flowchart of an order processing method provided in the present application;
FIG. 5 is a schematic structural diagram of an order processing apparatus provided in the present application;
fig. 6 is a schematic structural diagram of an electronic device provided in the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the embodiments of the present application, and it is obvious that the described embodiments are some but not all of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
With the development of network information technology, more and more users shop on the network, such as purchasing clothes, food, insurance, etc. Taking endowment insurance as an example, insurance products such as endowment personal health insurance, endowment insurance, tax-delayed endowment insurance, tax-optimized health insurance and the like can be sold on an insurance sales platform (such as an endowment mall of a company). With the rapid development of the endowment insurance business, products of endowment insurance can be sold in a multi-channel and platform, and the multi-channel and platform are taken as a third-party platform for example in the application for explanation.
The order processing method is used for purchasing products of endowment insurance on a third-party platform, and the order processing is divided into two processing modes. One mode is: when a user purchases products of endowment insurance on the third-party platform, the third-party platform jumps to the insurance sales platform to complete a purchase process, namely a processing process of an order. In order to improve the user experience and improve the order issuing rate, the other mode is improved on the basis of the one mode, the user can directly purchase products of endowment insurance on a third-party platform, and the third-party platform and the insurance sales platform are in butt joint on the system level so as to complete the order issuing. It should be understood that the order issuing in this application refers to the process of completing the purchase, renewal, modification information, etc. of the order.
In another mode, the order processing flow of the third-party platform needs to be stored in the insurance sales platform in advance, specifically, a code corresponding to the export flow of the third-party platform is stored in the insurance sales platform in advance, and when the insurance sales platform executes the export flow of the third-party platform, the code corresponding to the third-party platform is called to execute.
However, with the increase of the third party platforms, the order processing flow of each third party platform is different, so that a corresponding code needs to be written for each third party platform in the insurance sales platform. Therefore, the development period is long, and the order output efficiency of the third-party platform is affected.
In order to solve the problems in the prior art, the application provides an order processing method, which considers that the operations involved in the order processing flow of some third-party platforms are the same as the operations involved in the order processing flow of the insurance sales platform, but the execution sequence is different. Therefore, the order processing flows of the third-party platforms are converted into the order processing flows of the insurance sales platform, corresponding codes do not need to be written for the third-party platforms, and the order output efficiency of the third-party platforms is improved.
It should be noted that the order processing method provided by the present application can be applied not only to the issue of insurance but also to the issue of other goods, such as clothes, food or electronic products.
Fig. 1 is a schematic view of a scene to which the order processing method provided by the present application is applied. As shown in fig. 1, the scenario may include: a third party server and an order processing device. The third-party server may be a server corresponding to other sales platforms. The order processing device in the application can be electronic equipment such as a server and terminal equipment, and can be in wireless connection with a third-party server. It should be understood that the third party server described herein may be the third party platform described above or an electronic device in the third party platform.
The terminal device in the present application may include, but is not limited to, a mobile terminal device or a fixed terminal device. The mobile terminal devices include, but are not limited to, a mobile phone, a Personal Digital Assistant (PDA), a tablet computer, a portable device (e.g., a portable computer, a pocket computer, or a handheld computer), and the like. Fixed terminals include, but are not limited to, desktop computers and the like.
The order processing method provided by the present application is described below with reference to specific embodiments. Fig. 2 is a first flowchart illustrating an order processing method provided in the present application. The execution entity of the method flow shown in fig. 2 may be an order processing device, which may be implemented by any software and/or hardware. As shown in fig. 2, the order processing method provided in this embodiment may include:
s201, receiving an order processing request, wherein the order processing request comprises an identifier of a third-party server.
In this embodiment, the user may purchase a product on a platform corresponding to the third-party server to trigger the third-party server to send an order processing request to the order processing device. The order processing request may include an identifier of the third-party server. Alternatively, the identification of the third party server may be an IP address, a Media Access Control (MAC) address, or a server ID of the third party server.
Optionally, if there are multiple types of orders, the order processing request may further include the types of orders. The type of the order may be: purchase orders, return orders, etc.
And S202, according to the identifier of the third-party server, if the mapping rule is determined to be configured for the third-party server in advance, mapping the order processing flow of the third-party server into a target order processing flow according to the mapping rule, wherein the target order processing flow is the order processing flow in the order processing device.
It should be understood that the order processing apparatus in this embodiment may store a mapping relationship table in advance, where the mapping relationship table is used to characterize the identifier of the third-party server, and whether a relationship of a mapping rule is configured for the third-party server in advance. For example, the mapping relationship table may be as shown in the following table one:
watch 1
Identification of third party servers Mapping rules
A a
B b
C Is free of
As can be seen from the above table, the order processing device configures the mapping rules for the third-party server a and the third-party server B in advance, and does not configure the mapping rules for the third-party server C. It should be understood that the mapping rule refers to a mapping rule between an order processing flow of the third-party server and a target order processing flow in the order processing apparatus.
In this embodiment, it may be determined whether the order processing apparatus is configured with the mapping rule for the third-party server in advance according to the identifier of the server in the order processing request and the first table. If the mapping rule is determined to be configured for the third-party server in advance, the order processing flow of the third-party server is mapped into the target order processing flow according to the mapping rule. It should be understood that the target order processing flow is an order processing flow in an order processing apparatus.
For example, if the identifier of the third-party server is a, in this embodiment, the order processing flow of the third-party server a may be mapped to the target order processing flow in the order processing device according to a. The following table two exemplarily shows the mapping rule a of the third-party server a:
watch two
Figure BDA0002512681330000071
Figure BDA0002512681330000081
As shown in table two above, the order processing flow of the third-party server includes processing steps 1, 2, and 3, and according to the mapping rule a, it can be determined that step 1 of the third-party server can be mapped to step 1' in the order processing flow of the order processing device, step 2 can be mapped to step 2' in the order processing flow of the order processing device, and step 3 can be mapped to step 3' in the order processing flow of the order processing device. Therefore, the order processing flow of the third-party server may be mapped to the order processing flow in the order processing device according to the mapping rule a, where the mapped order processing flows 1', 2', and 3' in the order processing device are the target order processing flows in this embodiment.
It should be understood that the processing flow for different types of orders may be different for the same third-party server, but the mapping rules are the same for the same third-party server. In this embodiment, the type of the order may be determined according to the order processing request, and then the order processing flow of the third-party server may be determined according to the type of the order. After the order processing flow of the third-party server is determined, different order processing flows in the third-party server can be mapped to the order processing flow of the order processing device according to the same mapping rule.
For example, if the order is an order in the insurance category, the type of the order may be an order for personal health insurance, endowment insurance, tax-extended endowment insurance, tax-optimized health insurance, or the like. Optionally, formats of different types of orders are different, and the type of the order may be determined according to the format of the order in this embodiment.
Optionally, according to the identifier of the third-party server, if it is determined that the mapping rule is not configured in advance for the third-party server, the order is processed according to a preset order processing flow. It should be understood that the preset order processing flow is a flow for processing an order in the order processing apparatus.
And S203, processing the order according to the target order processing flow to obtain the order processing result.
In this embodiment, after the order processing flow of the third-party server is mapped to the target order processing flow, since the target order processing flow is the own order processing flow, the order may be processed according to the target order processing flow.
For example, as described above, in the present embodiment, orders may be processed sequentially according to the order processing flows 1', 2' and 3 '.
And S204, sending the processing result of the order to a third-party server.
In this embodiment, after the order is processed according to the target order processing flow, a processing result of the order can be obtained. For example, if the order is an order to purchase a product, the processing result of the order may be "purchase success".
It should be appreciated that the processing results of the order may be sent to a third party server to enable the user to obtain the processing results of the order.
The order processing apparatus provided in this embodiment includes: receiving an order processing request, wherein the order processing request comprises an identifier of a third-party server; according to the identification of the third-party server, if the fact that a mapping rule is configured for the third-party server in advance is determined, according to the mapping rule, an order processing flow of the third-party server is mapped into a target order processing flow, and the target order processing flow is an order processing flow in an order processing device; processing the order according to the target order processing flow to obtain an order processing result; and sending the processing result of the order to a third-party server. According to the order processing method and device, the order processing flow of the third-party server can be mapped into the order processing flow of the third-party server, so that the complex flow that codes need to be written for the order processing flow of the third-party server in advance is avoided, and the order output efficiency is improved.
On the basis of the above embodiment, in the prior art, the order processing flow of the third-party server can be actually realized by calling a dedicated interface set for the third-party server in the order processing device. Illustratively, as for the third-party server a, the third-party server executing step 1 is essentially realized by calling the service interface 1 provided on the order processing device. Therefore, in the prior art, the order processing apparatus writes corresponding codes for the order processing flow of the third server in advance, that is, sets a corresponding service interface for the order processing flow of the third server, and executes the codes stored in the server interface, thereby reducing the order output efficiency.
Therefore, in the following embodiments, the "order processing flow of the third-party server" is: calling a first service interface execution flow of the order processing device, wherein the target order processing flow is as follows: calling a flow executed by a second service interface of the order processing device, wherein the mapping rule is as follows: the interface mapping rule of the first service interface and the second service interface is explained.
The first service interface in this embodiment is an interface adapted to an order processing flow setting of the third-party server. It should be noted that, unlike the preconfigured interface in the prior art, the first service interface does not store the code corresponding to the order processing flow of the third-party server in advance, but maps to the second service interface in the order processing apparatus when the third-party server calls the first service interface, so as to execute the order processing flow corresponding to the second service interface. In view of the fact that the second service interface is an interface adapted to the order processing flow of the order processing apparatus, in this embodiment, the first service interface may be preset to be mapped to the second service interface of the order processing apparatus instead of writing a corresponding code for the order processing flow of the third-party server in advance, so as to execute the order processing flow of the order processing apparatus, thereby improving the order output efficiency.
In this scenario, the order processing method provided in the present application is further described with reference to fig. 3. Fig. 3 is a flowchart illustrating a second order processing method provided by the present application. As shown in fig. 3, the order processing method provided in this embodiment may include:
s301, receiving an order processing request, wherein the order processing request comprises an identifier of a third-party server and an identifier of a first service interface.
Different from the foregoing embodiment, the order processing request in this embodiment further includes an identifier of the first service interface. It should be understood that the order processing apparatus has previously acquired the order processing step (or order processing flow) corresponding to each first service interface, and has previously set the interface mapping rule according to the order processing step (or order processing flow) corresponding to each second service interface. The interface mapping rule maps a first service interface and a second service interface of order processing steps with the same function or similar functions.
Since each first service interface is used to characterize a different processing step or flow for the order, the order processing step or flow of the third-party server can be determined by adding the identity of the first service interface to the order processing request.
Illustratively, table three is a corresponding relationship between the identifier of the first service interface and the order processing flow of the third-party server:
watch III
Figure BDA0002512681330000101
According to the third table, step 1 in the order processing flow of the third-party server can be executed by calling the first service interface a-a. Correspondingly, the step 2 in the order processing flow of the third-party server can be executed by calling the first service interface b-b, and the step 3 in the order processing flow of the third-party server can be executed by calling the first service interface c-c. Then, in the prior art, the third server may call the first service interfaces a-a, b-b and c-c in sequence to execute the order processing flow of the third server.
S302, according to the identifier of the third-party server, if it is determined that an interface mapping rule is configured for the third-party server in advance, mapping the first service interface to the second service interface according to the interface mapping rule and the identifier of the first service interface.
Different from the prior art, the interface mapping rule is pre-stored in the embodiment, and is used for mapping the first server interface to the second server interface. Illustratively, the following table four is the interface mapping rule:
watch four
Identification of a first service interface Identification of the second service interface
a-a a-a'
b-b b-b'
c-c c-c'
For example, if the identifier of the first service interface in the order processing request is a-a, the first service interface a-a may be mapped to the second service interface a-a' in this embodiment. Optionally, the number of the first service interfaces may be multiple, and in this embodiment, each first service interface may be mapped to a corresponding second service interface.
In a possible implementation manner, a specific manner of mapping the first service interface to the second service interface in this embodiment is as follows: the second service interface mapped with the first service interface can be determined according to the identifier of the first service interface, and then the message identified by the first service interface is converted into the message identified by the second service interface.
It should be noted that in this embodiment, when mapping the first service interface to the second service interface according to the interface mapping rule and the identifier of the first service interface, if it is determined that there are a plurality of second service interfaces mapped by the first service interface, in this embodiment, the second service interface mapped by the first service interface may be determined in the plurality of second service interfaces according to the service field of the first service interface, and further, a packet identified by the first service interface is converted into a packet identified by the mapped second service interface. Correspondingly, in this embodiment, the second service interface mapped by the first service interface may be called to process the order.
For example, as shown in the foregoing table four, if the first service interface a-a can map the second service interfaces a-a 'and a-a ", that is, there are multiple second service interfaces mapped by the first service interface, it may be determined to map the first service interface a-a to a-a' or a-a" according to the service field of the first service interface a-a.
If the first service interface a-a is a new contract underwriting confirmation interface of bank D, it can be mapped to the second service interface as a premium to account interface or a receipt withdrawal interface, correspondingly, if the service field of the new contract underwriting confirmation interface represents "the premium deduction is successful", then the new contract underwriting confirmation interface is mapped to the premium to account interface, if the service field of the new contract underwriting confirmation interface represents "the premium deduction is failed", then the new contract underwriting confirmation interface can be mapped to the receipt withdrawal interface.
And S303, calling a second service interface to process the order to obtain a processing result of the order.
In this embodiment, after mapping the first service interface to the second service interface, the second service interface may be called to process the order. When the number of the first service interfaces is multiple, the number of the corresponding second service interfaces is multiple, and optionally, the order processing request includes a calling sequence of the first service interfaces.
In this embodiment, the second service interfaces mapped by the first service interface may be sequentially called according to the calling order of the first service interface, so as to process the order.
For example, if the calling sequence of the first service interface is the new contract trial calculation interface, the new contract underwriting interface, and the new contract underwriting confirmation interface, correspondingly, in this embodiment, the insurance application service verification interface, the insurance application service submission interface, and the premium receipt interface or the policy withdrawal interface may be sequentially called to process the order to obtain the processing result of the order.
S304, the processing result of the order is sent to the third-party server.
It should be understood that, for the specific implementation in S304 in this embodiment, reference may be made to the relevant description in S204 in the foregoing embodiment, which is not described herein again.
In this embodiment, the mapping rule is an interface mapping rule, and according to the identifier of the first service interface in the order processing request, the mapping rule may be mapped to a second service interface in the order processing device, so that the order is processed by using the flow in the order processing device, thereby avoiding a problem of writing codes for an order processing flow of a third-party server in advance.
The order processing method in the present application will be described below by taking the third-party server as a server of bank D and the order processing device as an insurance sales platform as an example. Fig. 4 is a third schematic flowchart of an order processing method provided in the present application. As shown in fig. 4, the order processing method in this embodiment may include:
s401, the sales platform of the bank D sends an order processing request to the insurance sales platform, wherein the order processing request comprises the identification of the sales platform of the bank D and the identification of the first service interface.
S402, the insurance sales platform maps the first service interface to the second service interface according to the interface mapping rule and the identifier of the first service interface if determining that the sales platform of the D bank is configured with the interface mapping rule in advance according to the identifier of the sales platform of the D bank.
And S403, the insurance sales platform calls a second service interface to process the order and obtain the processing result of the order.
S404, the insurance sales platform sends the processing result of the order to the third-party server.
In this embodiment, a set of standard underwriting interface service groups, that is, the second service interface in this application, is designed for the insurance sales platform in advance. The insurance sales platform provides a set of standard underwriting interface specifications (namely interface mapping rules), and the insurance sales platform and the third-party server can make orders according to the standard interface specifications.
For example, endowment insurance products are sold on a third-party platform, such as a sales platform of a D bank, and the insurance sales platform is in butt joint with the third-party platform according to an interface mapping rule (which can be called as an adapter) of the sales platform of the D bank to issue an order. In the following, the order is an insurance order, which is an insurance application order, for example, where the order is issued to the user.
The insurance sales platform provides a standard second service interface, such as a unified premium measuring and calculating interface, an insurance service verifying interface, an insurance service submitting interface, an order withdrawing interface, a premium account receiving interface, an order state updating interface and the like.
The insurance application process of the insurance sales platform comprises the following steps: the method comprises the following steps of premium measurement and calculation, insurance application service verification, insurance application service submission, order information generation and subsequent order state information notification of a third-party system called back through a state updating interface. Correspondingly, the insurance application process of the sales platform of bank D is as follows: new contract trial calculation, new contract underwriting confirmation, and daily terminal reconciliation service, forward (withdrawal) service.
In this embodiment, an adapter is provided for a sales platform of bank D, and the adapter provides a first service interface, a new contract trial calculation interface, a new contract underwriting confirmation, a day-to-day account reconciliation service interface, and a forward-bound receipt cancellation service interface according to an application process of the sales platform of bank D. Wherein, (1) the new contract trial computation interface in the first service interface may be mapped to the application service verification interface in the second service interface, that is, in this embodiment, a message of the new contract trial computation interface may be converted into an application service message; (2) the new contract underwriting interface in the first service interface may be mapped to the application service submitting interface in the second service interface, that is, in this embodiment, the new contract underwriting interface message may be converted into an application service interface message; (3) the new contract underwriting confirmation interface in the first service interface may be mapped to a premium to account interface or a drop-off interface in the second service interface. The main function of the new contract underwriting confirmation interface is to distinguish and call related interfaces according to confirmed premium success and failure business fields (specifically, reference may be made to the related description in the above embodiment S302), the premium deduction succeeds in calling the premium to the account interface service to realize subsequent policy signing, and the premium deduction failure calls the withdrawal interface to withdraw the generated order without affecting the subsequent customer to continue to pay a premium (the tax-delayed pension product can only be purchased by one user). And then through the mapping of the first service interface and the second service interface, the order can be smoothly issued.
In this embodiment, adapters may be preset for different third-party servers in the precious new sales platform, the services provided by the adapters are only thin layer interface packaging, transfer of a conversion packet, and adaptation to the business processes of the insurance sales platform and the third-party servers, there is no specific business logic, and the adapters may be dedicated to the business process adaptation of the third-party servers.
Fig. 5 is a schematic structural diagram of an order processing apparatus provided in the present application. As shown in fig. 5, the order processing apparatus 500 includes: a transceiver module 501 and a processing module 502.
The transceiver module 501 is configured to receive an order processing request, where the order processing request includes an identifier of a third-party server.
A processing module 502, configured to map, according to the identifier of the third-party server, an order processing flow of the third-party server into a target order processing flow if it is determined that a mapping rule is configured for the third-party server in advance, and process the order according to the target order processing flow to obtain a processing result of the order; the target order processing flow is an order processing flow in the order processing device;
the transceiver module 501 is further configured to send a processing result of the order to the third-party server.
Optionally, the processing module 502 is further configured to determine the type of the order according to the order processing request; and determining an order processing flow of the third-party server according to the type of the order.
Optionally, the order processing flow of the third-party server is as follows: calling a first service interface execution flow of the order processing device, wherein the target order processing flow is as follows: calling a flow executed by a second service interface of the order processing device, wherein the mapping rule is as follows: the first service interface is an interface which is matched with the order processing flow of the third-party server, and the second service interface is an interface which is matched with the order processing flow of the order processing device.
The order request includes an identifier of the first service interface, and the processing module 502 is specifically configured to map the first service interface to the second service interface according to the interface mapping rule and the identifier of the first service interface.
Optionally, the processing module 502 is specifically configured to determine, according to the interface mapping rule and the identifier of the first service interface, a second service interface mapped by the first service interface; and converting the message identified by the first service interface into a message identified by the second service interface.
Optionally, the processing module 502 is further configured to determine, if it is determined that there are multiple second service interfaces mapped by the first service interface according to the interface mapping rule and the identifier of the first service interface, the second service interface mapped by the first service interface among the multiple second service interfaces according to the service field of the first service interface.
Correspondingly, the processing module 502 is specifically configured to invoke the second service interface mapped by the first service interface to process the order.
Optionally, the number of the first service interfaces is multiple, and the order processing request includes a calling sequence of the first service interfaces.
The processing module 502 is specifically configured to sequentially call the second service interfaces mapped by the first service interface according to the call sequence of the first service interface, so as to process the order.
Optionally, the processing module 502 is further configured to process the order according to a preset order processing flow if it is determined that the mapping rule is not configured in advance for the third-party server according to the identifier of the third-party server.
Optionally, the second service interface includes any one of the following: the system comprises a premium measuring and calculating interface, an insurance application service verification interface, an insurance application service submission interface, an order withdrawing interface, a premium account receiving interface and an order state updating interface.
The principle and technical effect of the order processing apparatus provided in this embodiment are similar to those of the order processing method, and are not described herein again.
Fig. 6 is a schematic structural diagram of an electronic device provided in the present application. The electronic device may be the order processing apparatus in fig. 5 described above. As shown in fig. 6, the electronic device 600 includes: a memory 601 and at least one processor 602.
A memory 601 for storing program instructions.
The processor 602 is configured to implement the order processing method in this embodiment when the program instructions are executed, and specific implementation principles may be referred to in the foregoing embodiments, which are not described herein again.
The electronic device 600 may also include an input/output interface 603.
The input/output interface 603 may include a separate output interface and input interface, or may be an integrated interface that integrates input and output. The output interface is used for outputting data, the input interface is used for acquiring input data, the output data is a general name output in the method embodiment, and the input data is a general name input in the method embodiment.
The present application further provides a readable storage medium, in which execution instructions are stored, and when at least one processor of the electronic device executes the execution instructions, when the computer execution instructions are executed by the processor, the order processing method in the above embodiments is implemented.
The present application also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the electronic device may read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the electronic device to implement the order processing method provided in the above-described various embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a third-party server, or a network device, etc.) or a processor (english: processor) to execute some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other media capable of storing program codes.
In the above embodiment of the order Processing apparatus, it should be understood that the Processing module may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. An order processing method applied to an order processing device is characterized by comprising the following steps:
receiving an order processing request, wherein the order processing request comprises an identifier of a third-party server;
according to the identifier of the third-party server, if it is determined that a mapping rule is configured for the third-party server in advance, mapping an order processing flow of the third-party server into a target order processing flow according to the mapping rule, wherein the target order processing flow is an order processing flow in the order processing device;
processing the order according to the target order processing flow to obtain a processing result of the order;
and sending the processing result of the order to the third-party server.
2. The method according to claim 1, wherein before mapping the order processing flow of the third-party server to the target order processing flow according to the mapping rule, the method further comprises:
determining the type of the order according to the order processing request;
and determining an order processing flow of the third-party server according to the type of the order.
3. The method according to claim 1 or 2, wherein the order processing flow of the third-party server is as follows: calling a flow executed by a first service interface of the order processing device, wherein the target order processing flow is as follows: calling a flow executed by a second service interface of the order processing device, wherein the mapping rule is as follows: the first service interface is an interface which is adapted to the order processing flow setting of the third-party server, and the second service interface is an interface which is adapted to the order processing flow setting of the order processing device;
the order request includes an identifier of the first service interface, and the mapping of the order processing flow of the third-party server to the target order processing flow according to the mapping rule includes:
mapping the first service interface to the second service interface according to the interface mapping rule and the identifier of the first service interface.
4. The method of claim 3, wherein mapping the first service interface to the second service interface according to the interface mapping rule and the identification of the first service interface comprises:
determining a second service interface mapped by the first service interface according to the interface mapping rule and the identifier of the first service interface;
and converting the message identified by the first service interface into the message identified by the second service interface.
5. The method of claim 4, wherein determining the second service interface mapped by the first service interface according to the interface mapping rule and the identifier of the first service interface comprises:
if a plurality of second service interfaces mapped by the first service interface are determined according to the interface mapping rule and the identifier of the first service interface, determining the second service interface mapped by the first service interface in the plurality of second service interfaces according to the service field of the first service interface;
correspondingly, the processing the order according to the target order processing flow includes:
and calling a second service interface mapped by the first service interface to process the order.
6. The method according to claim 5, wherein the first service interface is plural, and the order processing request further includes a calling order of the first service interface; the step of calling the second service interface mapped by the first service interface to process the order comprises the following steps:
and sequentially calling the second service interfaces mapped by the first service interface according to the calling sequence of the first service interface, and processing the order.
7. The method of claim 4, wherein the second service interface comprises any one of: the system comprises a premium measuring and calculating interface, an insurance application service verification interface, an insurance application service submission interface, an order withdrawing interface, a premium account receiving interface and an order state updating interface.
8. An order processing apparatus, comprising:
the receiving and sending module is used for receiving an order processing request, wherein the order processing request comprises an identifier of a third-party server;
the processing module is used for mapping an order processing flow of the third-party server into a target order processing flow according to the mapping rule if the mapping rule is determined to be configured for the third-party server in advance according to the identifier of the third-party server, and processing the order according to the target order processing flow to obtain a processing result of the order, wherein the target order processing flow is an order processing flow in the order processing device;
the transceiver module is further configured to send the processing result of the order to the third-party server.
9. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the electronic device to perform the method of any of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-7.
CN202010466022.2A 2020-05-28 2020-05-28 Order processing method, order processing device, electronic equipment and storage medium Active CN111626878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010466022.2A CN111626878B (en) 2020-05-28 2020-05-28 Order processing method, order processing device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010466022.2A CN111626878B (en) 2020-05-28 2020-05-28 Order processing method, order processing device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111626878A true CN111626878A (en) 2020-09-04
CN111626878B CN111626878B (en) 2024-04-05

Family

ID=72272140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010466022.2A Active CN111626878B (en) 2020-05-28 2020-05-28 Order processing method, order processing device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111626878B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113706299A (en) * 2021-09-10 2021-11-26 京东科技控股股份有限公司 Data processing method and device, electronic equipment and medium
CN115170095A (en) * 2022-09-07 2022-10-11 浪潮通信信息系统有限公司 Order processing method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5987434A (en) * 1996-06-10 1999-11-16 Libman; Richard Marc Apparatus and method for transacting marketing and sales of financial products
US20090222360A1 (en) * 2008-02-28 2009-09-03 Bernd Schmitt Managing consistent interfaces for business objects across heterogeneous systems
US20110218922A1 (en) * 2010-03-05 2011-09-08 Oracle International Corporation Cost of change for adjusting long running order management fulfillment processes for a distributed order orchestration sytem
WO2018153207A1 (en) * 2017-02-23 2018-08-30 腾讯科技(深圳)有限公司 Data processing method, server, terminal, and system
CN109767320A (en) * 2018-12-17 2019-05-17 深圳壹账通智能科技有限公司 Order checking method, device, computer equipment and storage medium
CN109785092A (en) * 2018-12-10 2019-05-21 平安科技(深圳)有限公司 Accounting voucher generates management method, device and computer equipment, storage medium
CN110351342A (en) * 2019-06-20 2019-10-18 平安科技(深圳)有限公司 Service order processing method, device, computer equipment and storage medium
CN110995847A (en) * 2019-12-10 2020-04-10 南京新贝金服科技有限公司 Insurance service bus implementation method and system applied to multi-system communication
CN111080390A (en) * 2019-11-06 2020-04-28 泰康保险集团股份有限公司 Order information modification method, system, equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5987434A (en) * 1996-06-10 1999-11-16 Libman; Richard Marc Apparatus and method for transacting marketing and sales of financial products
US20090222360A1 (en) * 2008-02-28 2009-09-03 Bernd Schmitt Managing consistent interfaces for business objects across heterogeneous systems
US20110218922A1 (en) * 2010-03-05 2011-09-08 Oracle International Corporation Cost of change for adjusting long running order management fulfillment processes for a distributed order orchestration sytem
WO2018153207A1 (en) * 2017-02-23 2018-08-30 腾讯科技(深圳)有限公司 Data processing method, server, terminal, and system
CN109785092A (en) * 2018-12-10 2019-05-21 平安科技(深圳)有限公司 Accounting voucher generates management method, device and computer equipment, storage medium
CN109767320A (en) * 2018-12-17 2019-05-17 深圳壹账通智能科技有限公司 Order checking method, device, computer equipment and storage medium
CN110351342A (en) * 2019-06-20 2019-10-18 平安科技(深圳)有限公司 Service order processing method, device, computer equipment and storage medium
CN111080390A (en) * 2019-11-06 2020-04-28 泰康保险集团股份有限公司 Order information modification method, system, equipment and storage medium
CN110995847A (en) * 2019-12-10 2020-04-10 南京新贝金服科技有限公司 Insurance service bus implementation method and system applied to multi-system communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113706299A (en) * 2021-09-10 2021-11-26 京东科技控股股份有限公司 Data processing method and device, electronic equipment and medium
CN115170095A (en) * 2022-09-07 2022-10-11 浪潮通信信息系统有限公司 Order processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111626878B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
TWI706665B (en) Blockchain-based data checking system, method, computing equipment and storage media
CN111415140A (en) Aggregated payment management method, server and computer storage medium
CN110020846B (en) Transfer service processing method and system
US20140089023A1 (en) Method and system for distributing data stream
CN110874742B (en) Payment method and device based on block chain and intelligent contract
CN110750530B (en) Service system and data checking method thereof
WO2021253185A1 (en) Aggregate payment method and related products
CN110060143A (en) Service interfacing method, apparatus, computer equipment and storage medium
CN111626878A (en) Order processing method and device, electronic equipment and storage medium
CN110046900A (en) Invoice based on block chain cancels method and apparatus, electronic equipment
WO2019067577A1 (en) Message sizing and serialization optimization
CN109284714A (en) Method is provided and is got in a kind of distribution of virtual objects
WO2016155572A1 (en) Service processing method, terminal and server
CN110532810B (en) Information processing method and device, electronic equipment and readable storage medium
CN109271564A (en) Declaration form querying method and equipment
CN111626802A (en) Method and apparatus for processing information
CN109214911A (en) The treating method and apparatus of bill reconciliation exception
CN111476562A (en) Virtual resource transfer method, device, electronic equipment and storage medium
WO2020082833A1 (en) Transfer method and apparatus, and device
CN110570172A (en) Block chain-based digital currency stock purchasing method and device
TWI748503B (en) Queuing number bidding method based on block chain, electronic device, and storage medium
CN110046911A (en) Consume contract processing method and its system
CN110570305A (en) Game data processing method and device based on block chain
CN111507787A (en) Commodity transaction method, commodity transaction system, computer device and readable storage medium
CN113763139B (en) Queuing number bidding method based on blockchain, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant