Waybill request processing method and device

The waybill request is processed through a unified order receiving interface and issuing interface, and the configuration database matching characteristics and public logic are used to verify and persist the waybill, which solves the problems of low logic reuse rate and high maintenance cost of the waybill interface, and improves efficiency. Waybill processing efficiency and accuracy reduce maintenance costs.

CN118798767APending Publication Date: 2024-10-18BEIJING JINGDONG QIANSHITECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310392575.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-13
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The waybill logic of different types of pure delivery or warehouse delivery services is highly similar, resulting in high development costs, high maintenance costs, low waybill access rates, high error rates, and low logic reuse rates. Customers need to configure each package separately when placing an order. Analysis using the waybill interface is time-consuming and has a high error rate.

Method used

Provides a way to process waybill requests. It processes waybills and delivers transaction messages through a unified order receiving interface and delivery interface, allowing message consumers to subscribe to the required message queues according to the fulfillment center, and use the configuration database to match feature scripts and public The script verifies and persists the waybill attributes, generates transaction messages and sends them to the target fulfillment center.

Benefits of technology

It improves the efficiency and accuracy of waybill processing, reduces logic duplication and coupling, improves code reuse, reduces maintenance costs, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798767A_ABST
    Figure CN118798767A_ABST
Patent Text Reader

Abstract

The invention discloses a waybill request processing method and device, and relates to the technical field of smart industry. The specific embodiment of the method comprises the following steps: receiving one or more waybill requests through an order receiving interface; according to the service type identifier, matching a feature script identifier and a public script identifier corresponding to the waybill from a configuration database, and performing verification and persistence processing on a feature attribute and a public attribute of the waybill by using a feature logic corresponding to the feature script identifier and a public logic corresponding to the public script identifier to generate a transaction message; and issuing the transaction message of the waybill to a message queue of the fulfillment theme corresponding to the fulfillment center identifier of the target fulfillment center by using an issuing interface. According to the embodiment, the unified order receiving interface and issuing interface can be provided for waybill processing and transaction message issuing, the waybill processing efficiency and accuracy are improved, the logic repetition degree and coupling degree are reduced, the code reuse rate is improved, and the maintenance cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart industrial technology, and in particular to a method and device for processing a waybill request. Background Art

[0002] With the refined development of services on various e-commerce platforms, logistics and distribution services can gradually be separated from platform services and provided as a separate service, including pure distribution services that only provide pure logistics and distribution services and warehousing and distribution services that combine goods warehousing and logistics and distribution.

[0003] According to different business types, the existing pure distribution services using e-commerce platforms can be divided into B2B pure distribution between enterprises, C2C pure distribution between individuals, or C2B pure distribution between individuals and enterprises. The existing warehousing and distribution services can be divided into warehousing and distribution POPs where enterprises (Platform Open Plan) that have settled in the e-commerce platform use the warehousing and distribution services of the e-commerce platform, and warehousing and distribution ISVs where third-party platforms (ISVs, Independent Software Vendors) place orders for warehousing and distribution services on the e-commerce platform. The existing e-commerce platforms provide independent waybill interfaces for different types of pure distribution or warehousing and distribution services.

[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0005] The waybill logics of different types of pure distribution or warehouse distribution services are highly similar. On the one hand, the method of providing independent waybill interfaces separately leads to high development costs, and the duplication of logic of different waybill interfaces is too wasteful, resulting in low logic reuse rate and high maintenance costs. On the other hand, when customers place an order, they need to analyze various waybill interfaces separately, which takes time to make a selection, resulting in a low waybill access rate and a high error rate. Summary of the invention

[0006] In view of this, an embodiment of the present invention provides a method and device for processing waybill requests, which can provide a unified order receiving interface and issuing interface for waybill processing and issuing transaction messages, so that message consumers can subscribe to the required message queues according to the corresponding fulfillment center, thereby improving the efficiency and accuracy of waybill processing, reducing logical duplication and coupling, increasing code reuse rate, reducing maintenance costs, and improving user experience.

[0007] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for processing a waybill request is provided, comprising:

[0008] Receiving one or more waybill requests through an order receiving interface; wherein the waybill request includes a business type identifier;

[0009] According to the business type identifier, the characteristic script identifier and the public script identifier corresponding to the waybill are matched from the configuration database, and the characteristic attributes and public attributes of the waybill are verified and persistently processed using the characteristic logic corresponding to the characteristic script identifier and the public logic corresponding to the public script identifier, respectively, to generate a transaction message; wherein the transaction message includes a target fulfillment center;

[0010] The transaction message of the waybill is sent to the message queue of the fulfillment topic corresponding to the fulfillment center identifier of the target fulfillment center by using the sending interface, so that the message consumers subscribed to each of the fulfillment topics consume the transaction messages in the message queue.

[0011] Optionally, the verifying and persisting the characteristic attributes and common attributes of the waybill includes:

[0012] Extracting the common attribute data of the common attributes and the characteristic attribute data of the characteristic attributes of the waybill respectively according to the business type identifier;

[0013] Performing non-empty check and validity check on the common attribute data and the characteristic attribute data;

[0014] When the verification results of the validity check and the non-empty check are both successful, the public attribute data and the characteristic attribute data are persisted.

[0015] Optionally, the performing non-empty check and validity check on the common attribute data and the characteristic attribute data includes:

[0016] Determine whether the common attribute data and the characteristic attribute data of the characteristic attribute data are empty;

[0017] When the common attribute data of each of the common attributes and the characteristic attribute data of each of the characteristic attributes are not empty, it is determined whether the common attribute data and the characteristic attribute data of the characteristic attribute data meet the corresponding attribute data standards.

[0018] Optionally, the public attributes include basic information, user information, warehouse information, carrier information, address information, product information, and inventory information; and the persistent processing of the public attribute data and the characteristic attribute data includes:

[0019] The following steps are performed using the common logic:

[0020] Verify whether the basic information of the waybill is correct and whether the user information is normal;

[0021] The address information of the waybill is subjected to granular analysis, and the target fulfillment center of the waybill is located according to the granular analysis result of the granular analysis and the warehouse information.

[0022] The fulfillment time and payment method are obtained from the initialization information and the carrier information, and the target fulfiller identifier of the waybill is determined according to the product information of the waybill, the fulfillment time and the inventory information.

[0023] Optionally, the using the common logic to verify whether the basic information of the waybill is correct and whether the user information is normal includes:

[0024] Matching the user name and contact information of the basic information of the waybill with the basic information table to determine whether the user name and contact information of the basic information exist in the user name table;

[0025] According to the user name in the user name table, searching the user information table to determine whether the user name of the waybill belongs to the user blacklist;

[0026] When the user name of the waybill does not belong to the user blacklist, the validity period of the user account corresponding to the user name is compared with the current time to determine whether the validity period of the user account is less than or equal to the current time.

