A method and device for determining the duration of order deletion
By obtaining multiple dimension information from order information and their corresponding deletion time, using whitelist and priority processing, the problem of low efficiency in reading configuration files is solved, and the rapid determination of deletion time during the big promotion period is achieved and massive order processing efficiency improves.
Patent Information
- Application Number
- CN201810437494.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-05-09
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2038-05-09
AI Technical Summary
In the prior art, the efficiency of reading configuration files is inefficient, which makes it difficult to effectively solve the problems of out-of-stock and inventory backlog during the big sale.
By obtaining multiple dimension information from the order information and their corresponding deletion time, determining the deletion time based on the pre-created whitelist, and normalizing the deletion time based on the dimension information with the highest priority, quickly determining the deletion time of the order , thereby improving reading efficiency.
It realizes the rapid determination of the time to delete orders during the big promotion period, avoids out of stock and inventory backlog, improves the efficiency of massive order processing, and ensures automatic cancellation of orders that have not been paid after time.
Smart Images

Figure CN110473035B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for determining the duration of order deletion. Background Art
[0002] E-commerce websites make products available for users to purchase, and users can place orders at any time if the products are available. During the promotion period, e-commerce websites may set up some promotional activities for some products, or provide some products with tight inventory. However, due to the continuous development of the business, in order to avoid the situation of out-of-stock products during the promotion period, inventory backlog after the promotion, and users maliciously occupying inventory and affecting other users' purchases, the business needs to support more needs in more scenarios to automatically cancel orders due to timeout and non-payment.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: Currently, the deletion time of special orders of item dimensions can only be configured in the configuration file according to the dimension of item identification. Since the configuration file needs to be traversed, the reading speed is proportional to the size of the configuration file. The larger the configuration file, the lower the reading efficiency. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method and device for determining the duration of order deletion to solve the technical problem of low efficiency in reading configuration files.
[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for determining the duration of order deletion is provided, comprising:
[0006] Obtain at least one first dimension information of the order and the order deletion time corresponding to each first dimension information from the order information, and / or obtain at least one second dimension information of the order from the order information, and determine the order deletion time corresponding to each second dimension information according to a pre-created second dimension information whitelist;
[0007] Determine the priority of each dimensional information according to the first dimensional information and / or the second dimensional information;
[0008] Determine the order deletion time based on the order deletion time corresponding to the dimension information with the highest priority.
[0009] Optionally, the first dimension information includes an order cancellation attribute of the item;
[0010] Before obtaining at least one first dimension information of the order and the order deletion duration corresponding to each first dimension information from the order information, the method further includes:
[0011] Write the item's order deletion start time, order deletion end time, and order deletion duration into the item's order deletion attributes in advance;
[0012] When an order is generated, the order cancellation start time, order cancellation end time and order cancellation duration of the item are written into the order information according to the order cancellation attribute of the item.
[0013] Optionally, based on the order deletion time corresponding to the dimension information with the highest priority, determining the order deletion time of the order includes:
[0014] Determine whether the dimension information with the highest priority has a corresponding order deletion time. If so, determine at least one order deletion time corresponding to the dimension information, normalize at least one order deletion time, and use the normalized order deletion time as the order deletion time of the order; if not, determine the dimension information with the next priority, and so on.
[0015] Optionally, based on the order deletion time corresponding to the dimension information with the highest priority, the order deletion time of the order is determined, and then the method further includes:
[0016] Determine the order deletion time according to the order placement time and the order deletion time;
[0017] Use the division and remainder method to group multiple orders, and periodically loop through each order in each group. If the current time is the order deletion time, the order will be deleted from the group.
[0018] Optionally, based on the order deletion time corresponding to the dimension information with the highest priority, the order deletion time is determined, and then the method further includes: writing the order deletion time of the order into the order information.
[0019] In addition, according to another aspect of an embodiment of the present invention, a device for determining the duration of order deletion is provided, including:
[0020] An acquisition module is used to acquire at least one first dimension information of an order and the order deletion time corresponding to each first dimension information from the order information, and / or acquire at least one second dimension information of an order from the order information, and determine the order deletion time corresponding to each second dimension information according to a pre-created second dimension information whitelist; wherein the first dimension information includes at least one of an order deletion attribute of an item and a payment method, and the second dimension information includes at least one of an item classification, a business feature, a set to which an item belongs, and an order type;
[0021] A sorting module, used to determine the priority of each dimension information according to the first dimension information and / or the second dimension information;
[0022] The determination module is used to determine the order deletion time of an order based on the order deletion time corresponding to the dimension information with the highest priority.
[0023] Optionally, the first dimension information includes an order cancellation attribute of the item;
[0024] The device also includes an order generating module, which is used to:
[0025] Write the item's order deletion start time, order deletion end time, and order deletion duration into the item's order deletion attributes in advance;
[0026] When an order is generated, the order cancellation start time, order cancellation end time and order cancellation duration of the item are written into the order information according to the order cancellation attribute of the item.
[0027] Optionally, the determining module is used to:
[0028] Determine whether the dimension information with the highest priority has a corresponding order deletion time. If so, determine at least one order deletion time corresponding to the dimension information, normalize at least one order deletion time, and use the normalized order deletion time as the order deletion time of the order; if not, determine the dimension information with the next priority, and so on.
[0029] Optionally, the device further includes an order deletion module, which determines the order deletion duration of the order based on the order deletion duration corresponding to the dimension information with the highest priority, and then the order deletion module is used to:
[0030] Determine the order deletion time according to the order placement time and the order deletion time;
[0031] Use the division and remainder method to group multiple orders, and periodically loop through each order in each group. If the current time is the order deletion time, the order will be deleted from the group.
[0032] Optionally, based on the order deletion time corresponding to the dimension information with the highest priority, the order deletion time is determined, and then the determination module is further used to write the order deletion time of the order into the order information.
[0033] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, including:
[0034] one or more processors;
[0035] a storage device for storing one or more programs,
[0036] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above embodiments.
[0037] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described in any one of the above embodiments is implemented.
[0038] An embodiment of the above invention has the following advantages or beneficial effects: because at least one first dimension information of an order and the order deletion time corresponding to each first dimension information are obtained from the order information, and / or at least one second dimension information of an order is obtained from the order information, and the order deletion time corresponding to each second dimension information is determined according to the pre-created second dimension information whitelist, the technical problem of low efficiency in reading configuration files is overcome. The embodiment of the present invention directly obtains the first dimension information and the order deletion time corresponding to each first dimension information from the order information, and only the order deletion time corresponding to the second dimension information is determined through the whitelist to improve the reading time, and quickly determine the order deletion time of the order, thereby solving the problem of mass order processing efficiency. Moreover, the method provided by the embodiment of the present invention can determine the order deletion time of an order through multiple dimension information, meet different business needs, and realize the dynamic and real-time calculation of the order deletion time in a multi-dimensional scenario, so that the order can be automatically cancelled when the order is overdue and not paid, and also ensure the efficiency of the operation of automatically canceling the timeout and non-payment for mass orders.
[0039] 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
[0040] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0041] Figure 1 is a schematic diagram of the main process of the method for determining the order deletion time according to an embodiment of the present invention;
[0042] Figure 2 It is a schematic diagram of the main process of a method for determining the order deletion time according to a reference embodiment of the present invention;
[0043] Figure 3 is a schematic diagram of main modules of a device for determining a deletion time according to an embodiment of the present invention;
[0044] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0045] Figure 5 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
[0046] 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.
[0047] In order to quickly determine the order deletion time of an order, the present invention proposes a method for determining the order deletion time, including: obtaining at least one first dimension information of the order and the order deletion time corresponding to each first dimension information from the order information, and / or obtaining at least one second dimension information of the order from the order information, and determining the order deletion time corresponding to each second dimension information according to a pre-created second dimension information whitelist; determining the priority of each dimension information according to the first dimension information and / or the second dimension information; determining the order deletion time of the order based on the order deletion time corresponding to the dimension information with the highest priority. Therefore, the method directly obtains the first dimension information and the order deletion time corresponding to each first dimension information from the order information, and only the order deletion time corresponding to the second dimension information is determined through the whitelist to improve the reading time, and quickly determine the order deletion time, thereby solving the problem of efficiency in processing massive orders.
[0048] Figure 1 Schematic diagram of the main process of the method for determining the duration of order deletion according to an embodiment of the present invention. Figure 1 As shown, the method for determining the order deletion time may include:
[0049] Step 101: obtain at least one first dimension information of the order and the order deletion time corresponding to each first dimension information from the order information, and / or obtain at least one second dimension information of the order from the order information, and determine the order deletion time corresponding to each second dimension information based on a pre-created second dimension information whitelist.
[0050] In this step, multiple dimensional information of the order and the order deletion time corresponding to each dimensional information are obtained, and the multiple dimensional information includes at least two of the item's order deletion attributes, item classification, business characteristics, item collection, order type, and payment method. At least two dimensional information of the order are obtained, such as the item's order deletion attributes, item classification, business characteristics, item collection, order type, or payment method. By obtaining the dimensional information, the order deletion time corresponding to each dimensional information can be further determined. Therefore, obtaining the dimensional information and its corresponding order deletion time is the basis of the method for determining the order deletion time.
[0051] Since the order contains a lot of information, how to improve the time to determine the order deletion as much as possible while ensuring performance under the existing architecture is the key. Therefore, the method for determining the order deletion time provided by the present invention can determine the order deletion time of the item dimension based on the order deletion attribute of the item.
[0052] Due to the large number of items, if the item deletion time is still determined by the product whitelist, the whitelist needs to be traversed for each order. The more information in the whitelist, the lower the search speed. Therefore, a method that does not need to be based on the item whitelist is needed to determine the item deletion time.
[0053] As another embodiment of the present invention, step 101 may include:
[0054] Acquire at least one first dimension information of the order and the order cancellation time corresponding to each first dimension information from the order information, wherein the first dimension information includes at least one of an order cancellation attribute of the item and a payment method;
[0055] At least one second dimension information of the order is obtained from the order information, and the order deletion time corresponding to each second dimension information is determined according to a pre-created second dimension information whitelist, wherein the second dimension information includes at least one of item classification, business characteristics, item collection, and order type.
[0056] In this embodiment, the dimension information is divided into first dimension information and second dimension information. Since the data volume of the first dimension information is relatively large, the first dimension information and its corresponding order deletion time can be directly written into the order information to avoid traversing the whitelist, thereby improving the search speed. For the second dimension information that is not very large in the data, the order deletion time can be determined by traversing the whitelist, thereby reducing the data content of the order information.
[0057] Specifically, before step 101, the method further includes:
[0058] Write the item's order deletion start time, order deletion end time, and order deletion duration into the item's order deletion attributes in advance;
[0059] When an order is generated, the order cancellation start time, order cancellation end time and order cancellation duration of the item are written into the order information according to the order cancellation attribute of the item.
[0060] Since the calculation of the order deletion time depends on the order information, the item's order deletion time start time, order deletion time end time, and order deletion time are written into the item's order deletion attributes, so that when an order is generated, the item's order deletion time start time, order deletion time end time, and order deletion time are written into the order information according to the item's order deletion attributes. That is, when an order is generated, the item's order deletion time start time, order deletion time end time, and order deletion time are written into the order information through the transmission process between systems of the item attribute information.
[0061] Since item attributes need to carry a lot of services and the total length of item attributes is limited, it is necessary to be able to carry necessary information and to be as short as possible. The item attributes need to include the order deletion duration information, which includes the order deletion duration start time, order deletion duration end time, and order deletion duration, so it is represented by a nine-digit number. The first four digits represent the year, month, day, and time of the order deletion duration start time, the middle four digits represent the year, month, day, and time of the order deletion duration end time, and the last digit represents the order deletion duration. In order to reduce the length of the item label, the embodiment of the present invention uses numbers and letters to represent the order deletion duration start time, order deletion duration end time, and order deletion duration.
[0062] As another embodiment of the present invention, 1-9 and AZ may be used to represent a continuous integer set to which 1-35 belongs.
[0063] Year: 2017 is 1, 2018 is 2, and so on, 2025 is A;
[0064] Month: 1-C corresponds to January to December
[0065] Day: 1-V corresponds to 1 to 31
[0066] Time: 1-0 corresponds to 1 o'clock to 24 o'clock (i.e. 0 o'clock)
[0067] The order deletion duration is expressed in enumeration form: for example, 1 represents 6 hours, 2 represents 12 hours, 3 represents 18 hours, and so on.
[0068] For example, 161016K01 means that the order deletion time starts at 0:00 on June 1, 2017 and ends at 0:00 on June 20, 2017, with a 6-hour order deletion time. In other words, if the order generated during the period from 0:00 on June 1, 2017 to 0:00 on June 20, 2017 includes the item, the order deletion time corresponding to the order deletion attribute of the item will be written into the order information.
[0069] For example, during a big sale (starting at 00:00 on November 1, 2017 and ending at 00:00 on November 15, 2017), the cancellation time corresponding to the item's cancellation attribute is shorter than usual (for example, 24 hours at ordinary times, 12 hours or even 6 hours during a big sale), to avoid out-of-stock conditions during the big sale and inventory backlogs after the big sale.
[0070] Optionally, before step 101, the method further includes: pre-creating an item classification whitelist, a business feature whitelist, an item collection whitelist, and an order type whitelist, each whitelist including at least one identifier.
[0071] Therefore, when an order is generated, the item classification identifier, business feature identifier, item collection identifier, and order type identifier of the item are all written into the order information. Then, according to the item classification identifier, business feature identifier, item collection identifier, and order type identifier of the item, the identifiers in the item classification whitelist, business feature whitelist, item collection whitelist, and order type whitelist are searched respectively to determine the order deletion duration corresponding to the item classification, business feature, item collection, and order type.
[0072] Optionally, the item classification refers to the category of the item, the business feature refers to the type of promotion the item participates in, the item collection refers to the store where the item is located, and the order type refers to the basic business type of the order, such as self-operated business, third-party business, air ticket business, recharge business, etc.
[0073] Since the number of identifiers in the item classification whitelist, business feature whitelist, item collection whitelist, and order type whitelist is much smaller than the number of items, and the item classification, business feature, item collection, and order type exist in the order information in the form of identifiers, the identifiers listed in each whitelist can be searched through the whitelist to determine the order deletion time corresponding to each dimension.
[0074] Therefore, for information on dimensions such as item classification, business characteristics, item collections, order types, etc., whitelists can be created separately. Each whitelist has a preset order deletion time. Therefore, it is possible to determine whether a certain dimension of the order is in the corresponding whitelist by traversing the whitelist. If so, the order deletion time corresponding to the dimension can be determined.
[0075] Optionally, in order to ensure writing and query speed, cache technology is used to store the item classification whitelist, business feature whitelist, item collection whitelist, and order type whitelist.
[0076] The payment methods of an order include online payment, company transfer, postal remittance, etc. Since company transfer and mail remittance need to be operated offline and take a long time, the order deletion time of company transfer and postal remittance is longer than that of online payment. The payment method is the basic information of the order, which can be obtained from the order information.
[0077] Therefore, the payment method and the corresponding order cancellation time length of the payment method can also be written into the order information when the order is generated. Alternatively, only the payment method is written into the order information, and when step 101 is executed, the payment method of the order is obtained from the order information, and the order cancellation time length of the payment method is determined according to the pre-established mapping relationship between different payment methods and their corresponding order cancellation time lengths.
[0078] Step 102: determine the priority of each dimensional information according to the first dimensional information and / or the second dimensional information.
[0079] Before determining the order deletion time, it is necessary to determine the priority of each dimension information. It should be noted that the priority of each dimension information can be preset. Generally speaking, the principle of order dimension priority is that the priority of a smaller range is higher than the priority of a larger range, such as the priority of item deletion attributes is higher than the priority of item classification.
[0080] Therefore, in step 102, based on the multiple dimensional information obtained in step 101, the priorities of these dimensional information are sorted. Specifically, for example, the priorities of each dimensional information are from high to low: item deletion attribute > business characteristics > item classification > item collection > order type > payment method. It can also be sorted in other orders, and the present invention does not limit this. It should be noted that the priority of each dimensional information may be different in different time periods. Therefore, in this step, the priority of each dimensional information in the current time period is determined based on the multiple dimensional information.
[0081] Step 103, determining the order deletion time based on the order deletion time corresponding to the dimension information with the highest priority.
[0082] Based on step 102, step 103 includes: determining whether the dimension information with the highest priority has a corresponding order deletion time; if so, determining at least one order deletion time corresponding to the dimension information, and determining the order deletion time of the order based on the at least one order deletion time; if not, determining the dimension information with the next priority, and so on.
[0083] For example, assuming that the priorities of the dimensions of order O are dimension A, dimension B, dimension C, dimension D, dimension E, etc. from high to low, step 103 includes the following steps:
[0084] Judge from high to low priority. For dimension A with the highest priority, determine whether there is a deletion time corresponding to dimension A in the order information of order O. If so, determine how many deletion times corresponding to dimension A there are in order O, and determine the final time corresponding to dimension A based on these deletion times, which is the deletion time of order O. If not, continue to determine the next dimension with the second highest priority after dimension A, that is, dimension B, and repeat the process in sequence.
[0085] When a dimension contains multiple order deletion times, these order deletion times need to be normalized according to the rules of the dimension. Therefore, the order deletion time corresponding to the dimension is the result of normalizing multiple order deletion times.
[0086] For example, for a certain order O, assume that the priorities of the dimensions of order O are dimension A, dimension B, dimension C, dimension D, dimension E, etc. from high to low. Each order may have multiple order deletion durations under the same dimension. For example, for dimension A in order O, there are order deletion durations such as A1 and A2.
[0087] For example, regarding the item cancellation attribute, order 12345 contains three items, two of which have a cancellation time of 3 hours, and the other has a cancellation time of 6 hours. The dimension of the item cancellation attribute of order 12345 includes a 3-hour cancellation time and a 6-hour cancellation time. If normalized according to the weighted average, where the weight is the number of items, the normalized cancellation time for this dimension (item cancellation attribute) is (3+3+6) / 3=4 hours.
[0088] Optionally, after step 103, the method further includes: writing the order deletion time of the order into the order information, so as to directly obtain the order deletion time by reading the order information.
[0089] After dynamically calculating the order deletion time of each order in real time, the order deletion time can be determined according to the order placement time and the order deletion time, that is, the automatic cancellation time of the order due to timeout and non-payment. Considering the large number of orders, the method provided in the embodiment of the present invention also includes: dividing the orders into several groups according to certain rules, and processing the orders of each group separately. In order to ensure that the number of each group is relatively even, the grouping is usually performed according to the hash method based on the order number. Scanning the grouped orders can save scanning time, reduce the amount of data processing for each group, and improve processing efficiency.
[0090] Specifically, the multiple orders are grouped by using the division and remainder method, and each order is traversed in a timed loop within each group. If the current time is the order deletion time, the order is deleted from the group, that is, the order deletion operation is performed.
[0091] For example, if the order number is 12345, the dividend is 10, and the remainder is 5, the order is in the 5th group.
[0092] In order to ensure execution efficiency and control data volume, the order data that has been deleted is cleaned up regularly to save database space.
[0093] According to the various embodiments described above, it can be seen that the present invention adopts the technical means of obtaining at least one first dimension information of the order and the order deletion time corresponding to each first dimension information from the order information, and / or obtaining at least one second dimension information of the order from the order information, and determining the order deletion time corresponding to each second dimension information according to the pre-created second dimension information whitelist, thereby solving the problem of low efficiency in reading the configuration file. That is to say, the prior art needs to traverse the configuration file, and the larger the configuration file, the lower the reading efficiency. However, the present invention directly obtains the first dimension information and the order deletion time corresponding to each first dimension information from the order information, and only the order deletion time corresponding to the second dimension information is determined by the whitelist to improve the reading time, and quickly determine the order deletion time of the order, thereby solving the problem of mass order processing efficiency. Moreover, the method provided in the embodiment of the present invention can determine the order deletion time of the order through multiple dimension information, meet different business needs, and realize the dynamic and real-time calculation of the order deletion time in the multi-dimensional scenario, so that the order can be automatically cancelled when the order is overdue and not paid, and also ensure the efficiency of the operation of automatically canceling the timeout and non-payment for mass orders.
[0094] Figure 2 : is a schematic diagram of the main process of a method for determining the duration of order deletion according to another reference embodiment of the present invention. The method for determining the duration of order deletion may include:
[0095] Step 201, when an order is generated, at least one first dimension information, the order deletion duration corresponding to each first dimension information, and at least one second dimension information are written into the order information;
[0096] Step 202: obtaining at least one first dimension information of the order and the order deletion duration corresponding to each first dimension information from the order information, and obtaining at least one second dimension information of the order from the order information;
[0097] Step 203, determining the order deletion duration corresponding to each second dimension information according to the pre-created second dimension information whitelist;
[0098] Step 204: determining the priority of each dimension information according to the first dimension information and the second dimension information;
[0099] Step 205, determining the order deletion time of the order based on the order deletion time corresponding to the dimension information with the highest priority;
[0100] Step 206, writing the order deletion time of the order into the order information;
[0101] Step 207, grouping the multiple orders using the division and remainder method;
[0102] Step 208, timed loop traversal of each order in each group, if the current time is the order deletion time, then the order deletion operation is performed.
[0103] In addition, the specific implementation content of the method for determining the deletion time length in a reference embodiment of the present invention has been described in detail in the method for determining the deletion time length described above, so the repeated content will not be described here.
[0104] Figure 3 is a schematic diagram of main modules of the device for determining the order deletion time according to an embodiment of the present invention, such as Figure 3 As shown, the device for determining the order deletion time includes an acquisition module 301, a sorting module 302 and a determination module 303. The acquisition module 301 acquires at least one first dimension information of an order and the order deletion time corresponding to each first dimension information from the order information, and / or acquires at least one second dimension information of an order from the order information, and determines the order deletion time corresponding to each second dimension information according to a pre-created second dimension information whitelist; the sorting module 302 determines the priority of each dimension information according to the first dimension information and / or the second dimension information; the determination module 303 determines the order deletion time of the order based on the order deletion time corresponding to the dimension information with the highest priority.
[0105] Optionally, the first dimensional information includes at least one of an item's order cancellation attribute and a payment method, and the second dimensional information includes at least one of an item classification, a business feature, an item collection, and an order type.
[0106] Optionally, the device also includes an order generation module, which pre-writes the item's order deletion start time, order deletion end time and order deletion duration into the item's order deletion attributes; when the order is generated, the item's order deletion start time, order deletion end time and order deletion duration are written into the order information according to the item's order deletion attributes.
[0107] Optionally, the determination module 303 determines whether the dimension information with the highest priority has a corresponding order deletion time. If so, it determines at least one order deletion time corresponding to the dimension information, normalizes the at least one order deletion time, and uses the normalized order deletion time as the order deletion time of the order; if not, it determines the dimension information of the next priority, and so on.
[0108] Optionally, the device also includes an order deletion module, which determines the order deletion time of the order based on the order deletion time corresponding to the dimension information with the highest priority. Thereafter, the order deletion module first determines the order deletion time according to the order placement time and the order deletion time, and then uses the division and remainder method to group multiple orders, and iterates through each order in each group in a timed loop; if the current time is the order deletion time, the order is deleted from the group.
[0109] Optionally, based on the order deletion time corresponding to the dimension information with the highest priority, the order deletion time of the order is determined, and then the determination module 303 writes the order deletion time of the order into the order information.
[0110] According to the various embodiments described above, it can be seen that the present invention adopts the technical means of obtaining at least one first dimension information of the order and the order deletion time corresponding to each first dimension information from the order information, and / or obtaining at least one second dimension information of the order from the order information, and determining the order deletion time corresponding to each second dimension information according to the pre-created second dimension information whitelist, thereby solving the problem of low efficiency in reading the configuration file. That is to say, the prior art needs to traverse the configuration file, and the larger the configuration file, the lower the reading efficiency. However, the present invention directly obtains the first dimension information and the order deletion time corresponding to each first dimension information from the order information, and only the order deletion time corresponding to the second dimension information is determined by the whitelist to improve the reading time, and quickly determine the order deletion time of the order, thereby solving the problem of mass order processing efficiency. Moreover, the method provided in the embodiment of the present invention can determine the order deletion time of the order through multiple dimension information, meet different business needs, and realize the dynamic and real-time calculation of the order deletion time in the multi-dimensional scenario, so that the order can be automatically cancelled when the order is overdue and not paid, and also ensure the efficiency of the operation of automatically canceling the timeout and non-payment for mass orders.
[0111] It should be noted that the specific implementation content of the device for determining the deletion time length of the present invention has been described in detail in the method for determining the deletion time length described above, so the repeated content will not be described here.
[0112] Figure 4 An exemplary system architecture 400 is shown to which the method for determining the duration of deleting an order or the apparatus for determining the duration of deleting an order according to an embodiment of the present invention can be applied.
[0113] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0114] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0115] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0116] The server 405 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 401, 402, and 403. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0117] It should be noted that the method for determining the deletion time provided in the embodiment of the present invention is generally executed on the terminal devices 401, 402, 403 in a public place, and can also be executed by the server 405. Accordingly, the device for determining the deletion time is generally set on the terminal devices 401, 402, 403 in a public place, and can also be set in the server 405.
[0118] It should be understood that Figure 4 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.
[0119] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device suitable for implementing an embodiment of the present invention. Figure 5 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.
[0120] like Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0121] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0122] 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 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0123] 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.
[0124] 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.
[0125] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an acquisition module, a sorting module and a determination module, wherein the names of these modules do not constitute a limitation on the modules themselves in some cases.
[0126] 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. When the above one or more programs are executed by a device, the device includes: obtaining at least one first dimension information of the order and the order deletion time corresponding to each first dimension information from the order information, and / or obtaining at least one second dimension information of the order from the order information, and determining the order deletion time corresponding to each second dimension information according to a pre-created second dimension information whitelist; determining the priority of each dimension information according to the first dimension information and / or the second dimension information; determining the order deletion time of the order based on the order deletion time corresponding to the dimension information with the highest priority.
[0127] According to the technical solution of the embodiment of the present invention, because at least one first dimension information of the order and the order deletion time corresponding to each first dimension information are obtained from the order information, and / or, at least one second dimension information of the order is obtained from the order information, and the order deletion time corresponding to each second dimension information is determined according to the pre-created second dimension information whitelist, the technical problem of low efficiency in reading the configuration file is overcome. The embodiment of the present invention directly obtains the first dimension information and the order deletion time corresponding to each first dimension information from the order information, and only the order deletion time corresponding to the second dimension information is determined by the whitelist to improve the reading time, and quickly determine the order deletion time of the order, thereby solving the problem of mass order processing efficiency. Moreover, the method provided by the embodiment of the present invention can determine the order deletion time of the order through multiple dimension information, meet different business needs, and realize the dynamic and real-time calculation of the order deletion time in the multi-dimensional scenario, so that the order can be automatically cancelled when the order is overdue and not paid, and also ensure the efficiency of the operation of automatically canceling the timeout and non-payment for mass orders.
[0128] 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 determining the duration of order deletion, characterized in that: include: At least one first dimension information of the order and the order deletion time corresponding to each first dimension information are obtained from the order information, and / or at least one second dimension information of the order is obtained from the order information, and the order deletion time corresponding to each second dimension information is determined according to a pre-created second dimension information whitelist; wherein the first dimension information includes the order deletion attribute of the item, and the second dimension information includes at least one of the item classification, business characteristics, the set to which the item belongs, and the order type; Determine the priority of each dimensional information according to the first dimensional information and / or the second dimensional information; Determine the order deletion time based on the order deletion time corresponding to the dimension information with the highest priority.
2. The method according to claim 1, characterized in that At least one first dimension information of the order and the order deletion time corresponding to each first dimension information are obtained from the order information, and before that, the method further includes: Write the item's order deletion start time, order deletion end time, and order deletion duration into the item's order deletion attributes in advance; When an order is generated, the order deletion start time, order deletion end time and order deletion duration of the item are written into the order information according to the order deletion attribute of the item.
3. The method according to claim 1, characterized in that Based on the order deletion time corresponding to the dimension information with the highest priority, determine the order deletion time, including: Determine whether the dimension information with the highest priority has a corresponding order deletion time. If so, determine at least one order deletion time corresponding to the dimension information, normalize at least one order deletion time, and use the normalized order deletion time as the order deletion time of the order; if not, determine the dimension information with the next priority, and so on.
4. The method according to claim 1, characterized in that: Based on the order deletion time corresponding to the dimension information with the highest priority, the order deletion time is determined, and then: Determine the order deletion time according to the order placement time and the order deletion time; Use the division and remainder method to group multiple orders, and periodically loop through each order in each group. If the current time is the order deletion time, the order will be deleted from the group.
5. The method according to claim 1, characterized in that Based on the order deletion time corresponding to the dimension information with the highest priority, the order deletion time is determined, and then the order deletion time of the order is written into the order information.
6. A device for determining the duration of order deletion, characterized in that: include: An acquisition module is used to acquire at least one first dimension information of an order and the order deletion time corresponding to each first dimension information from the order information, and / or acquire at least one second dimension information of an order from the order information, and determine the order deletion time corresponding to each second dimension information according to a pre-created second dimension information whitelist; wherein the first dimension information includes the order deletion attribute of the item, and the second dimension information includes at least one of the item classification, business characteristics, the set to which the item belongs, and the order type; A sorting module, used to determine the priority of each dimension information according to the first dimension information and / or the second dimension information; The determination module is used to determine the order deletion time of an order based on the order deletion time corresponding to the dimension information with the highest priority.
7. The device according to claim 6, characterized in that The device also includes an order generating module, which is used to: Write the item's order deletion start time, order deletion end time, and order deletion duration into the item's order deletion attributes in advance; When an order is generated, the order deletion start time, order deletion end time and order deletion duration of the item are written into the order information according to the order deletion attribute of the item.
8. The device according to claim 6, characterized in that The determining module is used to: Determine whether the dimension information with the highest priority has a corresponding order deletion time. If so, determine at least one order deletion time corresponding to the dimension information, normalize at least one order deletion time, and use the normalized order deletion time as the order deletion time of the order; if not, determine the dimension information with the next priority, and so on.
9. The device according to claim 6, characterized in that It also includes an order deletion module, which determines the order deletion time of the order based on the order deletion time corresponding to the dimension information with the highest priority, and then the order deletion module is used to: Determine the order deletion time according to the order placement time and the order deletion time; Use the division and remainder method to group multiple orders, and periodically loop through each order in each group. If the current time is the order deletion time, the order will be deleted from the group.
10. The device according to claim 6, characterized in that Based on the order deletion time corresponding to the dimension information with the highest priority, the order deletion time of the order is determined, and then the determination module is also used to write the order deletion time of the order into the order information.
11. 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 5.
12. 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 5 is implemented.
