CN114140166A - Coupon sharing method, apparatus, device, medium, and program product - Google Patents

Coupon sharing method, apparatus, device, medium, and program product Download PDF

Info

Publication number
CN114140166A
CN114140166A CN202111474806.0A CN202111474806A CN114140166A CN 114140166 A CN114140166 A CN 114140166A CN 202111474806 A CN202111474806 A CN 202111474806A CN 114140166 A CN114140166 A CN 114140166A
Authority
CN
China
Prior art keywords
coupon
record
sharing
amount
shared
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
CN202111474806.0A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202111474806.0A priority Critical patent/CN114140166A/en
Publication of CN114140166A publication Critical patent/CN114140166A/en
Pending legal-status Critical Current

Links

Images

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/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0208Trade or exchange of goods or services in exchange for incentives or rewards

Landscapes

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

Abstract

The present disclosure provides a coupon sharing method, apparatus, device, medium and program product, which can be applied to the field of financial technology. The coupon sharing method comprises the following steps: responding to a coupon generation event, generating at least one coupon record, storing the coupon record in a coupon record table, and setting the attribute of the coupon as a normal coupon; responding to a coupon sharing event of a first user, determining the coupon attribute of one coupon record as a shared coupon, and generating a first coupon sharing record; generating a second coupon sharing record in response to the coupon sharing event of at least one second user; and matching the first coupon sharing record with at least one second coupon sharing record until the sum of the first coupon sharing amount and the second coupon sharing amount of the at least one second coupon sharing record is larger than or equal to the coupon use amount, and successfully matching. The coupon sharing method can improve the use efficiency of the coupons.

Description