[0027] Optionally, locating a target fulfillment center of the waybill according to the granular parsing result of the granular parsing and the warehouse information includes:

[0028] According to the secondary granularity unit of the granular analysis result, matching a first fulfillment center that satisfies the waybill from the fulfillment center table;

[0029] Compare the service types included in the waybill with the service types of the warehouse information, and select a second fulfillment center that includes all service types of the waybill;

[0030] Calculate the delivery distance between the second fulfillment center and the final granularity unit of the granular analysis result, and select the second fulfillment center corresponding to the minimum value of the delivery distance as the target fulfillment center of the waybill; wherein the delivery distance is determined based on the latitude and longitude coordinates of the warehouse information.

[0031] Optionally, the business type identifier includes a warehouse distribution POP business, and the characteristic attribute of the warehouse distribution POP business includes order method information; the persistent processing of the public attribute data and the characteristic attribute data also includes:

[0032] Calculate the waybill fee of the waybill through the common logic according to the product information of the waybill, the target fulfillment center and the granular analysis result;

[0033] Verify the ordering method information of the waybill by using the feature logic to determine the ordering method identifier of the waybill;

[0034] The target fulfillment center, the fulfillment time, the target fulfiller identifier, the payment method, the waybill fee and the order method identifier are combined to generate a transaction message for the waybill of the warehousing and distribution POP business and build a persistent pre-emption task.

[0035] Optionally, the business type identifier also includes a warehouse distribution ISV business, and the characteristic attributes of the warehouse distribution ISV business include product consolidation information, inventory pledge information, warehouse relocation information, and sales restriction information; the persistent processing of the public attribute data and the characteristic attribute data also includes:

[0036] Perform sensitive word detection on the waybill using the feature logic, and if the sensitive word detection result of the waybill is qualified, update the target fulfillment center and target fulfiller identifier of the waybill according to the goods consolidation information and the warehouse relocation information;

[0037] Execute the characteristic logic, modify the unit price of the goods in the waybill in combination with the restricted sale information, and determine the auxiliary information of the waybill from the inventory pledge information;

[0038] Calculate the waybill fee of the waybill through the common logic according to the revised unit price of the goods of the waybill, the goods information, the ancillary information, the updated target fulfillment center and the granular analysis result;

[0039] Combine the updated target fulfillment center and target fulfiller identifiers, the fulfillment time, the payment method, the ancillary information, and the waybill fee to generate a transaction message for the waybill of the warehousing and distribution ISV business and build a persistent pre-emption task.

[0040] Optionally, the generation of the configuration database includes:

[0041] Statistics on various business types of warehousing and distribution business and pure distribution business;

[0042] Analyze the waybill logic of the warehousing and distribution business and the pure distribution business under different business types, extract the common logic of the warehousing and distribution business and the pure distribution business respectively, and construct a public script identifier of the public script corresponding to the public logic;

[0043] According to the characteristic logic of the warehousing and distribution business and the pure distribution business under different business types, a characteristic script identifier of the characteristic script corresponding to the characteristic logic is constructed;

[0044] The configuration database is generated using the correspondence between the common script identifier, the characteristic script identifier and the business type identifier.

[0045] Optionally, before receiving one or more waybill requests through the order receiving interface, a service is published to different source channels of the waybill requests, and the publishing items of the publishing service include the interface name and method name of the order receiving interface.

[0046] According to another aspect of an embodiment of the present invention, a device for processing a waybill request is provided, comprising:

[0047] A receiving module, configured to receive one or more waybill requests through an order receiving interface; wherein the waybill request includes a business type identifier;

[0048] A transaction processing module, used to match the characteristic script identifier and the public script identifier corresponding to the waybill from the configuration database according to the business type identifier, and to verify and persist the characteristic attributes and public attributes of the waybill using the characteristic logic corresponding to the characteristic script identifier and the public logic corresponding to the public script identifier, respectively, to generate a transaction message; wherein the transaction message includes a target fulfillment center;

[0049] The sending module is used to use the sending interface to send the transaction message of the waybill to the message queue of the fulfillment topic corresponding to the fulfillment center identifier of the target fulfillment center, so that the message consumers subscribed to each of the fulfillment topics consume the transaction messages in the message queue.

[0050] According to another aspect of an embodiment of the present invention, an electronic device for processing a waybill request is provided, including:

[0051] one or more processors;

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

[0053] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for processing waybill requests provided by the present invention.

[0054] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method for processing a waybill request provided by the present invention is implemented.

[0055] An embodiment of the above invention has the following advantages or beneficial effects: because a unified order receiving interface and issuing interface are adopted, a waybill request is received through the order receiving interface, and the business type identifier of the waybill is determined therefrom; according to the business type identifier, the corresponding public logic and feature logic are matched, and after the public attribute data and feature attribute data of the waybill are verified, the waybill is processed using the public logic and feature logic respectively to generate a transaction message; the issuing interface sends the transaction message of the waybill to the message queue of the corresponding fulfillment topic according to the correspondence between the fulfillment center identifier and the subject partition, so that the message consumers of each fulfillment center consume the transaction messages in the corresponding message queue, thereby overcoming the technical problems of low logic reuse rate, high development cost and maintenance cost; low waybill access rate and high error rate, and thus achieving the technical effect of being able to provide a unified order receiving interface and issuing interface for waybill processing and transaction message issuance, so that the message consumer subscribes to the required message queue according to the corresponding fulfillment center, improving the efficiency and accuracy of waybill processing, reducing logic duplication and coupling, improving code reuse rate, reducing maintenance cost, and improving user experience.

[0056] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0058] Figure 1 is a schematic diagram of the main process of the method for processing a waybill request according to an embodiment of the present invention;

[0059] Figure 2 is a schematic diagram of the main process of the method for constructing a configuration database according to an embodiment of the present invention;

[0060] Figure 3 is a schematic diagram of the main process of a method for verifying attribute data of a waybill according to an embodiment of the present invention;

[0061] Figure 4 It is a schematic diagram of the main process of the method for generating transaction messages of the warehouse distribution POP business according to an embodiment of the present invention;

[0062] Figure 5 It is a schematic diagram of the main process of the method for generating transaction messages of the warehouse distribution ISV business according to an embodiment of the present invention;

[0063] Figure 6 is a schematic diagram of a distributed system according to an embodiment of the present invention;

[0064] Figure 7is a schematic diagram of main modules of a device for processing waybill requests according to an embodiment of the present invention;

[0065] Figure 8 An exemplary system architecture diagram of a method for processing a waybill request or a device for processing a waybill request suitable for application in an embodiment of the present invention is shown;

