Disclosure of Invention
In view of this, the embodiment of the invention provides a method and a device for determining the deleting time length, so as to solve the technical problem of low efficiency of reading configuration files.
To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a method for determining a puncturing period, including:
acquiring at least one first dimension information of an order and a deleting time length corresponding to each first dimension information from the order information, and/or acquiring at least one second dimension information of the order from the order information, and determining the deleting time length corresponding to each second dimension information according to a pre-established second dimension information white list;
determining the priority of each dimension information according to the first dimension information and/or the second dimension information;
and determining the order deleting time length of the order based on the order deleting time length corresponding to the dimension information with the highest priority.
Optionally, the first dimension information includes a sheet attribute of the item;
acquiring at least one first dimension information of an order and a deleting time length corresponding to each first dimension information from the order information, wherein the method further comprises the following steps:
Writing the starting time, the ending time and the deleting time of the item in the deleting attribute of the item in advance;
when an order is generated, writing the starting time, the ending time and the deleting time of the item into order information according to the deleting attribute of the item.
Optionally, determining the order deleting duration based on the deleting duration corresponding to the dimension information with the highest priority includes:
Judging whether the dimension information with the highest priority has the corresponding deleting time length, if so, determining at least one deleting time length corresponding to the dimension information, carrying out normalization processing on the at least one deleting time length, taking the deleting time length after normalization processing as the deleting time length of the order, if not, judging the dimension information with the next priority, and the like.
Optionally, determining the order deleting time length of the order based on the deleting time length corresponding to the dimension information with the highest priority, and then, the method further includes:
determining the order deleting time of an order according to the order placing time of the order and the order deleting time of the order;
Grouping the orders by adopting a remainder dividing method, circularly traversing each order in each group, and deleting the order from the group if the current time is the deleting time of the order.
Optionally, the order deleting time length is determined based on the order deleting time length corresponding to the dimension information with the highest priority, and then the method further comprises the step of writing the order deleting time length of the order into order information.
In addition, according to another aspect of the embodiment of the present invention, there is provided an apparatus for determining a time length of a sheet deletion, including:
The system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring at least one first dimension information of an order and a deleting time length corresponding to each first dimension information from the order information, and/or acquiring at least one second dimension information of the order from the order information, and determining the deleting time length corresponding to each second dimension information according to a pre-established second dimension information white list, wherein the first dimension information comprises at least one of deleting order attributes and payment modes of articles, and the second dimension information comprises at least one of article classification, service characteristics, an article belonging set and an order type;
the sequencing module is used for determining the priority of each dimension information according to the first dimension information and/or the second dimension information;
The determining module is used for determining the order deleting time length based on the order deleting time length corresponding to the dimension information with the highest priority.
Optionally, the first dimension information includes a sheet attribute of the item;
The apparatus further comprises an order generation module for:
Writing the starting time, the ending time and the deleting time of the item in the deleting attribute of the item in advance;
when an order is generated, writing the starting time, the ending time and the deleting time of the item into order information according to the deleting attribute of the item.
Optionally, the determining module is configured to:
Judging whether the dimension information with the highest priority has the corresponding deleting time length, if so, determining at least one deleting time length corresponding to the dimension information, carrying out normalization processing on the at least one deleting time length, taking the deleting time length after normalization processing as the deleting time length of the order, if not, judging the dimension information with the next priority, and the like.
Optionally, the device further includes a deleting module, configured to determine deleting duration of the order based on deleting duration corresponding to the dimension information with the highest priority, and then the deleting module is configured to:
determining the order deleting time of an order according to the order placing time of the order and the order deleting time of the order;
Grouping the orders by adopting a remainder dividing method, circularly traversing each order in each group, and deleting the order from the group if the current time is the deleting time of the order.
Optionally, the order deleting time length is determined based on the order deleting time length corresponding to the dimension information with the highest priority, and then the determining module is further used for writing the order deleting time length of the order into the order information.
According to another aspect of an embodiment of the present invention, there is also provided an electronic device including:
One or more processors;
Storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods of any of the embodiments described above.
According to another aspect of an embodiment of the present invention, there is also provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements the method according to any of the embodiments described above.
The embodiment of the invention has the advantages that the technical means of determining the deleting time length corresponding to each second dimension information according to the pre-created second dimension information white list is adopted to acquire at least one first dimension information of an order and the deleting time length corresponding to each first dimension information from the order information, and/or acquire at least one second dimension information of the order from the order information, so that the technical problem of low efficiency of reading configuration files is solved. In addition, the method provided by the embodiment of the invention can determine the order deleting time length of the order through a plurality of dimension information, meet different service requirements, dynamically calculate the order deleting time length of the order in real time in a multi-dimension scene, enable the order to be automatically canceled when the order is overtime and unpaid, and ensure the operation efficiency of executing overtime unpaid automatic cancellation on massive orders.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In order to quickly determine the order deleting time length of an order, the invention provides a method for determining the order deleting time length, which comprises the steps of acquiring at least one first dimension information of the order and the order deleting time length corresponding to each first dimension information from the order information, and/or acquiring at least one second dimension information of the order from the order information, determining the order deleting time length corresponding to each second dimension information according to a pre-created second dimension information white list, determining the priority of each dimension information according to the first dimension information and/or the second dimension information, and determining the order deleting time length of the order based on the order deleting time length corresponding to the dimension information with the highest priority. Therefore, the method directly acquires the first dimension information and the deleting time length corresponding to each first dimension information from the order information, and only the deleting time length corresponding to the second dimension information determines the deleting time length through the white list, so that the reading time is prolonged, the deleting time length of the order is determined in a quick reading mode, and the problem of massive order processing efficiency is solved.
Fig. 1 is a schematic diagram of a main flow of a method for determining a sheet deleting time according to an embodiment of the present invention. As an embodiment of the present invention, as shown in fig. 1, the method for determining the puncturing period may include:
Step 101, obtaining at least one first dimension information of an order and a deleting time length 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 deleting time length corresponding to each second dimension information according to a pre-created second dimension information white list.
In the step, a plurality of dimension information of an order and a deleting time length corresponding to each dimension information are acquired, wherein the plurality of dimension information comprises at least two of deleting attributes of the articles, article classification, service characteristics, an article belonging set, order types and payment modes. At least two dimensional information of an order is acquired, such as a deleting attribute of an article, an article classification, a business feature, a collection to which the article belongs, an order type or a payment mode, and the like. By acquiring the dimension information, the sheet deleting time length corresponding to each dimension information can be further determined, so that the acquisition of the dimension information and the sheet deleting time length corresponding to the dimension information is the basis of the method for determining the sheet deleting time length.
Because of the vast information contained in orders, it is critical in existing architectures how to increase the determined order deletion time as much as possible while guaranteeing performance. Therefore, the method for determining the sheet deleting time length can determine the sheet deleting time length of the dimension of the article based on the sheet deleting attribute of the article.
Because the number of the articles is large, if the deleting time of the dimension of the articles is still determined in a commodity white list mode, the white list needs to be traversed for each order, and the larger the information in the white list is, the lower the searching speed is. It is therefore desirable to employ a method that does not require the determination of the length of the sheet of the item dimension based on the item whitelist.
As yet another embodiment of the present invention, step 101 may include:
acquiring at least one first dimension information of an order and a deleting time length corresponding to each first dimension information from the order information, wherein the first dimension information comprises at least one of deleting attribute and payment mode of an article;
At least one second dimension information of the order is obtained from the order information, and the deleting time length corresponding to each second dimension information is determined according to a pre-created second dimension information white list, wherein the second dimension information comprises at least one of article classification, service characteristics, an article belonging set and order types.
In this embodiment, the dimension information is divided into first dimension information and second dimension information. Because the data volume of the first dimension information is larger, the first dimension information and the corresponding deleting time length can be directly written into the order information, so that the white list is prevented from being traversed, and the searching speed is improved. For the second dimension information which is not very large in the data, the deleting time length can be determined in a white list traversing mode, so that the data content of the order information is reduced.
Specifically, before step 101, the method further comprises:
Writing the starting time, the ending time and the deleting time of the item in the deleting attribute of the item in advance;
when an order is generated, writing the starting time, the ending time and the deleting time of the item into order information according to the deleting attribute of the item.
Because the order deleting time of the order is calculated and depends on the order information, the order deleting time beginning time, the order deleting time ending time and the order deleting time of the article are written into the order deleting attribute of the article, so that when the order is generated, the order deleting time beginning time, the order deleting time ending time and the order deleting time of the article are written into the order information according to the order deleting attribute of the article. That is, when an order is generated, the information is written into the order information through a transmission flow between systems of the item attribute information.
Since the item attributes need to carry a lot of traffic and the total length of the item attributes is limited, it is desirable to be able to carry both the necessary information and as short a length as possible. The list duration information to be included in the object attribute includes list duration start time, list duration end time and list duration, so that the list duration information is represented by a nine-digit number. Wherein the first four digits respectively represent the time of the year, month and day of the beginning time of the sheet duration, the middle four digits represent the time of the year, month and day of the ending time of the sheet duration, and the last digit represents the sheet duration. In order to reduce the length of the object, the embodiment of the invention adopts numbers and letters to represent the starting time, the ending time and the deleting time of the deleting time.
As a further embodiment of the present invention, 1-9, A-Z may be used to represent a consecutive set of integers to which 1-35 belong in order.
2017 Is 1,2018 is 2, and similarly, 2025 is A;
month 1-C corresponds to 1 month to 12 months
Day 1-V corresponds to 1 day to 31 days
1-O corresponds to 1 to 24 points (i.e., 0 point)
The length of the sheet is expressed by means of enumeration, e.g. 1 for 6 hours, 2 for 12 hours, 3 for 18 hours, and so on.
For example, 161016K01 represents the 6 th month 1 th day 0 start of 2017, the 6 th month 20 th day 0 end of 2017, and the 6 th hour delete duration. That is, in the period from 1 st 2017 to 20 th 2017, if the generated order includes the item, the order deletion time corresponding to the order deletion attribute of the item is written into the order information.
For example, in a period of big promotion (for example, beginning at 1 st day 0 of 2017, 11 th month 15 th day 0 of 2017, and ending at 1 st month 15 th day 0 of 2017), the time length of the deletion corresponding to the deletion attribute of the article is smaller than usual (for example, 24 hours at usual, 12 hours or even 6 hours in the period of big promotion), so as to avoid the condition of commodity cut-out and stock backlog after big promotion in the period of big promotion.
Optionally, before step 101, the method further includes creating an item classification white list, a business feature white list, a collection white list to which the item belongs, and an order type white list in advance, where each white list includes at least one identifier.
Therefore, when the order is generated, the item classification identification, the service characteristic identification, the item belonging set identification and the order type identification of the items are written into the order information. And then, according to the article classification identification, the service feature identification, the article belonging set identification and the order type identification of the article, searching the article classification white list, the service feature white list, the article belonging set white list and the identification in the order type white list respectively, and determining article classification, service feature, article belonging set and order deleting time length corresponding to the order type respectively.
Optionally, the item classification refers to a category of the item, the service feature refers to a promotion type of the item, the collection of the item refers to a store of the item, and the order type refers to a basic service type of the order, such as a self-service, a third party service, an air ticket service, a recharging service, and the like.
The number of identifiers in the item classification white list, the service feature white list, the item belonging set white list and the order type white list is far smaller than the number of the items, and the item classification, the service feature, the item belonging set and the order type exist in the order information in the form of identifiers, so that the identifiers listed in each white list can be searched in a white list mode, and the deleting time corresponding to each dimension is determined.
Therefore, for the dimension information such as the object classification, the service characteristics, the object belonging set, the order type and the like, the whitelists can be respectively created first, and each whitelist is preset with a deleting time period, so that whether certain dimension information of the order is in the corresponding whitelist can be determined by traversing the whitelist, and if so, the deleting time period corresponding to the dimension can be determined.
Optionally, in order to ensure writing and querying speed, a caching technology is used to store an item classification white list, a business feature white list, an item belonging set white list and an order type white list.
The payment mode of the order comprises online payment, company transfer, post office remittance and the like, and because the company transfer and the post office remittance need to be operated under line, the required time is longer, and therefore, the time of deleting the order of the company transfer and the post office remittance is longer than the time of deleting the order of online payment. The payment mode is basic information of the order, and can be obtained from the order information.
Therefore, the payment mode and the deleting time corresponding to the payment mode can also be written into order information when the order is generated. Or only writing the payment mode in the order information, and when executing the step 101, acquiring the payment mode of the order from the order information, and determining the deleting time length of the payment mode according to the mapping relation of different pre-established payment modes and the deleting time length corresponding to the different payment modes.
Step 102, determining the priority of each dimension information according to the first dimension information and/or the second dimension information.
Before determining the order deleting time length of the order, the priority of each piece of dimension information needs to be determined, and it should be noted that the priority of each piece of dimension information can be preset. Generally, the order dimension priority is based on a smaller-scale priority than a larger-scale priority, such as the priority of the item-deleting attribute is higher than the item-sorting priority.
Therefore, in step 102, the priorities of the pieces of dimension information acquired in step 101 are ordered based on the pieces of dimension information. Specifically, for example, the priority of each dimension information is sequentially from high to low, namely, the order deleting attribute of the article, the business feature, the article classification, the set of articles, the order type and the payment mode, or the order may be sorted according to other orders, which is not limited in the invention. It should be noted that, in different time periods, the priority of each dimension information may be different, so in this step, the priority of each dimension information in the current time period is determined according to the plurality of dimension information.
And step 103, determining the order deleting time length of the order based on the order deleting time length corresponding to the dimension information with the highest priority.
On the basis of step 102, step 103 includes judging whether the dimension information with the highest priority has the corresponding order deleting time length, if so, determining at least one order deleting time length corresponding to the dimension information, and determining the order deleting time length according to the at least one order deleting time length, if not, judging the dimension information with the next priority, and the like.
For example, assuming that the priority of each dimension of order O is from high to low as dimension a, dimension B, dimension C, dimension D, dimension e.
Judging from high to low according to the priority, judging whether the order information of the order O has the deleting time length corresponding to the dimension A or not for the dimension A with the highest priority, if so, judging that the order O has the deleting time lengths corresponding to the plurality of dimensions A, determining the final time length corresponding to the dimension A according to the deleting time lengths, namely the deleting time length of the order O, and if not, continuing to judge that the priority is only inferior to the next dimension of the dimension A, namely the dimension B, and sequentially cycling.
When a certain dimension contains a plurality of deleting time periods, the deleting time periods need to be normalized according to the rule of the dimension, so that the deleting time periods corresponding to the dimension are the results of normalizing the deleting time periods.
For example, for a certain order O, assume that the priority of each dimension of order O is from high to low as dimension a, dimension B, dimension C, dimension D, dimension e. Each order may contain multiple times for deleting orders in the same dimension, e.g., for dimension A in order O, there are times for deleting orders of A1, A2, etc.
For example, for the order attribute of the items, three items are included in order 12345, where the order length of two items is 3 hours and the order length of another item is 6 hours, then for the dimension of the order attribute of the items of order 12345, the 3 hour order length and the 6 hour order length are included. If normalization processing is performed according to the weighted average, wherein the weight is the number of the articles, the normalized sheet deleting duration is (3+3+6)/3=4 hours for the dimension (sheet deleting attribute of the articles).
Optionally, after step 103, the method further comprises writing the order deleting time length of the order into order information so as to directly obtain the order deleting time length of the order by reading the order information.
After the time length of deleting the order of each order is dynamically calculated in real time, the time length of deleting the order can be determined according to the time of placing the order and the time length of deleting the order, namely the overtime unpaid automatic cancellation time of the order. Considering that the number of orders is large, the method provided by the embodiment of the invention further comprises the steps of dividing the orders into a plurality of groups according to a certain rule, and processing the orders of each group respectively. To ensure that the number of each group is relatively even, the grouping is typically done in a hash-based order number. The grouped orders are scanned, so that the scanning time can be saved, the data processing amount of each group is reduced, and the processing efficiency is improved.
Specifically, a remainder dividing method is adopted to group a plurality of orders, each order is circularly traversed in a locating mode in each group, and if the current time is the order deleting time of the order, the order is deleted from the group, namely the order deleting operation is carried out.
For example, if the single number is 12345 and the dividend is 10, the remainder is 5 and the order is in group 5.
Order data which is processed by deleting sheets is cleaned regularly so as to save database space in order to ensure execution efficiency and control data quantity.
According to the various embodiments described above, it can be seen that the present invention solves the problem of low efficiency of reading the configuration file by adopting a technical means of acquiring at least one first dimension information of an order and a time length of deleting a list corresponding to each first dimension information from order information, and/or acquiring at least one second dimension information of the order from order information, and determining the time length of deleting a list corresponding to each second dimension information according to a pre-created white list of the second dimension information. That is, the prior art needs to traverse the configuration file, the larger the configuration file, the lower the reading efficiency. The method and the system directly acquire the first dimension information and the deleting time length corresponding to each first dimension information from the order information, and only the deleting time length corresponding to the second dimension information determines the deleting time length through the white list, so that the reading time is prolonged, the deleting time length of the order is determined in a quick reading mode, and the problem of massive order processing efficiency is solved. In addition, the method provided by the embodiment of the invention can determine the order deleting time length of the order through a plurality of dimension information, meet different service requirements, dynamically calculate the order deleting time length of the order in real time in a multi-dimension scene, enable the order to be automatically canceled when the order is overtime and unpaid, and ensure the operation efficiency of executing overtime unpaid automatic cancellation on massive orders.
Fig. 2 is a schematic diagram of a main flow of a method for determining a time length of a sheet according to another exemplary embodiment of the present invention, where the method for determining a time length of a sheet may include:
step 201, when generating an order, writing at least one piece of first dimension information, and at least one piece of second dimension information and at least one piece of deleting time length corresponding to each piece of first dimension information into the order information;
Step 202, obtaining at least one first dimension information of an order from order information, a deleting time length corresponding to each first dimension information, and obtaining at least one second dimension information of the order from the order information;
step 203, determining the deleting time length corresponding to each second dimension information according to the pre-created second dimension information white list;
step 204, determining the priority of each dimension information according to the first dimension information and the second dimension information;
Step 205, determining the order deleting time length based on the deleting time length corresponding to the dimension information with the highest priority;
step 206, writing the deleting time of the order into order information;
step 207, grouping the orders by adopting a remainder removal method;
and step 208, performing regular circulation to traverse each order in each group, and if the current time is the order deleting time of the order, performing order deleting operation.
In addition, in the embodiment of the present invention, the specific implementation of the method for determining the time length of the sheet is described in detail in the above method for determining the time length of the sheet, so that the description is not repeated here.
Fig. 3 is a schematic diagram of main modules of an apparatus for determining a time length of a sheet according to an embodiment of the present invention, and as shown in fig. 3, the apparatus for determining a time length of a sheet includes an obtaining module 301, a sorting module 302, and a determining module 303. The acquiring module 301 acquires at least one first dimension information of an order and a time length of deleting the order corresponding to each first dimension information from the order information, and/or acquires at least one second dimension information of the order from the order information, and determines the time length of deleting the order corresponding to each second dimension information according to a pre-created white list of the second dimension information, the sorting module 302 determines the priority of each dimension information according to the first dimension information and/or the second dimension information, and the determining module 303 determines the time length of deleting the order based on the time length of deleting the order corresponding to the dimension information with the highest priority.
Optionally, the first dimension information includes at least one of a sheet deleting attribute and a payment mode of the article, and the second dimension information includes at least one of an article classification, a service feature, a set to which the article belongs, and an order type.
Optionally, the device further comprises an order generation module, wherein the order generation module writes the starting time, the ending time and the deleting time of the item in the deleting time attribute of the item in advance, and when the order is generated, the starting time, the ending time and the deleting time of the item are written into the order information according to the deleting time attribute of the item.
Optionally, the determining module 303 determines whether the dimension information with the highest priority has a corresponding order deleting duration, if yes, determines at least one order deleting duration corresponding to the dimension information, performs normalization processing on the at least one order deleting duration, uses the normalized order deleting duration as the order deleting duration, and if no, determines the dimension information with the next priority, and so on.
Optionally, the device further comprises a deleting module, the deleting time of the order is determined based on the deleting time corresponding to the dimension information with the highest priority, then the deleting module firstly determines the deleting time of the order according to the order placing time of the order and the deleting time of the order, then a remainder removing method is adopted to group a plurality of orders, each order is circularly traversed in each group in a fixed-time mode, and if the current time is the deleting time of the order, the order is deleted from the group.
Optionally, the order deleting time length is determined based on the order deleting time length corresponding to the dimension information with the highest priority, and then the determining module 303 writes the order deleting time length of the order into the order information.
According to the various embodiments described above, it can be seen that the present invention solves the problem of low efficiency of reading the configuration file by adopting a technical means of acquiring at least one first dimension information of an order and a time length of deleting a list corresponding to each first dimension information from order information, and/or acquiring at least one second dimension information of the order from order information, and determining the time length of deleting a list corresponding to each second dimension information according to a pre-created white list of the second dimension information. That is, the prior art needs to traverse the configuration file, the larger the configuration file, the lower the reading efficiency. The method and the system directly acquire the first dimension information and the deleting time length corresponding to each first dimension information from the order information, and only the deleting time length corresponding to the second dimension information determines the deleting time length through the white list, so that the reading time is prolonged, the deleting time length of the order is determined in a quick reading mode, and the problem of massive order processing efficiency is solved. In addition, the method provided by the embodiment of the invention can determine the order deleting time length of the order through a plurality of dimension information, meet different service requirements, dynamically calculate the order deleting time length of the order in real time in a multi-dimension scene, enable the order to be automatically canceled when the order is overtime and unpaid, and ensure the operation efficiency of executing overtime unpaid automatic cancellation on massive orders.
It should be noted that, in the specific implementation of the apparatus for determining a time length of a sheet according to the present invention, the method for determining a time length of a sheet has been described in detail, so that the description is not repeated here.
Fig. 4 illustrates an exemplary system architecture 400 to which the method of determining a puncturing length or the apparatus of determining a puncturing length of an embodiment of the present invention may be applied.
As shown in fig. 4, the system architecture 400 may include terminal devices 401, 402, 403, a network 404, and a server 405. The network 404 is used as a medium to provide communication links between the terminal devices 401, 402, 403 and the server 405. The network 404 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 405 via the network 404 using the terminal devices 401, 402, 403 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 401, 402, 403.
The terminal devices 401, 402, 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 405 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using the terminal devices 401, 402, 403. The background management server may analyze and process the received data such as the product information query request, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the method for determining the deleting time length provided by the embodiment of the present invention is generally executed on the terminal devices 401, 402, 403 in the public place, and may also be executed by the server 405, and correspondingly, the device for determining the deleting time length is generally set on the terminal devices 401, 402, 403 in the public place, and may also be set in the server 405.
It should be understood that the number of terminal devices, networks and servers in fig. 4 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 5, there is illustrated a schematic diagram of a computer system 500 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 5 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 5, 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 section 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Connected to the I/O interface 505 are an input section 506 including a keyboard, a mouse, and the like, an output section 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like, a storage section 508 including a hard disk, and the like, and a communication section 509 including a network interface card such as a LAN card, a modem, and the like. The communication section 509 performs communication processing via a network such as the internet. The 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, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 501.
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 two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of a computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, a processor may be described as comprising an acquisition module, a ranking module, and a determination module, wherein the names of the modules do not in some cases constitute a limitation of the module itself.
As a further aspect, the invention also provides a computer readable medium which may be comprised in the device described in the above embodiments or may be present alone without being fitted into the device. The computer readable medium carries one or more programs, when the one or more programs are executed by the equipment, the equipment comprises at least one first dimension information of an order and a deleting time length corresponding to each first dimension information, which are obtained from the order information, and/or at least one second dimension information of the order, which is obtained from the order information, the deleting time length corresponding to each second dimension information is determined according to a pre-established second dimension information white list, the priority of each dimension information is determined according to the first dimension information and/or the second dimension information, and the deleting time length of the order is determined based on the deleting time length corresponding to the dimension information with the highest priority.
According to the technical scheme of the embodiment of the invention, the technical means of acquiring at least one first dimension information of an order from order information and the deleting time length corresponding to each first dimension information are adopted, and/or acquiring at least one second dimension information of the order from the order information and determining the deleting time length corresponding to each second dimension information according to the pre-created second dimension information white list are adopted, so that the technical problem of low efficiency of reading configuration files is solved. In addition, the method provided by the embodiment of the invention can determine the order deleting time length of the order through a plurality of dimension information, meet different service requirements, dynamically calculate the order deleting time length of the order in real time in a multi-dimension scene, enable the order to be automatically canceled when the order is overtime and unpaid, and ensure the operation efficiency of executing overtime unpaid automatic cancellation on massive orders.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.