Method and device for processing logistics settlement data

By searching and analyzing the target settlement configuration information in the logistics settlement data processing, the problems of strong code coupling and poor flexibility in the existing technology are solved, the universality and efficiency of logistics settlement data processing are improved, and resource consumption is reduced.

CN119005827APending Publication Date: 2024-11-22BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310553208.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-17
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The prior art has problems such as strong code coupling, poor flexibility and poor scalability when processing logistics settlement data, resulting in high development costs and low efficiency, especially when there are many new logistics settlement services.

Method used

By finding the target settlement configuration information that matches the logistics settlement business from the preset multiple settlement configuration information, and using the configuration parser to analyze the data processing strategy and process the settlement data, it can improve universality, automation and efficiency.

Benefits of technology

It improves the universality, automation and efficiency of processing logistics settlement data, reduces resource consumption, and overcomes the problems of insufficient code coupling and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119005827A_ABST
    Figure CN119005827A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for processing logistics settlement data, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: in response to receiving a settlement processing request of any logistics settlement service, searching target settlement configuration information matched with the logistics settlement service from multiple preset settlement configuration information; the target settlement configuration information is obtained by inheriting basic configuration information of the logistics settlement service through a configuration framework bound with the logistics settlement service; analyzing a data processing strategy contained in the target settlement configuration information to process settlement data contained in the settlement processing request; according to the embodiment of the invention, the problems of relatively strong code coupling, relatively poor flexibility and relatively poor expansibility of logistics settlement data processing in the prior art are solved. The universality, the automation degree and the efficiency of processing the logistics settlement data are improved, and the resource consumption of processing the settlement data 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 logistics technology, and in particular to a method and device for processing logistics settlement data. Background Art

[0002] With the development and popularization of e-commerce applications, the requirements for the logistics processing part of e-commerce applications are becoming higher and higher.

[0003] At present, the settlement business of various logistics participants is subdivided into more and more business types. Various business types need to be connected to e-commerce applications for settlement processing, and different business types correspond to different settlement rules. The existing method requires writing corresponding business codes for the settlement rules corresponding to each logistics settlement business to process the settlement data of the logistics settlement business.

[0004] The existing methods have the problems of strong code coupling, poor flexibility and poor scalability in processing logistics settlement data, especially when the number of new logistics settlement businesses is large, which increases the development cost of e-commerce applications and reduces the efficiency of developing e-commerce applications. Summary of the invention

[0005] In view of this, the embodiment of the present invention provides a method and device for processing logistics settlement data, which can respond to receiving a settlement processing request of any logistics settlement business, and search for target settlement configuration information matching the logistics settlement business from a plurality of preset settlement configuration information; the target settlement configuration information is obtained by inheriting the basic configuration information of the logistics settlement business through a configuration framework bound to the logistics settlement business; the data processing strategy contained in the target settlement configuration information is parsed to process the settlement data included in the settlement processing request; the embodiment of the present invention overcomes the problems of strong code coupling, poor flexibility and poor expansibility in the prior art of processing logistics settlement data. The versatility, automation and efficiency of processing logistics settlement data are improved, and the resource consumption of processing settlement data is reduced.

[0006] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a method for processing logistics settlement data is provided, characterized in that it includes: in response to receiving a settlement processing request for any kind of logistics settlement business, searching for target settlement configuration information matching the logistics settlement business from a preset plurality of settlement configuration information; wherein the target settlement configuration information is obtained by inheriting the basic configuration information of the logistics settlement business through a configuration framework bound to the logistics settlement business; utilizing a configuration parser corresponding to the logistics settlement business to parse the data processing strategy contained in the target settlement configuration information, and processing the settlement data included in the settlement processing request according to the data processing strategy.

[0007] Optionally, the method for processing logistics settlement data further includes: in response to receiving a new configuration request for a new logistics settlement business, determining whether there is target basic configuration information matching the new logistics settlement business from a plurality of preset basic configuration information; if so, generating a new configuration framework for the new logistics settlement business by inheriting the target basic configuration information, and binding the new configuration framework to the new logistics settlement business, inheriting the target basic configuration information through the new configuration framework, and generating new settlement configuration information for the new logistics settlement business.

[0008] Optionally, the method for processing logistics settlement data further includes: the settlement configuration information includes any one or more of function configuration information, interface configuration information, and custom configuration information; a logistics settlement business configuration information template is provided so that the logistics settlement end provides settlement configuration information related to the logistics settlement business based on the logistics settlement business configuration information template; and basic configuration information corresponding to the logistics settlement business is constructed based on the settlement configuration information provided by the logistics settlement end, as well as a configuration framework that inherits the basic configuration information.