[0066] Fig. 9 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0067] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0068] It should be noted that in the technical solution of the present invention, the collection, use, storage, sharing and transfer of user personal information involved are in compliance with the provisions of relevant laws and regulations, and it is necessary to inform the user and obtain the user's consent or authorization. When applicable, the user's personal information is de-identified and / or anonymized and / or encrypted.

[0069] (For example: After collecting contact information, we will use technical means to de-identify the data.)

[0070] (For example, when displaying address information, we will desensitize your information by de-identifying or anonymizing it to protect the security of your information.)

[0071] Distributed service framework: refers to decomposing the traditional overall business into multiple inseparable sub-businesses, so that each interacting sub-business is independent from the overall business, decoupled from the overall business, and only focuses on the realization of its own service functions. Each sub-business is integrated using an instant messaging framework (for example, message middleware), which improves the fault tolerance and disaster recovery performance of the overall business and enhances the stability of the system.

[0072] Message middleware: It can realize efficient and reliable message transmission between various sub-businesses under the distributed service framework, build an instant messaging framework based on data communication, and integrate distributed systems.

[0073] POP: Platform Open Plan, which means open platform plan, refers to third-party sellers entering the e-commerce platform and using the e-commerce platform to sell various goods. At the same time, they can choose the services provided by the e-commerce platform.

[0074] ISV: Independent Software Vendors, or independent software developers, refers to third-party organizations or third-party platforms that provide goods. Third-party organizations / platforms can choose services under e-commerce platforms. ISVs are usually high-quality third parties with category customization service capabilities and category service experience. They can provide customized interactive development services for e-commerce platforms to help e-commerce platforms achieve goals such as expanding influence, user volume, sales, and improving user stickiness.

[0075] Figure 1 is a schematic diagram of the main process of the method for processing a waybill request according to an embodiment of the present invention, such as Figure 1 As shown, the method for processing a waybill request of the present invention comprises the following steps:

[0076] Step S101, receiving one or more waybill requests through an order receiving interface; wherein the waybill request includes a business type identifier.

[0077] In an embodiment of the present invention, the method for processing waybill requests of the present invention is executed by using a message producer of a message middleware in a distributed service framework. The message producer receives waybill requests from different source channels through a unified order receiving interface.

[0078] Furthermore, the waybill of the present invention is a service waybill with service nature, for example, a logistics waybill is used to provide delivery services for items; for example, a cleaning waybill is used to provide cleaning services for items; for example, a repair waybill is used to provide repair services for items, etc.

[0079] In the embodiment of the present invention, the business types of the waybill include pure distribution C2C business, pure distribution B2C business, pure distribution C2B business, pure distribution B2B business, warehouse distribution POP business, warehouse distribution ISV business, etc., and the corresponding business type identifiers may be wd_jdl_c2c, wd_jdl_b2c, wd_jdl_c2b, wd_jdl_b2b, pd_jdl_pop, pd_jdl_isv, etc. Among them, the source channel of the waybill may be a warehouse distribution waybill placed through a POP stationed in an e-commerce platform and requiring the e-commerce platform to provide warehouse distribution services, or a pure distribution waybill placed through a POP order and only requiring the e-commerce platform to provide distribution services; or, the source channel of the waybill may be a warehouse distribution waybill placed through a third-party organization / platform ISV ​​order and requiring the e-commerce platform to provide warehouse distribution services, or a pure distribution waybill placed through an ISV order and only requiring the e-commerce platform to provide distribution services.

[0080] Furthermore, the order receiving interface determines the business type identifier of the waybill according to the RequestProfile input parameter of the waybill from different source channels.

[0081] Step S102: According to the business type identifier, match the feature script identifier and the public script identifier corresponding to the waybill from the configuration database, and use the feature logic corresponding to the feature script identifier and the public logic corresponding to the public script identifier to verify and persist the feature attributes and public attributes of the waybill, and generate a transaction message; wherein the transaction message includes the target fulfillment center.

[0082] In an embodiment of the present invention, the configuration database stores the correspondence between business type identifiers and public script identifiers and feature script identifiers of different business types. When constructing the configuration database, the public logic part and the feature logic part in the waybill logic of different business types are analyzed and differentiated to sort out the common logic that is the same between different business types and the feature logic unique to each business type, and the correspondence between the public script identifier of the public script corresponding to the public logic, the feature script identifier of the feature script corresponding to the feature logic, and the business type identifier is stored. Therefore, when processing the waybill subsequently, the corresponding public logic and feature logic can be directly used to verify the waybill. Even if a new business type appears, it is only necessary to analyze the waybill logic of the new business type, develop the feature logic and add it to the configuration database, and the public logic can directly use the existing scripts in the configuration database.

[0083] In the embodiment of the present invention, Figure 2 As shown, the method for constructing a configuration database of the present invention comprises the following steps:

[0084] Step S201, counting various business types of warehousing and distribution business and pure distribution business.

[0085] In the embodiment of the present invention, the business types of pure distribution business include pure distribution C2C business, pure distribution B2C business, pure distribution C2B business, and pure distribution B2B business; the business types of warehousing and distribution business include warehousing and distribution POP business and warehousing and distribution ISV business.

[0086] Step S202, analyzing the waybill logic of the warehousing and distribution business and the pure distribution business under different business types, extracting the common logic of the warehousing and distribution business and the pure distribution business respectively, and constructing a common script identifier of the common script corresponding to the common logic.

[0087] In an embodiment of the present invention, the common part of the waybill logic of the warehousing and distribution business of different business types is extracted as the common logic of the warehousing and distribution business; and the common part of the waybill logic of the pure distribution business of different business types is extracted as the common logic of the pure distribution business. For example, the common part of the waybill logic of the warehousing and distribution business of the two business types of warehousing and distribution POP business and warehousing and distribution ISV business is extracted as the common logic of the warehousing and distribution business, and the public script identifier of the public logic script corresponding to the public logic of the warehousing and distribution business can be wd_jdl_common; for another example, the common part of the waybill logic of the pure distribution business of the four business types of pure distribution C2C business, pure distribution B2C business, pure distribution C2B business, and pure distribution B2B business is extracted as the common logic of the pure distribution business, and the public script identifier of the public logic script corresponding to the public logic of the pure distribution business can be pd_jdl_common.

[0088] Furthermore, the waybill logic of the warehouse distribution POP business and the warehouse distribution ISV business are taken as examples to explain the common logic of the warehouse distribution business. Among them, the waybill logic of the warehouse distribution POP business includes basic information verification -> information initialization -> user information verification -> order method information verification -> warehouse information verification -> carrier information verification -> address information analysis -> product information verification -> duplicate verification -> waybill number generation -> pre-occupied inventory -> persistence, and the waybill logic of the warehouse distribution ISV business includes basic information verification -> information initialization -> sensitive word verification -> user information verification -> duplicate verification Verification->Warehouse information verification->Carrier information verification->Address information parsing->Waybill number generation->Product information verification->Product merger->Inventory pledge verification->Get warehouse relocation information->Sale limit verification->Reserve inventory->Persistence. Therefore, the common parts of the waybill logic of the warehousing and distribution POP business and the warehousing and distribution ISV business are extracted: "basic information verification, information initialization, user information verification, warehouse information verification, carrier information verification, address information parsing, product information verification, duplicate verification, waybill number generation, reserve inventory, persistence" - as the public logic of the warehousing and distribution business.

