Coupon code issuing method and system, electronic equipment and storage medium

By extracting non -duplicate coupon codes in the coupon center table and associating with the business, the problem of repetitive generating card coding is solved, and the uniqueness and system stability of the coupon code are realized.

CN119377214APending Publication Date: 2025-01-28YONYOU AUTO INFORMATION TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411366849.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

In the prior art, the coding of card coupons or coupons is prone to repeated generation problems, resulting in inconsistency in the system, affecting the stability and reliability of the system.

Method used

By extracting the number of coupon codes that are the same as the business required by the business in the coupon center table, the voucher code collection is formed, and it is associated with the business to store it in the record table to be used. When the business starts to execute, get the voucher code from the record form to be used to be issued. After the execution is completed, the voucher code is returned to the coupon center table.

Benefits of technology

Effectively avoid the duplicate problems of card coding, ensure the uniqueness of the voucher code, and improve the stability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119377214A_ABST
    Figure CN119377214A_ABST
Patent Text Reader

Abstract

The invention provides a coupon code issuing method and system, electronic equipment and a storage medium. The coupon code issuing method comprises the following steps: determining the number of required coupon codes according to a first service demand; the corresponding number of coupon codes are extracted from a coupon code center table according to the number of the coupon codes and combined into a coupon code set, and the coupon code center table comprises a plurality of non-repeated coupon codes; associating the first service with the coupon code set, and storing the first service and the coupon code set in a to-be-used record table, the first service corresponding to the first service demand; executing based on the first service, issuing the coupon codes in the coupon code set, and changing the states of the coupon codes in the coupon code set into used states in the to-be-used record table; and returning the coupon codes in the coupon code set in the used state to the coupon code center table. According to the invention, the problem of possible repeated generation of coupon codes is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and system for issuing coupon codes, an electronic device and a storage medium. Background Art

[0002] With the integration of the Internet and the automotive industry, in order to better serve customers, it is common to use industry software systems to issue cards, coupons, etc. However, in related technologies, there is a problem of repeated generation of codes for cards or coupons. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.

[0004] To this end, the first aspect of the present invention proposes a method for issuing a coupon code.

[0005] The second aspect of the present invention proposes a system for issuing coupon codes.

[0006] A third aspect of the present invention provides an electronic device.

[0007] A fourth aspect of the present invention provides a storage medium.

[0008] In view of this, according to the first aspect of the present invention, a method for issuing coupon codes is proposed, including: determining the required number of coupon codes according to a first business requirement; extracting a corresponding number of coupon codes from a coupon code center table according to the number of coupon codes, and combining them into a coupon code set, wherein the coupon code center table includes multiple non-repetitive coupon codes; associating a first business with the coupon code set, and storing them in a to-be-used record table, wherein the first business corresponds to the first business requirement; starting execution based on the first business, issuing the coupon codes in the coupon code set, and changing the status of the coupon codes in the coupon code set to a used status in the to-be-used record table; returning the coupon codes in the coupon code set that are in a used status to the coupon code center table.

[0009] The method for issuing coupon codes provided by the present invention mainly includes: first determining the first business demand, and then determining the number of coupon codes required according to the first business demand, that is, calculating how many coupon codes the user wants in total according to the needs of the user. After the number of coupon codes is determined, the corresponding number of coupon codes are extracted from the coupon code center table according to the number of coupon codes, and the extracted multiple coupon codes are combined to obtain a coupon code set, wherein the coupon code center table includes multiple non-repeating coupon codes, that is, multiple non-repeating coupon codes are stored in the coupon code center table, wherein the number of coupon codes in the coupon code center table is greater than the needs of the user, that is, greater than the number of coupon codes required by the first business, and the coupon codes in the coupon code center table are all non-repeating and irregular coupon codes. After determining the number of coupon codes required, the same number of coupon codes can be extracted from the coupon code center table, and the extraction method can be random extraction or sequential extraction. After the corresponding number of coupon codes are extracted from the coupon code center table, the extracted coupon codes will be frozen in the coupon code center table, that is, other businesses cannot extract the same coupon codes. After obtaining the voucher code set, the voucher code set is associated with the first business and stored in the to-be-used record table, wherein the first business corresponds to the first business requirement, and the to-be-used record table includes multiple pieces of data information, each piece of data information includes business information, a voucher code set corresponding to the business information, and information such as the usage status of the voucher code set, wherein the usage status may be an unused state or a used state. After obtaining the voucher code set corresponding to the first business, the first business and the voucher code set are associated to form a piece of data information and stored in the to-be-used record table, and the usage status of the voucher code set is marked as an unused state. Then, when the first business starts to be executed, that is, when the first business starts, the voucher codes in the voucher code set are sent to the card or coupon. If the first business is not executed, the corresponding voucher code set will always be stored in the to-be-used record table. After the issuance is completed, the status of the coupon code set is changed to the used status in the waiting record table, wherein the coupon code set can also be split, that is, the coupon codes in the coupon code set are issued separately, and when a coupon code in the coupon code set is issued, the status of the coupon code is changed to the used status. Finally, the coupon codes in the coupon code set in the used status are returned to the coupon code center table, so that other businesses can extract the same coupon code from the coupon code center table. In the present invention, by extracting the coupon codes with the same number of coupon codes required by the business from the coupon code center table, and then associating the business with the extracted coupon codes, and storing them in the waiting record table, when the business starts to be executed, the corresponding coupon code is obtained from the waiting record table, and after the business is executed, the coupon code in the waiting record table is returned to the coupon code center table, thereby avoiding the problem of repeated generation of card coupon codes that may occur.