[0009] Optionally, the preset multiple settlement configuration information is stored in a configuration cache; searching for target settlement configuration information matching the logistics settlement business from the preset multiple settlement configuration information, including: registering a service instance of the logistics settlement business to a query business of the configuration cache; searching for one or more target settlement configuration information matching the logistics settlement business from the preset multiple settlement configuration information stored in the configuration cache through the service instance and the query business.

[0010] Optionally, the method for processing logistics settlement data further includes: the configuration cache includes a local cache and a distributed cache; monitoring changes in settlement configuration information of any type of settlement configuration information, and resetting the settlement configuration information stored in the distributed cache; broadcasting a change message to each service instance of the logistics settlement business, so that each service instance of the logistics settlement business deletes the settlement configuration information stored in the local cache according to the change message.

[0011] Optionally, the preset multiple settlement configuration information is stored in a configuration cache; the configuration cache includes a local cache and a distributed cache; searching for one or more target settlement configuration information matching the logistics settlement business from the preset multiple settlement configuration information, including: searching for one or more target settlement configuration information matching the logistics settlement business from the local cache; if not found, searching for one or more target settlement configuration information matching the logistics settlement business from the distributed cache.

[0012] Optionally, the preset multiple settlement configuration information is stored in a data source; and one or more target settlement configuration information matching the logistics settlement business is searched from the preset multiple settlement configuration information, including: when one or more target settlement configuration information matching the logistics settlement business is not found in the configuration cache, one or more target settlement configuration information matching the logistics settlement business is searched from the data source.

[0013] Optionally, the configuration parser is a preset tracking program; using the configuration parser corresponding to the logistics settlement business, the data processing strategies contained in the one or more target settlement configuration information are parsed, including: using the preset tracking program corresponding to the logistics settlement business to parse out the data processing strategies contained therein from one or more target settlement configuration information.

[0014] To achieve the above-mentioned purpose, according to a second aspect of an embodiment of the present invention, a device for processing logistics settlement data is provided, characterized in that it comprises: a configuration information determination module and a settlement data processing module; wherein,

[0015] The configuration information determination module is used to respond to receiving a settlement processing request of any logistics settlement business and search for target settlement configuration information matching the logistics settlement business from a plurality of preset settlement configuration information; wherein the target settlement configuration information is obtained by inheriting the basic configuration information of the logistics settlement business through a configuration framework bound to the logistics settlement business;

[0016] The settlement data processing module is used to utilize the configuration parser corresponding to the logistics settlement business to parse the data processing strategy included in the target settlement configuration information, and process the settlement data included in the settlement processing request according to the data processing strategy.

[0017] Optionally, the device for processing logistics settlement data is further used to determine, in response to receiving a new configuration request for a new logistics settlement business, whether there is target basic configuration information matching the new logistics settlement business from a plurality of preset basic configuration information; if so, generate a new configuration framework for the new logistics settlement business by inheriting the target basic configuration information, bind the new configuration framework to the new logistics settlement business, inherit the target basic configuration information through the new configuration framework, and generate new settlement configuration information for the new logistics settlement business.

[0018] Optionally, the device for processing logistics settlement data is further used for settlement configuration information including any one or more of function configuration information, interface configuration information, and custom configuration information; a logistics settlement business configuration information template is provided so that the logistics settlement end provides settlement configuration information associated with the logistics settlement business based on the logistics settlement business configuration information template; and basic configuration information corresponding to the logistics settlement business is constructed based on the settlement configuration information provided by the logistics settlement end, as well as a configuration framework that inherits the basic configuration information.

[0019] Optionally, the device for processing logistics settlement data is used to store multiple preset settlement configuration information in a configuration cache; search for target settlement configuration information matching the logistics settlement business from the preset multiple settlement configuration information, including: registering a service instance of the logistics settlement business to a query business of the configuration cache; through the service instance and the query business, search for one or more target settlement configuration information matching the logistics settlement business from the preset multiple settlement configuration information stored in the configuration cache.

[0020] Optionally, the device for processing logistics settlement data includes the configuration cache, which includes a local cache and a distributed cache; monitors changes in settlement configuration information of any type of settlement configuration information, and resets the settlement configuration information stored in the distributed cache; broadcasts change messages to each service instance of the logistics settlement business, so that each service instance of the logistics settlement business deletes the settlement configuration information stored in the local cache according to the change message.

[0021] Optionally, the device for processing logistics settlement data includes preset multiple settlement configuration information stored in a configuration cache; the configuration cache includes a local cache and a distributed cache; searching for one or more target settlement configuration information matching the logistics settlement business from the preset multiple settlement configuration information, including: searching for one or more target settlement configuration information matching the logistics settlement business from the local cache; if not found, searching for one or more target settlement configuration information matching the logistics settlement business from the distributed cache.