[0089] Step S203, constructing a feature script identifier of a feature script corresponding to the feature logic according to the feature logic of the warehousing and distribution business and the pure distribution business under different business types.

[0090] In the embodiment of the present invention, the special part of the waybill logic of different business types under the warehousing and distribution business, except the common logic, is used as the feature logic of the warehousing and distribution business of different business types; and the special part of the waybill logic of different business types under the pure distribution business, except the common logic, is used as the feature logic of the pure distribution business of different business types. For example, the special part of the waybill logic of the warehousing and distribution POP business, except the common logic, is used as the feature logic of the warehousing and distribution POP business, and the feature script identifier of the corresponding feature logic script can be pd_jdl_pop_feature; the special part of the waybill logic of the warehousing and distribution ISV business, except the common logic, is used as the feature logic of the warehousing and distribution ISV business, and the feature script identifier of the corresponding feature logic script can be pd_jdl_isv_feature. For another example, the feature script identifiers of the feature logic scripts corresponding to the feature logic of pure C2C business, pure B2C business, pure C2B business, and pure B2B business are wd_jdl_c2c_feature, wd_jdl_b2c_feature, wd_jdl_c2b_feature, and wd_jdl_b2b_feature, respectively.

[0091] Furthermore, taking the waybill logic business of warehousing and distribution POP business and warehousing and distribution ISV business as an example, the characteristic logic of warehousing and distribution POP business and warehousing and distribution ISV business is explained, among which, the special parts of the waybill logic of warehousing and distribution POP business except the public logic include "order method information verification", therefore, the characteristic logic of warehousing and distribution POP business includes "order method information verification"; the special parts of the waybill logic of warehousing and distribution ISV business except the public logic include "sensitive word verification->goods consolidation->inventory pledge verification->obtain warehouse moving information->restricted sale verification", therefore, the characteristic logic of warehousing and distribution ISV business includes "sensitive word verification, goods consolidation, inventory pledge verification, obtaining warehouse moving information, restricted sale verification".

[0092] Step S204: Generate the configuration database using the correspondence between the public script identifier, the characteristic script identifier and the business type identifier.

[0093] In the embodiment of the present invention, a first correspondence relationship between a public script identifier and a service type identifier and a second correspondence relationship between a characteristic script identifier and a service type identifier are constructed, and a configuration database is generated using the first correspondence relationship and the second correspondence relationship.

[0094] In an embodiment of the present invention, through the method for constructing a configuration database of the present invention, it is possible to sort out the waybill logics of different business types of existing warehousing and distribution business and pure distribution business, extract the common parts therein as the common logic, and use the remaining special parts as the characteristic logics of various business types. The configuration database is constructed according to the correspondence between the common scripts and the characteristic scripts and the business type identifiers. Therefore, when other business types are subsequently added, it is only necessary to develop the characteristic logic of the newly added business type, and directly apply the existing common logic to the newly added business type. This can improve the reuse rate of the business code, greatly reduce the development cost and maintenance cost, weaken the logical coupling of the existing independent interfaces, and enhance the adaptability and extensibility of the method for processing waybill requests of the present invention.

[0095] In the embodiment of the present invention, Figure 3 As shown, the verification method of the attribute data of the waybill of the present invention comprises the following steps:

[0096] Step S301, extracting the common attribute data of the common attributes and the characteristic attribute data of the characteristic attributes of the waybill respectively according to the business type identifier.

[0097] In the embodiment of the present invention, according to the construction process of the configuration database, the common attributes included in the waybill of different business types can be determined. For example, the common attributes of the warehouse distribution business include basic information, user information, warehouse information, carrier information, address information, product information, and inventory information; the characteristic attributes of the warehouse distribution POP business include order method information; the characteristic attributes of the warehouse distribution ISV business include product consolidation information, inventory pledge information, warehouse relocation information, and sales restriction information.

[0098] Step S302: Perform non-empty check and validity check on the common attribute data and the characteristic attribute data.

[0099] Step S3021, determine whether the common attribute data and the characteristic attribute data of the characteristic attribute data are empty, if yes, go to step S3025; if not, go to step S3022.

[0100] In the embodiment of the present invention, non-empty check refers to checking whether the public attribute data of each public attribute and the characteristic attribute data of each characteristic attribute are empty. For example, the public attribute data of the public attributes of the waybill of the warehouse distribution POP business and the warehouse distribution ISV business are non-empty checked to determine whether the data values ​​of the basic information, user information, warehouse information, carrier information, address information, product information, and inventory information are empty; or, the characteristic attribute data of the characteristic attributes of the waybill of the warehouse distribution POP business are non-empty checked to determine whether the data value of the order method information is empty; or, the characteristic attribute data of the characteristic attributes of the waybill of the warehouse distribution ISV business are non-empty checked to determine whether the data values ​​of the product consolidation information, inventory pledge information, warehouse relocation information, and sales restriction information are empty.

[0101] Step S3022, determine whether the common attribute data and the characteristic attribute data of the characteristic attribute data meet the corresponding attribute data standards, if yes, go to step S3023; if not, go to step S3024.

[0102] In an embodiment of the present invention, when the public attribute data of each public attribute and the characteristic attribute data of each characteristic attribute are both non-empty, the verification result of the non-empty check is determined to be a successful verification, and the validity verification of the public attribute data of each public attribute and the characteristic attribute data of each characteristic attribute is continued.

[0103] Validity verification refers to verifying whether the public attribute data and characteristic attribute data meet the corresponding attribute data standards based on the attribute data standards of various public attributes and the attribute data standards of various characteristic attributes pre-defined in the configuration database. For example, basic information includes user name and contact information, product information includes product unit price and product quantity, and inventory information includes product inventory. The public attribute data of the public attributes of the waybill of the warehouse distribution POP business and the warehouse distribution ISV business are verified for validity to determine whether the user name meets the naming standard, whether the contact information meets the regular expression, whether the address information is a string type, whether the product unit price is a floating point variable greater than 0, whether the product quantity is a positive integer, whether the product inventory is a natural number, and whether the inventory pledge information is a Boolean variable.

[0104] Step S3023, determining that the verification result of the validity verification is successful.

[0105] In the embodiment of the present invention, when the public attribute data of each public attribute and the characteristic attribute data of each characteristic attribute all meet the corresponding attribute data standards, the verification result of the validity verification is determined to be a successful verification.