Coupon sharing method, apparatus, device, medium, and program product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a coupon sharing method, apparatus, device, medium, and program product.
Background
The coupon presentation is a relatively common rebate mode adopted by merchants, that is, users can use the coupon after purchasing commodities when paying orders, so that the amount of actually paid orders is reduced, and the following conditions exist:
1) the user who receives the full discount coupon may find out that the purchased goods do not reach the full discount condition at the time of subsequent settlement, and abandon the purchase.
2) To use the coupon, the user purchases a portion of the item that he or she does not want to purchase.
3) Some users may not win the discount coupon, and would like to buy a certain product through the discount activity, and as a result, only the purchasing behavior is abandoned.
The above results in inefficient use of coupons.
Disclosure of Invention
In view of the foregoing, the present disclosure provides coupon sharing methods, apparatuses, devices, media, and program products that improve the efficiency of coupon usage.
According to a first aspect of the present disclosure, there is provided a coupon sharing method, including: responding to a coupon generation event, generating at least one coupon record, storing the coupon record in a coupon record table, wherein the coupon record table comprises a coupon attribute field and a coupon use amount field, the coupon record comprises a coupon attribute and a coupon use amount which respectively correspond to the coupon attribute field and the coupon use amount field, and setting the coupon attribute as a normal coupon; responding to a coupon sharing event of a first user, determining that the coupon attribute of a coupon record is a shared coupon, and generating a first coupon sharing record, wherein the first coupon sharing record comprises a first coupon sharing amount corresponding to a first coupon sharing amount field; generating a second coupon sharing record in response to the coupon sharing event of the at least one second user, the second coupon sharing record including a second coupon sharing amount corresponding to the second coupon sharing amount field; and matching the first coupon sharing record with at least one second coupon sharing record until the sum of the first coupon sharing amount and the second coupon sharing amount of the at least one second coupon sharing record is larger than or equal to the coupon use amount, and successfully matching.
According to an embodiment of the present disclosure, matching the first coupon sharing record with the at least one second coupon sharing record until a sum of the first coupon sharing amount and a second coupon sharing amount of the at least one second coupon sharing record is greater than or equal to the coupon usage amount, and successful matching may include: determining the sum of the first coupon sharing amount and the second coupon sharing amount of at least one second coupon sharing record as a first matching basis; and when the first matching basis is larger than the coupon use amount, determining the difference value between the first matching basis and the coupon use amount as a secondary matching basis.
According to an embodiment of the present disclosure, the coupon sharing method further includes: determining a first standard dollar value for a first coupon usage event of a first user in response to the first coupon usage event; determining a corresponding first coupon use combination according to a first standard sum, and generating a coupon sharing event of a first user when the first coupon use combination comprises a shared coupon; determining a second standard dollar value for a second coupon usage event of a second user in response to the second coupon usage event; and determining a corresponding second coupon use combination according to the second standard sum, and generating a coupon sharing event of a second user when the second coupon use combination comprises the shared coupon.
According to an embodiment of the present disclosure, a first coupon usage combination corresponding to a first standard amount or a second coupon usage combination corresponding to a second standard amount is determined according to the following formula: d ═ T × M + G, R ═ M + N, where T > G > -0, N > -0, and N is an integer, where D represents a first standard amount or a second standard amount, T represents a coupon use amount, G represents a first coupon share amount or a second coupon share amount, M represents the number of normal coupons, N represents the number of shared coupons, and R represents the number of coupons of the first coupon use combination or the number of coupons of the second coupon use combination.
According to an embodiment of the present disclosure, the coupon record table further includes a matching state field, the first coupon sharing record and the second coupon sharing record each include a matching state corresponding to the matching state field, the matching state includes a to-be-matched state and a matched state, and matching the first coupon sharing record with the at least one second coupon sharing record includes: and matching the first coupon sharing record and the second coupon sharing record with the matching state being the state to be matched.
According to an embodiment of the present disclosure, the coupon record table further includes a coupon general state field, the coupon record further includes a coupon general state corresponding to the coupon general state field, the coupon general state includes a lock state, and the coupon sharing method further includes: setting a coupon universal state of a normal coupon corresponding to a first coupon use combination and/or a coupon universal state of a shared coupon to be a locking state in response to a coupon sharing event of a first user; and responding to the coupon sharing event of the second user, and setting the coupon universal state of the normal coupon corresponding to the second coupon using combination as a locking state.
According to an embodiment of the present disclosure, the coupon sharing method further includes: setting the matching state of the first coupon sharing record as a state to be matched in response to setting the general coupon state of the shared coupon as a locking state; and responding to the generation of the second coupon sharing record, and setting the matching state of the second coupon sharing record as the state to be matched.
According to an embodiment of the present disclosure, the coupon sharing method further includes: in response to setting the coupon general state of the shared coupon to be a locking state, adding a first shared coupon detail record and at least one second shared coupon detail record; setting the first shared coupon detail record to be consistent with the corresponding first coupon shared record; determining a difference value between the usage amount of the shared coupon and the shared amount of the first coupon as a target amount; determining at least one second coupon sharing record with the sum of the second coupon sharing amounts equal to the target amount as a target detail record; setting the second sharing coupon detail record to be consistent with the target detail record; and setting the matching state of the first coupon sharing record corresponding to the first sharing coupon detail record as the matched state, and setting the matching state of the second coupon sharing record corresponding to the second sharing coupon detail record as the matched state.
According to an embodiment of the present disclosure, the coupon common state further includes a consumed state and a normal state, and the coupon sharing method further includes: in response to the first coupon sharing record being successfully matched with the at least one second coupon sharing record, sending a matching success notification to the first user and the second user; setting a coupon common state of the shared coupon to a consumed state in response to successful use of the shared coupon by the first user and the second user; and setting the general coupon state of the shared coupon to be a normal state in response to the failure of the first user and/or the second user to use the shared coupon.
According to an embodiment of the present disclosure, the coupon record table further includes a coupon generation time field, the first coupon sharing record includes a first coupon generation time corresponding to the coupon generation time field, the second coupon sharing record includes a second coupon generation time corresponding to the coupon generation time field, and matching the first coupon sharing record with at least one second coupon sharing record includes: and matching the first coupon sharing record with the second coupon sharing record according to the sequence of the first coupon generation time and the sequence of the second coupon generation time.
A second aspect of the present disclosure provides a coupon sharing apparatus including: the system comprises a coupon record generating module, a first coupon sharing record generating module, a second coupon sharing record generating module and a matching module, wherein the coupon record generating module is used for responding to a coupon generating event, generating at least one coupon record and storing the coupon record in a coupon record table, the coupon record table comprises a coupon attribute field and a coupon use amount field, the coupon record comprises a coupon attribute and a coupon use amount which respectively correspond to the coupon attribute field and the coupon use amount field, and the coupon attribute is set to be a normal coupon; the first coupon sharing record generating module is used for responding to a coupon sharing event of a first user, determining the coupon attribute of one coupon record as a shared coupon, and generating a first coupon sharing record, wherein the first coupon sharing record comprises a first coupon sharing amount corresponding to a first coupon sharing amount field; the second coupon sharing record generating module is used for responding to a coupon sharing event of at least one second user and generating a second coupon sharing record, and the second coupon sharing record comprises a second coupon sharing amount corresponding to a second coupon sharing amount field; and the matching module is used for matching the first coupon sharing record with at least one second coupon sharing record until the sum of the first coupon sharing amount and the second coupon sharing amount of the at least one second coupon sharing record is greater than or equal to the coupon use amount, and the matching is successful.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the coupon sharing method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the coupon sharing method described above.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the coupon sharing method described above.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a coupon sharing method, apparatus, device, medium and program product according to an embodiment of the disclosure;
FIG. 2 schematically illustrates a flow chart of a coupon sharing method according to an embodiment of the present disclosure;
fig. 3 schematically shows a flowchart of operation S240 according to another embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow diagram of a coupon sharing method according to another embodiment of the present disclosure;
fig. 5 schematically shows a flowchart of operation S240 according to yet another embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow diagram of a coupon sharing method according to yet another embodiment of the present disclosure;
FIG. 7 schematically illustrates a flow diagram of a coupon sharing method according to yet another embodiment of the present disclosure;
FIG. 8 schematically illustrates a flow chart of a coupon sharing method according to yet another embodiment of the present disclosure;
FIG. 9 schematically illustrates a flow diagram of a coupon sharing method according to yet another embodiment of the present disclosure;
fig. 10 schematically shows a flowchart of operation S240 according to yet another embodiment of the present disclosure;
FIG. 11 schematically shows a block diagram of a coupon sharing apparatus according to an embodiment of the present disclosure; and
FIG. 12 schematically illustrates a block diagram of an electronic device suitable for implementing a coupon sharing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In real life, a merchant usually feeds back old customers and expands new customers by issuing coupons on a special day such as sales promotion and anniversary, and controls a certain amount of coupons, for example, during a certain event, the merchant can plan a total amount of coupons of 50 units of money by issuing one thousand coupons of 100 to 50. However, in practice there may be circumstances where the use of coupons is rendered inefficient:
1) the user who receives the coupon may find that the purchased goods do not reach the condition of full reduction in the subsequent settlement, and abandon the purchase, thereby wasting the coupon amount.
2) In order to use the coupon, the user who receives the coupon purchases part of the commodities which are not wanted to purchase, so that the experience of the user is reduced.
3) Some users may not receive the coupon, and want to purchase some goods through the discount activity, and as a result, only the purchasing behavior can be abandoned, and the consumption is not effectively stimulated.
In the above situation, the use efficiency of the coupon is reduced. For the merchant, the planned total preferential amount can not be well realized through the coupon, and the original intention that the merchant feedbacks the old customer and attracts the new customer is violated.
In the prior art, there is a technical scheme that the system adopts a discount mode to realize the feedback activities, and commodities and quantity participating in the activities can be planned in advance according to planned preferential limit to control the final discount without seriously deviating from the planned preferential limit. In the prior art, another technical scheme that the system adopts a discount mode to realize the feedback activities is provided, and the accumulated value of the preferential amount can be controlled through the planned preferential amount, but in this mode, when the system operation efficiency is considered, the planned preferential amount is hashed to different areas, namely scattered hotspots, but the actual participation condition of customers in each area may not be matched with the allocated amount, some areas run out of the amount in advance, and some areas have surplus amounts finally, so that the activities of the areas finally cannot well realize the purpose of planning the preferential amount of the merchant.
The present disclosure provides a coupon sharing method, including: responding to a coupon generation event, generating at least one coupon record, storing the coupon record in a coupon record table, wherein the coupon record table comprises a coupon attribute field and a coupon use amount field, the coupon record comprises a coupon attribute and a coupon use amount which respectively correspond to the coupon attribute field and the coupon use amount field, and setting the coupon attribute as a normal coupon; responding to a coupon sharing event of a first user, determining that the coupon attribute of a coupon record is a shared coupon, and generating a first coupon sharing record, wherein the first coupon sharing record comprises a first coupon sharing amount corresponding to a first coupon sharing amount field; generating a second coupon sharing record in response to the coupon sharing event of the at least one second user, the second coupon sharing record including a second coupon sharing amount corresponding to the second coupon sharing amount field; and matching the first coupon sharing record with at least one second coupon sharing record until the sum of the first coupon sharing amount and the second coupon sharing amount of the at least one second coupon sharing record is larger than or equal to the coupon use amount, and successfully matching.
The coupon sharing method of the embodiment of the disclosure can generate and match corresponding coupon sharing records (that is, match the first coupon sharing record with at least one second coupon sharing record) according to the coupon sharing events of the first user and the second user, and when it is determined that the sum of the first coupon sharing amount of the first user and the second coupon sharing amount of at least one second user is greater than or equal to the coupon usage amount, the usage condition of the shared coupon can be met, and the matching is successful, so that the first user and the at least one second user can share the same coupon under the condition that the first user and the at least one second user respectively do not meet the usage condition of one coupon, and the usage efficiency of the coupon is improved.
It should be noted that the coupon sharing method and apparatus determined in the embodiments of the present disclosure relate to the field of computer technology, and may be used in the financial field, and may also be used in any field other than the financial field.
In addition, in the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all conform to the regulations of related laws and regulations, necessary security measures are taken, and the customs of the public order is not violated.
Fig. 1 schematically illustrates an application scenario diagram of a coupon sharing method, apparatus, device, medium, and program product according to an embodiment of the disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. . The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the coupon sharing method of the present disclosure may be generally performed by the server 105. Accordingly, the coupon sharing apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The coupon sharing method provided by the embodiment of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the coupon sharing apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The coupon sharing method of the disclosed embodiment will be described in detail through fig. 2 to 10 based on the scenario described in fig. 1.
FIG. 2 schematically shows a flow diagram of a coupon sharing method according to an embodiment of the disclosure.
As shown in fig. 2, the coupon sharing method 200 of this embodiment includes operations S210 to S240.
In operation S210, at least one coupon record is generated in response to the coupon generation event, the coupon record is stored in the coupon record table, and the coupon attribute is set to a normal coupon.
The coupon record table includes a coupon attribute field and a coupon usage amount field, and the coupon record includes a coupon attribute and a coupon usage amount corresponding to the coupon attribute field and the coupon usage amount field, respectively.
The coupon generation event may include, for example, the merchant issuing a coupon on a promotional date. In the coupon sharing method of the embodiment of the disclosure, the coupon can be understood as a full minus coupon, that is, the monetary amount of the full X amount can be reduced by the monetary amount of the Y amount, and the usage amount of the coupon is X. For example, a full minus coupon, full 100 minus 30, may be used in an amount of 100 units of currency.
In operation S220, in response to a coupon sharing event of a first user, a coupon attribute of one coupon record is determined to be a shared coupon, and a first coupon shared record is generated.
The coupon record table further includes a first coupon share amount field, the first coupon share record including a first coupon share amount corresponding to the first coupon share amount field.
In operation S230, a second coupon sharing record is generated in response to a coupon sharing event of at least one second user.
The coupon record table further includes a second coupon share amount field, the second coupon share record including a second coupon share amount corresponding to the second coupon share amount field.
In operation S240, the first coupon sharing record is matched with the at least one second coupon sharing record until the sum of the first coupon sharing amount and the second coupon sharing amount of the at least one second coupon sharing record is greater than or equal to the coupon use amount, and the matching is successful.
It should be noted that "the sum of the first coupon sharing amount and the second coupon sharing amount of the at least one second coupon sharing record is greater than the coupon usage amount" in the embodiment of the present disclosure may be understood as that the sum of the first coupon sharing amount and the second coupon sharing amount of the at least one second coupon sharing record is greater than the coupon usage amount, and the difference between the sum of the corresponding coupon sharing amounts of the first coupon sharing record and the at least one second coupon sharing record and the coupon usage amount is not greater than the second coupon sharing amount of any one second coupon sharing record, and the matching is successful (if the difference between the sum of the corresponding coupon sharing amounts of the first coupon sharing record and the at least one second coupon sharing record and the coupon usage amount is greater than the second coupon sharing amount of a certain second coupon sharing record, the second coupon sharing record may be matched with other first coupon sharing records, second coupon sharing records).
Illustratively, for example, the coupon usage amount is 100 units of currency, the coupon is a full minus coupon which is full 100 minus 30, the first coupon sharing amount of one first coupon sharing record a1 is 20 units of currency, there are three second coupon sharing records B1, B2 and B3, and the corresponding second coupon sharing amounts are 50, 35 and 20, respectively.
Wherein the sum 125(20+50+30+20) of the second coupon share amount of the three second coupon share records B1, B2, B3 and the first coupon share amount of the first coupon share record a1 is greater than the coupon use amount 100, the difference between the sum 125 of the respective coupon share amounts of the three second coupon share records B1, B2, B3, first coupon share record a1 and the coupon use amount 100 is 25, and the difference 25 is greater than the second coupon share amount 20 of the second coupon share record B3 of the three second coupon share records B1, B2, B3, in the embodiment of the present disclosure, the three second coupon share records B1, B2, B3 and the first coupon share record a1 cannot be successfully matched.
The sum 105 of the second coupon share amount of the two second coupon share records B1, B2 and the first coupon share amount of the first coupon share record a1 is also greater than the coupon use amount 100, the difference between the sum 105 of the corresponding coupon share amounts of the two second coupon share records B1, B2 and the first coupon share record a1 and the coupon use amount 100 is 5, and the difference 5 is not greater than any one of the three second coupon share records B1, B2 and B3, so that the two second coupon share records B1 and B2 and the first coupon share record a1 can be successfully matched.
It should be appreciated that a first user corresponding to a first coupon sharing record may share the same shared coupon with at least one second user corresponding to at least one second coupon sharing record after a successful match.
The coupon sharing method of the embodiment of the disclosure can generate and match corresponding coupon sharing records (that is, match the first coupon sharing record with at least one second coupon sharing record) according to the coupon sharing events of the first user and the second user, and when it is determined that the sum of the first coupon sharing amount of the first user and the second coupon sharing amount of at least one second user is greater than or equal to the coupon usage amount, the usage condition of the shared coupon can be met, and the matching is successful, so that the first user and the at least one second user can share the same coupon under the condition that the first user and the at least one second user respectively do not meet the usage condition of one coupon, and the usage efficiency of the coupon is improved.
For a user side, the situations that the coupon is not consumed when being received, the coupon is not distributed and used in a non-adaptive mode and the like can be avoided, the coupon is used to the maximum extent, commodity purchase is facilitated, and the coupon using experience of the user is improved. For a merchant party, coupons can be generated quantitatively according to planned preferential amount, compared with a sales promotion mode of the coupons, regional limitation can be broken through, users in various regions can actively use the coupons, actual participation conditions of the users in various regions are guaranteed to be matched with allocated amount, the planned preferential amount can be completed better, the purpose of feeding back the users is achieved, and the implementation effect of the marketing strategy of the merchant coupon activity is improved.
As shown in fig. 3, according to a coupon sharing method according to another embodiment of the present disclosure, operation S240 may include: operation S41-operation S42.
In operation S41, it is determined that the sum of the first coupon share amount and the second coupon share amount of the at least one second coupon share record is a first matching basis.
In operation S42, when the first matching basis is greater than the coupon use amount, it is determined that the difference between the first matching basis and the coupon use amount is a secondary matching basis.
The coupon sharing method supports incomplete matching between the first matching basis and the usage amount of the coupon (complete matching can be understood as the condition that the first matching basis is equal to the usage amount of the coupon, incomplete matching can be understood as the condition that the first matching basis is larger than the shared coupon, namely the usage condition of the shared coupon is met, and the first matching basis is not equal to the usage amount of the coupon), can split the first matching basis, partially match the first matching basis with the usage amount of the coupon, improve the matching success rate of the first coupon sharing record and the second coupon sharing record, and improve the coupon sharing efficiency.
For example, in the above example, the sum 105 of the respective coupon share amounts of the two second coupon share records B1, B2 and the first coupon share record a1 is the first matching basis, and the difference 5 between the first matching basis 105 and the coupon use amount 100 is the second matching basis.
The second matching basis can be understood as the basis of the next matching compared to the current matching, and multiple times of matching can be performed and multiple second matching bases can be determined in the process of realizing complete matching.
Fig. 4 shows a coupon sharing method 300 according to another embodiment of the present disclosure, which may further include: operation S310 to operation S340.
In operation S310, a first standard dollar amount of a first coupon usage event of a first user is determined in response to the first coupon usage event.
Illustratively, the first coupon usage event may comprise, for example, a first user settling a merchandise order, and the first standard dollar value of the first coupon usage event may comprise an dollar value of the merchandise order.
In operation S320, a corresponding first coupon use combination is determined according to the first standard amount, and when the first coupon use combination includes a shared coupon, a coupon sharing event of the first user is generated.
It should be appreciated that a corresponding first coupon usage combination may be determined according to a first criterion amount, for example, the first criterion amount is 320, and when only one full-reduced coupon with the full-reduced rule of 100 minus 30 is determined, three full-reduced coupons with 100 minus 30 and a first coupon usage combination of a shared coupon are determined, and the first coupon usage combination includes a shared coupon, then a coupon sharing event of the first user may be generated. Of course, when the full subtraction coupon includes multiple full subtraction rules, the full subtraction coupons of different full subtraction rules may also be used in combination, and will not be described herein again.
In operation S330, a second standard dollar amount of a second coupon usage event of a second user is determined in response to the second coupon usage event.
Illustratively, the second coupon usage event may comprise, for example, a second user settlement of the merchandise order, and the second standard dollar value of the second coupon usage event may comprise an dollar value of the merchandise order.
In operation S340, a corresponding second coupon use combination is determined according to a second standard amount, and when the shared coupon is included in the second coupon use combination, a coupon sharing event of a second user is generated.
Similar to determining the corresponding first coupon use combination according to the first standard amount, the corresponding second coupon use combination may be determined according to the second standard amount, which is not described herein again.
The coupon sharing method of the embodiment of the disclosure can determine corresponding coupon use combinations according to the corresponding coupon use events of the first user and the second user, generate corresponding coupon sharing events according to the corresponding coupon use combinations, further generate corresponding coupon sharing records, perform matching, and share the same shared coupon when matching is successful. Namely, the corresponding first coupon sharing record and the at least one second coupon sharing record can be reasonably matched according to the corresponding coupon use events of the first user and the second user, so that the matching accuracy of the first coupon sharing record and the at least one second coupon sharing record is improved, and the use efficiency of the coupons is improved.
For example, a first coupon usage combination for a first standard amount of money or a second coupon usage combination for a second standard amount of money may be determined according to the following formula:
D=T*M+G,
r is M + N, wherein T > G > is 0, N > is 0, and N is an integer,
wherein D represents a first standard amount or a second standard amount, T represents a coupon use amount, G represents a first coupon sharing amount or a second coupon sharing amount, M represents the number of normal coupons, N represents the number of shared coupons, and R represents the number of coupons of a first coupon use combination or the number of coupons of a second coupon use combination.
Still take the example that the first standard amount is 320 and the full-minus rule of the full-minus coupon is 100 minus 30, that is, if the coupon use amount is 100, 320 is 100 × 3+20, the first coupon share amount is 20, and the number of coupons of the first coupon use combination is 4, including three normal coupons and one shared coupon.
It should be understood that, in the above embodiment, there is also a case where there is an incomplete match between the first matching basis and the usage amount of the coupon, and a second matching basis may be generated, and the number of the shared coupons is increased correspondingly in the process of matching the second matching basis. Therefore, the number N of shared coupons is equal to or greater than 0, and is an integer, as is the number M of normal coupons, the number of coupons of the first coupon use combination, or the number of coupons of the second coupon use combination.
For example, taking the second standard amount of 220 and the full-minus rule of the full-minus coupon as 100 minus 30 as an example, that is, the usage amount of the coupon is 100, then 220 is 100 × 2+20, the second coupon share amount is 20, if only one first coupon share record exists, and the corresponding first coupon share amount is 90, the sum 110 of the second coupon share amount 20 and the first coupon share amount 90 is greater than the usage amount of the coupon, 100, matching is successful, one shared coupon may be used, and the difference 10 between the second coupon share amount 20, the sum 110 of the first coupon share amount 90 and the usage amount of the coupon 100 may be used as a second matching basis, after the second matching basis is completely matched, another coupon may be used, and the corresponding usage group of the coupons is two normal coupons and two shared coupons.
As shown in fig. 5, according to a coupon sharing method according to still another embodiment of the present disclosure, the coupon record table may further include a matching state field, the first coupon sharing record and the second coupon sharing record may each include a matching state corresponding to the matching state field, the matching state may include a to-be-matched state and a matched state, and the matching of the first coupon sharing record and the at least one second coupon sharing record of operation S240 may include operation S43.
In operation S43, the first coupon share record and the second coupon share record whose matching state is the to-be-matched state are matched.
According to the coupon sharing method, the to-be-matched state and the matched state are distinguished, the first coupon sharing record and the second coupon sharing record can be accurately matched, and the situation that the same first coupon sharing record is repeatedly matched or the same second coupon sharing record is repeatedly matched is avoided, so that the use of the shared coupons is influenced.
Fig. 6 illustrates a coupon sharing method 400 according to still another embodiment of the present disclosure, the coupon record table may further include a coupon common status field, the coupon record may further include a coupon common status corresponding to the coupon common status field, the coupon common status may include a lock status, and the coupon sharing method 400 according to an embodiment of the present disclosure may further include operations S410 to S420.
In operation S410, in response to a coupon sharing event of a first user, a coupon common state of a normal coupon corresponding to a first coupon use combination and/or a coupon common state of a shared coupon is set to a locked state.
Illustratively, when the first coupon use combination only comprises normal coupons, setting the coupon universal state of the corresponding normal coupons as a locking state; when the first coupon use combination only comprises the shared coupon, setting the general coupon state of the corresponding shared coupon as a locking state; and when the first coupon use combination comprises the normal coupon and the shared coupon, setting the coupon universal state of the corresponding normal coupon and the coupon universal state of the corresponding shared coupon as a locking state.
In operation S420, in response to the coupon sharing event of the second user, the coupon common state of the normal coupon corresponding to the second coupon use combination is set to the locked state.
The coupon sharing method of the embodiment of the disclosure can lock the corresponding coupons when the first user and the second user use the coupons, so as to avoid conflict of using the coupons with other users.
It should be noted that, in response to a coupon sharing event of a first user, a shared coupon is determined and locked first, and the shared coupon needs to be shared with other second users to meet the usage condition of the coupon, so that the second user only needs to determine a second coupon sharing record that can be matched with the first coupon sharing record of the first user without locking the same coupon, and can only lock a normal coupon corresponding to the second coupon usage combination.
Fig. 7 schematically illustrates a coupon sharing method 500 according to yet another embodiment of the present disclosure, which may further include: operation S510 to operation S520.
In operation S510, in response to setting the coupon common state of the shared coupon to the lock state, the matching state of the first coupon shared record is set to a to-be-matched state.
In operation S520, in response to generating the second coupon sharing record, the matching state of the second coupon sharing record is set to a to-be-matched state.
It should be appreciated that a shared coupon may be determined and locked based on the first user's coupon sharing event, that the first shared coupon usage amount of only the first user does not meet the shared coupon usage condition, that a match is required, the second coupon sharing record of the second user may be matched before the usage condition of the shared coupon locked by the first user is reached, the coupon sharing method of the disclosed embodiment thus responds to setting the coupon common state of the shared coupon to be the locked state, setting the matching state of the first coupon sharing record to be the to-be-matched state, and the second user may not lock the shared coupon, and thus may set the matching status of the second coupon shared record to the to-be-matched status in response to generating the second coupon shared record, to reasonably determine the matching status of the first coupon sharing record and the matching status of the second coupon sharing record.
As shown in fig. 8, a coupon sharing method 600 according to still another embodiment of the present disclosure may further include: operations S610 to S660.
In operation S610, in response to setting the coupon common state of the shared coupon to the locked state, one first shared coupon detail record and at least one second shared coupon detail record are added.
In operation S620, the first shared coupon detail record is set to be identical to the corresponding first coupon shared record.
The first shared coupon detail record is consistent with the corresponding first coupon sharing record, and it can be understood that the first coupon sharing amount, the to-be-matched state and other contents corresponding to the corresponding fields of the coupon record table of the first coupon sharing record are all given to the first shared coupon detail record.
In operation S630, a difference value of the shared coupon use amount and the first coupon shared amount is determined as a target amount.
At operation S640, at least one second coupon share record, the sum of which is equal to the target amount, is determined as the target detail record.
In operation S650, the second shared coupon detail record is set to be identical to the target detail record.
In operation S660, the matching state of the first coupon sharing record corresponding to the first shared coupon detail record is set as a matched state, and the matching state of the second coupon sharing record corresponding to the second shared coupon detail record is set as a matched state.
The coupon sharing method of the embodiment of the disclosure can clearly and intuitively determine the matching condition of the first coupon sharing record and the second coupon sharing record in a detailed record mode: and when the matching condition of the first coupon sharing record and the second coupon sharing record reaches the coupon use amount of the shared coupon (namely, the use condition of the shared coupon is reached), setting the matching state of the first coupon sharing record and the second coupon sharing record as a matched state.
For example, a shared coupon register may be created locally, the first coupon sharing record and the second coupon sharing record may be copied to the local shared coupon register, and the first coupon sharing record and the at least one second coupon sharing record may be matched in a manner of adding the first shared coupon detail record and the second shared coupon detail record as described above. For example, when a current first coupon shared record is matched, a local shared coupon register is searched, and when a second coupon shared record exists in the local shared coupon register, matching is performed. And when the current second coupon sharing record is matched, searching a local sharing coupon register, and when the first coupon sharing record exists in the local sharing coupon register, matching.
As shown in fig. 9, according to a coupon sharing method 700 according to still another embodiment of the present disclosure, the coupon general state may further include a consumed state and a normal state, and the coupon sharing method 700 may further include: operation S710 to operation S730.
In operation S710, in response to a successful matching of the first coupon-sharing record with the at least one second coupon-sharing record, a matching success notification is transmitted to the first user and the second user.
In operation S720, in response to the first user and the second user successfully using the shared coupon, the coupon common state of the shared coupon is set to a consumed state.
In operation S730, in response to a failure of the first user and/or the second user to use the shared coupon, the coupon common state of the shared coupon is set to a normal state.
It should be noted that, if the first coupon sharing record and the at least one second coupon sharing record are successfully matched, it may be understood that a sum of a first coupon sharing amount of the first coupon sharing record and a second coupon sharing amount of the at least one second coupon sharing record reaches a usage requirement of the coupon usage amount, and then a shared coupon may be used together, where for example, a first user and a second user need to pay a corresponding successful order to successfully use the shared coupon, and the shared coupon is consumed corresponding to the consumed state, and for example, the first user and/or the second user does not pay a corresponding order, so that the shared coupon fails to be used, the corresponding shared coupon is not successfully used, and a general state of the coupon shared by the shared coupon may be set to be a normal state, and other users may continue to use the shared coupon.
According to the coupon sharing method, when the first coupon sharing record is successfully matched with at least one second coupon sharing record, the consumed or normal state of the shared coupon is determined according to the decision of the first user and the second user for using the shared coupon, the situation that the shared coupon is wasted due to the fact that the first user and the second user do not successfully use the shared coupon after the matching is successful is avoided, and the using efficiency of the coupon is improved.
As shown in fig. 10, according to a coupon sharing method of a further embodiment of the present disclosure, the coupon record table may further include a coupon generation time field, the first coupon sharing record may include a first coupon generation time corresponding to the coupon generation time field, the second coupon sharing record may include a second coupon generation time corresponding to the coupon generation time field, and matching the first coupon sharing record with the at least one second coupon sharing record of operation S240 may include operation S44.
In operation S44, the first coupon sharing record and the second coupon sharing record are matched in the order of the front and rear of the first coupon generation time and the order of the front and rear of the second coupon generation time.
Matching the first coupon shared record with the second coupon shared record in the order of the first coupon generation time and the order of the second coupon generation time may be understood as: before the matching is successful, determining a first coupon sharing record with the most forward generation time and a second coupon sharing record with the later generation time according to the sequence of the front and the back of the time; when the first coupon sharing record is matched with the second coupon sharing record, the second coupon sharing record with the earlier second coupon generation time is matched according to the sequence of the front and the back of the second coupon generation time; and when the second coupon sharing record is matched with the first coupon sharing record, matching the first coupon sharing record with the first coupon generation time before according to the sequence of the first coupon generation time and the sequence of the second coupon generation time before and after.
The coupon sharing method of the embodiment of the disclosure can more reasonably match the first coupon sharing record and the second coupon sharing record according to the sequence of the first coupon generation time and the sequence of the second coupon generation time, and has higher matching efficiency and coupon use efficiency.
It should be noted that the coupon sharing method according to the embodiment of the present disclosure may further include registration record information data, where the information data may include information such as a coupon generation event, an identifier of the first coupon sharing record, and an identifier of the second coupon sharing record, and specific information data that needs to be registered may be determined according to actual needs, which is not limited herein.
A coupon sharing method of an embodiment of the present disclosure will be exemplarily described below.
For convenience of description, the following definitions are first given:
coupon rules: the coupon using amount includes two values, namely the coupon using amount, namely the commodity order amount is larger than or equal to the coupon using amount, namely the condition of using the coupon is achieved, and the coupon amount, namely the amount of direct discount when one coupon is used. The ratio of the coupon amount to the coupon usage amount may be defined as a full minus ratio, e.g., a coupon rule of 100 minus 40 where the coupon usage amount is 100 units of currency, the coupon amount is 40 units of currency, and the full minus ratio is 40%.
Amount of shared order: it can be understood that the amount of the commodity order exceeds n times (n is a natural number) of the usage amount of the coupon, and is less than that portion of the usage amount of the coupon. For example, if the full minus rule of 100 minus 40 is full, the commodity order amount is 220 units of currency, and the 20 units of currency with the 220 units of currency exceeding 100 × 2 to 200 units of currency is the shared order amount.
And (3) reducing the coupon: it is understood that when the amount of the product order is n times (n is a natural number) the amount of the condition amount, at most n full discount coupons can be used directly.
Sharing the coupon: it is understood that when the sum of the shared orders of more than two (including two) orders is greater than or equal to the usage amount of the coupon, a coupon is commonly used by more than two (including two) orders. At this time, according to the time sequence of the shared order (corresponding to the first coupon generation time and the second coupon generation time), the amount of the shared order after the shared order is equal to the sum obtained by subtracting the coupon use amount from the accumulated amount, and the amount of the shared order after the shared order is updated, so as to continue participating in the next activity of the shared coupon (i.e. determining the second matching basis).
For example, the full-minus rule is that the payment order is full 100 minus 40, that is, the full-minus ratio is 40%, when the payment order of 80 units of currency of a certain user A uses the shared coupon, the payment order is accumulated with the shared order amount of 20 units of currency of a certain user B, and the shared coupon is successfully used, at this time, the certain user A only needs to pay 80-40% to 48 units of currency to enjoy 32 units of currency of the benefit amount, and the shared order amount of 20 units of currency of the certain user B also realizes the shared benefit of 20-40% to 8 units of currency of the 20 units of currency. In another case, if the full discount rule is full 100 minus 40, and the order amount of a certain user a is 220 units of currency, then 2 full 100 minus 40 full discount coupons are used first, and the order only needs to pay 220-40 × 2 to 140 units of currency, and at the same time, a user a can also select a sharing coupon for the order amount of 20 units of currency, that is, the sharing order amount is 20 units of currency, and the system registers according to the time sequence (that is, the sequence of the first coupon generation time and the second coupon generation time), and accumulates (matches one first coupon sharing record with at least one second coupon sharing record, and accumulates corresponding to the first coupon sharing amount with at least one second coupon sharing amount), when the accumulated user sharing order amount is greater than or equal to the coupon use amount, for example, when the sharing coupon is used with the order amount of 80 units of order currency of a certain user b, the system processes the usage of the shared coupon with 20+80 equal to 100 equal to the condition amount, recalculates the coupon amount of the two accumulated shared order amounts, namely, the coupon amount of a certain user A is 20 × 40% to 8 units of currency, the final payment amount is 140-8 to 132 units of currency, the coupon amount of a certain user B is 80 × 40% to 32 units of currency, the final payment amount is 80-32 to 48 units of currency, 3 coupons with 100 minus 40 are used altogether, and 120 units of currency are paid altogether, and the user can be notified of the above-mentioned benefits.
Based on the coupon sharing method, the disclosure also provides a coupon sharing device. The apparatus will be described in detail below with reference to fig. 11.
Fig. 11 schematically shows a block diagram of a coupon sharing apparatus according to an embodiment of the present disclosure.
As shown in fig. 8, the coupon sharing apparatus 800 of this embodiment includes a coupon record generation module 810, a first coupon shared record generation module 820, a second coupon shared record generation module 830, and a matching module 840.
The coupon record generating module 810 is configured to generate at least one coupon record in response to a coupon generation event, store the coupon record in a coupon record table, where the coupon record table includes a coupon attribute field and a coupon use amount field, the coupon record includes a coupon attribute and a coupon use amount that correspond to the coupon attribute field and the coupon use amount field, respectively, and set the coupon attribute as a normal coupon. In an embodiment, the coupon record generating module 810 may be configured to perform the operation S210 described above, which is not described herein again.
The first coupon sharing record generating module 820 is configured to determine, in response to a coupon sharing event of a first user, that a coupon attribute of one coupon record is a shared coupon, and generate a first coupon sharing record, where the first coupon sharing record includes a first coupon sharing amount corresponding to a first coupon sharing amount field. In an embodiment, the first coupon sharing record generating module 820 may be configured to perform the operation S220 described above, and is not described herein again.
And a second coupon sharing record generating module 830, configured to generate a second coupon sharing record in response to the coupon sharing event of the at least one second user, where the second coupon sharing record includes a second coupon sharing amount corresponding to the second coupon sharing amount field. In an embodiment, the second coupon sharing record generating module 830 may be configured to perform the operation S230 described above, and will not be described herein again.
The matching module 840 is configured to match the first coupon sharing record with the at least one second coupon sharing record until the sum of the first coupon sharing amount and the second coupon sharing amount of the at least one second coupon sharing record is greater than or equal to the coupon use amount, and the matching is successful. In an embodiment, the matching module 840 may be configured to perform the operation S240 described above, which is not described herein again.
According to an embodiment of the present disclosure, the matching module may include a first matching basis determining sub-module and a second matching basis determining sub-module.
And the first matching basis determination module is used for determining that the sum of the first coupon sharing amount and the second coupon sharing amount of at least one second coupon sharing record is a first matching basis.
And the secondary matching basis determining module is used for determining the difference value between the first matching basis and the coupon use amount as a secondary matching basis when the first matching basis is larger than the coupon use amount.
According to an embodiment of the present disclosure, may further include: the system comprises a first standard money determining module, a first user coupon sharing event generating module, a second standard money determining module and a second user coupon sharing event generating module.
A first criteria dollar amount determination module for determining a first criteria dollar amount for a first coupon usage event of a first user, in response to the first coupon usage event.
The coupon sharing event generating module of the first user may determine a corresponding first coupon use combination according to the first standard amount, and generate the coupon sharing event of the first user when the first coupon use combination includes the shared coupon.
A second standard dollar amount determination module, configured to determine a second standard dollar amount of a second coupon usage event of a second user in response to the second coupon usage event;
and the coupon sharing event generating module of the second user is used for determining a corresponding second coupon use combination according to the second standard sum, and generating the coupon sharing event of the second user when the second coupon use combination comprises the shared coupon.
According to an embodiment of the present disclosure, a first coupon usage combination corresponding to a first standard amount of money or a second coupon usage combination corresponding to a second standard amount of money may be determined according to the following formula:
D=T*M+G,
r is M + N, wherein T > G > is 0, N > is 0, and N is an integer,
or R-M, wherein T > G-0,
wherein D represents a first standard amount or a second standard amount, T represents a coupon use amount, G represents a first coupon sharing amount or a second coupon sharing amount, M represents the number of normal coupons, N represents the number of shared coupons, and R represents the number of coupons of a first coupon use combination or the number of coupons of a second coupon use combination.
According to an embodiment of the present disclosure, the coupon record table further includes a matching state field, the first coupon shared record and the second coupon shared record each include a matching state corresponding to the matching state field, the matching state includes a to-be-matched state and a matched state, and the matching module may include a first matching submodule.
Matching the first coupon sharing record with the at least one second coupon sharing record comprises:
and the first matching submodule is used for matching the first coupon sharing record and the second coupon sharing record of which the matching state is the state to be matched.
According to an embodiment of the present disclosure, the coupon record table further includes a coupon common status field, the coupon record further includes a coupon common status corresponding to the coupon common status field, the coupon common status includes a lock status, and the coupon sharing apparatus may further include a first lock module and a second lock module. And the first locking module is used for responding to the coupon sharing event of the first user and setting the coupon general state of the normal coupon corresponding to the first coupon use combination and/or the coupon general state of the shared coupon to be a locking state.
And the second locking module is used for responding to the coupon sharing event of the second user and setting the coupon general state of the normal coupon corresponding to the second coupon using combination as a locking state.
According to an embodiment of the present disclosure, the coupon sharing apparatus may further include: the device comprises a first matching state setting module and a second matching state setting module.
And the first matching state setting module is used for setting the matching state of the first coupon sharing record as the state to be matched in response to the fact that the general coupon state of the shared coupon is set as the locking state.
And the second matching state setting module is used for responding to the generation of the second coupon sharing record and setting the matching state of the second coupon sharing record as the state to be matched.
According to an embodiment of the present disclosure, the coupon sharing apparatus may further include: the device comprises a detail record adding module, a first setting module, a target amount determining module, a target detail record determining module, a second setting module and a matched state setting module.
And the detail record adding module is used for adding a first shared coupon detail record and at least one second shared coupon detail record in response to the condition that the general coupon state of the shared coupon is set to be a locking state.
And the first setting module is used for setting the first shared coupon detail record to be consistent with the corresponding first coupon shared record.
And the target amount determining module is used for determining the difference value between the usage amount of the shared coupon and the shared amount of the first coupon as the target amount.
And the target detail record determining module is used for determining at least one second coupon sharing record of which the sum of the second coupon sharing amounts is equal to the target amount as the target detail record.
And the second setting module is used for setting the second shared coupon detail record to be consistent with the target detail record.
And the matched state setting module is used for setting the matched state of the first coupon shared record corresponding to the first shared coupon detail record as the matched state and setting the matched state of the second coupon shared record corresponding to the second shared coupon detail record as the matched state.
According to an embodiment of the present disclosure, the coupon common state further includes a consumed state and a normal state, and the coupon sharing apparatus may further include: the device comprises a notification module, a third setting module and a fourth setting module.
The notification module is used for responding to the successful matching of the first coupon sharing record and the at least one second coupon sharing record and sending a successful matching notification to the first user and the second user;
the third setting module is used for responding to the successful use of the shared coupon by the first user and the second user and setting the general coupon state of the shared coupon to be a consumed state;
and the fourth setting module is used for setting the general coupon state of the shared coupon to be a normal state in response to the failure of using the shared coupon by the first user and/or the second user.
According to an embodiment of the present disclosure, the coupon record table further includes a coupon generation time field, the first coupon sharing record includes a first coupon generation time corresponding to the coupon generation time field, the second coupon sharing record includes a second coupon generation time corresponding to the coupon generation time field, and the matching module may include: and sequentially matching the sub-modules.
And the sequence matching sub-module is used for matching the first coupon sharing record and the second coupon sharing record according to the sequence of the first coupon generation time and the sequence of the second coupon generation time.
According to an embodiment of the present disclosure, any plurality of the coupon record generation module 810, the first coupon shared record generation module 820, the second coupon shared record generation module 830, and the matching module 840 may be combined into one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the coupon record generation module 810, the first coupon shared record generation module 820, the second coupon shared record generation module 830, and the matching module 840 may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or by any other reasonable manner of integrating or packaging a circuit, such as hardware or firmware, or by any one of three implementations of software, hardware, and firmware, or by any suitable combination of any of them. Alternatively, at least one of the coupon record generation module 810, the first coupon shared record generation module 820, the second coupon shared record generation module 830, and the matching module 840 module 830 may be at least partially implemented as a computer program module that, when executed, may perform corresponding functions.
FIG. 12 schematically illustrates a block diagram of an electronic device suitable for implementing a coupon sharing method according to an embodiment of the present disclosure.
As shown in fig. 12, an electronic apparatus 900 according to an embodiment of the present disclosure includes a processor 901 which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage portion 908 into a Random Access Memory (RAM) 903. Processor 901 may comprise, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 901 may also include on-board memory for caching purposes. The processor 901 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic apparatus 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. The processor 901 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the programs may also be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 900 may also include input/output (I/O) interface 905, input/output (I/O) interface 905 also connected to bus 904, according to an embodiment of the present disclosure. The electronic device 900 may also include one or more of the following components connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 902 and/or the RAM 903 described above and/or one or more memories other than the ROM 902 and the RAM 903.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the coupon sharing method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 901. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, and downloaded and installed through the communication section 909 and/or installed from the removable medium 911. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The computer program, when executed by the processor 901, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (14)