[0022] Optionally, the device for processing logistics settlement data includes a preset plurality of settlement configuration information stored in a data source; searching for one or more target settlement configuration information matching the logistics settlement business from the preset plurality of settlement configuration information, including: when one or more target settlement configuration information matching the logistics settlement business is not found in the configuration cache, searching for one or more target settlement configuration information matching the logistics settlement business from the data source.

[0023] Optionally, the device for processing logistics settlement data includes: the configuration parser is a preset tracking program; using the configuration parser corresponding to the logistics settlement business to parse the data processing strategies contained in the one or more target settlement configuration information, including: using the preset tracking program corresponding to the logistics settlement business to parse out the data processing strategies contained in one or more target settlement configuration information.

[0024] To achieve the above-mentioned purpose, according to the third aspect of an embodiment of the present invention, there is provided an electronic device for processing logistics settlement data, characterized in that it includes: 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 any of the methods described in the above-mentioned methods for processing logistics settlement data.

[0025] To achieve the above-mentioned purpose, according to the fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, any method as described in the above-mentioned method for processing logistics settlement data is implemented.

[0026] An embodiment of the above invention has the following advantages or beneficial effects: it can respond to receiving a settlement processing request of any logistics settlement business, and search for target settlement configuration information matching the logistics settlement business from a plurality of preset settlement configuration information; the target settlement configuration information is obtained by inheriting the basic configuration information of the logistics settlement business through the configuration framework bound to the logistics settlement business; the data processing strategy contained in the target settlement configuration information is parsed to process the settlement data included in the settlement processing request; the embodiment of the present invention overcomes the problems of strong code coupling, poor flexibility and poor scalability in the prior art of processing logistics settlement data. It improves the versatility, automation and efficiency of processing logistics settlement data, and reduces the consumption of resources for processing settlement data.

[0027] 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

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

[0029] Figure 1 It is a flowchart of a method for processing logistics settlement data provided by an embodiment of the present invention;

[0030] Figure 2 It is a schematic diagram of a process for processing logistics settlement data provided by an embodiment of the present invention;

[0031] Figure 3 It is a structural diagram of processing logistics settlement data provided by an embodiment of the present invention;

[0032] Figure 4 It is a structural schematic diagram of a device for processing logistics settlement data provided by an embodiment of the present invention;

[0033] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0034] Figure 6 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

[0035] 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.

[0036] It should be noted that in the technical solution of this disclosure, the collection, collection, updating, analysis, processing, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Take necessary measures for user personal information to prevent illegal access to user personal information data and maintain the security of user personal information, network security and national security. In order to count the usage of our products / services, we will summarize, analyze and use the user data that has been technically processed, and share the processed statistical information with third parties. We will use secure encryption technical processing methods and other methods to ensure that the recipient of the information cannot re-identify a specific individual.

[0037] Logistics business usually includes multiple business links, and different business links belong to different business participants (for example, carriers, logistics sites, etc.). With the increase of e-commerce mall functions and types of goods, more and more logistics business participants are connected to the application system, and more and more subdivided business types are also increasing. Usually, each business participant and the e-commerce mall provider include logistics settlement business, that is, it is necessary to process logistics settlement data for each business participant (i.e., logistics settlement end). Since the business rules of each business type are different and the complexity of the rules is also different, the existing methods require customized development of settlement data access and settlement rules for each business type. Continuous customized development has greatly increased the amount of system code, resulting in a significant increase in development and system maintenance costs. The existing methods have the problems of poor flexibility and low efficiency in processing logistics settlement data.

[0038] In view of this, if Figure 1 As shown, an embodiment of the present invention provides a method for processing logistics settlement data, which may include the following steps:

[0039] Step S101: In response to receiving a settlement processing request for any logistics settlement service, search for target settlement configuration information matching the logistics settlement service from a preset plurality of settlement configuration information; wherein the target settlement configuration information is obtained by inheriting the basic configuration information of the logistics settlement service through a configuration framework bound to the logistics settlement service.

[0040] Specifically, the embodiments of the present invention utilize information configuration combined with storage technology to achieve "one-stop" processing of logistics settlement business access and logistics settlement data processing. According to the application scenario, logistics settlement business includes, for example: prepayment business, settlement approval business, product line settlement business, settlement center management business, etc.

[0041] When receiving a settlement processing request for any logistics settlement business, according to the business type information of the logistics settlement business contained in the settlement processing request, search for the target settlement configuration information that matches the logistics settlement business from the preset multiple settlement configuration information. For the scenario corresponding to the settlement logistics business, the settlement configuration information includes any one or more of the function configuration information, interface configuration information, and custom configuration information; the function configuration information includes, for example, product line configuration information, settlement subject configuration information, settlement approval flow configuration information, settlement approval mapping configuration information, etc.; the interface configuration information includes, for example, multiple interfaces for interacting with other system modules, such as permission interfaces, configuration management interfaces, etc.; the custom configuration information includes, for example, custom function configuration, field mapping configuration, page display configuration, cache component configuration, bill bring-out configuration, value dimension configuration, etc. associated with the logistics settlement business itself.