[0106] Step S3024, determining that the verification result of the validity verification is verification failure.

[0107] In the embodiment of the present invention, when any one of the common attribute data and / or characteristic attribute data does not meet the corresponding attribute data standard, the verification result of the validity verification is determined to be a verification failure.

[0108] Step S3025, determining that the verification result of the non-empty verification is verification failure.

[0109] In the embodiment of the present invention, when any one of the common attribute data and / or characteristic attribute data is empty, the verification result of the non-empty verification is determined to be a verification failure.

[0110] Step S303, when the verification results of the validity check and the non-empty check are both successful, the public attribute data and the characteristic attribute data are persisted.

[0111] In an embodiment of the present invention, when the public attribute data of each public attribute and the characteristic attribute data of each characteristic attribute are not empty and meet the corresponding attribute data standards, the waybill is persisted and a transaction message is generated to determine the fulfillment center identifier of each waybill.

[0112] In an embodiment of the present invention, the verification method of the attribute data of the waybill of the present invention is used to verify the data of the common attributes and characteristic attributes to ensure the accuracy of the attribute data, so as to facilitate the normal persistent processing of the subsequent waybill and improve the efficiency of waybill processing.

[0113] In the embodiment of the present invention, Figure 4 As shown, the method for generating transaction messages of the warehouse distribution POP business of the present invention includes the following steps:

[0114] Step S401, using the common logic to verify whether the basic information of the waybill is correct and whether the user information is normal.

[0115] In the embodiment of the present invention, the verification of basic information includes the verification of user name and contact information, the verification of user information includes the verification of user account status, user account validity period and user account security, the public logic stores the basic information table and user information table of all users, the basic information table includes the correspondence between the user name and contact information of each user, the user information table includes the user account authority, user account validity period and user blacklist of each user, and when the public logic is used to verify the basic information and user information of the waybill, it includes:

[0116] Step S4011, matching the user name and contact information of the basic information of the waybill with the basic information table to determine whether the user name and contact information of the basic information exist in the user name table.

[0117] Step S4012, searching the user information table according to the user name in the user name table, and determining whether the user name of the waybill belongs to the user blacklist.

[0118] Step S4013, when the user name of the waybill does not belong to the user blacklist, the validity period of the user account corresponding to the user name is compared with the current time to determine whether the validity period of the user account is less than or equal to the current time. If so, it is determined that the basic information of the waybill is correct and the user information is normal.

[0119] Step S402, performing granular analysis on the address information of the waybill to generate a granular analysis result.

[0120] In an embodiment of the present invention, when the basic information of the waybill is correct and the user information is normal, the address information of the waybill is granularly parsed to generate a granular parsing result. The granularity of the granular parsing result includes country, province, city, district, township, etc., and the minimum granularity is the delivery point.

[0121] Step S403: locate the target fulfillment center of the waybill based on the granular analysis result and the warehouse information.

[0122] In the embodiment of the present invention, the warehouse information includes the latitude and longitude coordinates, storage conditions, service types, etc. of each fulfillment center. Since the service types included in the waybill may be various, it is necessary to determine the fulfillment center that meets the waybill based on the granular analysis result of the address information, specifically:

[0123] Step S4031, according to the secondary granularity unit of the granular analysis result, match the first fulfillment center that satisfies the waybill from the fulfillment center table.

[0124] Step S4032: Compare the service types included in the waybill with the service types of the warehouse information, and select a second fulfillment center that includes all service types of the waybill.

[0125] Step S4033, calculate the delivery distance between the second fulfillment center and the final granularity unit of the granular analysis result, and select the second fulfillment center corresponding to the minimum value of the delivery distance as the target fulfillment center of the waybill; wherein the delivery distance is determined based on the latitude and longitude coordinates of the warehouse information.

[0126] Among them, the secondary granularity unit of the granular analysis result can be any one of the provinces, cities, districts, townships, etc., which can be determined according to the longitude and latitude coordinates of the fulfillment center; the final granularity unit of the granular analysis result is the distribution point. When calculating the delivery distance, it is determined based on the difference between the longitude and latitude coordinates of the distribution point and the longitude and latitude coordinates of the fulfillment center of the warehouse information.

[0127] Step S404, obtaining the fulfillment time and payment method from the initialization information and the carrier information.

[0128] In the embodiment of the present invention, the initialization information is the fulfillment time and the fulfilment person identification specified when placing an order, and the carrier information includes the carrier identification specified or defaulted when placing an order, the payment method, etc. Among them, the carrier identification can be the same as or different from the e-commerce platform identification; the payment method can be paid by post or collected on delivery, etc., and the ordering party pays the waybill fee for paid by post, and the consignee pays the waybill fee for collected on delivery.

[0129] Step S405, determining the target fulfiller identifier of the waybill according to the product information of the waybill, the fulfillment time and the inventory information.

[0130] In the embodiment of the present invention, the configuration database includes an inventory information table, which stores inventory information, including service type, service inventory, service personnel identification, service time period, etc. After determining the target fulfillment center of the waybill, the target fulfiller that meets the fulfillment time, fulfiller identification and product quantity requirements is selected from the inventory information according to the fulfillment time, fulfiller identification and product quantity. Specifically:

[0131] Step S4051, compare the fulfillment time with the serviceable time period to determine whether the fulfillment time is within the serviceable time period.

[0132] Step S4052, when the performance time belongs to the serviceable time period, match the service personnel ID that is the same as the performer ID as the target performer ID of the waybill.

[0133] In the embodiment of the present invention, when the initialization information does not specify the fulfilment party identifier, the service personnel identifier is randomly matched to the waybill as the target fulfilment party identifier of the waybill.

[0134] In the embodiment of the present invention, the user account permissions include ordinary permissions and advanced permissions. When matching service personnel identifications, under the same circumstances, the service personnel identification is preferentially assigned to the user account with advanced permissions.

[0135] Step S406, calculating the waybill fee of the waybill through the common logic according to the product information of the waybill, the target fulfillment center and the granular analysis result.

[0136] In an embodiment of the present invention, the waybill fee is calculated based on the unit price of the goods, the quantity of the goods, the delivery distance between the target fulfillment center and the delivery point of the granular analysis result.

[0137] Step S407, using the feature logic to verify the order method information of the waybill, and determine the order method identifier of the waybill.

[0138] In an embodiment of the present invention, the order method information includes a batch order method and a manual single order method, and the corresponding order method identifiers include batch and manual single. By determining the order method identifier, it is convenient to provide flexible service solutions for batch orders in the later stage to improve service efficiency.

[0139] Furthermore, the processing of the characteristic logic of step S407 may be performed synchronously with the processing of the common logic of steps S401 - S406 , and the execution order is not specific.

