CN110473035A - A kind of method and apparatus that single duration is deleted in determination - Google Patents

A kind of method and apparatus that single duration is deleted in determination Download PDF

Info

Publication number
CN110473035A
CN110473035A CN201810437494.8A CN201810437494A CN110473035A CN 110473035 A CN110473035 A CN 110473035A CN 201810437494 A CN201810437494 A CN 201810437494A CN 110473035 A CN110473035 A CN 110473035A
Authority
CN
China
Prior art keywords
order
dimensional information
duration
single duration
deletes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810437494.8A
Other languages
Chinese (zh)
Inventor
王晨冉
宋博
纪琼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201810437494.8A priority Critical patent/CN110473035A/en
Publication of CN110473035A publication Critical patent/CN110473035A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses the method and apparatus that single duration is deleted in a kind of determination, are related to field of computer technology.One specific embodiment of this method includes: at least one first dimensional information of order to be obtained from order information and each first dimensional information is corresponding deletes single duration, and/or, at least one second dimensional information of order is obtained from order information, according to the second dimensional information white list being pre-created, determines that each second dimensional information is corresponding and delete single duration;According to first dimensional information and/or the second dimensional information, the priority of each dimensional information is determined;Dimensional information based on highest priority is corresponding to delete single duration, and determine order deletes single duration.The embodiment is able to solve the problem of low efficiency for reading configuration file.

Description