1. A coupon sharing method, comprising:
responding to a coupon generation event, generating at least one coupon record, storing the coupon record in a coupon record table, wherein the coupon record table comprises a coupon attribute field and a coupon use amount field, the coupon record comprises a coupon attribute and a coupon use amount which respectively correspond to the coupon attribute field and the coupon use amount field, and setting the coupon attribute as a normal coupon;
responding to a coupon sharing event of a first user, determining that the coupon attribute of one coupon record is a shared coupon, and generating a first coupon sharing record, wherein the first coupon sharing record comprises a first coupon sharing amount corresponding to a first coupon sharing amount field;
generating a second coupon sharing record in response to a coupon sharing event of at least one second user, the second coupon sharing record including a second coupon sharing amount corresponding to a second coupon sharing amount field;
and matching the first coupon sharing record with at least one second coupon sharing record until the sum of the first coupon sharing amount and the second coupon sharing amount of at least one second coupon sharing record is larger than or equal to the coupon use amount, and successfully matching.
2. The method of claim 1, the matching a first coupon sharing record with at least one second coupon sharing record until a sum of the first coupon sharing amount and a second coupon sharing amount of at least one of the second coupon sharing records is greater than or equal to the coupon usage amount, a successful match comprising:
determining the sum of the first coupon sharing amount and a second coupon sharing amount of at least one second coupon sharing record as a first matching basis;
and when the first matching basis is larger than the coupon use amount, determining the difference value between the first matching basis and the coupon use amount as a secondary matching basis.
3. The method of claim 1, further comprising:
determining a first standard dollar value for a first coupon usage event of a first user in response to the first coupon usage event;
determining a corresponding first coupon use combination according to the first standard sum, and generating a coupon sharing event of the first user when the first coupon use combination comprises a shared coupon;
determining a second standard dollar value for a second coupon usage event of a second user in response to the second coupon usage event;
and determining a corresponding second coupon use combination according to the second standard sum, and generating a coupon sharing event of the second user when the second coupon use combination comprises a shared coupon.
4. A method according to claim 3, determining a first coupon use combination for a first standard amount or a second coupon use combination for a second standard amount according to the following formula:
D=T*M+G,
r is M + N, wherein T > G > is 0, N > is 0, and N is an integer,
wherein D represents the first standard amount or the second standard amount, T represents the coupon use amount, G represents the first coupon sharing amount or the second coupon sharing amount, M represents the number of normal coupons, N represents the number of shared coupons, and R represents the number of coupons of the first coupon use combination or the number of coupons of the second coupon use combination.
5. The method of claim 1, wherein the coupon record table further comprises a match status field, the first coupon shared record and the second coupon shared record each comprise a match status corresponding to the match status field, the match status comprising a to-be-matched status and a matched status,
the matching the first coupon sharing record with at least one second coupon sharing record comprises:
and matching the first coupon sharing record and the second coupon sharing record of which the matching state is the state to be matched.
6. The method of claim 3, the coupon record table further comprising a coupon universal status field, the coupon record further comprising a coupon universal status corresponding to the coupon universal status field, the coupon universal status comprising a locked status,
the coupon sharing method further comprises:
responding to a coupon sharing event of a first user, and setting a coupon universal state of the normal coupon corresponding to the first coupon use combination and/or the coupon universal state of the shared coupon to be a locking state;
and responding to a coupon sharing event of a second user, and setting the coupon general state of the normal coupon corresponding to the second coupon use combination as a locking state.
7. The method of claim 6, further comprising:
setting a matching state of the first coupon sharing record as a state to be matched in response to setting the coupon general state of the shared coupon as a locking state;
and responding to the generation of a second coupon sharing record, and setting the matching state of the second coupon sharing record as a state to be matched.
8. The method of claim 6, further comprising:
in response to setting the coupon common state of the shared coupon to a locked state, adding a first shared coupon detail record and at least one second shared coupon detail record;
setting the first shared coupon detail record to be consistent with the corresponding first coupon shared record;
determining a difference value between the usage amount of the shared coupon and the shared amount of the first coupon as a target amount;
determining at least one second coupon sharing record with the sum of the second coupon sharing amounts equal to the target amount as a target detail record;
setting the second shared coupon detail record to be consistent with the target detail record;
setting the matching state of a first coupon sharing record corresponding to the first shared coupon detail record as a matched state, and setting the matching state of a second coupon sharing record corresponding to the second shared coupon detail record as a matched state.
9. The method of claim 6, the coupon universal state further comprising a consumed state and a normal state, the coupon sharing method further comprising:
in response to the first coupon sharing record being successfully matched with at least one second coupon sharing record, sending a matching success notification to the first user and the second user;
in response to successful use of the shared coupon by the first user and the second user, setting the coupon universal state of the shared coupon to the consumed state;
setting the coupon universal state of the shared coupon to the normal state in response to failure of the first user and/or the second user to use the shared coupon.
10. The method of any of claims 1-9, the coupon record table further comprising a coupon generation time field, the first coupon sharing record comprising a first coupon generation time corresponding to the coupon generation time field, the second coupon sharing record comprising a second coupon generation time corresponding to the coupon generation time field, the matching first coupon sharing record with at least one of the second coupon sharing records comprising:
and matching the first coupon sharing record with the second coupon sharing record according to the sequence of the first coupon generation time and the sequence of the second coupon generation time.
11. A coupon sharing apparatus, comprising:
the coupon record generating module is used for responding to a coupon generating event, generating at least one coupon record and storing the coupon record in a coupon record table, wherein the coupon record table comprises a coupon attribute field and a coupon use amount field, the coupon record comprises a coupon attribute and a coupon use amount which respectively correspond to the coupon attribute field and the coupon use amount field, and the coupon attribute is set to be a normal coupon;
the system comprises a first coupon sharing record generation module, a second coupon sharing record generation module and a third coupon sharing record generation module, wherein the first coupon sharing record generation module is used for responding to a coupon sharing event of a first user, determining the coupon attribute of one coupon record as a shared coupon, and generating a first coupon sharing record, and the first coupon sharing record comprises a first coupon sharing amount corresponding to a first coupon sharing amount field;
a second coupon sharing record generating module, configured to generate a second coupon sharing record in response to a coupon sharing event of at least one second user, where the second coupon sharing record includes a second coupon sharing amount corresponding to a second coupon sharing amount field;
and the matching module is used for matching the first coupon sharing record with at least one second coupon sharing record until the sum of the first coupon sharing amount and the second coupon sharing amount of at least one second coupon sharing record is greater than or equal to the coupon use amount, and the matching is successful.
12. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-10.
13. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 10.
14. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 10.
CN202111474806.0A 2021-12-03 2021-12-03 Coupon sharing method, apparatus, device, medium, and program product Pending CN114140166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111474806.0A CN114140166A (en) 2021-12-03 2021-12-03 Coupon sharing method, apparatus, device, medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111474806.0A CN114140166A (en) 2021-12-03 2021-12-03 Coupon sharing method, apparatus, device, medium, and program product