[0010] The method for issuing coupon codes according to the present invention may also have the following technical features: In some technical solutions, optionally, before the step of extracting a corresponding number of coupon codes in the coupon code center table according to the number of coupon codes, it includes: creating multiple non-repetitive and irregular coupon codes; combining multiple non-repetitive and irregular coupon codes to obtain the coupon code center table.

[0011] In this technical solution, before the step of extracting the corresponding number of coupon codes from the coupon code center table according to the number of coupon codes, the method for issuing coupon codes also includes: first creating multiple non-repetitive and irregular coupon codes, wherein the number of coupon codes depends on the maximum number of coupons or card coupons required for one business, and the creation method can be manually input or machine generated. Further, the multiple non-repetitive and irregular coupon codes created are combined to obtain a coupon code center table, that is, the multiple non-repetitive and irregular coupon codes created are uniformly stored. By constructing multiple non-repetitive and irregular coupon codes and storing the coupon codes in the coupon code center table, it is ensured that non-repetitive coupon codes can be extracted from the coupon code center table.

[0012] In some technical solutions, optionally, the record table to be used includes: a coupon code set, an arbitrarily deformed real coupon code set, usage status, usage time, user, business type, business number, creator, creation time, updater and update time.

[0013] In this technical solution, the record table to be used stores data information such as a set of coupon codes, a set of real coupon codes after arbitrary deformation, usage status, usage time, user, business type, business number, creator, creation time, updater, and update time. That is, there are multiple pieces of data information in the record table to be used, each piece of data information corresponds to a different business, and each piece of data information includes: a set of coupon codes corresponding to the business, a set of real coupon codes issued to the business, wherein it can be understood that after the coupon code is issued to the business, the format will be modified, so each piece of data information will include a set of real coupon codes after arbitrary deformation, and each piece of data information will also include: usage status, which is divided into used status and unused status. When the coupon code is issued to the business, the usage status will change from unused status to used status. Each piece of data information will also include: usage time, user, business type, business number, creator, creation time, updater and update time, etc., among which, usage time refers to the time when the coupon code is issued, user refers to the user who issues the coupon code, business type and business number are the type and number of the business corresponding to the data information, creator refers to the user who stores the coupon code set in the to-be-used record table, creation time refers to the time when the coupon code set is stored in the to-be-used record table, updater refers to the user who updates the data information, and update time refers to the time when the data information is updated. By recording the coupon code set, the real coupon code set after arbitrary deformation, usage status, usage time, user, business type, business number, creator, creation time, updater and update time in the to-be-used record table, it is possible to obtain the coupon code from the to-be-used record table and issue it to the corresponding coupon or card; on the other hand, the coupon code can be traced through the to-be-used record table.

[0014] In some technical solutions, optionally, the method for issuing coupon codes also includes: obtaining a second business; based on the second business being the same as the first business, determining a coupon code set corresponding to the first business in a to-be-used record table according to the first business; and issuing the coupon codes in the coupon code set based on the start of execution of the second business.

[0015] In the technical solution, the method for issuing the coupon code also includes: obtaining the second business, and then analyzing the second business, that is, when the first business is completed and a new business needs to be carried out, the new business, that is, the second business, is analyzed to determine the relationship between the second business and the first business. If the first business is different from the second business, the coupon code will be re-extracted from the coupon code center table according to the second business. If the first business is the same as the second business, that is, when the first business is carried out again, the coupon code set corresponding to the first business is directly determined in the to-be-used record table according to the first business, that is, the coupon code set of the first business in the to-be-used record table is used as the coupon code set corresponding to the second business, and then when the second business starts to be executed, the coupon code in the coupon code set is issued. In the present invention, if the coupon code in the coupon code set of a business has been issued, that is, used, the next time the business issues coupons or card coupons again, it is not necessary to extract the coupon code from the coupon code center table, and the corresponding coupon code set in the to-be-used record table can be directly used, thereby saving time.

[0016] According to a second aspect of the present invention, a system for issuing voucher codes is proposed, wherein the system for issuing voucher codes comprises: a first determination module, the first determination module is used to determine the required number of voucher codes according to a first business requirement; an extraction module, the extraction module is used to extract a corresponding number of voucher codes in a voucher code center table according to the number of voucher codes, and combine them into a voucher code set, wherein the voucher code center table includes multiple non-repetitive voucher codes; a storage module, the storage module is used to associate a first business with the voucher code set, and store them in a to-be-used record table, wherein the first business corresponds to the first business requirement; a first issuing module, the first issuing module is used to start executing based on the first business, issue the voucher codes in the voucher code set, and change the status of the voucher codes in the voucher code set to a used status in the to-be-used record table; a return module, the return module is used to return the voucher codes in the voucher code set that are in a used status to the voucher code center table.

