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

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

Info

Publication number
CN111626878B
CN111626878B CN202010466022.2A CN202010466022A CN111626878B CN 111626878 B CN111626878 B CN 111626878B CN 202010466022 A CN202010466022 A CN 202010466022A CN 111626878 B CN111626878 B CN 111626878B
Authority
CN
China
Prior art keywords
order processing
order
interface
service interface
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010466022.2A
Other languages
Chinese (zh)
Other versions
CN111626878A (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

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

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

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 identification of a third party server; according to the identification of the third-party server, if the mapping rule is 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; processing the order according to the target order processing flow to obtain the processing result of the order; and sending the processing result of the order to a third party server. In the method, the processing flow of the order by the third-party server is mapped into the processing flow of the order by the third-party server, so that the problem that codes are required to be written in advance for the processing flow of the order by the third-party server is avoided, and the order outlet efficiency is improved.

Description

Order processing method, order processing device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data technologies, and in particular, to an order processing method, an order processing device, an electronic device, and a storage medium.
Background
Currently, users may purchase insurance products on third party platforms in addition to the insurance sales platform. After the user places the 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 making according to the order making process of the third-party platform, and then feeds back to the third-party platform to complete order making of the third-party platform.
In the prior art, in order to enable the third party platform to smoothly issue a bill, the bill issuing flow of the third party platform needs to be stored in the insurance sales platform in advance, namely, codes need to be written in advance according to the bill issuing flow of the third party platform and stored in the insurance sales platform. When the insurance sales platform executes the order-making flow of the third party platform, the code corresponding to the third party platform is called to execute. However, when more third party platforms exist, technicians need to write codes for each third party platform, and the code development period is long, so that the order-out efficiency of the third party platforms is affected.
Disclosure of Invention
The application provides an order processing method, an order processing device, electronic equipment and a storage medium, and the order issuing 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 identification of a third party server;
according to the identification of the third party server, if the mapping rule is 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;
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 the 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: and calling a flow executed by a first service interface of the order processing device, wherein the target order processing flow is as follows: and 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 adapting to the order processing flow setting of the third party server, and the second service interface is an interface adapting to the order processing flow setting of the order processing device;
The order request includes the identifier of the first service interface, and the mapping, according to the mapping rule, the order processing flow of the third party server to a target order processing flow includes: mapping the first service interface to the second service interface according to the interface mapping rule and the identification 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 identification 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 identification 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 the number of second service interfaces mapped by the first service interface is multiple 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 call the second service interface mapped by the first service interface to process the order, so as to obtain a processing result of the order.
Optionally, the plurality of first service interfaces are provided, and the order processing request includes a calling sequence of the first service interfaces; the calling the second service interface to process the order comprises the following steps: and sequentially calling the second service interfaces mapped by the first service interfaces according to the calling sequence of the first service interfaces, and processing the order.
Optionally, the method further comprises: and according to the identification of the third-party server, if the mapping rule is determined not to be configured for the third-party server in advance, processing the order according to a preset order processing flow.
Optionally, the order is an insurance order.
Optionally, the second service interface includes any one of the following: the system comprises an premium measurement interface, an application service verification interface, an application service submission interface, a bill removing interface, a premium accounting interface and an order state updating interface.
A second aspect of the present application provides an order processing apparatus, comprising:
and the receiving and transmitting module is used for receiving an order processing request, wherein the order processing request comprises an identification of a third-party server.
The processing module is used for mapping the order processing flow of the third party server into a target order processing flow according to the mapping rule if the mapping rule is configured for the third party server in advance according to the identification of the third party server, and processing the order according to the target order processing flow to obtain the processing result of the order; the target order processing flow is an order processing flow in the order processing device;
the receiving and transmitting module is further configured to send a 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 the 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: and calling a flow executed by a first service interface of the order processing device, wherein the target order processing flow is as follows: and 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 adapting to the order processing flow setting of the third party server, and the second service interface is an interface adapting to the order processing flow setting of the order processing device.
The order request comprises 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 the number of second service interfaces mapped by the first service interface is multiple 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 call the second service interface mapped by the first service interface to process the order.
Optionally, the plurality of first service interfaces is provided, and the order processing request includes a calling sequence of the first service interfaces.
The processing module is specifically configured to call the second service interface mapped by the first service interface in sequence according to the 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 for the third party server 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 an premium measurement interface, an application service verification interface, an application service submission interface, a bill removing interface, a premium accounting 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 the computer-executable instructions stored by the memory to cause the electronic device to perform the order processing method described above.
A fourth aspect of the present application provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the order processing method described above.
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 identification of a third party server; according to the identification of the third-party server, if the mapping rule is 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; processing the order according to the target order processing flow; and sending the processing result of the order to a third party server. In the method, the processing flow of the order by the third-party server is mapped into the processing flow of the order by the third-party server, so that the problem of writing codes for the processing flow of the order by the third-party server in advance is avoided, and the order outlet efficiency is improved.
Drawings
Fig. 1 is a schematic diagram of a scenario where the order processing method provided in the present application is applicable;
FIG. 2 is a flow chart of an order processing method provided in the present application;
FIG. 3 is a second flow chart of the order processing method provided in the present application;
FIG. 4 is a flow chart III of the order processing method provided by the present application;
FIG. 5 is a schematic 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
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described in the following in conjunction with the embodiments of the present application, and it is apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
With the development of network information technology, more and more users make shopping such as purchasing clothes, foods, insurance and the like on the network. Taking endowment insurance as an example, the insurance sales platform (such as an endowment mall of a company) can sell the endowment personal health insurance, endowment insurance, tax-prolonged endowment insurance, tax-excellent health insurance and other insurance products. With the rapid development of the pension insurance business, pension insurance products can be sold on multiparty channels and platforms, and the multiparty channels and platforms are taken as a third party platform for illustration in the application.
The processing of the order is divided into two processing modes, wherein the processing modes are used for purchasing the product of the pension insurance on a third party platform. One mode is: when the user purchases the product of the pension insurance on the third-party platform, the third-party platform jumps to the insurance sales platform to complete the purchase flow, namely the processing flow of the order. In order to improve user experience and the order-out rate, the other mode is improved on the basis of the mode, a user can directly purchase the product of the pension 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 finish order-out. It should be understood that the order issuing in this application refers to the process of completing the purchase, renewing, modifying information, etc. of the order.
In view of the fact that the order processing flow of the third party platform may be different from the order processing flow in the insurance sales platform, in another mode, the order processing flow of the third party platform needs to be stored in the insurance sales platform in advance, specifically, codes corresponding to the order issuing flow of the third party platform need to be stored in the insurance sales platform in advance, and when the insurance sales platform executes the order issuing flow of the third party platform, the codes corresponding to the third party platform need to be called for execution.
However, as the third party platforms increase, the order processing flow of each third party platform is different, so that corresponding codes need to be written for each third party platform in the insurance sales platform. Therefore, the development period is long, and the order-out efficiency of the third party platform is further affected.
In order to solve the problems in the prior art, the application provides an order processing method, which considers the operations related to the order processing flow of some third-party platforms, and is the same as the operations related to the order processing flow of the insurance sales platform, but the execution sequence is different. Therefore, the order processing flow of the third party platforms is converted into the order processing flow of the insurance sales platform, corresponding codes are not required to be written for the third party platforms, and the order outlet efficiency of the third party platforms is improved.
It is noted that the order processing method provided by the application not only can be applied to the order issuing of insurance, but also can be applied to the order issuing of other commodities such as clothes, foods or electronic products.
Fig. 1 is a schematic diagram of a scenario where the order processing method provided in the present application is applicable. As shown in fig. 1, the scenario may include: and the third party server and the 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, terminal equipment and the like, and can be in wireless connection with a third-party server. It should be appreciated that the third party server described herein may be the third party platform or an electronic device in the third party platform described above.
The terminal device in the present application may include, but is not limited to, a mobile terminal device or a fixed terminal device. Mobile terminal devices include, but are not limited to, cell phones, personal digital assistants (Personal Digital Assistant, abbreviated to: PDAs), tablet computers, portable devices (e.g., portable computers, pocket computers, or hand-held computers), and the like. Fixed terminals include, but are not limited to, desktop computers and the like.
The order processing method provided in the present application is described below with reference to specific embodiments. Fig. 2 is a schematic flow chart of an order processing method provided in the present application. The execution subject 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 identification of a third party server.
In this embodiment, the user may purchase a product on a platform corresponding to the third party server, so as to trigger the third party server to send an order processing request to the order processing device. Wherein the order processing request may include an identification of the third party server. Alternatively, the identification of the third party server may be an IP address, a media access control (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 type of the order. The order may be of the type: purchase orders, return orders, etc.
S202, according to the identification of the third-party server, if the mapping rule is configured for the third-party server in advance, the order processing flow of the third-party server is mapped into a target order processing flow according to the mapping rule, and the target order processing flow is the order processing flow in the order processing device.
It should be understood that, in the order processing apparatus in this embodiment, a mapping relationship table may be stored in advance, where the mapping relationship table is used to characterize the identifier of the third party server, and whether a mapping rule relationship is configured for the third party server in advance. By way of example, the mapping table may be as shown in table one below:
list one
Third stepIdentification of a Square server Mapping rules
A a
B b
C Without any means for
According to the first table, the order processing device configures mapping rules for the third party server a and the third party server B in advance, and does not configure mapping rules for the third party server C. It should be understood that the mapping rule refers to a mapping rule of an order processing flow of the third party server with a target order processing flow in the order processing device.
In this embodiment, it may be determined, according to the identifier of the server in the order processing request and the above table, whether the order processing apparatus is configured with the mapping rule for the third party server in advance. If the mapping rule is configured for the third-party server in advance, the order processing flow of the third-party server is mapped into a 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 the 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 third party server a mapping rule a:
watch II
As shown in the above table two, the order processing flow of the third party server includes the processing steps of 1, 2 and 3, and according to the mapping rule a, it can be determined that the step 1 of the third party server can be mapped to the step 1' in the order processing flow of the order processing device, the step 2 can be mapped to the step 2' in the order processing flow of the order processing device, and the step 3 can be mapped to the 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 the present embodiment.
It should be appreciated that the process flow for different types of orders may be different for the same third party server, but the mapping rules for the same third party server are the same. 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 determining the order processing flow of the third party server, 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 of insurance type, the type of order may be an order of personal health insurance, endowment insurance, tax extension insurance, tax priority health insurance, etc. Optionally, the formats of the orders of different types are different, and in this embodiment, the type of the order may be determined according to the format of the order.
Optionally, according to the identification of the third party server, if it is determined that the mapping rule is not configured for the third party server in advance, the order is processed according to a preset order processing flow. It should be understood that the preset order processing flow is a flow of processing an order in the order processing device.
S203, processing the order according to the target order processing flow to obtain the processing result of the order.
In this embodiment, after the order processing flow of the third party server is mapped to the target order processing flow, the order may be processed according to the target order processing flow in view of the target order processing flow being the own order processing flow.
For example, as described above, in this embodiment, the order may be sequentially processed according to the order processing flows 1', 2', and 3 '.
S204, sending the processing result of the order to a third party server.
In this embodiment, after an order is processed according to a target order processing flow, a processing result of the order may be obtained. For example, if the order is an order for purchasing a product, the result of processing the order may be "purchase success".
It should be appreciated that the results of the processing of the order may be sent to a third party server to enable the user to obtain the results of the processing of the order.
The order processing device provided in this embodiment includes: receiving an order processing request, wherein the order processing request comprises an identification of a third party server; according to the identification of the third-party server, if the mapping rule is 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; processing the order according to the target order processing flow to obtain the processing result of the order; and sending the processing result of the order to a third party server. In the method, 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 of writing codes for the order processing flow of the third-party server in advance is avoided, and the order outlet efficiency is improved.
On the basis of the above embodiment, in the prior art, the order processing flow of the third party server may actually be implemented 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 performing step 1 is essentially implemented by calling a service interface 1 provided on the order processing device. Therefore, in the prior art, the above-mentioned order processing device writes the corresponding code for the order processing flow of the third server in advance, that is, sets the corresponding service interface for the order processing flow of the third server, executes the code stored in the server interface, and further reduces the order-out efficiency.
Therefore, in the following embodiments, the order processing flow with the "third party server" is: and calling a flow executed by a first service interface of the order processing device, wherein the target order processing flow is as follows: and calling a flow executed by a second service interface of the order processing device, wherein the mapping rule is as follows: the interface mapping rules of the first service interface and the second service interface are explained.
The first service interface in this embodiment is an interface adapted to the order processing flow setting of the third party server. It should be noted that, unlike the preconfigured interfaces in the prior art, the code corresponding to the order processing procedure of the third party server is not prestored in the first service interface, but mapped to the second service interface in the order processing device when the first service interface is invoked by the third party server, so as to execute the order processing procedure 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 setting of the order processing device, in this embodiment, the first service interface may be preset instead of writing a corresponding code for the order processing flow of the third party server in advance, so as to map the first service interface to the second service interface of the order processing device, so as to execute the order processing flow of the order processing device, 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 flow chart diagram of an order processing method provided in 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 identification of a third party server and an identification of a first service interface.
Unlike the above 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 device has previously acquired an order processing step (or an order processing flow) corresponding to each first service interface, and has previously set an interface mapping rule according to the order processing step (or the order processing flow) corresponding to each second service interface. Wherein the interface mapping rule maps a first service interface and a second service interface of an order processing step 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 identification of the first service interface is added to the order processing request, and the order processing step or flow of the third party server can be determined.
Exemplary, table three is the correspondence between the identification of the first service interface and the order processing flow of the third party server:
watch III
And according to the third table, calling the first service interface a-a to execute the step 1 in the order processing flow of the third party server. 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 procedure of the third server.
S302, according to the identification of the third-party server, if the fact that the interface mapping rule is configured for the third-party server in advance is determined, the first service interface is mapped to the second service interface according to the interface mapping rule and the identification of the first service interface.
Unlike the prior art, the present embodiment stores the interface mapping rule in advance, so as to map the first server interface to the second service interface. Illustratively, the following table four is an interface mapping rule:
table four
Identification of a first service interface Identification of a second service interface
a-a a-a'
b-b b-b'
c-c c-c'
Illustratively, as the first service interface in the order processing request is identified as a-a, the first service interface a-a may be mapped to the second service interface a-a' in this embodiment. Optionally, there may be multiple first service interfaces, and in this embodiment, each first service interface may be mapped to a corresponding second service interface.
In one possible implementation manner, the specific manner of mapping the first service interface to the second service interface in this embodiment is: the second service interface mapped with the first service interface can be determined according to the identification of the first service interface, so that 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, so as to further convert the message identified by the first service interface into the message identified by the mapped second service interface. Correspondingly, in this embodiment, a second service interface mapped by the first service interface may be called to process the order.
For example, if the second service interfaces to which the first service interface a-a can map are a-a 'and a-a ", i.e. there are a plurality of second service interfaces to which the first service interface maps, 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, as shown in the above table four.
If the first service interface a-a is a new contract underwriting confirmation interface of the D bank, it can be mapped to the second service interface as a premium to account interface or a bill removing interface, and if the service field of the new contract underwriting confirmation interface represents that the premium deduction is successful, the new contract underwriting confirmation interface is mapped to the premium to account interface, and if the service field of the new contract underwriting confirmation interface represents that the premium deduction is failed, the new contract underwriting confirmation interface can be mapped to the bill removing interface.
S303, calling a second service interface to process the order, and obtaining 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 invoked to process the order. When the number of the first service interfaces is plural, the number of the corresponding second service interfaces is plural, and optionally, the order processing request includes a calling sequence of the first service interfaces.
In this embodiment, the second service interface mapped by the first service interface may be sequentially called according to the calling sequence 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, then the application service verification interface, the application service submission interface, and the premium accounting interface or the order removing interface may be sequentially called in this embodiment, and the order may be processed to obtain the processing result of the order.
S304, sending the processing result of the order to a third party server.
It should be understood that, the specific implementation manner in S304 in this embodiment may refer to the description related to S204 in the foregoing embodiment, which is not described herein.
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 can be mapped to the second service interface in the order processing device, so that the process in the order processing device is adopted to process the order, and the problem of writing codes for the order processing process of the third party server in advance is avoided.
The method for processing the order in the application will be described below by taking a third party server as a server of a D bank and an order processing device as an insurance sales platform as an example. Fig. 4 is a flow chart diagram 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 D bank sends an order processing request to the insurance sales platform, wherein the order processing request comprises an identifier of the sales platform of the D bank and an identifier of the first service interface.
S402, if the insurance sales platform determines that the sales platform of the D bank is configured with an interface mapping rule in advance according to the identification of the sales platform of the D bank, the insurance sales platform maps the first service interface to the second service interface according to the interface mapping rule and the identification of the first service interface.
S403, the insurance sales platform calls a second service interface to process the order, and a processing result of the order is obtained.
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 group, that is, the second service interface in this application, is designed for the insurance sales platform in advance. The insurance sales platform provides a standard set of underwriting interface specifications (i.e., interface mapping rules) according to which both the insurance sales platform and the third party server can make an order.
If the pension insurance product is sold on a third party platform, such as a sales platform of a D bank, the insurance sales platform is in butt joint with the third party platform according to interface mapping rules (which can be called an adapter) of the sales platform of the D bank to make a bill. The following description will take an order as an example of the user making an application, that is, the order is an application order.
The insurance sales platform provides a standard second service interface, such as a unified premium measurement interface, an insurance application service verification interface, an insurance application service submission interface, a bill removing interface, a premium accounting interface, an order state updating interface and the like.
The insurance sales platform's application flow is: premium measurement, application service verification, application service submission, generation of order information, and subsequent callback to a third party system via a status update interface to notify of order status information. Correspondingly, the application flow of the sales platform of the D bank is as follows: new contract trial, new contract underwriting confirmation, end-of-day reconciliation service, and positive (withdrawal) service.
In this embodiment, an adapter is set for a sales platform of a D bank, and the adapter provides a first service interface, a new contract trial calculation interface, a new contract underwriting confirmation, a day end reconciliation service interface, and a positive withdrawal service interface according to an application flow of the sales platform of the D bank. The new contract trial interface in the first service interface can be mapped to the insuring service verification interface in the second service interface, that is, in this embodiment, the message of the new contract trial interface can be converted into the insuring service message; (2) The new contract underwriting interface in the first service interface can be mapped to the application service submitting interface in the second service interface, that is, in this embodiment, the new contract underwriting interface message can be converted into the 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 out interface in the second service interface. The main function of the new contract underwriting confirmation interface is to call related interfaces according to the confirmed service fields of success and failure of premium (refer to the related description in the above embodiment S302 for details), and the premium deduction succeeds in calling the premium to account interface service to implement the subsequent policy ticket, and the premium deduction failure calls the ticket removing interface to withdraw the generated order without affecting the continued application of the subsequent customer (the same user can only purchase a ticket for tax-extended care products). And further, smooth bill delivery can be realized through the mapping between the first service interface and the second service interface.
In this embodiment, an adapter may be preset for different third party servers in the new sales platform, and services provided by the adapter are only a thin one-layer interface package, call of a conversion message, and adapt to service flows of the insurance sales platform and the third party servers, and no specific service logic is provided, so that service flow adaptation for the third party servers can be specially performed.
Fig. 5 is a schematic structural diagram of an order processing device 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.
The processing module 502 is configured to map the order processing flow of the third party server to a target order processing flow according to the mapping rule if it is determined that the mapping rule is configured for the third party server in advance according to the identifier of the third party server, and process the order according to the target order processing flow, so as 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 a third party server.
Optionally, the processing module 502 is further configured to determine a type of the order according to the order processing request; and determining the 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: and calling a flow executed by a first service interface of the order processing device, wherein the target order processing flow is as follows: and calling a flow executed by a second service interface of the order processing device, wherein the mapping rule is as follows: the method comprises the steps of mapping rules of interfaces of a first service interface and a second service interface, wherein the first service interface is an interface which is adapted to the order processing flow setting of a third-party server, and the second service interface is an interface which is adapted to the order processing flow setting of an 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 an 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 the number of second service interfaces mapped by the first service interface is multiple 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 call the second service interface mapped by the first service interface to process the order.
Optionally, the plurality of first service interfaces is provided, 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 interfaces according to the call sequence of the first service interfaces, and 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 for the third party server in advance according to the identifier of the third party server.
Optionally, the second service interface includes any one of the following: the system comprises an premium measurement interface, an application service verification interface, an application service submission interface, a bill removing interface, a premium accounting interface and an order state updating interface.
The order processing device provided in this embodiment is similar to the principle and technical effects achieved by the order processing method described above, and will not be described here 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 described above in fig. 5. 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 the specific implementation principle can be seen from the above embodiment, which is not described herein again.
The electronic device 600 may also include and 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 the generic name output in the method embodiment, and the input data is the generic name input in the method embodiment.
The present application also provides a readable storage medium having stored therein execution instructions which, when executed by at least one processor of an electronic device, when executed by the processor, implement the order processing method in the above-described embodiments.
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 instructions from the readable storage medium, the execution instructions being executed by the at least one processor to cause the electronic device to implement the order processing methods provided by the various embodiments described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over 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 this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in hardware plus software functional modules.
The integrated modules, which are implemented in the form of software functional modules, may be stored in a computer readable storage medium. The software functional module is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a third party server, or a network device, etc.) or a processor (english: processor) to perform part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
In the above embodiment of the order processing device, it should be understood that the processing module may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be another general purpose processor, a digital signal processor (english: digital Signal Processor, abbreviated as DSP), an application specific integrated circuit (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. 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 hardware and software modules within a processor.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution 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 scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (9)

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 identification of a third party server;
according to the identification of the third party server, if the mapping rule is 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;
processing the order according to the target order processing flow to obtain a processing result of the order;
Sending the processing result of the order to the third party server;
the order processing flow of the third party server is as follows: and calling a flow executed by a first service interface of the order processing device, wherein the target order processing flow is as follows: and 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 adapting to the order processing flow setting of the third party server, and the second service interface is an interface adapting to the order processing flow setting of the order processing device;
the order processing request includes the identifier of the first service interface, and the mapping, according to the mapping rule, the order processing flow of the third party server to a target order processing flow includes:
and mapping the first service interface to the second service interface according to the interface mapping rule and the identification of the first service interface.
2. The method of 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, further comprising:
Determining the type of the order according to the order processing request;
and determining the order processing flow of the third-party server according to the type of the order.
3. The method of claim 1, wherein mapping the first service interface to the second service interface according to the interface mapping rules 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 identification of the first service interface;
and converting the message identified by the first service interface into the message identified by the second service interface.
4. A method according to claim 3, wherein said determining a second service interface to which said first service interface maps based on said interface mapping rules and an identification of said 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 identification 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.
5. The method of claim 4, wherein the first service interface is a plurality of service interfaces, and the order processing request further includes a calling order of the first service interface; the 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 interfaces according to the calling sequence of the first service interfaces, and processing the order.
6. A method according to claim 3, wherein the second service interface comprises any one of: the system comprises an premium measurement interface, an application service verification interface, an application service submission interface, a bill removing interface, a premium accounting interface and an order state updating interface.
7. An order processing apparatus, comprising:
the receiving and transmitting 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 the order processing flow of the third party server into a target order processing flow according to the mapping rule if the mapping rule is configured for the third party server in advance according to the identification 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 the order processing flow in the order processing device;
the receiving and transmitting module is further used for sending the processing result of the order to the third party server;
the order processing flow of the third party server is as follows: and calling a flow executed by a first service interface of the order processing device, wherein the target order processing flow is as follows: and 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 adapting to the order processing flow setting of the third party server, and the second service interface is an interface adapting to the order processing flow setting of the order processing device;
The order processing 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.
8. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory to cause the electronic device to perform the method of any one of claims 1-6.
9. A computer readable storage medium having stored thereon computer executable instructions which, when executed by a processor, implement the method of any of claims 1-6.
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 CN111626878A (en) 2020-09-04
CN111626878B true 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)

Families Citing this family (2)

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

Citations (7)

* 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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8417593B2 (en) * 2008-02-28 2013-04-09 Sap Ag System and computer-readable medium for managing consistent interfaces for business objects across heterogeneous systems
US10395205B2 (en) * 2010-03-05 2019-08-27 Oracle International Corporation Cost of change for adjusting long running order management fulfillment processes for a distributed order orchestration system

Patent Citations (7)

* 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
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

Also Published As

Publication number Publication date
CN111626878A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
EP3859644B1 (en) Block chain-based data check system and method, computing device, and storage medium
WO2019165666A1 (en) Insurance order confirmation method and apparatus for mobile terminal, device and storage medium
CN111626878B (en) Order processing method, order processing device, electronic equipment and storage medium
CN110020846B (en) Transfer service processing method and system
CN110874742B (en) Payment method and device based on block chain and intelligent contract
CN111415140A (en) Aggregated payment management method, server and computer storage medium
CN104599165A (en) Network transaction method and associated equipment and systems thereof
WO2016155572A1 (en) Service processing method, terminal and server
CN110060143A (en) Service interfacing method, apparatus, computer equipment and storage medium
US20230259930A1 (en) Cross-chain transaction processing method and apparatus, electronic device, and storage medium
US20150206145A1 (en) Id management device, id management method, and id management program
CN105163295A (en) Processing method for failure of sending short message and terminal
CN114048034A (en) Accounting data processing method and device
CN109101645B (en) Voice call switching method and device, computer equipment and storage medium
CN111324645B (en) Block chain data processing method and device
US11950173B2 (en) Method of determining shared service index based on shared service of communication credential
CN109656632A (en) Interface automatic adaptation method, device, electronic equipment and computer readable storage medium
CN112866268B (en) Message processing method and system
CN111176588B (en) Service bill issuing method, device, medium and electronic equipment
CN114265633A (en) Application parameter configuration and query method of self-service equipment, equipment and storage medium
CN113852627B (en) Extensible payment message processing method and device and electronic equipment
CN110570172A (en) Block chain-based digital currency stock purchasing method and device
CN115619576A (en) Data processing method and device, electronic equipment and storage medium
WO2019052113A1 (en) Insurance expense payment method and apparatus, terminal device and medium
CN116886716A (en) Contact information determining method and device, storage medium and electronic equipment

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