[0042] Each logistics settlement service may be correspondingly configured with one or more settlement configuration information; thus, in response to receiving a settlement processing request for any logistics settlement service, the target settlement configuration information matching the logistics settlement service is searched from the preset multiple settlement configuration information.

[0043] Furthermore, in an embodiment of the present invention, there are two methods for providing construction or management configuration information for a logistics settlement terminal:

[0044] The first method: a logistics settlement business configuration information template is set up, so that the logistics settlement terminal provides settlement configuration information associated with the logistics settlement business based on the logistics settlement business configuration information template; the basic configuration information corresponding to the logistics settlement business is constructed based on the settlement configuration information provided by the logistics settlement terminal, and the configuration framework that inherits the basic configuration information. Specifically, different logistics settlement businesses have similar settlement configuration information parts, so the logistics settlement business configuration information template can be constructed through the business information associated with the logistics settlement business, so that the logistics settlement terminal can input the configuration information corresponding to its own business based on the template; and the basic configuration information corresponding to the logistics settlement business is constructed based on the settlement configuration information provided by the logistics settlement terminal, and the configuration framework that inherits the basic configuration information.

[0045] The second method: a guide configuration module is provided; so that the logistics settlement terminal can input the settlement configuration information associated with the logistics settlement business through the settlement configuration information option indicated by the guide configuration module; the basic configuration information corresponding to the logistics settlement business is constructed based on the settlement configuration information of the logistics settlement business, and the configuration framework that inherits the basic configuration information. Specifically, a guide configuration module is provided for the logistics settlement terminal, and the guide configuration module includes, for example, a visual guide configuration page, so that the logistics settlement terminal can input the configuration information corresponding to its own business based on the guide configuration module. The basic configuration information corresponding to the logistics settlement business is constructed based on the settlement configuration information of the logistics settlement business, and the configuration framework that inherits the basic configuration information.

[0046] It can be seen that by setting up a logistics settlement business configuration information template or a guided configuration module, a one-stop configuration management platform can be built. Business-related information can be configured for different roles belonging to the logistics settlement end (such as developers, business personnel, settlement managers, etc.) through templates or guided configuration rules, which greatly reduces the complexity of configuring logistics settlement information and improves the flexibility, scalability and efficiency of processing settlement data.

[0047] Further, the target settlement configuration information is obtained by inheriting the basic configuration information of the logistics settlement business through the configuration framework bound to the logistics settlement business. It can be understood that due to the subdivision of the logistics settlement business, there are the same or similar parts in a variety of logistics settlement businesses. Therefore, the embodiment of the present invention can obtain the target settlement configuration information of the logistics settlement business by abstracting the same or similar parts in the settlement configuration information as the basic configuration information, and inheriting the basic configuration information of the logistics settlement business through the configuration framework bound to the logistics settlement business; wherein inheritance refers to adding, changing or calling logical operations such as based on the basic configuration information; for example, when calling the specific attribute data contained in the target settlement configuration information, the configuration framework bound to the logistics settlement business can be queried, and the inherited basic configuration information of the logistics settlement business can be called by using the super calling method; wherein the attribute field in the configuration framework can be set to empty, and in the process of calling the inherited basic configuration information of the logistics settlement business by using the super calling method, the basic configuration information is filled with the corresponding attribute value to the empty attribute field; to achieve the beneficial effect of completing the configuration of one or more logistics settlement businesses "hanging" to the same or similar business type with minimal changes.

[0048] In the embodiment of the present invention, the access and management of the logistics settlement business configuration information can be realized through dynamic DSL (Domain Specific Language), and the JSON format can be used as the description format of the configuration extension.

[0049] It can be seen that the configuration framework bound to the logistics settlement business inherits the basic configuration information of the logistics settlement business to obtain the target settlement configuration information, which further reduces the complexity of the settlement configuration information and improves the efficiency of the logistics settlement business access.

[0050] Further preferably, the embodiment of the present invention can utilize a general configuration process for the newly added logistics settlement business. Specifically, in response to receiving a new configuration request for the newly added logistics settlement business, determine whether there is a target basic configuration information matching the newly added logistics settlement business from a plurality of preset basic configuration information; if there is, generate a new configuration framework for the newly added logistics settlement business by inheriting the target basic configuration information, and bind the new configuration framework to the newly added logistics settlement business, and inherit the target basic configuration information through the new configuration framework to generate the newly added settlement configuration information of the newly added logistics settlement business. For example: the newly added logistics settlement business is a prepaid business A. Assuming that the multiple preset basic configuration information includes the basic configuration information about "prepaid business", the basic configuration information of "prepaid business" can be directly inherited, and a new configuration framework is generated for the newly added logistics settlement business (prepaid business A) and bound, that is, and the new configuration framework is bound to the newly added logistics settlement business, and the target basic configuration information is inherited through the new configuration framework to generate the newly added settlement configuration information of the newly added logistics settlement business. It can be seen that the embodiment of the present invention reduces the complexity of configuring information for the newly added logistics settlement business to a large extent, thereby improving the efficiency of access to the newly added logistics settlement business.

[0051] Step S102: Utilize the configuration parser corresponding to the logistics settlement service to parse the data processing strategy included in the target settlement configuration information, and process the settlement data included in the settlement processing request according to the data processing strategy.

[0052] Specifically, the configuration information of the logistics settlement business can be processed through its corresponding configuration parser, and the configuration parser can be implemented using a preset tracking program. Specifically, the tracking program can be a code processing entry reserved during the development and design process. In an embodiment of the present invention, the preset tracking program is a program that can identify and parse the settlement configuration information reserved during the development and design process. The specific form of the tracking program can be an interface. By providing the definition of the interface, other related codes can be implemented based on the interface in the future. The tracking program can parse and identify the language describing the configuration information to obtain the configuration data, configuration strategy, etc. contained in the configuration information, thereby achieving the beneficial effect of only changing the settlement configuration information without changing the code, overcoming the problem of poor flexibility and low efficiency in processing logistics settlement data caused by customized development of settlement data access and settlement rules for each business type in the prior art.

[0053] Further, the settlement data is processed according to the data processing strategy contained in the parsed target settlement configuration information; wherein the data processing strategy may include, according to the actual application, settlement data field mapping, settlement data format conversion, settlement data value range, settlement data calculation relationship, settlement data summary dimension, settlement data log recording strategy, etc. That is, the configuration parser is a preset tracking program; using the configuration parser corresponding to the logistics settlement business to parse the data processing strategy contained in the one or more target settlement configuration information includes: using the preset tracking program corresponding to the logistics settlement business to parse the data processing strategy contained in the one or more target settlement configuration information.

[0054] Before the release version of the logistics settlement business accessed by the system, the embodiment of the present invention can perform various tests (for example: unit testing, service verification, functional testing, integration testing, etc.) on the processing flow of the settlement configuration of the logistics settlement business. During the testing process, version management means such as backup and log generation can be used to achieve traceability of the settlement configuration operation, and the version can be quickly rolled back and restored; further, after the test is passed, it can be released online to realize a "one-stop" settlement configuration process, thereby executing subsequent settlement data processing based on the settlement configuration.

[0055] like Figure 2 As shown, an embodiment of the present invention provides a process for processing logistics settlement data, which may include the following steps:

[0056] Step S201: receiving a settlement processing request for any logistics settlement service.

[0057] Step S202: searching the local cache for one or more target settlement configuration information matching the logistics settlement business.

[0058] Step S203: Determine whether the target settlement configuration information is found in the local cache, if so, execute step S207, otherwise execute step S204.

[0059] In an embodiment of the present invention, a plurality of preset settlement configuration information is stored in a configuration cache; the configuration cache includes a local cache and a distributed cache; wherein the distributed cache can implement a multi-level distributed cache component based on redis combined with guava.

[0060] Preferably, firstly, one or more target settlement configuration information matching the logistics settlement business is searched from the local cache of the logistics settlement segment to which the logistics settlement business belongs.

[0061] If found, subsequent logistics settlement data processing operations are performed directly based on the one or more target settlement configuration information found.

[0062] Step S204: searching the distributed cache for one or more target settlement configuration information matching the logistics settlement business.

[0063] Step S205: Determine whether the target settlement configuration information is found in the distributed cache, if so, execute step S207, otherwise execute step S206.

[0064] Specifically, one or more target settlement configuration information matching the logistics settlement business is searched from the local cache of the logistics settlement segment to which the logistics settlement business belongs. If not found, one or more target settlement configuration information matching the logistics settlement business is searched from the distributed cache.

[0065] If found, subsequent logistics settlement data processing operations are performed directly based on the one or more target settlement configuration information found.

[0066] The description of step S201-step S205 is: the preset multiple settlement configuration information is stored in the configuration cache; the configuration cache includes a local cache and a distributed cache; one or more target settlement configuration information matching the logistics settlement business is searched from the preset multiple settlement configuration information, including: searching for one or more target settlement configuration information matching the logistics settlement business from the local cache; if not found, searching for one or more target settlement configuration information matching the logistics settlement business from the distributed cache.

[0067] Step S206: searching from the data source for one or more target settlement configuration information matching the logistics settlement business.

[0068] Specifically, one or more target settlement configuration information matching the logistics settlement business is searched from the distributed cache. If not found, one or more target settlement configuration information matching the logistics settlement business is searched from the data source; wherein the data source may be a relational database, or a non-relational database, file, etc.

[0069] That is, the preset multiple settlement configuration information is stored in a data source; one or more target settlement configuration information matching the logistics settlement business is searched from the preset multiple settlement configuration information, including: when one or more target settlement configuration information matching the logistics settlement business is not found in the configuration cache, one or more target settlement configuration information matching the logistics settlement business is searched from the data source.

[0070] Step S207: Utilize the configuration parser corresponding to the logistics settlement service to parse the data processing strategy included in the target settlement configuration information, and process the settlement data included in the settlement processing request according to the data processing strategy.

[0071] Specifically, regarding utilizing the configuration parser corresponding to the logistics settlement business to parse the data processing strategy contained in the target settlement configuration information, and processing the settlement data included in the settlement processing request according to the data processing strategy, the specific description is consistent with the description of step S103 and will not be repeated here.

[0072] From the description of step S201 to step S207, it can be seen that the embodiment of the present invention uses the order of local cache->distributed cache->data source to search for the target settlement configuration information, which greatly improves the response time and efficiency of searching for the target settlement configuration information, and reduces the problems of large data source throughput, reduced service performance and reduced response speed caused by directly querying the data source. It can be understood that the settlement configuration information in the local cache and distributed cache can be automatically synchronized from the data source or cloud storage.

[0073] Furthermore, the settlement configuration information can also be stored in the cloud storage, for example: one or more target settlement configuration information matching the logistics settlement business is found from the data source, and if not found, it is searched from the cloud storage, and the query service is further managed by using the hierarchical query relationship, that is, the target settlement configuration information is searched in the order of local cache->distributed cache->data source->cloud storage.

[0074] like Figure 3 As shown, an embodiment of the present invention provides a structural schematic diagram of processing logistics settlement data; the process corresponding to the structure may include the following steps:

[0075] Step S301: receiving a settlement processing request for any logistics settlement service, and searching for one or more target settlement configuration information matching the logistics settlement service from a local cache corresponding to the logistics settlement service.

[0076] Step S302: searching the local cache for one or more target settlement configuration information matching the logistics settlement business. If not found, searching the distributed cache for one or more target settlement configuration information matching the logistics settlement business.

[0077] Step S303: when one or more target settlement configuration information matching the logistics settlement business is not found in the configuration cache, one or more target settlement configuration information matching the logistics settlement business is found from the data source.

[0078] Specifically, the description of receiving a settlement processing request for any logistics settlement service and searching for one or more target settlement configuration information matching the logistics settlement service from the local cache, distributed cache, and data source corresponding to the logistics settlement service is consistent with the description of step S201 to step S207, and will not be repeated here.

[0079] Furthermore, an embodiment of the present invention registers the service instance of the logistics settlement service to the query service of the configuration cache, and searches for one or more target settlement configuration information matching the logistics settlement service from the preset multiple settlement configuration information stored in the configuration cache through the service instance and the query service. Figure 3 As shown, for each of the N types of logistics settlement services, the service instance of each logistics settlement service (for example: the service instance of logistics settlement service A, the service instance of logistics settlement service N, etc.) can perform subsequent configuration information query operations by registering a configuration query service; that is, the preset multiple settlement configuration information is stored in the configuration cache; the target settlement configuration information matching the logistics settlement service is searched from the preset multiple settlement configuration information, including: registering the service instance of the logistics settlement service to the query service of the configuration cache; through the service instance and the query service, one or more target settlement configuration information matching the logistics settlement service is searched from the preset multiple settlement configuration information stored in the configuration cache.

[0080] The service instances of each logistics settlement business accessing the system can realize the processing of local cache and distributed cache by registering to the query business of the configuration cache, for example: it can register to the query service of the configuration cache (for example, the configuration query service ZK-watcher based on zookeeper) through @Cache. Thus, after receiving the settlement processing request of the logistics settlement business, the local cache registered by the service instance is queried first. Since the local cache is at the jvm memory level, the response speed is fast and there is no additional network input and output overhead. If one or more target settlement configuration information matching the logistics settlement business is found, it can be returned immediately; otherwise, it is queried from the redis distributed cache. Since the redis distributed cache is a memory-level cache framework, it overcomes the limitation of the local cache memory size limit and improves the expansion capacity; if one or more target settlement configuration information matching the logistics settlement business is found in the redis distributed cache, it can be returned immediately, otherwise, the database is queried and the results of the database query are cached in the redis cache and the memory cache of each instance in sequence through the cache mechanism of the multi-level cache framework. It can be seen that the problem of database service request performance bottleneck caused by the large amount of configuration information is overcome by the embodiment of the present invention. Register the service instance of the logistics settlement service to the query service of the configuration cache; through the service instance and the query service, search for one or more target settlement configuration information matching the logistics settlement service from the preset multiple settlement configuration information stored in the configuration cache.