[0017] The system for issuing coupon codes provided by the present invention mainly includes: a first determination module, an extraction module, a storage module, a first issuing module and a return module. Among them, the first determination module can determine the first business demand, and then determine the number of coupon codes required according to the first business demand, that is, calculate how many coupon codes the user wants in total according to the needs of the user. After determining the number of coupon codes, the extraction module extracts the corresponding number of coupon codes in the coupon code center table according to the number of coupon codes, and combines the extracted multiple coupon codes to obtain a coupon code set, wherein the coupon code center table includes multiple non-repeating coupon codes, that is, multiple non-repeating coupon codes are stored in the coupon code center table, wherein the number of coupon codes in the coupon code center table is greater than the needs of the user, that is, greater than the number of coupon codes required by the first business, and the coupon codes in the coupon code center table are all non-repeating and irregular coupon codes. After determining the required number of coupon codes, the same number of coupon codes can be extracted from the coupon code center table, and the extraction method can be random extraction or sequential extraction. After extracting the corresponding number of coupon codes from the coupon code center table, the extracted coupon codes will be frozen in the coupon code center table, that is, other businesses cannot extract the same coupon codes. After obtaining the coupon code set, the storage module associates the coupon code set with the first business and stores it in the waiting record table, wherein the first business corresponds to the first business demand, and the waiting record table includes multiple data information, each of which includes business information, a coupon code set corresponding to the business information, and information such as the usage status of the coupon code set, wherein the usage status can be an unused state or a used state. After obtaining the coupon code set corresponding to the first business, the first business and the coupon code set are associated to form a piece of data information and stored in the waiting record table, and the usage status of the coupon code set is marked as an unused state. Then when the first service starts to be executed, that is, when the first service starts, the first issuing module issues the coupon code in the coupon code set to the card or coupon. If the first service is not executed, the corresponding coupon code set will be stored in the waiting-for-use record table. After the issuance is completed, the status of the coupon code set is changed to the used status in the waiting-for-use record table. The coupon code set can also be split, that is, the coupon codes in the coupon code set are issued separately. When a coupon code in the coupon code set is issued, the status of the coupon code is changed to the used status. Finally, the return module returns the coupon codes in the coupon code set in the used status to the coupon code center table, so that other services can extract the same coupon code in the coupon code center table. In the present invention, coupon codes with the same number as the coupon codes required by the business are extracted from the coupon code center table, and then the business is associated with the extracted coupon codes and stored in the to-be-used record table. When the business starts to be executed, the corresponding coupon code is obtained from the to-be-used record table, and after the business is executed, the coupon code in the to-be-used record table is returned to the coupon code center table, thereby avoiding the problem of repeated generation of card and coupon codes.

[0018] In some technical solutions, optionally, the system for issuing coupon codes also includes: a creation module, which is used to create multiple non-repetitive and irregular coupon codes; and a combination module, which is used to combine multiple non-repetitive and irregular coupon codes to obtain a coupon code center table.

[0019] In this technical solution, the system for issuing coupon codes also includes: a creation module and a combination module. Among them, the creation module can create multiple non-repetitive and irregular coupon codes, wherein the number of coupon codes depends on the maximum number of coupons or card coupons required for one business, and the creation method can be manually input or machine generated. Furthermore, the combination module combines the multiple non-repetitive and irregular coupon codes created to obtain a coupon code center table, that is, to uniformly store the multiple non-repetitive and irregular coupon codes created. By constructing multiple non-repetitive and irregular coupon codes and storing the coupon codes in the coupon code center table, it is ensured that non-repetitive coupon codes can be extracted from the coupon code center table.

[0020] In some technical solutions, optionally, the record table to be used includes: a coupon code set, an arbitrarily deformed real coupon code set, usage status, usage time, user, business type, business number, creator, creation time, updater and update time.

[0021] In this technical solution, the record table to be used stores data information such as a set of coupon codes, a set of real coupon codes after arbitrary deformation, usage status, usage time, user, business type, business number, creator, creation time, updater, and update time. That is, there are multiple pieces of data information in the record table to be used, each piece of data information corresponds to a different business, and each piece of data information includes: a set of coupon codes corresponding to the business, a set of real coupon codes issued to the business, wherein it can be understood that after the coupon code is issued to the business, the format will be modified, so each piece of data information will include a set of real coupon codes after arbitrary deformation, and each piece of data information will also include: usage status, which is divided into used status and unused status. When the coupon code is issued to the business, the usage status will change from unused status to used status. Each piece of data information will also include: usage time, user, business type, business number, creator, creation time, updater and update time, etc., among which, usage time refers to the time when the coupon code is issued, user refers to the user who issues the coupon code, business type and business number are the type and number of the business corresponding to the data information, creator refers to the user who stores the coupon code set in the to-be-used record table, creation time refers to the time when the coupon code set is stored in the to-be-used record table, updater refers to the user who updates the data information, and update time refers to the time when the data information is updated. By recording the coupon code set, the real coupon code set after arbitrary deformation, usage status, usage time, user, business type, business number, creator, creation time, updater and update time in the to-be-used record table, it is possible to obtain the coupon code from the to-be-used record table and issue it to the corresponding coupon or card; on the other hand, the coupon code can be traced through the to-be-used record table.

[0022] In some technical solutions, optionally, the system for issuing coupon codes also includes: a first acquisition module, the first acquisition module is used to acquire the second business; a second determination module, the second determination module is used to determine the coupon code set corresponding to the first business in the to-be-used record table based on the fact that the second business is the same as the first business; and a second issuing module, the second issuing module is used to issue the coupon codes in the coupon code set based on the start of execution of the second business.

[0023] In the technical solution, the system for issuing coupon codes also includes: a first acquisition module, a second determination module, and a second issuance module. Among them, the first acquisition module can acquire the second business, and then analyze the second business, that is, when the first business is executed, there is a new business to be carried out, then the new business, that is, the second business, is analyzed to determine the relationship between the second business and the first business. If the first business is different from the second business, the coupon code will be re-extracted from the coupon code center table according to the second business. If the first business is the same as the second business, that is, when the first business is carried out again, the second determination module directly determines the coupon code set corresponding to the first business in the to-be-used record table according to the first business, that is, the coupon code set of the first business in the to-be-used record table is used as the coupon code set corresponding to the second business, and then when the second business starts to be executed, the second issuance module issues the coupon codes in the coupon code set. In the present invention, if the coupon codes in the coupon code set of a business have been issued, that is, used, the next time the business issues coupons or card coupons again, it is not necessary to extract the coupon code from the coupon code center table, and the corresponding coupon code set in the to-be-used record table can be directly used, thereby saving time.

[0024] According to a third aspect of the present invention, an electronic device is proposed, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method for issuing a coupon code as described in any one of the above items are implemented.

[0025] The electronic device provided by the present invention, in which the processor implements the steps of the above-mentioned method for issuing coupon codes when executing a computer program, can achieve the technical effects of any of the above-mentioned technical solutions, which will not be repeated here.

[0026] According to a fourth aspect of the present invention, a storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for issuing a coupon code as described in any one of the above items are implemented.

[0027] The storage medium provided by the present invention implements the steps of the above-mentioned method for issuing coupon codes when the computer program is executed by the processor, and can achieve the technical effects of any of the above-mentioned technical solutions, which will not be repeated here.

[0028] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 One of the flow charts of the method for issuing coupon codes according to an embodiment of the present invention is shown; Figure 2A flow chart showing a method for issuing coupon codes according to an embodiment of the present invention before the step of extracting a corresponding number of coupon codes from a coupon code center table according to the number of coupon codes; Figure 3 A second flow chart of a method for issuing a coupon code according to an embodiment of the present invention is shown; Figure 4 A third flow chart of a method for issuing a coupon code according to an embodiment of the present invention is shown; Figure 5 A schematic diagram of an interface showing a method for issuing a coupon code according to an embodiment of the present invention; Figure 6 One of the schematic block diagrams of a system for issuing coupon codes according to an embodiment of the present invention is shown; Figure 7 A second schematic block diagram of a system for issuing coupon codes according to an embodiment of the present invention is shown; Figure 8 A third schematic block diagram of a system for issuing coupon codes according to an embodiment of the present invention is shown; Fig. 9 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0030] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

[0031] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0032] Figure 1 A flowchart of a method for issuing a coupon code according to an embodiment of the present invention is shown. The method includes: Step 102: Determine the required number of coupon codes according to the first business requirement; Step 104: extracting a corresponding number of coupon codes from the coupon code center table according to the number of coupon codes, and combining them into a coupon code set, wherein the coupon code center table includes a plurality of non-repeating coupon codes; Step 106: Associating the first service with the voucher code set and storing them in a to-be-used record table, wherein the first service corresponds to the first service requirement; Step 108: based on the start of the first service, the coupon codes in the coupon code set are issued, and the status of the coupon codes in the coupon code set is changed to the used status in the waiting-to-use record table; Step 110: Return the coupon codes in the coupon code set that are in a used state to the coupon code center table.

