Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification embodiment, below in conjunction with this
Attached drawing in specification embodiment is described in detail the technical solution in this specification embodiment, it is clear that described
Embodiment is only a part of the embodiment of this specification, instead of all the embodiments.The embodiment of base in this manual,
Those of ordinary skill in the art's every other embodiment obtained, all should belong to the range of protection.
This specification embodiment provides a kind of discount coupon amount of money checking method, shown in Figure 1, this method may include with
Lower step:
S101 obtains the set of discount coupon to be checked in the objective time interval for carrying out amount of money verification;
It is the efficiency in order to improve amount of money verification it is understood that carrying out amount of money verification as unit of objective time interval, and
For carrying out the objective time interval of amount of money verification, those skilled in the art can flexibly set according to actual needs.For example, can be with
Discount coupon quantity to be checked in set is added up, when quantity reaches preset threshold, just accumulative discount coupon is carried out
The amount of money of batch is checked;For another example, periodically progress amount of money verification can be preset, such as daily specific time carries out the amount of money
Verification, then objective time interval is 24 hours before this triggering periodically verification;Etc., this specification embodiment does not limit this
It is fixed.
S102 determines that respectively the coupon information of discount coupon to be checked, the coupon information include: to provide in the set
Business Information, Time Of Release information, amount information and coupon identification;
In the discount coupon amount of money verification scheme that this specification embodiment provides, for each discount coupon to be checked, need
Determine several coupon informations of the discount coupon.
Wherein, in order to carry out amount of money verification, it is obviously desirable to determine the amount information of every discount coupon to be checked.Also, it is every
Discount coupon all has unique coupon identification, in discount coupon granting, each rank such as get, consume, check and write off and check
Section, distinguishes different discount coupons.
The discount coupon that businessman is provided generally has certain service life, using service life as the discount coupon of some months
For, it after user gets the discount coupon, may be used in a few houres to some months not equal time, i.e. discount coupon is issued to
There is the time difference of varying length between checking and writing off, so that trade company is in the account for the stored value that payment platform is started, fund
Inflow and outflow it is more dispersed.Therefore, in the scheme that this specification embodiment provides, in order to keep the verification of the discount coupon amount of money more quasi-
Really, also by the granting Business Information and Time Of Release information of determination every discount coupon to be checked.
Certainly, those skilled in the art can also determine other discount coupons of discount coupon to be checked according to actual needs
Information, this specification embodiment do not limit this.
In addition, this specification embodiment does not limit the specific manifestation form of coupon information yet.In a kind of specific embodiment party
In formula, Business Information, Time Of Release information and coupon identification are provided, it can be as shown in Fig. 2, being carried out in the form of sequence number section
Coding, different granting businessman, different Time Of Releases and different discount coupons are respectively provided with different number sections, so as to
To be distinguished according to number section to businessman, time and discount coupon.
S103 counts the preferential amount of money in the objective time interval according to identified amount information;
S104 checks and writes off detail according to identified coupon identification and pre-recorded, counts in the objective time interval
Check and write off the amount of money;
S105 counts corresponding merchant in corresponding provide according to identified granting Business Information and Time Of Release information
The granting amount of money in section;
S106 checks the preferential amount of money counted, checks and writes off the amount of money and provide whether the amount of money meets preset condition.
For ease of description, S103 to S106 is combined and is illustrated.
When checking the amount of money wait check discount coupon in objective time interval, it is necessary first to check the preferential amount of money and check and write off gold
Volume, i.e. user use the amount of money paid in the amount of money to deduct after discount coupon, with trade company's stored value accounts, relationship between the two
It is whether correct.
Specifically, first according to identified amount information, the preferential amount of money in the objective time interval is counted, then basis
Identified coupon identification checks and writes off detail with pre-recorded, counts in the objective time interval and checks and writes off the amount of money, so as to
Whether whether it is correct with the relationship of checking and writing off the amount of money to compare the preferential amount of money counted, such as relatively straightforward both relatively more equal.
In a specific embodiment, in order to find the problems such as fund of checking and writing off is visited one house after another, when carrying out amount of money statistics,
The preferential amount of money of related each trade company compared with can be counted respectively and checks and writes off the amount of money.
Specifically, the granting businessman of discount coupon respectively to be checked is determined, so according to identified granting Business Information first
Afterwards, for identified any granting businessman: according to the amount information of corresponding discount coupon to be checked, counting in the objective time interval
When the preferential amount of money of the businessman, i.e. user are consumed using the discount coupon of the businessman, the preferential amount of money that is deducted.
In addition, be directed to identified any granting businessman: read the businessman it is pre-recorded check and write off detail, checking and writing off detail can
To record when user is using every discount coupon, specifically, coupon identification and payment (deduction) amount of money etc. can recorde
Information.Then, according to the mark of corresponding discount coupon to be checked and detail is checked and write off, counts checking and writing off for the businessman in the objective time interval
The amount of money.
After statistics obtains the preferential amount of money of the businessman and checks and writes off the amount of money, the preferential amount of money of the businessman can be compared and check and write off the amount of money
It is whether equal, if so, determining the preferential amount of money of the businessman and checking and writing off the amount of money and meet preset condition.
It is, of course, also possible to the verification of other dimensions is carried out, for example, specifically according to coupon identification and amount information, it is right
Each pen of user is preferential and each pen of record is checked and write off detail and is compared, and this specification embodiment is without limitation.
Check objective time interval in the amount of money wait check discount coupon when, no matter the preferential amount of money with check and write off whether the amount of money meets
Preset condition, in order to avoid the discount coupon amount of money is tampered or coupon system procedural problem makes the abnormal feelings such as preferential amount of money mistake
Condition, it is also necessary to carry out amount of money verification from the dimension for providing the amount of money.
In a specific embodiment, according to identified granting Business Information and Time Of Release information, statistics is corresponded to
Businessman in the corresponding granting amount of money provided in the period, can specifically according to identified granting Business Information, determine respectively to
The granting businessman of discount coupon is checked, is then directed to identified any granting businessman: according to identified Time Of Release information, really
The granting period of the discount coupon respectively to be checked of the fixed merchant issued, finally, for identified any any hair for providing businessman
It puts the period: the granting amount of money of statistics target discount coupon to be checked, the target discount coupon to be checked are as follows: the discount coupon to be checked
In, discount coupon that granting businessman provides in the granting period.
For example, multiple businessmans involved in coupon system, and No. 1 of each businessman's every month provides a collection of service life and is
6 months discount coupons can be first according to each discount coupon to be checked then when counting the granting amount of money wait check discount coupon
Business Information is provided, determines the granting businessman of each discount coupon.By taking identified businessman A as an example, further according to the merchant issued
The Time Of Release information of each discount coupon to be checked, determines the Time Of Release of each discount coupon, such as determines and provides and April 1 respectively
Day, May 1 and June 1, then businessman A can be counted respectively in the granting amount of money in April 1, May 1 and June 1, i.e., to core
To the total value provided April 1 in discount coupon by businessman A, the Yu Wuyue total value provided on the 1st and provided June 1
Total value.
It, can be for any of any granting businessman of above-mentioned determination when verification provides the amount of money and whether meets preset condition
The granting period, according to pre-recorded granting detail, it is preferential to determine that the businessman provides in the period if businessman A was April 1
The granting total value of certificate, as businessman A provided the discount coupon that the amount of money is 50,000 yuan April 1 altogether;Comparing the counted granting amount of money is
It is no to be not more than granting total value, meet preset condition if so, determining and providing the amount of money.
Merchant issued discount coupon to discount coupon amount of money verification at least may include granting and the neck of discount coupon between completing
It takes, consume and checks and writes off and check 3 stages, in above-mentioned amount of money verification scheme, to the discount coupon consumed and the stage of checking and writing off uses
Amount of money verification has been carried out, in a specific embodiment, amount of money core can also have been carried out with the discount coupon in stage of getting to providing
It is right.
Specifically, according to identified Time Of Release information, determine whether the objective time interval is described preferential wait check
The granting period of certificate.For example, businessman A has provided a collection of discount coupon on 1st in April, and user can get and use on the same day, such as
Fruit using the 0 of April 1 up to 24 when as objective time interval, then the objective time interval is to provide and get the period, also to consume and check and write off
Period.
So, in the case where the objective time interval is to provide the period, institute can be counted according to identified amount information
The granting amount of money in objective time interval is stated, also, when every user gets discount coupon, it can be to the every discount coupon got
Mark, the information such as the preferential amount of money of discount coupon recorded, so as to according to identified coupon identification and note in advance
Detail is got in record, according to the amount of money of getting counted in the objective time interval, and is checked the counted granting amount of money and is got gold
Whether volume meets preset condition.
With it is noted earlier consumption with the amount of money in the stage of checking and writing off check it is similar, it is preferential to granting and the stage of getting
The certificate amount of money can also be checked from multiple dimensions.
In one example, can compare the counted granting amount of money with whether get the amount of money equal;If equal, it is determined that
It the granting amount of money and gets the amount of money and meets preset condition.
In addition, may be abnormal conditions occurred, it is also possible to excellent if the granting amount of money gets the amount of money greater than described
Favour certificate is not got all, can further according to the coupon identification, pre-recorded granting detail and described be got
Detail counts in the objective time interval and does not get the amount of money;Compare the granting amount of money whether be equal to it is described get the amount of money with not
Get the sum of amount of money;If being equal to, it is determined that the granting amount of money and get the amount of money and meet preset condition.
It is above-mentioned to discount coupon granting and get the stage, consume and check and write off the stage carry out amount of money verification after, however, it is determined that exist
The case where amount of money checked result does not meet preset condition then can directly alarm, to prompt operation personnel to check wrong original
Cause;The reason of going wrong can also be specifically positioned, is referred to for operation personnel;Etc., this specification embodiment is not made
It is specific to limit.
Below with reference to one, more specifically example, the discount coupon amount of money checking method provided this specification are said
It is bright.
(1) discount coupon granting and the stage is got
Assuming that trade company A April 1 by certain payment platform, having provided 10,000 service life, to be that the same day uses preferential
Certificate, every discount coupon can be 5 yuan preferential, then trade company needs to pre-deposit at least 50,000 in the stored value accounts of the payment platform
The advance fund funding of member.
Similarly, it is what the same day used that businessman B, which can also provide 20,000 service life by the payment platform April 1,
Discount coupon, every discount coupon can be 3 yuan preferential, and prestores at least 60,000 yuan of fund.
Also, the every discount coupon provided further includes one by providing businessman's number section, Time Of Release number section and discount coupon
The sequence number section of number section composition can recorde the sequence to every discount coupon providing stage businessman for identifying the discount coupon
Number section forms and provides detail.
After user gets every discount coupon, record is also got into user, sequence number section, amount information etc., formation is got bright
Carefully.
(2) discount coupon is consumed and checks and writes off the stage
Coupon system, to the discount coupon consumed and checked and write off in proxima luce (prox. luc) 24 hours, can carry out amount of money core at daily 0
It is right.
For example, checking at April 20 the discount coupon amount of money used in 24 hours of April 1.
As shown in figure 3, counting the preferential amount of money respectively, checking and writing off the amount of money and providing the amount of money, wherein the table (a) in Fig. 3 is preferential
The statistical table of the amount of money, table (b) are the statistical table for checking and writing off the amount of money, and the granting amount of money of different businessman's different times, are led to respectively
Cross the expression of not going together of table (a) and table (b).Table (b) is the granting total value that different businessmans provide discount coupon in different time.By scheming
3 as it can be seen that can determine no exceptions situation, businessman or payment platform are not if every amount of money corresponding relationship in table is correct
Amount of money loss occurs.
Shown in Fig. 4, distorted or statistical result when reimbursement error situation for the discount coupon amount of money occurs, reimbursement mistake feelings
Condition refers to, if after user is consumed using discount coupon, the preferential amount of money is paid from prestoring in account, if but applying moving back after user
Money, the preferential amount of money but because of reasons such as system mistakes, are not returned and are prestored in account, lead to amount of money mistake.Shown in Fig. 5, to provide
Statistical result when gold is visited one house after another.
As it can be seen that using above scheme, can after amount of money verification, find in time discount coupon distort, reimbursement mistake, fund string
Common abnormal conditions such as family, and can specifically navigate to the granting businessman of discount coupon, Time Of Release, thus according to provide,
The detail of the stages record such as getting, consume, checking and writing off, determines the specific discount coupon of generation problem, to avoid businessman or payment flat
Platform generates loss.
Corresponding to above method embodiment, this specification embodiment also provides a kind of discount coupon amount of money checking device, referring to
Shown in Fig. 6, the apparatus may include:
Discount coupon obtains module 110, the set of discount coupon to be checked in the objective time interval for obtaining progress amount of money verification;
Information determination module 120 is described preferential for determining in the set the respectively coupon information of discount coupon to be checked
Certificate information includes: to provide Business Information, Time Of Release information, amount information and coupon identification;
Preferential amount of money statistical module 130, for counting preferential in the objective time interval according to identified amount information
The amount of money;
Amount of money statistical module 140 is checked and write off, for according to identified coupon identification and pre-recorded detail of checking and writing off, system
It counts in the objective time interval and checks and writes off the amount of money;
Amount of money statistical module 150 is provided, for according to identified granting Business Information and Time Of Release information, statistics pair
Answer businessman in the corresponding granting amount of money provided in the period;
The amount of money check module 160, for check the preferential amount of money counted, check and write off the amount of money and granting the amount of money whether meet it is pre-
If condition.
In a kind of specific embodiment that this specification provides, the preferential amount of money statistical module 130 can specifically be used
In:
According to identified granting Business Information, the granting businessman of discount coupon respectively to be checked is determined;
For identified any granting businessman: according to the amount information of corresponding discount coupon to be checked, counting the target
The preferential amount of money of the businessman in period;
It is described to check and write off amount of money statistical module 140, specifically it can be used for:
According to identified granting Business Information, the granting businessman of discount coupon respectively to be checked is determined;
For identified any granting businessman: read the businessman it is pre-recorded check and write off detail, and according to this check and write off it is bright
The mark of thin and corresponding discount coupon to be checked, count the interior businessman of the objective time interval checks and writes off the amount of money;
The amount of money checks module 160, specifically can be used for:
For identified any granting businessman: compare the preferential amount of money of the businessman with whether check and write off the amount of money equal, if so,
It then determines the preferential amount of money of the businessman and checks and writes off the amount of money and meet preset condition.
In a kind of specific embodiment that this specification provides, the granting amount of money statistical module 150 can specifically be used
In:
According to identified granting Business Information, the granting businessman of discount coupon respectively to be checked is determined;
For identified any granting businessman: according to identified Time Of Release information, determining each of the merchant issued
The granting period of discount coupon to be checked;
For identified any any granting period for providing businessman: the granting gold of statistics target discount coupon to be checked
Volume, the target discount coupon to be checked are as follows: described wait check in discount coupon, granting businessman provides preferential in the granting period
Certificate;
The amount of money checks module 160, specifically can be used for:
For identified any any granting period for providing businessman: according to pre-recorded granting detail, determining should
The granting total value for the discount coupon that businessman provided in the period;Compare whether the counted granting amount of money is not more than granting total value, if
It is, it is determined that provide the amount of money and meet preset condition.
In a kind of specific embodiment that this specification provides, it can also include providing period determination module 170, be used for
In determining the set respectively after the coupon information for checking discount coupon:
According to identified Time Of Release information, determine the objective time interval whether be the discount coupon to be checked granting
Period;
In the case where the objective time interval is to provide the period, the granting amount of money statistical module 150 be can be also used for:
According to identified amount information, the granting amount of money in the objective time interval is counted;And
Described device further includes getting amount of money statistical module 180, be can be used for:
Detail is got according to identified coupon identification and pre-recorded, counts in the objective time interval and gets gold
Volume;
The amount of money checks module 160, can be also used for:
It checks the counted granting amount of money and gets whether the amount of money meets preset condition.
In a kind of specific embodiment that this specification provides, the amount of money checks module 160, specifically can be used for:
Compare the counted granting amount of money with whether get the amount of money equal;If equal, it is determined that the granting amount of money and neck
The amount of money is taken to meet preset condition.
In a kind of specific embodiment that this specification provides, the amount of money checks module 160, can also specifically use
In:
If the granting amount of money gets the amount of money described in being greater than, bright according to the coupon identification, pre-recorded granting
It is thin and it is described get detail, count in the objective time interval and do not get the amount of money;
Compare the granting amount of money and whether be equal to and described get the amount of money and do not get the sum of amount of money;If being equal to, it is determined that institute
It states to provide the amount of money and get the amount of money and meets preset condition.
The function of modules and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
This specification embodiment also provides a kind of computer equipment, includes at least memory, processor and is stored in
On reservoir and the computer program that can run on a processor, wherein processor is realized above-mentioned preferential when executing described program
Certificate amount of money checking method.This method includes at least:
A kind of discount coupon amount of money checking method, this method comprises:
Obtain the set of discount coupon to be checked in the objective time interval for carrying out amount of money verification;
Determine that respectively the coupon information of discount coupon to be checked, the coupon information include: to provide businessman in the set
Information, Time Of Release information, amount information and coupon identification;
According to identified amount information, the preferential amount of money in the objective time interval is counted;
Detail is checked and write off according to identified coupon identification and pre-recorded, counts in the objective time interval and checks and writes off gold
Volume;
According to identified granting Business Information and Time Of Release information, counts corresponding merchant and provided in the period corresponding
Provide the amount of money;
The preferential amount of money counted is checked, the amount of money is checked and write off and provides whether the amount of money meets preset condition.
Fig. 7 shows one kind provided by this specification embodiment and more specifically calculates device hardware structural schematic diagram,
The equipment may include: processor 1010, memory 1020, input/output interface 1030, communication interface 1040 and bus
1050.Wherein processor 1010, memory 1020, input/output interface 1030 and communication interface 1040 are real by bus 1050
The now communication connection inside equipment each other.
Processor 1010 can use general CPU (Central Processing Unit, central processing unit), micro- place
Reason device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one
Or the modes such as multiple integrated circuits are realized, for executing relative program, to realize technical side provided by this specification embodiment
Case.
Memory 1020 can use ROM (Read Only Memory, read-only memory), RAM (Random Access
Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 1020 can store
Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware
When, relevant program code is stored in memory 1020, and execution is called by processor 1010.
Input/output interface 1030 is for connecting input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,
Loudspeaker, vibrator, indicator light etc..
Communication interface 1040 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment
Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly
(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 1050 include an access, equipment various components (such as processor 1010, memory 1020, input/it is defeated
Outgoing interface 1030 and communication interface 1040) between transmit information.
It should be noted that although above equipment illustrates only processor 1010, memory 1020, input/output interface
1030, communication interface 1040 and bus 1050, but in the specific implementation process, which can also include realizing normal fortune
Other assemblies necessary to row.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising real in above equipment
Component necessary to existing this specification example scheme, without including all components shown in figure.
This specification embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
Discount coupon amount of money checking method above-mentioned is realized when sequence is executed by processor.This method includes at least:
A kind of discount coupon amount of money checking method, this method comprises:
Obtain the set of discount coupon to be checked in the objective time interval for carrying out amount of money verification;
Determine that respectively the coupon information of discount coupon to be checked, the coupon information include: to provide businessman in the set
Information, Time Of Release information, amount information and coupon identification;
According to identified amount information, the preferential amount of money in the objective time interval is counted;
Detail is checked and write off according to identified coupon identification and pre-recorded, counts in the objective time interval and checks and writes off gold
Volume;
According to identified granting Business Information and Time Of Release information, counts corresponding merchant and provided in the period corresponding
Provide the amount of money;
The preferential amount of money counted is checked, the amount of money is checked and write off and provides whether the amount of money meets preset condition.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitorymedia), such as the data-signal and carrier wave of modulation.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
Embodiment can be realized by means of software and necessary general hardware platform.Based on this understanding, this specification is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are to make
It is each to obtain computer equipment (can be personal computer, server or the network equipment etc.) execution this specification embodiment
Method described in certain parts of a embodiment or embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description
Module may or may not be physically separated, can be each module when implementing this specification example scheme
Function realize in the same or multiple software and or hardware.Can also select according to the actual needs part therein or
Person's whole module achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not the case where making the creative labor
Under, it can it understands and implements.
The above is only the specific embodiment of this specification embodiment, it is noted that for the general of the art
For logical technical staff, under the premise of not departing from this specification embodiment principle, several improvements and modifications can also be made, this
A little improvements and modifications also should be regarded as the protection scope of this specification embodiment.