[0140] Step S408, combines the target fulfillment center, the fulfillment time, the target fulfiller identifier, the payment method, the waybill fee and the order method identifier to generate a transaction message for the waybill of the warehouse and distribution POP business.

[0141] Step S409: construct a persistent pre-emption task according to the transaction message.

[0142] In an embodiment of the present invention, the message producer sends the persistent pre-emption task to the configuration database, so that the configuration database deducts the data value of the service inventory of the target fulfillment center in the inventory information to realize the persistent processing of the inventory. Specifically:

[0143] According to the quantity of the goods, the data value of the service inventory of the target fulfillment center in the inventory information table matching the transaction message is deducted.

[0144] In an embodiment of the present invention, through the method for generating transaction messages of the warehousing and distribution POP business of the present invention, the waybills of the warehousing and distribution POP business are processed using public logic and feature logic respectively, corresponding transaction messages are generated, and inventory information and transaction messages are persisted, thereby improving the processing efficiency of waybill requests, facilitating the subsequent issuance of transaction messages, and improving the fulfillment execution efficiency of waybills.

[0145] In the embodiment of the present invention, Figure 5 As shown, the method for generating transaction messages of the warehouse distribution ISV business of the present invention includes the following steps:

[0146] In an embodiment of the present invention, steps S501-505 of the method for generating transaction messages of the warehousing and distribution ISV business of the present invention are the same as steps S401-S405 of the method for generating transaction messages of the warehousing and distribution POP business, and are not repeated here.

[0147] Step S506, use the feature logic to perform sensitive word detection on the waybill to determine whether the sensitive detection result of the waybill is qualified. If yes, go to step S507; if not, go to step S513.

[0148] In an embodiment of the present invention, a sensitive word library in a configuration database is used to perform sensitive word detection on various information of the waybill, and analyze whether there are policy sensitive words, related information involving pornography, gambling, drugs, etc. in the various information of the waybill. If so, the sensitive detection result is unqualified, and if not, the sensitive detection result is qualified.

[0149] Step S507, updating the target fulfillment center and target fulfiller identifier of the waybill according to the product consolidation information and the warehouse relocation information.

[0150] In an embodiment of the present invention, when the goods merging information is TRUE, it indicates that multiple goods included in the waybill can be merged to be executed by the same service personnel, so the target performer identifier is updated, and multiple different target performer identifiers are modified to the same one, and the waybill is fulfilled by the updated target performer identifier; when the goods merging information is FALSE, it indicates that multiple goods included in the waybill cannot be merged to be executed by the same service personnel, so the target performer identifier of the waybill is not modified, and the original target performer identifier is used as the updated target performer identifier.

[0151] In an embodiment of the present invention, the warehouse relocation information includes the mutual adjustment information of each fulfillment center, that is, the service personnel and service time periods shared by each fulfillment center and available for mutual adjustment. According to the warehouse relocation information, in the event of a conflict between the target fulfillment center and target fulfiller identification of the waybill, the target fulfillment center and target fulfiller identification of each waybill can be re-determined to complete all waybills as early, quickly and with high quality as possible, and obtain updated target fulfillment center and target fulfiller identifications.

[0152] Step S508: execute the characteristic logic and modify the unit price of the goods in the waybill in combination with the sales restriction information.

[0153] In an embodiment of the present invention, the sales restriction information includes the upper limit quantity of the service types that a waybill can provide. If the quantity of goods is greater than the data value of the sales restriction information, the unit price of the goods exceeding the data value of the sales restriction information is adjusted.

[0154] Step S509, determining the supplementary information of the waybill from the inventory pledge information.

[0155] In the embodiment of the present invention, the inventory pledge information refers to the ISV pledging the goods to the e-commerce platform and the e-commerce platform collecting the payment on its behalf. The attached information is the amount of the payment collected, which is used to remind the fulfillment service personnel to collect the payment for accessories and other goods on its behalf.

[0156] Step S510, calculates the waybill fee of the waybill through the common logic according to the revised unit price of the goods of the waybill, the product information, the ancillary information, the updated target fulfillment center and the granular analysis result.

[0157] In an embodiment of the present invention, the waybill fee is calculated based on the revised unit price of the goods, the quantity of the goods, the number of accessories included in the ancillary information, the unit price of the accessories included in the ancillary information, the updated delivery distance between the target fulfillment center and the delivery point of the granular analysis result.

[0158] Step S511, combines the updated target fulfillment center and target fulfiller identifiers, the fulfillment time, the payment method, the ancillary information, and the waybill fee to generate a transaction message for the waybill of the warehousing and distribution ISV business.

[0159] In the embodiment of the present invention, step S512 of the method for generating transaction messages for the warehousing and distribution ISV business of the present invention is the same as step S409 of the method for generating transaction messages for the warehousing and distribution POP business, and will not be repeated here.

[0160] Step S513: reject the waybill request.

[0161] In an embodiment of the present invention, through the method for generating transaction messages of the warehousing and distribution ISV business of the present invention, the waybills of the warehousing and distribution ISV business are processed using public logic and feature logic respectively, corresponding transaction messages are generated, and inventory information and transaction messages are persistently deducted and stored, thereby improving the processing efficiency of waybill requests, facilitating the subsequent issuance of transaction messages, and improving the fulfillment execution efficiency of waybills.

[0162] Step S103, using the sending interface to send the transaction message of the waybill to the message queue of the fulfillment topic corresponding to the fulfillment center identifier of the target fulfillment center, so that the message consumers subscribed to each of the fulfillment topics consume the transaction messages in the message queue.

[0163] In the embodiment of the present invention, the message producer determines the transaction message of each waybill by persisting the waybill. The transaction message includes the fulfillment center identifier of the target fulfillment center corresponding to each waybill. Since different fulfillment centers correspond to different topic partitions, Figure 6As shown, the distributed system 600 includes an order receiving interface 601, a message producer 602, a sending interface 603, a configuration database 604, multiple topic partitions 605 and multiple message consumers 606. The message producer 602 receives waybill requests from different source channels through a unified order receiving interface 601, processes the waybill requests according to the configuration database 604, and generates transaction messages for the waybill; the message producer 602 sends the transaction messages to the message queues of the corresponding topic partitions 605 through a unified sending interface 603, and the sending interface 603 sends the transaction messages asynchronously according to the fulfillment center identifier of the target fulfillment center of the transaction message, so that each message consumer 606 of the distributed system 600 subscribes to the required topic partition 605 according to its own fulfillment center identifier, receives the message queue pushed by the subscribed topic partition 605, or each topic partition 605 directly pushes the transaction message to each message consumer 606, and the message consumer 606 filters the transaction message that matches its own fulfillment center identifier.