[0033] The method for issuing coupon codes provided by the present invention mainly includes: first determining the first business demand, and then determining the number of coupon codes required according to the first business demand, that is, calculating how many coupon codes the user wants in total according to the needs of the user. After the number of coupon codes is determined, the corresponding number of coupon codes are extracted from the coupon code center table according to the number of coupon codes, and the extracted multiple coupon codes are combined to obtain a coupon code set, wherein the coupon code center table includes multiple non-repeating coupon codes, that is, multiple non-repeating coupon codes are stored in the coupon code center table, wherein the number of coupon codes in the coupon code center table is greater than the needs of the user, that is, greater than the number of coupon codes required by the first business, and the coupon codes in the coupon code center table are all non-repeating and irregular coupon codes. After determining the number of coupon codes required, the same number of coupon codes can be extracted from the coupon code center table, and the extraction method can be random extraction or sequential extraction. After the corresponding number of coupon codes are extracted from the coupon code center table, the extracted coupon codes will be frozen in the coupon code center table, that is, other businesses cannot extract the same coupon codes. After obtaining the voucher code set, the voucher code set is associated with the first business and stored in the to-be-used record table, wherein the first business corresponds to the first business requirement, and the to-be-used record table includes multiple pieces of data information, each piece of data information includes business information, a voucher code set corresponding to the business information, and information such as the usage status of the voucher code set, wherein the usage status may be an unused state or a used state. After obtaining the voucher code set corresponding to the first business, the first business and the voucher code set are associated to form a piece of data information and stored in the to-be-used record table, and the usage status of the voucher code set is marked as an unused state. Then, when the first business starts to be executed, that is, when the first business starts, the voucher codes in the voucher code set are sent to the card or coupon. If the first business is not executed, the corresponding voucher code set will always be stored in the to-be-used record table. After the issuance is completed, the status of the coupon code set is changed to the used status in the waiting record table, wherein the coupon code set can also be split, that is, the coupon codes in the coupon code set are issued separately, and when a coupon code in the coupon code set is issued, the status of the coupon code is changed to the used status. Finally, the coupon codes in the coupon code set in the used status are returned to the coupon code center table, so that other businesses can extract the same coupon code from the coupon code center table. In the present invention, by extracting the coupon codes with the same number of coupon codes required by the business from the coupon code center table, and then associating the business with the extracted coupon codes, and storing them in the waiting record table, when the business starts to be executed, the corresponding coupon code is obtained from the waiting record table, and after the business is executed, the coupon code in the waiting record table is returned to the coupon code center table, thereby avoiding the problem of repeated generation of card coupon codes that may occur.

[0034] Figure 2A flow chart showing the process before the step of extracting a corresponding number of coupon codes from a coupon code center table according to the number of coupon codes in a coupon code issuing method according to an embodiment of the present invention is shown; wherein, before the step of extracting a corresponding number of coupon codes from a coupon code center table according to the number of coupon codes, the process includes: Step 202: Create multiple non-repetitive and irregular coupon codes; Step 204: Combine multiple non-repetitive and irregular coupon codes to obtain a coupon code center table.

[0035] In this embodiment, before the step of extracting a corresponding number of coupon codes from the coupon code center table according to the number of coupon codes, the method for issuing coupon codes also includes: first creating a plurality of non-repetitive and irregular coupon codes, wherein the number of coupon codes depends on the maximum number of coupons or card coupons required for a business, and the creation method can be manually input or machine generated. Further, the plurality of non-repetitive and irregular coupon codes created are combined to obtain a coupon code center table, that is, the plurality of non-repetitive and irregular coupon codes created are uniformly stored. By constructing a plurality of non-repetitive and irregular coupon codes and storing the coupon codes in the coupon code center table, it is ensured that non-repetitive coupon codes can be extracted from the coupon code center table.

[0036] In some embodiments, optionally, the record table to be used includes: a coupon code set, an arbitrarily deformed real coupon code set, usage status, usage time, user, business type, business number, creator, creation time, updater and update time.

[0037] In this embodiment, the record table to be used stores data information such as a set of coupon codes, a set of real coupon codes after arbitrary deformation, usage status, usage time, user, business type, business number, creator, creation time, updater, and update time. That is, there are multiple pieces of data information in the record table to be used, each piece of data information corresponds to a different business, and each piece of data information includes: a set of coupon codes corresponding to the business, a set of real coupon codes issued to the business, wherein it can be understood that after the coupon code is issued to the business, the format will be modified, so each piece of data information will include a set of real coupon codes after arbitrary deformation, and each piece of data information will also include: usage status, which is divided into used status and unused status. When the coupon code is issued to the business, the usage status will change from unused status to used status. Each piece of data information will also include: usage time, user, business type, business number, creator, creation time, updater and update time, etc., among which, usage time refers to the time when the coupon code is issued, user refers to the user who issues the coupon code, business type and business number are the type and number of the business corresponding to the data information, creator refers to the user who stores the coupon code set in the to-be-used record table, creation time refers to the time when the coupon code set is stored in the to-be-used record table, updater refers to the user who updates the data information, and update time refers to the time when the data information is updated. By recording the coupon code set, the real coupon code set after arbitrary deformation, usage status, usage time, user, business type, business number, creator, creation time, updater and update time in the to-be-used record table, it is possible to obtain the coupon code from the to-be-used record table and issue it to the corresponding coupon or card; on the other hand, the coupon code can be traced through the to-be-used record table.

[0038] Figure 3 The second flow chart of the method for issuing a coupon code according to an embodiment of the present invention is shown; wherein the method for issuing a coupon code further includes: Step 302: Obtain a second service; Step 304: Based on the fact that the second service is the same as the first service, a coupon code set corresponding to the first service is determined in the to-be-used record table according to the first service; Step 306: Based on the start of the second service, the coupon codes in the coupon code set are issued.