Publications (1)

Publication Number Publication Date
CN114140166A true CN114140166A (en) 2022-03-04

Family

ID=80384399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111474806.0A Pending CN114140166A (en) 2021-12-03 2021-12-03 Coupon sharing method, apparatus, device, medium, and program product

Country Status (1)

Country Link
CN (1) CN114140166A (en)

Similar Documents

Publication Publication Date Title
US11276059B2 (en) System and method for autonomous sustenance of digital assets
CN112118116B (en) System and method for recommending merchant discussion groups based on settings in an e-commerce platform
CN112565055B (en) System and method for facilitating authentication of email sent by a third party
CN111833169A (en) Ledger management method and apparatus
KR20230039523A (en) Systems and methods for blockchain network congestion-adaptive digital asset event handling
US20210150573A1 (en) Real-time financial system advertisement sharing system
CN108446935A (en) Method for managing resource, device, electronic equipment and computer readable storage medium
US11847585B2 (en) Systems and methods for selectively preventing origination of transaction requests
CN112288547B (en) Order performance management method and device, storage medium and electronic equipment
CN112070505A (en) Resource verification and cancellation method and device
US10268991B1 (en) Dynamic selection across cache
US20080103885A1 (en) Resource management
JP5207692B2 (en) Electronic advertisement distribution device linked with service point distribution
US20210192574A1 (en) Techniques to incentivize sharing electronic advertisement information in a compute environment
US20090204516A1 (en) Accounting data retrieval method and system
US10628893B1 (en) Staged transactions in financial management application
CN114445128A (en) Card ticket management method and device, electronic equipment and computer readable medium
CN114140166A (en) Coupon sharing method, apparatus, device, medium, and program product
US20140278846A1 (en) System, method, and computer-readable medium for charitable event promotion
US20130054398A1 (en) Management of direct sales activities on networked mobile computing devices
CN113610417A (en) Data processing method, device, computer system and storage medium
KR20160130725A (en) Method for compensation of delivery delay at open market, system and service apparatus thereof
US8538813B2 (en) Method and system for providing an SMS-based interactive electronic marketing offer search and distribution system
CN111402030A (en) Bill generation method and device
KR20200048401A (en) A method for providing transaction services of advertisement traffic networks

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