[0081] Step S304: monitor the changes of settlement configuration information of any type of settlement configuration information, reset the settlement configuration information stored in the distributed cache; broadcast the change message to each service instance of the logistics settlement business, so that each service instance of the logistics settlement business deletes the stored settlement configuration information in the local cache according to the change message.

[0082] It is understandable that the settlement configuration information in the local cache and the distributed cache may be automatically synchronized from the data source or the cloud storage.

[0083] An embodiment of the present invention can automatically change the settlement configuration information in the configuration cache. Specifically, the configuration cache includes a local cache and a distributed cache; monitors changes in the settlement configuration information of any type of settlement configuration information, and resets the settlement configuration information stored in the distributed cache; broadcasts the change message to each service instance of the logistics settlement business, so that each service instance of the logistics settlement business deletes the settlement configuration information stored in the local cache according to the change message.

[0084] The service center can be used to manage the service instances of various logistics settlement services, and at the same time register another service instance that manages configuration information to change the settlement configuration information. The registration method, for example, is registered through @CacheEvict to call the CacheEvictInvoker contained in the zookeeper cluster through the AOP aspect method, so as to monitor the changes of the settlement configuration information of any settlement configuration information. In the case of monitoring the changes of the settlement configuration information of any settlement configuration information, the settlement configuration information stored in the distributed cache can be reset through the configuration change module contained in zookeeper (for example, changing the configuration information through methods such as setData), wherein the reset operation includes operations such as deleting the configuration information in the redis distributed cache and synchronizing the changed configuration information to the distributed cache.

[0085] Furthermore, the distributed coordination notification mechanism of the zookeeper cluster can be used to broadcast the change message to each service instance of the logistics settlement business, so that each service instance of the logistics settlement business deletes the stored settlement configuration information in the local cache according to the change message. The local cache can be implemented based on the local cache framework of caffeine. The multi-level linkage cache framework based on zookeeper combined with redis and caffeine combined with database meets the high availability and low latency performance requirements of high-frequency configuration queries; through the process of step S303, when the settlement configuration information changes (addition or modification), the settlement configuration information contained in the local cache and distributed cache can be synchronized with the data source in real time, further improving the automation and real-time performance of processing the settlement configuration information.

[0086] like Figure 4 As shown, the embodiment of the present invention provides a device 400 for processing logistics settlement data, including: a configuration information determination module 401 and a settlement data processing module 402; wherein,

[0087] The configuration information determination module 401 is used to respond to receiving a settlement processing request of any logistics settlement business and search for target settlement configuration information matching the logistics settlement business from a plurality of preset settlement configuration information; wherein the target settlement configuration information is obtained by inheriting the basic configuration information of the logistics settlement business through the configuration framework bound to the logistics settlement business;

[0088] The settlement data processing module 402 is used to utilize the configuration parser corresponding to the logistics settlement business to parse the data processing strategy included in the target settlement configuration information, and process the settlement data included in the settlement processing request according to the data processing strategy.

[0089] An embodiment of the present invention also provides an electronic device for processing logistics settlement data, comprising: 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 provided in any of the above embodiments.

[0090] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method provided in any of the above embodiments is implemented.

[0091] Figure 5 An exemplary system architecture 500 is shown to which the method for processing logistics settlement data or the apparatus for processing logistics settlement data according to an embodiment of the present invention can be applied.

[0092] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0093] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various client applications can be installed on terminal devices 501, 502, 503, such as e-commerce client applications, web browser applications, search applications, instant messaging tools, and email clients.

[0094] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting various client applications, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0095] The server 505 may be a server that provides various services, such as a background management server that provides support for client applications used by users using the terminal devices 501, 502, and 503. The background management server may process the received settlement processing request and feed back the processing result of the settlement data of the settlement processing request to the terminal device.

[0096] It should be noted that the method for processing logistics settlement data provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for processing logistics settlement data is generally set in the server 505 .

[0097] It should be understood that Figure 5The 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.

[0098] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0099] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

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

[0101] 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 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0102] 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.

[0103] 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.

[0104] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be provided in a processor, for example, they may be described as: a processor including a configuration information determination module and a settlement data processing module. The names of these modules do not, in some cases, constitute limitations on the modules themselves, for example, a settlement data processing module may also be described as a "module for parsing the data processing strategy contained in the target settlement configuration information and processing the settlement data included in the settlement processing request".

[0105] 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 without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: in response to receiving a settlement processing request of any logistics settlement business, searching for target settlement configuration information matching the logistics settlement business from a plurality of preset settlement configuration information; wherein the target settlement configuration information is obtained by inheriting the basic configuration information of the logistics settlement business through the configuration framework bound to the logistics settlement business; using the configuration parser corresponding to the logistics settlement business, parsing the data processing strategy contained in the target settlement configuration information, and processing the settlement data included in the settlement processing request according to the data processing strategy.