[0039] In this embodiment, the method for issuing the coupon code also includes: obtaining the second business, and then analyzing the second business, that is, when the first business is completed and a new business needs to be performed, the new business, that is, the second business, is analyzed to determine the relationship between the second business and the first business. If the first business is different from the second business, the coupon code will be re-extracted from the coupon code center table according to the second business. If the first business is the same as the second business, that is, when the first business is performed again, the coupon code set corresponding to the first business is directly determined in the to-be-used record table according to the first business, that is, the coupon code set of the first business in the to-be-used record table is used as the coupon code set corresponding to the second business, and then when the second business starts to be executed, the coupon code in the coupon code set is issued. In the present invention, if the coupon code in the coupon code set of a business has been issued, that is, used, the next time the business issues coupons or card coupons again, it is not necessary to extract the coupon code from the coupon code center table, and the corresponding coupon code set in the to-be-used record table can be directly used, thereby saving time.

[0040] Figure 4 The third flow chart of the method for issuing coupon codes according to an embodiment of the present invention is shown; wherein, the method includes: Step 402: data initialization; Step 404: data occupancy; Step 406: Data usage; Step 408: All released and finished.

[0041] In this embodiment, the method for issuing coupon codes mainly includes: firstly, creating a coupon code center table in the database, generating a fixed number (depending on the maximum number of coupons or card coupons required for one transaction) and non-repeating irregular coupon codes in this table, and then Figure 5 As shown, users can Figure 5 Enter the specific information of the business in the interface shown, including: date, type, conditions, etc. Figure 5In the interface shown, select the method of generating the coupon code, which can be timed generation. You can also select the name of the coupon, such as a car delivery coupon, the validity period of the coupon, such as July 1, 2024 to July 31, 2024, and the coupon issuance channel, that is, which application is used to issue coupons to users. Then, data initialization is performed according to the specific information of the business, wherein data initialization refers to determining the number of coupons or card coupons to be issued based on actual business scenarios, and then taking the coupon code from the coupon code center table or taking the coupon code from the to-be-used record table under a certain business type and business number in the used state according to the issued number. Further, data occupation is performed, wherein data occupation refers to associating the coupon code taken from the coupon code center table or obtained from the to-be-used record table with the business, writing it into the to-be-used record table, and marking the state as unused, and performing data occupation. It can be understood that when the coupon code is written into the to-be-used record table and the state of the coupon code is unused, the coupon code will not be used by other businesses. Further, the data is used, that is, the coupon code associated with the service in the record table to be used is sent to the coupon or card corresponding to the service, and each time a coupon code is used, a coupon code will be released, that is, the used coupon code is returned to the coupon code center table. The sending is completed until all the coupon codes corresponding to the service in the record table to be used are released. In the present invention, first, according to the number of cards or coupons to be generated, a basic coupon code with a status of being used under a certain business type and business number is taken from the coupon code center table or from the record table to be used, and recorded in the record table to be used. When the coupon code under a certain business type and business number has been used, the next time this business type and business number issues a coupon or card again, this coupon code can be used again to issue it. The method for issuing coupon codes provided by the present invention is simple and easy to use and has extremely high security, and can provide customers with stable and reliable system services. Through the method for issuing coupon codes of the present invention, the uniqueness of coupon codes can be easily solved, while simplifying the difficulty of implementation and improving business or user experience.

[0042] Figure 6 One of the schematic block diagrams of a system for issuing coupon codes according to an embodiment of the present invention is shown; wherein the system 60 for issuing coupon codes includes: A first determination module 602, used to determine the required number of coupon codes according to the first business requirement; An extraction module 604 is used to extract a corresponding number of coupon codes from the coupon code center table according to the number of coupon codes, and combine them into a coupon code set, wherein the coupon code center table includes a plurality of non-repeating coupon codes; The storage module 606 is used to associate the first service with the voucher code set and store the voucher code set in a to-be-used record table, wherein the first service corresponds to the first service requirement; The first issuing module 608 is used to issue the coupon codes in the coupon code set based on the start of the first business, and change the status of the coupon codes in the coupon code set to the used status in the waiting-to-use record table; The return module 610 is used to return the coupon codes in the coupon code set that are in a used state to the coupon code center table.