[0164] Furthermore, the configuration database includes the correspondence between each fulfillment center identifier and the subject partition, so that the sending interface can realize the asynchronous sending of transaction messages according to the correspondence between the fulfillment center identifier and the subject partition.

[0165] Furthermore, the order-taking interface publishes services to the outside world, and the published items include interface name and method name, and uniformly receives order-taking requests of different business types; when the order-taking interface is started, the message producer loads the first corresponding relationship and the second corresponding relationship of the configuration database into the local cache; the message producer determines the business type identifier of the waybill request from the input parameter RequestProfile, determines the public script identifier and the feature script identifier, and uses the public logic and feature logic to process the waybill request to generate a transaction message for the waybill; the sending interface loads the correspondence between the fulfillment center identifier and the subject partition into the local cache; the sending interface asynchronously sends transaction messages to the subject partitions corresponding to each fulfillment center identifier based on the correspondence between the fulfillment center identifier and the subject partition.

[0166] In an embodiment of the present invention, the sending interface can also store the correspondence between the waybill number of the waybill request and the transaction message, write the waybill status into the status flow and then send it to each subject partition, while tracking the transaction message throughout the process and synchronizing the waybill data.

[0167] In an embodiment of the present invention, one or more waybill requests are received through an order receiving interface; wherein the waybill request includes a business type identifier; according to the business type identifier, a feature script identifier and a public script identifier corresponding to the waybill are matched from a configuration database, and the feature attributes and public attributes of the waybill are verified and persisted using the feature logic corresponding to the feature script identifier and the public logic corresponding to the public script identifier, respectively, to generate a transaction message; wherein the transaction message includes a target fulfillment center; a sending interface is used to send the transaction message of the waybill to a message queue of a fulfillment topic corresponding to the fulfillment center identifier of the target fulfillment center, so that message consumers subscribed to each of the fulfillment topics consume the transaction messages in the message queue, and the like steps can provide a unified order receiving interface and sending interface for waybill processing and transaction message sending, so that message consumers subscribe to the required message queues according to the corresponding fulfillment center, thereby improving the efficiency and accuracy of waybill processing, reducing logic duplication and coupling, increasing code reuse rate, reducing maintenance costs, and enhancing user experience.

[0168] Figure 7 is a schematic diagram of the main modules of the apparatus for processing waybill request according to an embodiment of the present invention, such as Figure 7 As shown, the processing device 700 of the waybill request of the present invention includes:

[0169] The receiving module 701 is used to receive one or more waybill requests through the order receiving interface; wherein the waybill request includes a business type identifier.

[0170] The transaction processing module 702 is used to match the feature script identifier and the public script identifier corresponding to the waybill from the configuration database according to the business type identifier, and use the feature logic corresponding to the feature script identifier and the public logic corresponding to the public script identifier to verify and persist the feature attributes and public attributes of the waybill, respectively, to generate a transaction message; wherein the transaction message includes the target fulfillment center.

[0171] The sending module 703 is used to use the sending interface to send the transaction message of the waybill to the message queue of the fulfillment topic corresponding to the fulfillment center identifier of the target fulfillment center, so that the message consumers subscribed to each of the fulfillment topics consume the transaction messages in the message queue.

[0172] In an embodiment of the present invention, through modules such as a receiving module, a transaction processing module and a sending module, a unified order receiving interface and a sending interface can be provided for waybill processing and sending of transaction messages, so that message consumers can subscribe to the required message queues according to the corresponding fulfillment center, thereby improving the efficiency and accuracy of waybill processing, reducing logical duplication and coupling, increasing code reuse rate, reducing maintenance costs, and improving user experience.

[0173] Figure 8 An exemplary system architecture diagram of a waybill request processing device suitable for use in a waybill request processing method or an interface program according to an embodiment of the present invention is shown. Figure 8 As shown, an exemplary system architecture of a method for processing a waybill request or an apparatus for processing a waybill request according to an embodiment of the present invention includes:

[0174] like Figure 8 As shown, system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. Network 804 is used to provide a medium for communication links between terminal devices 801, 802, 803 and server 805. Network 804 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0175] The user can use the terminal devices 801, 802, 803 to interact with the server 805 through the network 804 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 801, 802, 803, such as waybill applications, shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0176] The terminal devices 801 , 802 , and 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0177] The server 805 may be a server that provides various services, such as a background management server that provides support for waybill websites browsed by users using the terminal devices 801, 802, and 803. The background management server may analyze and process the received waybill request and other data, and feed back the processing results (transaction messages) to the terminal devices 801, 802, and 803.

[0178] It should be noted that the method for processing the waybill request provided in the embodiment of the present invention is generally executed by the server 805 , and accordingly, the processing device for the waybill request is generally set in the server 805 .

[0179] It should be understood that Figure 8 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0180] Fig. 9 is a schematic diagram of a computer system of a terminal device or server suitable for implementing an embodiment of the present invention, such as Fig. 9 As shown, the computer system 900 of the terminal device or server of the embodiment of the present invention includes:

[0181] A central processing unit (CPU) 901 can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage section 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0182] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.

[0183] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present invention are executed.

[0184] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0185] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0186] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be arranged in a processor. For example, they may be described as follows: a processor includes a receiving module, a transaction processing module, and a sending module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the sending module may also be described as a "module that uses a sending interface to send the transaction message of the waybill to the message queue of the fulfillment topic corresponding to the fulfillment center identifier of the target fulfillment center."

[0187] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by one of the devices, the device includes: receiving one or more waybill requests through an order receiving interface; wherein the waybill request includes a business type identifier; according to the business type identifier, matching the feature script identifier and the public script identifier corresponding to the waybill from the configuration database, and respectively using the feature logic corresponding to the feature script identifier and the public logic corresponding to the public script identifier to verify and persist the feature attributes and public attributes of the waybill, and generate a transaction message; wherein the transaction message includes a target fulfillment center; using the sending interface to send the transaction message of the waybill to the message queue of the fulfillment topic corresponding to the fulfillment center identifier of the target fulfillment center, so that the message consumers subscribed to each of the fulfillment topics consume the transaction messages in the message queue.

[0188] According to the technical solution of the embodiment of the present invention, the existing independent order-taking systems are divided, the public logic and the feature logic are decoupled, and a unified order-taking interface and an order-placing interface are provided. The order-taking interface receives orders from different source channels, and the waybills are verified and persisted using the public logic and the feature logic. Corresponding transaction messages are generated and asynchronously issued by the issuing interface. The issuing interface interacts with the production layer, unifies the docking specifications, improves the docking efficiency, reduces the coupling and repeatability of the logic, standardizes the system boundaries, unifies the system's responsibilities, improves code reuse, improves business monitoring and statistical analysis efficiency, and reduces operation and maintenance costs.