A kind of method and apparatus that single duration is deleted in determination
Technical field
The present invention relates to the method and apparatus that field of computer technology more particularly to a kind of determination delete single duration.
Background technique
Commodity are opened and are bought to user by electric business website, and user can place an order at any time in the case where available in stock.Promoting the phase greatly Between, electric business website some commodity may be arranged some advertising campaigns, or provide the more well sold and in short supply commodity of some inventories.But It is the continuous development due to business, in order to avoid there is the case where stock after commodity during promoting greatly run out of goods, promote greatly, Yi Jiyong Family malice occupancy inventory influences the case where other users purchase in turn, and business needs to support a greater amount of surpass under more scenes When the demand cancelled an order automatically of arrearage.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery: at present only can be According to the dimension of article mark in configuration file, that carrys out the special order of configuring goods dimension deletes single duration.Due to needing to be traversed for Configuration file, therefore reading speed is directly proportional to configuration file size, configuration file is bigger, and reading efficiency is lower.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus that single duration is deleted in determination, to solve to read configuration The technical issues of low efficiency of file.
To achieve the above object, according to an aspect of an embodiment of the present invention, it provides a kind of determination and deletes single duration method, Include:
At least one first dimensional information and each first dimensional information that order is obtained from order information are corresponding Single duration is deleted, and/or, at least one second dimensional information of order is obtained from order information, according to second be pre-created Dimensional information white list determines that each second dimensional information is corresponding and deletes single duration;
According to first dimensional information and/or the second dimensional information, the priority of each dimensional information is determined;
Dimensional information based on highest priority is corresponding to delete single duration, and determine order deletes single duration.
Optionally, first dimensional information includes that article deletes single attribute;
At least one first dimensional information and each first dimensional information that order is obtained from order information are corresponding Single duration is deleted, before, the method also includes:
Deleting single duration time started, deleting single duration end time and delete for article is written in single attribute in deleting for article in advance Single duration;
When order generates, single attribute is deleted according to article, deleting the article single duration time started, delete single duration End time is written in order information with single duration is deleted.
Optionally, the dimensional information based on highest priority is corresponding deletes single duration, determines single duration of deleting of order, packet It includes:
Judge that the dimensional information of highest priority deletes single duration with the presence or absence of corresponding, if so, determining the dimensional information It is corresponding at least one delete single duration, single duration is deleted at least one and is normalized, list will be deleted after normalized Duration deletes single duration as order;If it is not, then judge the dimensional information of next priority, and so on.
Optionally, the dimensional information based on highest priority is corresponding deletes single duration, and determine order deletes single duration, it Afterwards, the method also includes:
Single duration is deleted according to lower single time of order and order, determine the order deletes single time;
Multiple orders are grouped using leaving remainder method, each order are periodically looped through in each group, if working as The preceding time deletes single time for order, then deletes the order out of this group.
Optionally, the dimensional information based on highest priority is corresponding deletes single duration, and determine order deletes single duration, it Afterwards, the method also includes: by deleting in single duration write-in order information for the order.
In addition, other side according to an embodiment of the present invention, the device that single duration is deleted in a kind of determination is provided, comprising:
Module is obtained, for obtaining at least one first dimensional information and each first dimension of order from order information Degree information is corresponding to delete single duration, and/or, at least one second dimensional information of order is obtained from order information, according to pre- The the second dimensional information white list first created determines that each second dimensional information is corresponding and deletes single duration;Wherein, first dimension Degree information includes that article deletes at least one of single attribute, means of payment, and second dimensional information includes taxonomy of goods, industry At least one of set, order type belonging to business feature, article;
Sorting module, for determining each dimensional information according to first dimensional information and/or the second dimensional information Priority;
Determining module deletes single duration for the dimensional information based on highest priority to be corresponding, determines when deleting single of order It is long.
Optionally, first dimensional information includes that article deletes single attribute;
Described device further includes order generation module, is used for:
Deleting single duration time started, deleting single duration end time and delete for article is written in single attribute in deleting for article in advance Single duration;
When order generates, single attribute is deleted according to article, deleting the article single duration time started, delete single duration End time is written in order information with single duration is deleted.
Optionally, the determining module, is used for:
Judge that the dimensional information of highest priority deletes single duration with the presence or absence of corresponding, if so, determining the dimensional information It is corresponding at least one delete single duration, single duration is deleted at least one and is normalized, list will be deleted after normalized Duration deletes single duration as order;If it is not, then judge the dimensional information of next priority, and so on.
Optionally, described device further includes deleting single module, and the dimensional information based on highest priority is corresponding to delete single duration, Determine order deletes single duration, and later, the single module of deleting is used for:
Single duration is deleted according to lower single time of order and order, determine the order deletes single time;
Multiple orders are grouped using leaving remainder method, each order are periodically looped through in each group, if working as The preceding time deletes single time for order, then deletes the order out of this group.
Optionally, the dimensional information based on highest priority is corresponding deletes single duration, and determine order deletes single duration, it Afterwards, the determining module is also used to deleting the order in single duration write-in order information.
Other side according to an embodiment of the present invention, additionally provides a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes method described in any of the above-described embodiment.
Other side according to an embodiment of the present invention additionally provides a kind of computer-readable medium, is stored thereon with meter Calculation machine program, realizes method described in any of the above-described embodiment when described program is executed by processor.
One embodiment in foregoing invention has the following advantages that or the utility model has the advantages that because using obtaining from order information At least one first dimensional information and each first dimensional information of order be corresponding to delete single duration, and/or, from order information Middle at least one second dimensional information for obtaining order determines each the according to the second dimensional information white list being pre-created The corresponding technological means for deleting single duration of two-dimensions information, so the technical issues of overcoming the low efficiency for reading configuration file, The first dimensional information is directly acquired from order information for the embodiment of the present invention and each first dimensional information is corresponding when deleting single Long, only the second dimensional information is corresponding to delete single duration and is determined by white list and delete single duration, improves read access time, and fast to read ground true That determines order deletes single duration, to solve the problems, such as magnanimity order processing efficiency.Moreover, method provided in an embodiment of the present invention can Single duration is deleted with determine order by multiple dimensional informations, meets different business demand, is realized in various dimensions scene, dynamic Calculate order in real time deletes single duration, enables and cancels an order automatically when order time-out arrearage, and also ensures to sea Amount order executes the operating efficiency that overtime arrearage is cancelled automatically.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the main flow for the method that single duration is deleted in determination according to an embodiment of the present invention;
Fig. 2 is the signal of the main flow for the method that single duration is deleted in a determination that can refer to embodiment according to the present invention Figure;
Fig. 3 is the schematic diagram of the main modular for the device that single duration is deleted in determination according to an embodiment of the present invention;
Fig. 4 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 5 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
In order to which quickly determine order deletes single duration, the invention proposes a kind of methods that single duration is deleted in determination, comprising: At least one first dimensional information of order is obtained from order information and each first dimensional information is corresponding deletes single duration, And/or at least one second dimensional information of order is obtained from order information, it is white according to the second dimensional information being pre-created List determines that each second dimensional information is corresponding and deletes single duration;Believed according to first dimensional information and/or the second dimension Breath, determines the priority of each dimensional information;Dimensional information based on highest priority is corresponding to delete single duration, determines order Delete single duration.Therefore, this method directly acquires the first dimensional information from order information and each first dimensional information is corresponding Delete single duration, only the second dimensional information is corresponding to delete single duration and is determined by white list and delete single duration, improve read access time, The fast determining order in reading ground deletes single duration, to solve the problems, such as magnanimity order processing efficiency.
Fig. 1 is the schematic diagram of the main flow for the method that single duration is deleted in determination according to an embodiment of the present invention.As this hair Bright one embodiment, as shown in Figure 1, the method that single duration is deleted in the determination may include:
Step 101, at least one first dimensional information and each first dimension letter of order are obtained from order information Cease it is corresponding delete single duration, and/or, at least one second dimensional information of order is obtained from order information, according to preparatory wound The the second dimensional information white list built determines that each second dimensional information is corresponding and deletes single duration.
In this step, multiple dimensional informations of order are obtained and each dimensional information is corresponding deletes single duration, it is described Multiple dimensional informations include that article deletes single attribute, taxonomy of goods, service feature, set, order type, payer belonging to article At least two in formula.Obtain at least two dimensional informations of order, for example, article to delete single attribute, taxonomy of goods, business special Set, order type or means of payment etc. belonging to sign, article.By obtaining dimensional information, each dimension may further determine that Degree information is corresponding to delete single duration, therefore obtains dimensional information and its corresponding to delete single duration be the side that single duration is deleted in the determination The basis of method.
Since the information for including in order is numerous, how to be mentioned as much as possible in the case where guaranteeing performance under existing framework Height determines that it is crucial for deleting single duration.Therefore, the method that single duration is deleted in determination provided by the invention can delete single category based on article What property determined article dimension deletes single duration.
Since number of articles is larger, if deleting single duration still through what the mode of commodity white list determined article dimension, Then for each order, traversal white list is required, information is bigger in white list, and search speed is lower.Therefore it needs to adopt Article dimension is determined with a kind of method for being not needed upon article white list deletes single duration.
As another embodiment of the invention, step 101 may include:
At least one first dimensional information and each first dimensional information that order is obtained from order information are corresponding Delete single duration, first dimensional information includes that article deletes at least one of single attribute, means of payment;
At least one second dimensional information that order is obtained from order information, according to the second dimensional information being pre-created White list determines that each second dimensional information is corresponding and deletes single duration, and second dimensional information includes taxonomy of goods, business spy At least one of set, order type belonging to sign, article.
In this embodiment, dimensional information is divided into the first dimensional information and the second dimensional information.Since the first dimension is believed The data volume of breath is larger, can by the first dimensional information and its it is corresponding delete single duration and write direct in order information, avoid time White list is gone through, to improve search speed.And for not being the second very big dimensional information in data, white list can be used Single duration is deleted in the mode determination of traversal, to reduce the data content of order information.
Specifically, before step 101, the method also includes:
Deleting single duration time started, deleting single duration end time and delete for article is written in single attribute in deleting for article in advance Single duration;
When order generates, single attribute is deleted according to article, deleting the article single duration time started, delete single duration End time is written in order information with single duration is deleted.
Due to calculate order single duration of deleting need to rely on order information, by article delete single duration time started, It deletes single duration end time and deletes single duration and be written to the deleting in single attribute of article, thus when order generates, according to article Single attribute is deleted, deleting the article single duration time started, delete single duration end time and deleting single duration write-in order information In.That is, by the transmission flow between the system of goods attribute information, which is written to when order is generated In order information.
Since goods attribute needs the business that carries many and the total length of goods attribute is conditional, it is therefore desirable to both Necessary information can be carried, and length is short as far as possible again.Goods attribute needs the single duration information of deleting for including to contain and delete list The duration time started deletes single duration end time and deletes single duration, therefore indicated with one nine numbers.Wherein first four When number respectively indicates the date for deleting single duration time started, intermediate four digital representations delete the days of single duration end time When day, the last one digital representation deletes single duration.In order to reduce article target length, the embodiment of the present invention is using number and letter Expression deletes single duration time started, deletes single duration end time and deletes single duration.
As another embodiment of the invention, 1-9, A-Z, which can be used, successively indicates continuous integer belonging to 1-35 Set.
Year: 2017 be 1,2018 for 2, and so on, 2025 are A;
Month: 1-C corresponds to January to December
Day: 1-V is 1 to 31 corresponding
When: corresponding 1 point to 24 points (0 point) of 1-O
Single duration is deleted by way of enumerating to indicate: if 1 represents 6 hours, 2 are represented 12 hours, and 3 represent 18 hours, with This analogizes.
For example: when representing 1 day 0 June in 2017 such as 161016K01, when 20 days 0 June in 2017, terminates, and 6 is small When delete single duration.That is, when 1 day 0 June in 2017 was up to 20 days 0 June in 2017 in this period, if generate Include the article in order, then the article is deleted that single attribute is corresponding to be deleted in single duration write-in order information.
Such as during big promote when 15 days 0 November in 2017 (when such as 1 day 0 November in 2017, terminate), article is deleted Single attribute is corresponding delete single duration it is small than usual (for example be usually 24 hours, it is big promote during be even 6 hours 12 hours), to keep away During exempting to occur promoting greatly after commodity supply shortage, big rush the case where stock.
Optionally, before step 101, the method also includes: it is white that taxonomy of goods white list, service feature is pre-created Gather white list, order type white list belonging to list, article, includes at least one mark in each white list.
Therefore, when order generate when, by the taxonomy of goods mark of article, service feature mark, the affiliated set identification of article, Order type mark is written in order information.Then, according to the taxonomy of goods of article mark, service feature mark, article institute Belong to set identification, order type mark, it is white to search taxonomy of goods white list, service feature white list, set belonging to article respectively Mark in list, order type white list determines taxonomy of goods, service feature, set, order type pair belonging to article respectively That answers deletes single duration.
Optionally, the taxonomy of goods refers to the classification where article, and the service feature refers to the rush that article is participated in Type is sold, set belonging to the article refers to the shop where article, and the order type refers to the basic service type of order, Such as self-operated business, third party's business, air ticket business, recharging service etc..
In set white list, order type white list as belonging to taxonomy of goods white list, service feature white list, article Mark quantity be much smaller than the quantity of article, and set belonging to taxonomy of goods, service feature, article, order type is in order It is to exist in the form of mark, therefore mark listed in each white list can be searched by way of white list in information, So that it is determined that each dimension is corresponding to delete single duration.
Therefore, for the information of the dimensions such as set, order type belonging to taxonomy of goods, service feature, article, can first divide Not Chuan Jian white list, each white list default one is deleted single duration, therefore can determine order by way of traversing white list Some dimensional information whether in corresponding white list, if so, being assured that the dimension is corresponding deletes single duration.
Optionally, in order to guarantee write-in and inquiry velocity, taxonomy of goods white list, business are stored using caching technology Gather white list, order type white list belonging to feature white list, article.
The means of payment of order contains on-line payment, company transfers accounts, mail remittance etc., since company transfers accounts and mail converges Money needs to carry out the operation under line, and the required time is long, therefore company transfers accounts and exists with single time length ratio of deleting of mail remittance It is larger that line was paid deletes single duration.The means of payment is the essential information of order, can be obtained from order information.
Therefore, the means of payment and the means of payment it is corresponding delete single duration can also order generate when just write-in order In single information.Or the means of payment is only written in order information, when executing step 101, order is obtained from order information The means of payment determine the payment according to the different means of payment and its corresponding mapping relations for deleting single duration pre-established Mode deletes single duration.
Step 102, according to first dimensional information and/or the second dimensional information, the preferential of each dimensional information is determined Grade.
Determine order delete single duration before, need first to determine the priority of each dimensional information, it should be pointed out that institute The priority for stating each dimensional information can be preset.Usually, the principle of order dimension priority is small excellent of range First grade is higher than the big priority of range, as article deletes priority of the priority higher than taxonomy of goods of single attribute.
Therefore, in a step 102, based on the multiple dimensional informations obtained in step 101, to the preferential of these dimensional informations Grade is ranked up.Specifically, for example, the priority of each dimensional information is from high to low successively are as follows: article delete single attribute > Set > order type > means of payment belonging to service feature > taxonomy of goods > article, and can be arranged in other orders Sequence, the invention is not limited in this regard.It should be noted that section, the priority of each dimensional information can be in different times Different, therefore in this step, according to the multiple dimensional information, determine the priority of each dimensional information of present period.
Step 103, the dimensional information based on highest priority is corresponding deletes single duration, and determine order deletes single duration.
On the basis of step 102, the step 103 include: judge the dimensional information of highest priority with the presence or absence of pair That answers deletes single duration, if so, determine the dimensional information it is corresponding at least one delete single duration, single duration is deleted according at least one Determine order deletes single duration;If it is not, then judge the dimensional information of next priority, and so on.
As an example it is assumed that the priority of each dimension of order O is dimension A, dimension B, dimension C, dimension from high to low D, dimension E ..., then step 103 includes the following steps:
Judged from high to low according to priority, for the dimension A of highest priority, judges the order information of order O In delete single duration with the presence or absence of dimension A is corresponding;If so, judge to delete single duration there are several dimension A are corresponding in order O, Single duration is deleted according to these and determines the corresponding final duration of dimension A, and as order O's deletes single duration;If it is not, then continuing to judge Priority is only second to next dimension of dimension A, i.e. dimension B, circuits sequentially.
When certain dimension include it is multiple delete single duration when, these need to be deleted single duration according to the dimension rule carry out normalizing Change, therefore the dimension is corresponding that delete single duration be to delete the result after single duration is normalized for multiple.
For example, for a certain order O, it is assumed that the priority of each dimension of order O is dimension A, dimension from high to low Spend B, dimension C, dimension D, dimension E ....Each order may delete single duration containing multiple under the same dimension, such as order O In for dimension A, there is A1, A2 etc. to delete single duration.
For example, deleting single attribute for article, contain three articles in order 12345, wherein two items delete list Duration is 3 hours, and in addition single duration of deleting of an article is 6 hours, then for the article of order 12345 delete single attribute this Dimension contains and deletes within 3 hours single duration and 6 hours delete single duration.If be normalized according to weighted average, wherein Weight is the quantity of article, then is directed to the dimension (the deleting single attribute of article), deletes single Shi Changwei (3+3+6)/3=after normalization 4 hours.
Optionally, after step 103, the method also includes: order information is written into single duration of deleting of the order In, in order to which by reading order information, directly obtain order deletes single duration.
Dynamic realtime calculate each order delete single duration after, so that it may according to lower single time of order and deleting for order Single duration, determines deleting single time for the order, and the overtime arrearage of as order cancels the time automatically.In view of the number of order Measure larger, method provided in an embodiment of the present invention further include: order is divided into several groups according to certain rules, to each group Order be respectively processed.Quantity to guarantee each group is relatively average, usually according to the method according to O/No. Hash To be grouped.Order after grouping is scanned, can be saved sweep time, reduces by each group of data processing amount, mentions High treatment efficiency.
Specifically, multiple orders are grouped using leaving remainder method, periodically loop through in each group and each orders It is single, if current time deletes single time for order, which is deleted out of this group, that is, carries out deleting single operation.
For example, if odd numbers is 12345, dividend 10, then remainder is 5, and the order is at the 5th group.
In order to guarantee execution efficiency and data amount, periodically clear up to being deleted the order data singly handled, with Save database space.
According to various embodiments recited above, it can be seen that the present invention is by using the acquisition order from order information At least one first dimensional information and each first dimensional information is corresponding deletes single duration, and/or, it is obtained from order information At least one second dimensional information of order determines each second dimension according to the second dimensional information white list being pre-created The corresponding technological means for deleting single duration of information, to solve the problems, such as to read the low efficiency of configuration file.That is, existing There is technology to need to be traversed for configuration file, configuration file is bigger, and reading efficiency is lower.And the present invention is directly obtained from order information It takes the first dimensional information and each first dimensional information is corresponding deletes single duration, only the second dimensional information is corresponding when deleting single It is long to delete single duration by the way that white list is determining, read access time is improved, the fast determining order in reading ground is deleted single duration, ordered to solve magnanimity The problem of single treatment effeciency.Moreover, method provided in an embodiment of the present invention can determine deleting for order by multiple dimensional informations Single duration meets different business demand, realizes in various dimensions scene, and dynamic realtime calculating order deletes single duration, so that ordering It can cancel an order automatically when single time-out arrearage, and also ensure and what overtime arrearage was cancelled automatically is executed to magnanimity order Operating efficiency.
Fig. 2 is the signal of the main flow for the method that single duration is deleted in another determination that can refer to embodiment according to the present invention Figure, the method that single duration is deleted in the determination may include:
Step 201, when generating order, by least one first dimensional information and each first dimensional information is corresponding deletes In single duration, at least one second dimensional information write-in order information;
Step 202, at least one first dimensional information and each first dimension letter of order are obtained from order information Cease it is corresponding delete single duration, and, at least one second dimensional information of order is obtained from order information;
Step 203, it according to the second dimensional information white list being pre-created, determines that each second dimensional information is corresponding and deletes Single duration;
Step 204, according to first dimensional information and the second dimensional information, the priority of each dimensional information is determined;
Step 205, the dimensional information based on highest priority is corresponding deletes single duration, and determine order deletes single duration;
Step 206, deleting the order in single duration write-in order information;
Step 207, multiple orders are grouped using leaving remainder method;
Step 208, each order is periodically looped through in each group, if current time deletes single time for order, It carries out deleting single operation.
The specific implementation content for deleting the method for single duration is determined in embodiment in addition, can refer at the present invention one, upper It determines described in face and has been described in detail in the method for deleting single duration, therefore no longer illustrate in this duplicate contents.
Fig. 3 is the schematic diagram of the main modular for the device that single duration is deleted in determination according to an embodiment of the present invention, such as Fig. 3 institute Show, the device that single duration is deleted in the determination includes obtaining module 301, sorting module 302 and determining module 303.Wherein, described to obtain Modulus block 301 obtained from order information order at least one first dimensional information and each first dimensional information it is corresponding Single duration is deleted, and/or, at least one second dimensional information of order is obtained from order information, according to second be pre-created Dimensional information white list determines that each second dimensional information is corresponding and deletes single duration;The sorting module 302 is according to described first Dimensional information and/or the second dimensional information, determine the priority of each dimensional information;The determining module 303 is based on priority Highest dimensional information is corresponding to delete single duration, and determine order deletes single duration.
Optionally, first dimensional information includes that article deletes at least one of single attribute, means of payment, and described Two-dimensions information includes taxonomy of goods, service feature, at least one of set, order type belonging to article.
Optionally, described device further includes order generation module, and the order generation module deletes single category in article in advance Property in article is written deletes single duration time started, delete single duration end time and delete single duration;When order generates, according to object Product delete single attribute, deleting the article single duration time started, delete single duration end time and deleting single duration write-in order In information.
Optionally, the determining module 303 judges that the dimensional information of highest priority deletes single duration with the presence or absence of corresponding, If so, determine the dimensional information it is corresponding at least one delete single duration, single duration is deleted at least one and is normalized, Single duration of deleting after normalized is deleted into single duration as order;If it is not, then judge the dimensional information of next priority, And so on.
Optionally, described device further includes deleting single module, and the dimensional information based on highest priority is corresponding to delete single duration, Determine order deletes single duration, and later, the single module of deleting first deletes single duration according to lower single time of order and order, determines The order deletes single time, is then grouped using leaving remainder method to multiple orders, the timing cycle time in each group Each order is gone through, if current time deletes single time for order, which is deleted out of this group.
Optionally, the dimensional information based on highest priority is corresponding deletes single duration, and determine order deletes single duration, it Afterwards, the determining module 303 deleting the order in single duration write-in order information.
According to various embodiments recited above, it can be seen that the present invention is by using the acquisition order from order information At least one first dimensional information and each first dimensional information is corresponding deletes single duration, and/or, it is obtained from order information At least one second dimensional information of order determines each second dimension according to the second dimensional information white list being pre-created The corresponding technological means for deleting single duration of information, to solve the problems, such as to read the low efficiency of configuration file.That is, existing There is technology to need to be traversed for configuration file, configuration file is bigger, and reading efficiency is lower.And the present invention is directly obtained from order information It takes the first dimensional information and each first dimensional information is corresponding deletes single duration, only the second dimensional information is corresponding when deleting single It is long to delete single duration by the way that white list is determining, read access time is improved, the fast determining order in reading ground is deleted single duration, ordered to solve magnanimity The problem of single treatment effeciency.Moreover, method provided in an embodiment of the present invention can determine deleting for order by multiple dimensional informations Single duration meets different business demand, realizes in various dimensions scene, and dynamic realtime calculating order deletes single duration, so that ordering It can cancel an order automatically when single time-out arrearage, and also ensure and what overtime arrearage was cancelled automatically is executed to magnanimity order Operating efficiency.
It should be noted that the specific implementation content of the device of single duration is deleted in determination of the present invention, it is described above It determines and has been described in detail in the method for deleting single duration, therefore no longer illustrate in this duplicate contents.
Fig. 4 shows the method that single duration can be deleted using the determination of the embodiment of the present invention or the determining device for deleting single duration Exemplary system architecture 400.
As shown in figure 4, system architecture 400 may include terminal device 401,402,403, network 404 and server 405. Network 404 between terminal device 401,402,403 and server 405 to provide the medium of communication link.Network 404 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 401,402,403 and be interacted by network 404 with server 405, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 401,402,403 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 401,402,403 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 405 can be to provide the server of various services, such as utilize terminal device 401,402,403 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath --- merely illustrative) feed back to terminal device.
It should be noted that the end of the determining method for deleting single duration generally in public places provided by the embodiment of the present invention It executes, can also be executed by server 405 in end equipment 401,402,403, correspondingly, the device one of single duration is deleted in the determination As be arranged on terminal device 401,402,403 in public places, also can be set in server 405.
It should be understood that the number of terminal device, network and server in Fig. 4 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 5, it illustrates the computer systems 500 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 5 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 5, computer system 500 includes central processing unit (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into the program in random access storage device (RAM) 503 from storage section 508 and Execute various movements appropriate and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data. CPU 501, ROM 502 and RAM503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
I/O interface 505 is connected to lower component: the importation 506 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 508 including hard disk etc.; And the communications portion 509 of the network interface card including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net executes communication process.Driver 510 is also connected to I/O interface 505 as needed.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 510, in order to read from thereon Computer program be mounted into storage section 508 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.In In such embodiment, which can be downloaded and installed from network by communications portion 509, and/or from can Medium 511 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 501, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet It includes and obtains module, sorting module and determining module, wherein the title of these modules is not constituted under certain conditions to the module The restriction of itself.
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes: that at least one first dimensional information and each first dimensional information pair of order are obtained from order information That answers deletes single duration, and/or, at least one second dimensional information of order is obtained from order information, according to what is be pre-created Second dimensional information white list determines that each second dimensional information is corresponding and deletes single duration;According to first dimensional information and/ Or second dimensional information, determine the priority of each dimensional information;Dimensional information based on highest priority is corresponding when deleting single Long, determine order deletes single duration.
Technical solution according to an embodiment of the present invention because using from order information obtain order at least one first Dimensional information and each first dimensional information is corresponding deletes single duration, and/or, at least the one of order is obtained from order information A second dimensional information determines that each second dimensional information is corresponding and deletes according to the second dimensional information white list being pre-created The technological means of single duration, so the technical issues of overcoming the low efficiency for reading configuration file, the embodiment of the present invention is from order The first dimensional information is directly acquired in information and each first dimensional information is corresponding deletes single duration, only the second dimensional information It is corresponding delete single duration and determined by white list delete single duration, improve read access time, it is fast read that ground determines order deletes single duration, from And solve the problems, such as magnanimity order processing efficiency.Moreover, method provided in an embodiment of the present invention can pass through multiple dimensional informations Determine order deletes single duration, meets different business demand, realizes in various dimensions scene, and dynamic realtime calculating order deletes list Duration enables and cancels an order automatically when order time-out arrearage, and also ensures unpaid to magnanimity order execution time-out The operating efficiency that money is cancelled automatically.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (12)

1. a kind of method that single duration is deleted in determination characterized by comprising
At least one first dimensional information of order is obtained from order information and each first dimensional information is corresponding deletes list Duration, and/or, at least one second dimensional information of order is obtained from order information, according to the second dimension being pre-created Information white list determines that each second dimensional information is corresponding and deletes single duration;
According to first dimensional information and/or the second dimensional information, the priority of each dimensional information is determined;
Dimensional information based on highest priority is corresponding to delete single duration, and determine order deletes single duration.
2. the method according to claim 1, wherein first dimensional information includes that article deletes single attribute;
At least one first dimensional information of order is obtained from order information and each first dimensional information is corresponding deletes list Duration, before, further includes:
When deleting single duration time started, deleting single duration end time and delete single of article of write-in in single attribute is deleted in article in advance It is long;
When order generates, single attribute is deleted according to article, deleting the article single duration time started, delete single duration and terminate Time is written in order information with single duration is deleted.
3. the method according to claim 1, wherein the dimensional information based on highest priority is corresponding when deleting single Long, determine order deletes single duration, comprising:
Judge that the dimensional information of highest priority deletes single duration with the presence or absence of corresponding, if so, determining that the dimensional information is corresponding At least one delete single duration, single duration is deleted at least one and is normalized, single duration will be deleted after normalized Single duration is deleted as order;If it is not, then judge the dimensional information of next priority, and so on.
4. the method according to claim 1, wherein the dimensional information based on highest priority is corresponding when deleting single Long, determine order deletes single duration, later, further includes:
Single duration is deleted according to lower single time of order and order, determine the order deletes single time;
Multiple orders are grouped using leaving remainder method, each order are periodically looped through in each group, if when current Between for order delete single time, then the order is deleted out of this group.
5. the method according to claim 1, wherein the dimensional information based on highest priority is corresponding when deleting single Long, determine order deletes single duration, later, further includes: by deleting in single duration write-in order information for the order.
6. the device that single duration is deleted in a kind of determination characterized by comprising
Module is obtained, for obtaining at least one first dimensional information and each first dimension letter of order from order information Cease it is corresponding delete single duration, and/or, at least one second dimensional information of order is obtained from order information, according to preparatory wound The the second dimensional information white list built determines that each second dimensional information is corresponding and deletes single duration;
Sorting module, for determining the preferential of each dimensional information according to first dimensional information and/or the second dimensional information Grade;
Determining module deletes single duration for the dimensional information based on highest priority to be corresponding, and determine order deletes single duration.
7. device according to claim 6, which is characterized in that first dimensional information includes that article deletes single attribute;
Described device further includes order generation module, is used for:
When deleting single duration time started, deleting single duration end time and delete single of article of write-in in single attribute is deleted in article in advance It is long;
When order generates, single attribute is deleted according to article, deleting the article single duration time started, delete single duration and terminate Time is written in order information with single duration is deleted.
8. device according to claim 6, which is characterized in that the determining module is used for:
Judge that the dimensional information of highest priority deletes single duration with the presence or absence of corresponding, if so, determining that the dimensional information is corresponding At least one delete single duration, single duration is deleted at least one and is normalized, single duration will be deleted after normalized Single duration is deleted as order;If it is not, then judge the dimensional information of next priority, and so on.
9. device according to claim 6, which is characterized in that it further include deleting single module, the dimension based on highest priority Information is corresponding to delete single duration, and determine order deletes single duration, and later, the single module of deleting is used for:
Single duration is deleted according to lower single time of order and order, determine the order deletes single time;
Multiple orders are grouped using leaving remainder method, each order are periodically looped through in each group, if when current Between for order delete single time, then the order is deleted out of this group.
10. device according to claim 6, which is characterized in that the dimensional information based on highest priority is corresponding to delete list Duration, determine order deletes single duration, and later, the determining module is also used to the order deleting single duration write-in order letter In breath.
11. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
CN201810437494.8A 2018-05-09 2018-05-09 A kind of method and apparatus that single duration is deleted in determination Pending CN110473035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810437494.8A CN110473035A (en) 2018-05-09 2018-05-09 A kind of method and apparatus that single duration is deleted in determination

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810437494.8A CN110473035A (en) 2018-05-09 2018-05-09 A kind of method and apparatus that single duration is deleted in determination

Publications (1)

Publication Number Publication Date
CN110473035A true CN110473035A (en) 2019-11-19

Family

ID=68503556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810437494.8A Pending CN110473035A (en) 2018-05-09 2018-05-09 A kind of method and apparatus that single duration is deleted in determination

Country Status (1)

Country Link
CN (1) CN110473035A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007004492A (en) * 2005-06-23 2007-01-11 Canon Inc Information processing apparatus, order management method and program
CN101183449A (en) * 2007-12-26 2008-05-21 腾讯科技(深圳)有限公司 Electronic transaction method and system
CN101968871A (en) * 2010-10-21 2011-02-09 湖南大学 System and method for judging valid order
CN105608612A (en) * 2015-12-16 2016-05-25 青岛海信传媒网络技术有限公司 Big data-based online shopping order management method and device
CN106372996A (en) * 2016-09-14 2017-02-01 北京京东尚科信息技术有限公司 Order processing method and apparatus
CN106651528A (en) * 2016-12-29 2017-05-10 江西博瑞彤芸科技有限公司 Order form information maintenance method
CN106960376A (en) * 2017-03-30 2017-07-18 福建中金在线信息科技有限公司 A kind of order settlement method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007004492A (en) * 2005-06-23 2007-01-11 Canon Inc Information processing apparatus, order management method and program
CN101183449A (en) * 2007-12-26 2008-05-21 腾讯科技(深圳)有限公司 Electronic transaction method and system
CN101968871A (en) * 2010-10-21 2011-02-09 湖南大学 System and method for judging valid order
CN105608612A (en) * 2015-12-16 2016-05-25 青岛海信传媒网络技术有限公司 Big data-based online shopping order management method and device
CN106372996A (en) * 2016-09-14 2017-02-01 北京京东尚科信息技术有限公司 Order processing method and apparatus
CN106651528A (en) * 2016-12-29 2017-05-10 江西博瑞彤芸科技有限公司 Order form information maintenance method
CN106960376A (en) * 2017-03-30 2017-07-18 福建中金在线信息科技有限公司 A kind of order settlement method and device

Similar Documents

Publication Publication Date Title
CN110019211A (en) The methods, devices and systems of association index
CN110472207A (en) List generation method and device
CN110209677A (en) The method and apparatus of more new data
CN110371560A (en) Automatically the method and apparatus made an inventory
CN110019258A (en) The method and apparatus for handling order data
CN109388654A (en) A kind of method and apparatus for inquiring tables of data
CN110019087A (en) Data processing method and its system
CN110473036A (en) A kind of method and apparatus generating order number
CN110348771A (en) The method and apparatus that a kind of pair of order carries out group list
CN108776692A (en) Method and apparatus for handling information
CN107424046A (en) A kind of multi-platform marketing system of cross-border electric business based on cloud computing
CN112884405A (en) Inquiry system and scheduling method thereof
CN110389812A (en) For managing the method, equipment and computer readable storage medium of virtual machine
CN109961299A (en) The method and apparatus of data analysis
CN109150929A (en) Data request processing method and apparatus under high concurrent scene
CN110362750A (en) Target user determines method, apparatus, electronic equipment and computer-readable medium
CN110515968A (en) Method and apparatus for output information
CN110263791A (en) A kind of method and apparatus in identification function area
CN113326095A (en) Commission data processing method and device
CN108959636A (en) Data processing method, device, system, computer-readable medium
CN109977982A (en) User classification method, system, electronic equipment and computer-readable medium
CN109426998A (en) Information-pushing method and device
CN109840724A (en) Method and apparatus for output information
CN110232581A (en) It is a kind of to provide the method and apparatus of discount coupon for user
CN110321242A (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination