Logistics data processing method and device, electronic equipment and storage medium
By obtaining the current logistics data and historical trends in the logistics data processing system, estimating the total logistics data in the preset time period, and generating adjustment information based on the processing level, the problem that users cannot reasonably control the shipment volume in the preset period is solved, and more accurate logistics data control and arrangement are achieved.
Patent Information
- Application Number
- CN202311524707.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-15
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2043-11-15
AI Technical Summary
During the preset cycle, users cannot reasonably control the shipment volume during the entire cycle, resulting in the inability to accurately arrange the shipment volume of items during the preset cycle, causing inconvenience to users.
By responding to the processing instructions of logistics data, the current logistics data within the preset time period is obtained, and the logistics data change trends in the historical time period are queried, and the total logistics data within the preset time period is estimated. According to the current logistics data and the processing level of the total logistics data, adjusting information of logistics data is generated to help users reasonably control logistics data.
It realizes more accurately predicting and controlling the total logistics data within the preset time period, helping users to reasonably arrange the shipment volume of items, reduce inconvenience, and improve the efficiency of logistics data processing.
Smart Images

Figure CN120013375A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic equipment and storage medium for logistics data processing. Background Art
[0002] In the field of e-commerce, logistics data processing has become an indispensable part of business processing. Each user usually signs a contract with a logistics agency that provides logistics services to carry out logistics processing of goods through these logistics agencies. For example, each logistics service agency can predetermine the discount strategy for logistics costs. After each user selects a suitable logistics agency to sign a contract, the logistics costs are calculated through the discount strategy. In the related art, the discount strategy can be associated with the shipment volume, that is, different discount values are set for different shipment volumes within a preset period. After the preset period ends, the corresponding discount value can be determined based on the user's shipment volume. In order to obtain a suitable discount value, each user usually needs to reasonably arrange the shipment volume of items within the preset period. However, within the preset period, the user cannot reasonably control the shipment volume within the entire period, so it is impossible to accurately arrange the shipment volume of items within the preset period, which brings inconvenience to the user. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a method, device, electronic device and storage medium for logistics data processing, which can solve the problem that users cannot reasonably control the shipment volume within the entire period within a preset period, and cannot accurately arrange the shipment volume of items within the preset period, causing inconvenience to users.
[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for processing logistics data is provided.
[0005] A method for processing logistics data according to an embodiment of the present invention includes: obtaining current logistics data within a preset time period in response to a processing instruction for logistics data;
[0006] Querying the historical time period corresponding to the preset time period, obtaining the change trend of the logistics data in the historical time period, and estimating the total logistics data in the preset time period based on the current logistics data and the change trend;
[0007] Calling a preset logistics processing strategy to calculate a first processing level corresponding to the current logistics data and a second processing level corresponding to the total logistics data;
[0008] In response to the first processing level being different from the second processing level, adjustment information of the logistics data is generated and displayed based on the second processing level and the logistics total score data.
[0009] In one embodiment, estimating the total logistics data within the preset time period based on the current logistics data and the change trend includes:
[0010] Acquire the type of the change trend and the first logistics data within the historical time period;
[0011] In response to the change trend being of the first type, determining the first logistics data as total logistics data within the preset time period;
[0012] In response to the change trend being of the second type, the position of the current time within the preset time period is calculated to determine the time node corresponding to the position in the historical time period, and the second logistics data belonging to before the time node in the historical time period is calculated; based on the current logistics data, the second logistics data and the logistics data corresponding to the historical time period, the total logistics data within the preset time period is estimated.
[0013] In yet another embodiment, estimating total logistics data within the preset time period based on the current logistics data, the second logistics data, and the logistics data corresponding to the historical time period includes:
[0014] The logistics data ratio between the current logistics data and the second logistics data is calculated to estimate the total logistics data within the preset time period based on the logistics data ratio and the logistics data corresponding to the historical time period.
[0015] In yet another embodiment, the current logistics data includes the current waybill quantity of the item, and the total logistics data includes the total waybill quantity of the item;
[0016] Generating adjustment information of logistics data based on the second processing level and the logistics total score data includes:
[0017] Calculating a first difference between the current waybill quantity and the total waybill quantity;
[0018] Based on the second processing level, calculating a first processing amount corresponding to the total amount of the waybill;
[0019] A preset template is called to generate logistics data adjustment information based on the first difference and the first processing amount.
[0020] In yet another embodiment, the method further comprises:
[0021] In response to the second processing level being the same as the second processing level, calling a preset logistics processing strategy to determine a third processing level adjacent to the second processing level;
[0022] Obtaining logistics data corresponding to the third processing level to calculate a second difference between the logistics data and the total logistics data;
[0023] Based on the third processing level, calculating a second processing amount corresponding to the total logistics data;
[0024] Prompt information is generated and displayed based on the second difference and the second processing amount.
[0025] In yet another embodiment, calling a preset logistics processing strategy to calculate a first processing level corresponding to the current logistics data and a second processing level corresponding to the total logistics data includes:
[0026] Call the preset logistics processing strategy to obtain each logistics processing object;
[0027] Acquire a first data value set corresponding to the logistics processing object for each waybill in the current logistics data, calculate a first logistics amount corresponding to the current logistics data, and determine the first processing level based on a preset mapping relationship between the processing level and the logistics amount;
[0028] A second data value set corresponding to the logistics processing object for each waybill in the total logistics data is obtained to calculate a second logistics amount corresponding to the total logistics data, so as to determine the second processing level based on the mapping relationship.
[0029] In yet another embodiment, the method further comprises:
[0030] In response to the query information of the logistics data, the corresponding user identification is obtained to query the logistics data associated with the user identification;
[0031] The preset logistics processing strategy is called to calculate the processing level corresponding to the logistics data associated with the user identifier to display the logistics data associated with the user identifier and the corresponding processing level.
[0032] To achieve the above objective, according to another aspect of an embodiment of the present invention, a device for processing logistics data is provided.
[0033] A logistics data processing device according to an embodiment of the present invention comprises: an acquisition unit, configured to acquire current logistics data within a preset time period in response to a logistics data processing instruction;
[0034] An estimation unit, used to query the historical time period corresponding to the preset time period, obtain the change trend of the logistics data in the historical time period, and estimate the total logistics data in the preset time period based on the current logistics data and the change trend;
[0035] A calculation unit, used to call a preset logistics processing strategy, calculate a first processing level corresponding to the current logistics data and a second processing level corresponding to the total logistics data;
[0036] A generating unit is used for generating and displaying adjustment information of logistics data based on the second processing level and the logistics total score data in response to the first processing level being different from the second processing level.
[0037] In one embodiment, the estimation unit is specifically used for:
[0038] Acquire the type of the change trend and the first logistics data within the historical time period;
[0039] In response to the change trend being of the first type, determining the first logistics data as total logistics data within the preset time period;
[0040] In response to the change trend being of the second type, the position of the current time within the preset time period is calculated to determine the time node corresponding to the position in the historical time period, and the second logistics data belonging to before the time node in the historical time period is calculated; based on the current logistics data, the second logistics data and the logistics data corresponding to the historical time period, the total logistics data within the preset time period is estimated.
[0041] In yet another embodiment, the estimating unit is specifically configured to:
[0042] The logistics data ratio between the current logistics data and the second logistics data is calculated to estimate the total logistics data within the preset time period based on the logistics data ratio and the logistics data corresponding to the historical time period.
[0043] In yet another embodiment, the current logistics data includes the current waybill quantity of the item, and the total logistics data includes the total waybill quantity of the item;
[0044] The generating unit is specifically used for:
[0045] Calculating a first difference between the current waybill quantity and the total waybill quantity;
[0046] Based on the second processing level, calculating a first processing amount corresponding to the total amount of the waybill;
[0047] A preset template is called to generate logistics data adjustment information based on the first difference and the first processing amount.
[0048] In yet another embodiment, the apparatus further comprises:
[0049] a determining unit, configured to call a preset logistics processing strategy in response to the second processing level being the same as the second processing level, and determine a third processing level adjacent to the second processing level;
[0050] The calculation unit is further used to obtain the logistics data corresponding to the third processing level to calculate a second difference between the logistics data and the total logistics data;
[0051] The calculation unit is further used to calculate a second processing amount corresponding to the total logistics data based on the third processing level;
[0052] The generating unit is further configured to generate and display prompt information based on the second difference and the second processing amount.
[0053] In yet another embodiment, the computing unit is specifically configured to:
[0054] Call the preset logistics processing strategy to obtain each logistics processing object;
[0055] Acquire a first data value set corresponding to the logistics processing object for each waybill in the current logistics data, calculate a first logistics amount corresponding to the current logistics data, and determine the first processing level based on a preset mapping relationship between the processing level and the logistics amount;
[0056] A second data value set corresponding to the logistics processing object for each waybill in the total logistics data is obtained to calculate a second logistics amount corresponding to the total logistics data, so as to determine the second processing level based on the mapping relationship.
[0057] In yet another embodiment, the apparatus further comprises:
[0058] A query unit, configured to obtain a corresponding user identifier in response to query information of the logistics data, so as to query the logistics data associated with the user identifier;
[0059] The calculation unit is also used to call a preset logistics processing strategy, calculate the processing level corresponding to the logistics data associated with the user identifier, and display the logistics data associated with the user identifier and the corresponding processing level.
[0060] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.
[0061] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method for logistics data processing provided by the embodiment of the present invention.
[0062] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.
[0063] A computer-readable medium according to an embodiment of the present invention stores a computer program, which, when executed by a processor, implements the method for processing logistics data provided by an embodiment of the present invention.
[0064] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer program product is provided.
[0065] A computer program product according to an embodiment of the present invention includes a computer program, which, when executed by a processor, implements the method for processing logistics data provided by an embodiment of the present invention.
[0066] One embodiment of the above invention has the following advantages or beneficial effects: In the embodiment of the present invention, after responding to the processing instruction of logistics data, the current logistics data within the preset time period and the change trend of the logistics data within the corresponding historical time period can be obtained, and then the total logistics data within the preset time period can be estimated, and then the first processing level corresponding to the current logistics data and the second processing level corresponding to the total logistics data can be calculated; if the first processing level is different from the second processing level, the logistics data within the preset time period can be reasonably adjusted to change the applicable processing level, and then the logistics data adjustment information can be generated and displayed based on the second processing level and the total logistics data, so that the user can reasonably control the logistics data. In this way, in the embodiment of the present invention, the total logistics data is estimated by the current logistics data within the preset time period, and the corresponding processing level can be calculated. After determining that the total logistics data within the preset time period can change the applicable processing level, the logistics data adjustment information can be displayed, so that it is more convenient for the user to control the logistics data in time and realize the reasonable arrangement of the logistics data.
[0067] 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
[0068] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0069] Figure 1 is a schematic diagram of a system architecture of a logistics data processing system according to an embodiment of the present invention;
[0070] Figure 2 is a schematic diagram of a main process of a method for processing logistics data according to an embodiment of the present invention;
[0071] Figure 3 is a schematic diagram of another main process of the method for processing logistics data according to an embodiment of the present invention;
[0072] Figure 4 is a schematic diagram of main units of a device for logistics data processing according to an embodiment of the present invention;
[0073] Figure 5 is another exemplary system architecture diagram to which the embodiments of the present invention can be applied;
[0074] Figure 6 It is a schematic diagram of the structure of a computer system suitable for implementing the embodiment of the present invention. DETAILED DESCRIPTION
[0075] 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.
[0076] It should be noted that the embodiments and features of the embodiments of the present invention can be combined with each other without conflict. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations.
[0077] An embodiment of the present invention provides a logistics data processing system, which can be used in logistics data processing scenarios, specifically, can be used for estimating a user's logistics data within a preset time period, and processing logistics data adjustments.
[0078] In the embodiment of the present invention, the system architecture of the logistics data processing system can be as follows: Figure 1 Specifically, in the embodiment of the present invention, the logistics data processing system is used to process logistics discounts as an example for explanation.
[0079] The estimation of logistics data requires data support from the data layer, which may include the user's logistics discount configuration, business data, logistics pricing and billing vouchers, etc.; the processing layer can process the data in the data layer, and the processing process may include discount estimation model calculation, discount assessment statistics, discount amount calculation, etc.; after the processing layer obtains the processing results, the results can be displayed through the application layer.
[0080] Specifically, Figure 1As shown, the data layer may include modules such as discount configuration, business data, and price billing vouchers. The discount configuration may configure discount policies, such as the mapping relationship between discount levels and logistics data, etc.; business data may include business data for users to configure logistics, such as waybill logistics data, etc.; price billing vouchers may include price vouchers and billing vouchers involving freight in logistics, etc. The processing layer may include estimated discount models, assessment statistics domains, discount estimation engines, and estimated cost processing. The assessment statistics domain may assess and count basic data such as business data and price billing vouchers according to the discount configuration, and perform rolling updates at preset times; the discount estimation engine may calculate the discount level, discount amount, etc. of logistics based on the user's logistics data and assessment statistics results through the discount estimation model to determine the discount level that the user can enjoy, etc.; estimated cost processing may calculate the detailed calculation of the amount after discount based on the discount estimation results, and summarize the pre-discount and post-discount amounts of each cost according to the user dimension and store them in the warehouse. In order to reduce the pressure on the database, the detailed data may only be retained for the latest day for operation and maintenance, and the historical process details shall not be retained. The application layer can display the results of the processing layer. For example, the discounted amount in the logistics data can be displayed. Specifically, the discounted amount can be displayed from the user dimension and the waybill dimension.
[0081] The embodiment of the present invention provides a method for processing logistics data. Figure 1 The logistics data processing system in the system architecture shown is executed as follows: Figure 2 As shown, the method includes:
[0082] S201: In response to a logistics data processing instruction, obtain current logistics data within a preset time period.
[0083] The logistics data refers to data related to logistics during the delivery of goods, and the specific logistics data may be the number of waybills, etc. The processing instruction of the logistics data indicates estimating the total logistics data of the preset time period, and determining the corresponding processing level, such as the discount level, and then providing the user with corresponding adjustment information so that the user can reasonably control the logistics data. The preset time period may be pre-configured, and in the embodiment of the present invention, the preset time period includes the current time, that is, the current time belongs to the preset time period.
[0084] In an embodiment of the present invention, after receiving a processing instruction for logistics data, a preset time period can be determined based on a pre-configuration, specifically based on a discount configuration. For example, in a discount configuration, a natural month is used as a cycle for discount calculation. After receiving a processing instruction for logistics data, the natural month to which the current time belongs can be determined as the preset time period. When responding to a processing instruction for logistics data, current logistics data within the preset time period can be obtained for subsequent processing.
[0085] It should be noted that, in the embodiment of the present invention, the processing instruction may also include a user identifier to indicate that the logistics data of the user is to be processed, so the logistics data corresponding to the user identifier within the preset time period may be obtained in this step. Goods delivery is usually carried out in the form of waybills, so the logistics data may include the data of each waybill. Since a waybill is usually valid only after delivery is completed, the waybill data valid within the preset time period may be obtained in this step as the logistics data within the preset time period.
[0086] S202: Query the historical time period corresponding to the preset time period, obtain the change trend of the logistics data in the historical time period, and estimate the total logistics data in the preset time period based on the current logistics data and the change trend.
[0087] In order to reasonably control the logistics data within the preset time period, the total logistics data within the preset time period can be estimated based on historical data.
[0088] In an embodiment of the present invention, the historical time period corresponding to the preset time period can be queried to estimate the total logistics data within the preset time period based on the historical logistics data of the historical time period. Specifically, the change trend of the logistics data within the historical time period can be obtained to estimate the total logistics data within the preset time period based on the current logistics data and the change trend.
[0089] It should be noted that, in an embodiment of the present invention, the historical time period corresponding to the preset time period can be pre-configured. For example, if the logistics data does not change much within each preset time period, the time period before the preset time period can be determined as the corresponding historical time period; if the logistics data changes with the quarter to which each preset time period belongs, the historical time period that is the same as the quarter to which the preset time period belongs can be corresponded, that is, the corresponding historical time period is determined based on the quarter to which the preset time period belongs.
[0090] In one implementation of an embodiment of the present invention, in this step, the type of change trend of logistics data in the historical time period can be set in advance, which can specifically include the first type and the second type. The first type indicates that the trend of logistics data transformation is stable. At this time, the logistics data in the historical time period can be directly estimated as the total logistics data in the preset time period; the second type can indicate that the trend of logistics data transformation is not stable. At this time, it can be estimated based on the proportion of logistics data before the time node corresponding to the current time in the historical time period to the logistics data in the historical time period. Therefore, this step can be executed as follows: obtain the type of change trend and the first logistics data in the historical time period; in response to the change trend being the first type, determine the first logistics data as the total logistics data in the preset time period; in response to the change trend being the second type, calculate the position of the current time in the preset time period to determine the time node corresponding to the position in the historical time period, and calculate the second logistics data before the time node in the historical time period; based on the current logistics data, the second logistics data and the logistics data corresponding to the historical time period, estimate the total logistics data in the preset time period.
[0091] The preset time period and the historical time period are corresponding to each other, so the time node corresponding to the current time can be determined in the historical time period. The second logistics data before the time node in the historical time period can be used to estimate the total logistics data in the preset time period based on the current logistics data, the second logistics data and the logistics data corresponding to the historical time period.
[0092] Specifically, in this step, the logistics data ratio between the current logistics data and the second logistics data can be calculated to estimate the total logistics data within the preset time period based on the logistics data ratio and the logistics data corresponding to the historical time period. That is, the logistics data ratio is multiplied by the historical time period to calculate the total logistics data within the preset time period.
[0093] It should be noted that, in the embodiment of the present invention, the method for estimating the total logistics quantity can also be a variety of achievable methods, which will not be described in detail here.
[0094] S203: Calling a preset logistics processing strategy to calculate a first processing level corresponding to the current logistics data and a second processing level corresponding to the total logistics data.
[0095] The logistics processing strategy is pre-set, and taking the logistics processing strategy as the logistics discount strategy as an example, the processing level can be a discount level. Specifically, the discount level can be divided based on the logistics data, so in this step, according to the preset logistics discount strategy, the first discount level corresponding to the current logistics data and the second discount level corresponding to the total logistics data can be calculated respectively.
[0096] Specifically, in the embodiment of the present invention, the logistics processing strategy may include multiple processing objects. Taking the logistics discount strategy as an example, it may include multiple discount objects, such as item timeliness, item weight, item transportation value-added services, etc. For each waybill in the logistics data, the corresponding logistics amount can be calculated, so the discount level can be set based on the logistics amount, and the logistics amount interval corresponding to each discount level can be set. In this step, each logistics discount object can be determined based on calling the preset logistics discount strategy, and then the data value set corresponding to each logistics discount object included in each waybill in the current logistics data, that is, the first data value set, can be obtained, and then the logistics amount required for each waybill can be calculated, so as to sum the logistics amount required for each waybill to obtain the first logistics amount; similarly, for the total logistics data, the second data value set corresponding to the logistics discount object of each waybill in the total logistics data can be obtained to calculate the second logistics amount corresponding to the total logistics data, so as to determine the second discount level based on the mapping relationship; after obtaining the first logistics amount and the second logistics amount, the first discount level corresponding to the first logistics amount and the second discount level corresponding to the second logistics amount can be determined based on the mapping relationship between the preset discount level and the logistics amount.
[0097] It should be noted that in the embodiment of the present invention, the total logistics data includes the current logistics data and the logistics data within the time range from the current time to the end of the preset time period, and this logistics data is the estimated logistics data. Since the logistics data includes the waybill data, the estimated logistics data in the embodiment of the present invention can be set as the waybill data of the preset waybill, so that the second data set and the second logistics amount can be calculated.
[0098] S204: In response to the first processing level being different from the second processing level, generating and displaying adjustment information of the logistics data based on the second processing level and the total logistics data.
[0099] Among them, taking the logistics processing strategy as the logistics discount strategy as an example, the processing level can be a discount level. The first discount level is different from the second discount level, indicating that reasonable adjustment of logistics data within the preset time period can change the corresponding discount level, that is, by reasonably controlling the logistics data, the discount level corresponding to the total logistics data within the preset time period can be changed. At this time, logistics data adjustment information can be generated and displayed to prompt the user to control the logistics data within the preset time period.
[0100] Specifically, in the embodiment of the present invention, the logistics data may be the waybill quantity, so the current logistics data includes the current waybill quantity of the item, and the total logistics data includes the total waybill quantity of the item. The generation of logistics data adjustment information in this step may be performed as follows: calculating the first difference between the current waybill quantity and the total shipment quantity; based on the second discount level, calculating the first discount amount corresponding to the total waybill quantity, the first discount amount indicating the discount amount that the total logistics data can enjoy based on the second discount level; calling the preset template to generate logistics data adjustment information based on the first difference and the first discount amount. The preset template may be pre-configured, specifically, a page template for the adjustment information display page, which may enable the user to understand how the logistics data needs to be adjusted and what the discount amount is by displaying the first difference and the first discount amount.
[0101] It should be noted that, in an embodiment of the present invention, the adjustment information may include multiple types, for example, it may also include a discount amount corresponding to the total amount of the waybill calculated based on the first discount level, etc., so as to provide users with various data to facilitate users to adjust the logistics data.
[0102] The embodiment of the present invention is another implementation method. If the first discount level is the same as the second discount level, it means that based on the total logistics data estimated in step S202, the logistics discount enjoyed by the logistics data within the preset time period will not change. At this time, the preset logistics discount strategy can be called to determine the third discount level adjacent to the second discount level, that is, the next discount level of the second discount level, and obtain the logistics data corresponding to the third discount level to calculate the second difference between the total logistics data. The second difference indicates the amount of logistics data required from the total logistics data to enjoy the third discount level, and then the second discount amount corresponding to the total waybill amount is calculated based on the third discount level, indicating the discount amount of the total logistics data when enjoying the third discount level, and generating prompt adjustment information based on the second difference and the second discount amount. In this way, the user can consider whether to adjust the logistics data within the preset time period based on the second difference and the second discount amount.
[0103] It should be noted that, in the embodiment of the present invention, the data in the processing process can be stored in a database. At the same time, in order to monitor the logistics data in real time, the processing instructions can be set to be automatically triggered, such as periodic self-triggered processing instructions.
[0104] The embodiment of the present invention is another implementation method, which can also process data query of logistics data. Specifically, it can be performed as follows: in response to the query information of logistics data, the corresponding user identification is obtained to query the logistics data associated with the user identification; the preset logistics discount policy is called to calculate the discount level corresponding to the logistics data associated with the user identification to display the logistics data associated with the user identification and the corresponding discount level. Specifically, the logistics data associated with the user identification can be specifically the logistics data associated with the user identification within a preset time period.
[0105] It should be noted that the embodiment of the present invention can also query the estimated information of logistics data, and specifically display the waybill type, waybill classification, pre-discount amount, discount estimated amount, post-discount estimated amount, etc. of the logistics data. Specifically, the required parameters can also be displayed through the details page, such as waybill freight discount, waybill quantity discount, waybill route freight discount, waybill route quantity discount, waybill single ticket weight ladder discount, etc.
[0106] In an embodiment of the present invention, the total logistics data is estimated through the current logistics data within a preset time period, and the corresponding processing level can be calculated. After determining that the total logistics data within the preset time period can change the applicable processing level, the logistics data can be adjusted and displayed, thereby making it easier for users to control the logistics data in a timely manner and achieve reasonable arrangement of the logistics data.
[0107] Combine the following Figure 1 The system architecture shown in FIG. 1 is a system architecture that takes the logistics processing strategy as a logistics discount strategy as an example to specifically illustrate the method for processing logistics data in the embodiment of the present invention. Figure 3 As shown, the method includes:
[0108] S301: In response to a processing instruction for logistics data, obtain current logistics data within a preset time period.
[0109] S302: Query the historical time period corresponding to the preset time period to obtain the change trend of the logistics data in the historical time period.
[0110] S303: Acquire the first logistics data of the type to which the change trend belongs and within the historical time period.
[0111] S304: In response to the change trend being of the second type, calculate the position of the current time within the preset time period to determine the time node corresponding to the position in the historical time period, and calculate the second logistics data before the time node in the historical time period; calculate the logistics data ratio between the current logistics data and the second logistics data to estimate the total logistics data within the preset time period based on the logistics data ratio and the logistics data corresponding to the historical time period.
[0112] S305: Calling a preset logistics discount strategy to calculate a first discount level corresponding to the current logistics data and a second discount level corresponding to the total logistics data.
[0113] S306: In response to the first discount level being different from the second discount level, generating and displaying logistics data adjustment information based on the second discount level and the logistics total score data.
[0114] S307: In response to the first discount level being the same as the second discount level, calling a preset logistics discount strategy to determine a third discount level adjacent to the second discount level.
[0115] S308: Obtain the logistics data corresponding to the third discount level to calculate the second difference between the logistics data and the total logistics data; calculate the second discount amount corresponding to the total logistics data based on the third discount level; and generate prompt adjustment information based on the second difference and the second discount amount.
[0116] It should be noted that the data processing principle in the embodiment of the present invention is the same as Figure 2 The corresponding data processing principles in the illustrated embodiments are the same and will not be described in detail here.
[0117] In order to solve the problems existing in the prior art, the embodiment of the present invention provides a logistics data processing device 400, such as Figure 4 As shown, the device 400 includes:
[0118] An acquisition unit 401 is used to acquire current logistics data within a preset time period in response to a logistics data processing instruction;
[0119] An estimation unit 402 is used to query the historical time period corresponding to the preset time period, obtain the change trend of the logistics data in the historical time period, and estimate the total logistics data in the preset time period based on the current logistics data and the change trend;
[0120] A calculation unit 403 is used to call a preset logistics processing strategy to calculate a first processing level corresponding to the current logistics data and a second processing level corresponding to the total logistics data;
[0121] The generating unit 404 is used for generating and displaying the adjustment information of the logistics data based on the second processing level and the logistics total score data in response to the first processing level being different from the second processing level.
[0122] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 2 The method of the illustrated embodiment is the same and will not be repeated here.
[0123] In one embodiment, the estimation unit 402 is specifically configured to:
[0124] Acquire the type of the change trend and the first logistics data within the historical time period;
[0125] In response to the change trend being of the first type, determining the first logistics data as total logistics data within the preset time period;
[0126] In response to the change trend being of the second type, the position of the current time within the preset time period is calculated to determine the time node corresponding to the position in the historical time period, and the second logistics data belonging to before the time node in the historical time period is calculated; based on the current logistics data, the second logistics data and the logistics data corresponding to the historical time period, the total logistics data within the preset time period is estimated.
[0127] In yet another embodiment, the estimating unit 402 is specifically configured to:
[0128] The logistics data ratio between the current logistics data and the second logistics data is calculated to estimate the total logistics data within the preset time period based on the logistics data ratio and the logistics data corresponding to the historical time period.
[0129] In yet another embodiment, the current logistics data includes the current waybill quantity of the item, and the total logistics data includes the total waybill quantity of the item;
[0130] The calculation unit 403 is specifically used for:
[0131] Calculating a first difference between the current waybill quantity and the total waybill quantity;
[0132] Based on the second processing level, calculating a first processing amount corresponding to the total amount of the waybill;
[0133] A preset template is called to generate logistics data adjustment information based on the first difference and the first processing amount.
[0134] In yet another embodiment, the apparatus 400 further includes:
[0135] a determining unit, configured to call a preset logistics processing strategy in response to the second processing level being the same as the second processing level, and determine a third processing level adjacent to the second processing level;
[0136] The calculation unit 403 is further used to obtain the logistics data corresponding to the third processing level to calculate the second difference between the logistics data and the total logistics data;
[0137] The calculation unit 403 is further used to calculate the second processing amount corresponding to the total logistics data based on the third processing level;
[0138] The generating unit 404 is further configured to generate and display prompt information based on the second difference and the second processing amount.
[0139] In yet another embodiment, the computing unit 403 is specifically configured to:
[0140] Call the preset logistics processing strategy to obtain each logistics processing object;
[0141] Acquire a first data value set corresponding to the logistics processing object for each waybill in the current logistics data, calculate a first logistics amount corresponding to the current logistics data, and determine the first processing level based on a preset mapping relationship between the processing level and the logistics amount;
[0142] A second data value set corresponding to the logistics processing object for each waybill in the total logistics data is obtained to calculate a second logistics amount corresponding to the total logistics data, so as to determine the second processing level based on the mapping relationship.
[0143] In yet another embodiment, the apparatus 400 further includes:
[0144] A query unit, configured to obtain a corresponding user identifier in response to query information of the logistics data, so as to query the logistics data associated with the user identifier;
[0145] The calculation unit 403 is further used to call a preset logistics processing strategy, calculate the processing level corresponding to the logistics data associated with the user identifier, and display the logistics data associated with the user identifier and the corresponding processing level.
[0146] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 2 or Figure 3 The method of the illustrated embodiment is the same and will not be repeated here.
[0147] In an embodiment of the present invention, the total logistics data is estimated through the current logistics data within a preset time period, and the corresponding processing level can be calculated. After determining that the total logistics data within the preset time period can change the applicable processing level, the logistics data can be adjusted and displayed, thereby making it easier for users to control the logistics data in a timely manner and achieve reasonable arrangement of the logistics data.
[0148] According to an embodiment of the present invention, the embodiment of the present invention further provides an electronic device and a readable storage medium.
[0149] The electronic device of an embodiment of the present invention includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the method for logistics data processing provided by the embodiment of the present invention.
[0150] Figure 5 An exemplary system architecture 500 is shown to which the method or apparatus for logistics data processing according to an embodiment of the present invention may be applied.
[0151] 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.
[0152] The user can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various client applications can be installed on the terminal devices 501, 502, 503.
[0153] The terminal devices 501 , 502 , and 503 may be, but are not limited to, smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0154] The server 505 may be a server that provides various services. The server may analyze and process the received data such as the product information query request, and feed back the processing result (such as product information - just an example) to the terminal device.
[0155] It should be noted that the method for processing logistics data provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for processing logistics data is generally arranged in the server 505 .
[0156] It should be understood that Figure 5 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.
[0157] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 suitable for implementing an embodiment of the present invention. Figure 6 The computer system 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.
[0158] like Figure 6As 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.
[0159] 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.
[0160] 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.
[0161] 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.
[0162] 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 unit, a program segment, or a part of a code, and the above-mentioned unit, 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.
[0163] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit, an estimation unit, a calculation unit, and a generation unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the acquisition unit may also be described as a "unit of data acquisition function".
[0164] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or 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 executes the method for processing logistics data provided by the present invention.
[0165] As another aspect, the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the method for processing logistics data provided in an embodiment of the present invention.
[0166] 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 data, characterized in that: include: In response to the logistics data processing instruction, obtaining current logistics data within a preset time period; Querying the historical time period corresponding to the preset time period, obtaining the change trend of the logistics data in the historical time period, and estimating the total logistics data in the preset time period based on the current logistics data and the change trend; Calling a preset logistics processing strategy to calculate a first processing level corresponding to the current logistics data and a second processing level corresponding to the total logistics data; In response to the first processing level being different from the second processing level, adjustment information of the logistics data is generated and displayed based on the second processing level and the logistics total score data.
2. The method according to claim 1, characterized in that: Estimating the total logistics data within the preset time period based on the current logistics data and the change trend includes: Acquire the type of the change trend and the first logistics data within the historical time period; In response to the change trend being of the first type, determining the first logistics data as total logistics data within the preset time period; In response to the change trend being of the second type, the position of the current time within the preset time period is calculated to determine the time node corresponding to the position in the historical time period, and the second logistics data belonging to before the time node in the historical time period is calculated; based on the current logistics data, the second logistics data and the logistics data corresponding to the historical time period, the total logistics data within the preset time period is estimated.
3. The method according to claim 2, characterized in that Based on the current logistics data, the second logistics data and the logistics data corresponding to the historical time period, estimating the total logistics data within the preset time period includes: The logistics data ratio between the current logistics data and the second logistics data is calculated to estimate the total logistics data within the preset time period based on the logistics data ratio and the logistics data corresponding to the historical time period.
4. The method according to claim 1, characterized in that: The current logistics data includes the current waybill quantity of the item, and the total logistics data includes the total waybill quantity of the item; Generating adjustment information of logistics data based on the second processing level and the logistics total score data includes: Calculating a first difference between the current waybill quantity and the total waybill quantity; Based on the second processing level, calculating a first processing amount corresponding to the total amount of the waybill; Call a preset template to generate logistics data adjustment information based on the first difference and the first processing amount.
5. The method according to claim 1, characterized in that The method further comprises: In response to the second processing level being the same as the second processing level, calling a preset logistics processing strategy to determine a third processing level adjacent to the second processing level; Obtaining logistics data corresponding to the third processing level to calculate a second difference between the logistics data and the total logistics data; Based on the third processing level, calculating a second processing amount corresponding to the total logistics data; Prompt information is generated and displayed based on the second difference and the second processing amount.
6. The method according to claim 1, characterized in that Calling a preset logistics processing strategy to calculate a first processing level corresponding to the current logistics data and a second processing level corresponding to the total logistics data includes: Call the preset logistics processing strategy to obtain each logistics processing object; Acquire a first data value set corresponding to the logistics processing object for each waybill in the current logistics data, calculate a first logistics amount corresponding to the current logistics data, and determine the first processing level based on a preset mapping relationship between the processing level and the logistics amount; A second data value set corresponding to the logistics processing object for each waybill in the total logistics data is obtained to calculate a second logistics amount corresponding to the total logistics data, so as to determine the second processing level based on the mapping relationship.
7. The method according to claim 1, characterized in that The method further comprises: In response to the query information of the logistics data, the corresponding user identification is obtained to query the logistics data associated with the user identification; The preset logistics processing strategy is called to calculate the processing level corresponding to the logistics data associated with the user identifier to display the logistics data associated with the user identifier and the corresponding processing level.
8. A device for processing logistics data, characterized in that: include: An acquisition unit, configured to acquire current logistics data within a preset time period in response to a processing instruction for logistics data; An estimation unit, used to query the historical time period corresponding to the preset time period, obtain the change trend of the logistics data in the historical time period, and estimate the total logistics data in the preset time period based on the current logistics data and the change trend; A calculation unit, used to call a preset logistics processing strategy, calculate a first processing level corresponding to the current logistics data and a second processing level corresponding to the total logistics data; A generating unit is used for generating and displaying adjustment information of logistics data based on the second processing level and the logistics total score data in response to the first processing level being different from the second processing level.
9. 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 7.
10. 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 7 is implemented.
Citation Information
Patent Citations
Express logistics settlement method and system
CN113129123A
Supply Chain Analysis
US20130018696A1
System and method for determining a combined effective price discount in tier pricing
US20160283954A1
Logistics System and Logistics Method
US20210097636A1
Platform for shipping logistics simulation and execution
US20230351310A1