[0189] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for processing a waybill request, It is characterized in that include: Receiving one or more waybill requests through an order receiving interface; wherein the waybill request includes a business type identifier; According to the business type identifier, the characteristic script identifier and the public script identifier corresponding to the waybill are matched from the configuration database, and the characteristic attributes and public attributes of the waybill are verified and persistently processed using the characteristic logic corresponding to the characteristic script identifier and the public logic corresponding to the public script identifier, respectively, to generate a transaction message; wherein the transaction message includes a target fulfillment center; The transaction message of the waybill is sent to the message queue of the fulfillment topic corresponding to the fulfillment center identifier of the target fulfillment center by using the sending interface, so that the message consumers subscribed to each of the fulfillment topics consume the transaction messages in the message queue.

2. The method according to claim 1, It is characterized in that The verification and persistence processing of the characteristic attributes and common attributes of the waybill includes: extracting the common attribute data of the common attributes and the characteristic attribute data of the characteristic attributes of the waybill respectively according to the business type identifier; Performing non-empty check and validity check on the common attribute data and the characteristic attribute data; When the verification results of the validity check and the non-empty check are both successful, the public attribute data and the characteristic attribute data are persisted.

3. The method according to claim 2, It is characterized in that The performing non-empty check and validity check on the common attribute data and the characteristic attribute data includes: Determine whether the common attribute data and the characteristic attribute data of the characteristic attribute data are empty; When the common attribute data of each of the common attributes and the characteristic attribute data of each of the characteristic attributes are not empty, it is determined whether the common attribute data and the characteristic attribute data of the characteristic attribute data meet the corresponding attribute data standards.

4. The method according to claim 2, It is characterized in that The public attributes include basic information, user information, warehouse information, carrier information, address information, product information, and inventory information; the persistent processing of the public attribute data and the characteristic attribute data includes: The following steps are performed using the common logic: Verify whether the basic information of the waybill is correct and whether the user information is normal; Performing granular analysis on the address information of the waybill, and locating a target fulfillment center of the waybill according to the granular analysis result of the granular analysis and the warehouse information; The fulfillment time and payment method are obtained from the initialization information and the carrier information, and the target fulfiller identifier of the waybill is determined according to the product information of the waybill, the fulfillment time and the inventory information.

5. The method according to claim 4, It is characterized in that The using of the common logic to verify whether the basic information of the waybill is correct and whether the user information is normal includes: Matching the user name and contact information of the basic information of the waybill with the basic information table to determine whether the user name and contact information of the basic information exist in the user name table; According to the user name in the user name table, searching the user information table to determine whether the user name of the waybill belongs to the user blacklist; When the user name of the waybill does not belong to the user blacklist, the validity period of the user account corresponding to the user name is compared with the current time to determine whether the validity period of the user account is less than or equal to the current time.

6. The method according to claim 5, It is characterized in that The locating the target fulfillment center of the waybill according to the granular analysis result of the granular analysis and the warehouse information includes: According to the secondary granularity unit of the granular analysis result, matching a first fulfillment center that satisfies the waybill from the fulfillment center table; Compare the service types included in the waybill with the service types of the warehouse information, and select a second fulfillment center that includes all service types of the waybill; Calculate the delivery distance between the second fulfillment center and the final granularity unit of the granular analysis result, and select the second fulfillment center corresponding to the minimum value of the delivery distance as the target fulfillment center of the waybill; wherein the delivery distance is determined based on the latitude and longitude coordinates of the warehouse information.

7. The method according to claim 4, It is characterized in that The business type identifier includes warehouse distribution POP business, and the characteristic attribute of the warehouse distribution POP business includes order method information; the persistent processing of the public attribute data and the characteristic attribute data also includes: Calculate the waybill fee of the waybill through the common logic according to the product information of the waybill, the target fulfillment center and the granular analysis result; Verify the ordering method information of the waybill by using the feature logic to determine the ordering method identifier of the waybill; The target fulfillment center, the fulfillment time, the target fulfiller identifier, the payment method, the waybill fee and the order method identifier are combined to generate a transaction message for the waybill of the warehousing and distribution POP business and build a persistent pre-emption task.

8. The method according to claim 4, It is characterized in that The business type identifier also includes warehouse distribution ISV business, and the characteristic attributes of the warehouse distribution ISV business include product consolidation information, inventory pledge information, warehouse relocation information, and sales restriction information; The persistent processing of the common attribute data and the characteristic attribute data further includes: Perform sensitive word detection on the waybill using the feature logic, and if the sensitive word detection result of the waybill is qualified, update the target fulfillment center and target fulfiller identifier of the waybill according to the goods consolidation information and the warehouse relocation information; Execute the characteristic logic, modify the unit price of the goods in the waybill in combination with the restricted sale information, and determine the auxiliary information of the waybill from the inventory pledge information; Calculate the waybill fee of the waybill through the common logic according to the revised unit price of the goods of the waybill, the goods information, the ancillary information, the updated target fulfillment center and the granular analysis result; Combine the updated target fulfillment center and target fulfiller identifiers, the fulfillment time, the payment method, the ancillary information, and the waybill fee to generate a transaction message for the waybill of the warehousing and distribution ISV business and build a persistent pre-emption task.

9. The method according to claim 1, It is characterized in that The generation of the configuration database includes: Statistics on various business types of warehousing and distribution business and pure distribution business; Analyze the waybill logic of the warehousing and distribution business and the pure distribution business under different business types, extract the common logic of the warehousing and distribution business and the pure distribution business respectively, and construct a public script identifier of the public script corresponding to the public logic; According to the characteristic logic of the warehousing and distribution business and the pure distribution business under different business types, a characteristic script identifier of the characteristic script corresponding to the characteristic logic is constructed; The configuration database is generated using the correspondence between the common script identifier, the characteristic script identifier and the business type identifier.

10. The method according to claim 1, It is characterized in that Before receiving one or more waybill requests through the order receiving interface, a service is published to different source channels of the waybill requests, and the publishing items of the publishing service include the interface name and method name of the order receiving interface.

11. A device for processing waybill requests, It is characterized in that include: A receiving module, configured to receive one or more waybill requests through an order receiving interface; wherein the waybill request includes a business type identifier; A transaction processing module, used to match the characteristic script identifier and the public script identifier corresponding to the waybill from the configuration database according to the business type identifier, and to verify and persist the characteristic attributes and public attributes of the waybill using the characteristic logic corresponding to the characteristic script identifier and the public logic corresponding to the public script identifier, respectively, to generate a transaction message; wherein the transaction message includes a target fulfillment center; The sending module is used to use the sending interface to send the transaction message of the waybill to the message queue of the fulfillment topic corresponding to the fulfillment center identifier of the target fulfillment center, so that the message consumers subscribed to each of the fulfillment topics consume the transaction messages in the message queue.

12. An electronic device for processing a waybill request, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 10.

13. A computer readable medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.