[0043] The system 60 for issuing coupon codes provided by the present invention mainly includes: a first determination module 602, an extraction module 604, a storage module 606, a first issuing module 608 and a return module 610. The first determination module 602 can determine the first business requirement, and then determine the number of coupon codes required according to the first business requirement, that is, calculate the total number of coupon codes the user wants according to the needs of the user. After determining the number of coupon codes, the extraction module 604 extracts the corresponding number of coupon codes from the coupon code center table according to the number of coupon codes, and combines the extracted multiple coupon codes to obtain a coupon code set, wherein the coupon code center table includes multiple non-repeating coupon codes, that is, multiple non-repeating coupon codes are stored in the coupon code center table, wherein the number of coupon codes in the coupon code center table is greater than the needs of the user, that is, greater than the number of coupon codes required by the first business, and the coupon codes in the coupon code center table are all non-repeating and irregular coupon codes. After determining the required number of coupon codes, the same number of coupon codes can be extracted from the coupon code center table, and the extraction method can be random extraction or sequential extraction. After extracting the corresponding number of coupon codes from the coupon code center table, the extracted coupon codes will be frozen in the coupon code center table, that is, other businesses cannot extract the same coupon codes. After obtaining the coupon code set, the storage module 606 associates the coupon code set with the first business and stores it in the waiting record table, where the first business corresponds to the first business demand. At the same time, the waiting record table will include multiple data information, each of which includes business information, a coupon code set corresponding to the business information, and information such as the use status of the coupon code set, where the use status can be an unused state or a used state. After obtaining the coupon code set corresponding to the first business, the first business and the coupon code set will be associated to form a piece of data information and stored in the waiting record table, and the use status of the coupon code set will be marked as unused. Then when the first service starts to be executed, that is, when the first service starts, the first issuing module 608 issues the coupon codes in the coupon code set to the card or coupon. If the first service is not executed, the corresponding coupon code set will be stored in the waiting-for-use record table. After the issuance is completed, the status of the coupon code set is changed to the used status in the waiting-for-use record table. The coupon code set can also be split, that is, the coupon codes in the coupon code set are issued separately. When a coupon code in the coupon code set is issued, the status of the coupon code is changed to the used status. Finally, the return module 610 returns the coupon codes in the coupon code set in the used status to the coupon code center table, so that other services can extract the same coupon code in the coupon code center table.In the present invention, coupon codes with the same number as the coupon codes required by the business are extracted from the coupon code center table, and then the business is associated with the extracted coupon codes and stored in the to-be-used record table. When the business starts to be executed, the corresponding coupon code is obtained from the to-be-used record table, and after the business is executed, the coupon code in the to-be-used record table is returned to the coupon code center table, thereby avoiding the problem of repeated generation of card and coupon codes.

[0044] Figure 7 The second schematic block diagram of a system for issuing coupon codes according to an embodiment of the present invention is shown; wherein the system 60 for issuing coupon codes further includes: A creation module 612, for creating a plurality of non-repetitive and irregular coupon codes; The combination module 614 is used to combine multiple non-repetitive and irregular coupon codes to obtain a coupon code center table.

[0045] In this embodiment, the system 60 for issuing coupon codes also includes: a creation module 612 and a combination module 614. Among them, the creation module 612 can create multiple non-repetitive and irregular coupon codes, wherein the number of coupon codes depends on the maximum number of coupons or card coupons required for one business, and the creation method can be manually input or machine generated. Further, the combination module 614 combines the multiple non-repetitive and irregular coupon codes created to obtain a coupon code center table, that is, to uniformly store the multiple non-repetitive and irregular coupon codes created. By constructing multiple non-repetitive and irregular coupon codes and storing the coupon codes in the coupon code center table, it is ensured that non-repetitive coupon codes can be extracted from the coupon code center table.

[0046] In some embodiments, optionally, the record table to be used includes: a coupon code set, an arbitrarily deformed real coupon code set, usage status, usage time, user, business type, business number, creator, creation time, updater and update time.

[0047] In this embodiment, the record table to be used stores data information such as a set of coupon codes, a set of real coupon codes after arbitrary deformation, usage status, usage time, user, business type, business number, creator, creation time, updater, and update time. That is, there are multiple pieces of data information in the record table to be used, each piece of data information corresponds to a different business, and each piece of data information includes: a set of coupon codes corresponding to the business, a set of real coupon codes issued to the business, wherein it can be understood that after the coupon code is issued to the business, the format will be modified, so each piece of data information will include a set of real coupon codes after arbitrary deformation, and each piece of data information will also include: usage status, which is divided into used status and unused status. When the coupon code is issued to the business, the usage status will change from unused status to used status. Each piece of data information will also include: usage time, user, business type, business number, creator, creation time, updater and update time, etc., among which, usage time refers to the time when the coupon code is issued, user refers to the user who issues the coupon code, business type and business number are the type and number of the business corresponding to the data information, creator refers to the user who stores the coupon code set in the to-be-used record table, creation time refers to the time when the coupon code set is stored in the to-be-used record table, updater refers to the user who updates the data information, and update time refers to the time when the data information is updated. By recording the coupon code set, the real coupon code set after arbitrary deformation, usage status, usage time, user, business type, business number, creator, creation time, updater and update time in the to-be-used record table, it is possible to obtain the coupon code from the to-be-used record table and issue it to the corresponding coupon or card; on the other hand, the coupon code can be traced through the to-be-used record table.

[0048] Figure 8 The third schematic block diagram of a system for issuing coupon codes according to an embodiment of the present invention is shown; wherein the system 60 for issuing coupon codes further includes: A first acquisition module 616, configured to acquire a second service; A second determination module 618, configured to determine a set of coupon codes corresponding to the first business in the to-be-used record table according to the first business, based on the fact that the second business is the same as the first business; The second issuing module 620 is used to issue the coupon codes in the coupon code set based on the start of the second service.