[0106] The embodiment of the present invention can respond to receiving a settlement processing request of any logistics settlement business, and search for target settlement configuration information matching the logistics settlement business from a plurality of preset settlement configuration information; the target settlement configuration information is obtained by inheriting the basic configuration information of the logistics settlement business through a configuration framework bound to the logistics settlement business; the data processing strategy contained in the target settlement configuration information is parsed to process the settlement data included in the settlement processing request; the embodiment of the present invention overcomes the problems of strong code coupling, poor flexibility and poor expansibility in the prior art of processing logistics settlement data. The versatility, automation and efficiency of processing logistics settlement data are improved, and the resource consumption of processing settlement data is reduced.

[0107] 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 logistics settlement data, characterized in that: include: In response to receiving a settlement processing request of any logistics settlement service, searching for target settlement configuration information matching the logistics settlement service from a plurality of preset settlement configuration information; wherein the target settlement configuration information is obtained by inheriting the basic configuration information of the logistics settlement service through a configuration framework bound to the logistics settlement service; The configuration parser corresponding to the logistics settlement service is used to parse the data processing strategy included in the target settlement configuration information, and the settlement data included in the settlement processing request is processed according to the data processing strategy.

2. The method according to claim 1, characterized in that Further including: In response to receiving a new configuration request for a new logistics settlement service, determining whether there is target basic configuration information matching the new logistics settlement service from a plurality of preset basic configuration information; If it exists, a new configuration framework is generated for the newly added logistics settlement business by inheriting the target basic configuration information, and the new configuration framework is bound to the newly added logistics settlement business. The target basic configuration information is inherited by the new configuration framework to generate new settlement configuration information for the newly added logistics settlement business.

3. The method according to claim 1, characterized in that: Further including: The settlement configuration information includes any one or more of function configuration information, interface configuration information, and custom configuration information; A logistics settlement business configuration information template is provided so that the logistics settlement terminal provides settlement configuration information associated with the logistics settlement business based on the logistics settlement business configuration information template; Based on the settlement configuration information provided by the logistics settlement terminal, the basic configuration information corresponding to the logistics settlement business and the configuration framework that inherits the basic configuration information are constructed.

4. The method according to claim 1, characterized in that: The preset multiple settlement configuration information is stored in the configuration cache; Searching for target settlement configuration information matching the logistics settlement business from the preset multiple settlement configuration information, including: Registering the service instance of the logistics settlement service to the query service of the configuration cache; Through the service instance and the query service, one or more target settlement configuration information matching the logistics settlement service is searched from the preset multiple settlement configuration information stored in the configuration cache.

5. The method according to claim 4, characterized in that Further including: The configuration cache includes a local cache and a distributed cache; Monitoring changes in settlement configuration information of any type of settlement configuration information, and resetting the settlement configuration information stored in the distributed cache; The change message is broadcast to each service instance of the logistics settlement business, so that each service instance of the logistics settlement business deletes the settlement configuration information stored in the local cache according to the change message.

6. The method according to claim 1, characterized in that The preset multiple settlement configuration information is stored in a configuration cache; the configuration cache includes a local cache and a distributed cache; Searching for one or more target settlement configuration information matching the logistics settlement business from the preset multiple settlement configuration information includes: Searching the local cache for one or more target settlement configuration information matching the logistics settlement business; If no target settlement configuration information is found, one or more target settlement configuration information matching the logistics settlement business is searched from the distributed cache.

7. The method according to claim 6, characterized in that The preset multiple settlement configuration information is stored in the data source; Searching for one or more target settlement configuration information matching the logistics settlement business from the preset multiple settlement configuration information includes: If one or more target settlement configuration information matching the logistics settlement service is not found in the configuration cache, One or more target settlement configuration information matching the logistics settlement business is found from the data source.

8. The method according to claim 1, characterized in that The configuration parser is a preset tracking program; Using the configuration parser corresponding to the logistics settlement business, parsing the data processing strategies contained in the one or more target settlement configuration information, including: By utilizing the preset tracking program corresponding to the logistics settlement business, the data processing strategy contained therein is parsed from one or more target settlement configuration information.

9. A device for processing logistics settlement data, characterized in that: include: Determine the configuration information module and the settlement data processing module; wherein, The configuration information determination module is used to respond to receiving a settlement processing request of any logistics settlement business and search for target settlement configuration information matching the logistics settlement business from a plurality of preset settlement configuration information; wherein the target settlement configuration information is obtained by inheriting the basic configuration information of the logistics settlement business through a configuration framework bound to the logistics settlement business; The settlement data processing module is used to utilize the configuration parser corresponding to the logistics settlement business to parse the data processing strategy included in the target settlement configuration information, and process the settlement data included in the settlement processing request according to the data processing strategy.

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

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