[0049] In this embodiment, the system 60 for issuing coupon codes also includes: a first acquisition module 616, a second determination module 618, and a second issuing module 620. Among them, the first acquisition module 616 can obtain the second business, and then analyze the second business, that is, when the first business is completed and a new business needs to be carried out, the new business, that is, the second business, is analyzed to determine the relationship between the second business and the first business. If the first business is different from the second business, the coupon code will be re-extracted from the coupon code center table according to the second business. If the first business is the same as the second business, that is, when the first business is carried out again, the second determination module 618 directly determines the coupon code set corresponding to the first business in the to-be-used record table according to the first business, that is, the coupon code set of the first business in the to-be-used record table is used as the coupon code set corresponding to the second business, and then when the second business starts to be executed, the second issuing module 620 issues the coupon codes in the coupon code set. In the present invention, if the coupon codes in the coupon code set of a service have been issued and used, the next time the service issues coupons or card coupons, there is no need to extract the coupon codes from the coupon code center table, and the corresponding coupon code set in the to-be-used record table can be directly used, thereby saving time.

[0050] Fig. 9 A schematic block diagram of an electronic device of an embodiment of the present invention is shown; wherein the electronic device 90 includes a memory 902, a processor 904, and a computer program stored in the memory 902 and executable on the processor 904, and when the processor 904 executes the computer program, the steps of the method for issuing coupon codes as described above are implemented.

[0051] The electronic device 90 provided by the present invention, in which the processor 904 implements the steps of the above-mentioned method for issuing coupon codes when executing a computer program, can achieve the technical effects of any of the above-mentioned embodiments, and will not be described in detail.

[0052] An embodiment of the present invention provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for issuing a coupon code as described above are implemented.

[0053] The storage medium provided by the present invention, when the computer program is executed by the processor, implements the steps of the above-mentioned method for issuing coupon codes, which can achieve the technical effects of any of the above-mentioned embodiments and will not be repeated here.

[0054] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance unless otherwise clearly specified and limited; the terms "connection", "installation", "fixation" and the like should be understood in a broad sense, for example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be directly connected or indirectly connected through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0055] In the description of this specification, the description of the term "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms and does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0056] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for issuing a coupon code, characterized in that: include: Determine the required number of coupon codes based on the first business requirement; Extracting a corresponding number of coupon codes from a coupon code center table according to the number of coupon codes, and combining them into a coupon code set, wherein the coupon code center table includes a plurality of non-repeating coupon codes; Associating a first service with the voucher code set and storing the vouchers in a to-be-used record table, wherein the first service corresponds to the first service requirement; Based on the start of the first service, the coupon codes in the coupon code set are issued, and the status of the coupon codes in the coupon code set is changed to a used status in the to-be-used record table; The coupon codes in the coupon code set that are in a used state are returned to the coupon code center table.

2. The method for issuing coupon codes according to claim 1, characterized in that: Before the step of extracting a corresponding number of coupon codes from the coupon code center table according to the number of coupon codes, the method for issuing coupon codes includes: Create multiple non-repetitive and irregular coupon codes; The coupon code center table is obtained by combining multiple non-repeating and irregular coupon codes.

3. The method for issuing coupon codes according to claim 1, characterized in that: The record table to be used includes: a voucher code set, a real voucher code set after arbitrary deformation, a usage status, a usage time, a user, a business type, a business number, a creator, a creation time, an updater and an update time.

4. The method for issuing coupon codes according to any one of claims 1 to 3, characterized in that: Also includes: Acquire the second business; Based on the fact that the second service is the same as the first service, determining a voucher code set corresponding to the first service in the to-be-used record table according to the first service; Based on the start of the second service, the coupon codes in the coupon code set are issued.

5. A system for issuing coupon codes, characterized in that: include: A first determination module, the first determination module is used to determine the required number of coupon codes according to the first business requirement; An extraction module, the extraction module is used to extract a corresponding number of coupon codes from the coupon code center table according to the number of coupon codes, and combine them into a coupon code set, wherein the coupon code center table includes a plurality of non-repeating coupon codes; A storage module, the storage module is used to associate a first service with the voucher code set and store the voucher code set in a to-be-used record table, wherein the first service corresponds to the first service requirement; a first issuing module, the first issuing module being used to issue the coupon codes in the coupon code set based on the start of the first service, and to change the status of the coupon codes in the coupon code set to a used status in the to-be-used record table; A return module is used to return the coupon codes in the coupon code set that are in a used state to the coupon code center table.

6. The system for issuing coupon codes according to claim 5, characterized in that: Also includes: A creation module, the creation module is used to create multiple non-repetitive and irregular coupon codes; A combination module is used to combine multiple non-repetitive and irregular coupon codes to obtain the coupon code center table.

7. The system for issuing coupon codes according to claim 5, characterized in that: The record table to be used includes: a voucher code set, a real voucher code set after arbitrary deformation, a usage status, a usage time, a user, a business type, a business number, a creator, a creation time, an updater and an update time.

8. The system for issuing coupon codes according to any one of claims 5 to 7, characterized in that: Also includes: A first acquisition module, wherein the first acquisition module is used to acquire a second service; a second determination module, the second determination module being configured to determine, based on the fact that the second service is the same as the first service, a set of coupon codes corresponding to the first service in the to-be-used record table according to the first service; The second issuing module is used to issue the coupon codes in the coupon code set based on the start of execution of the second business.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method for issuing coupon codes according to any one of claims 1 to 4 are implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for issuing coupon codes as described in any one of claims 1 to 4 are implemented.