CN111192089B - Electronic ticket generation method and device and computer system - Google Patents

Electronic ticket generation method and device and computer system Download PDF

Info

Publication number
CN111192089B
CN111192089B CN201911400234.4A CN201911400234A CN111192089B CN 111192089 B CN111192089 B CN 111192089B CN 201911400234 A CN201911400234 A CN 201911400234A CN 111192089 B CN111192089 B CN 111192089B
Authority
CN
China
Prior art keywords
selling price
preset
commodity
final selling
rule
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.)
Active
Application number
CN201911400234.4A
Other languages
Chinese (zh)
Other versions
CN111192089A (en
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.)
Suning Cloud Computing Co Ltd
Original Assignee
Suning Cloud Computing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suning Cloud Computing Co Ltd filed Critical Suning Cloud Computing Co Ltd
Priority to CN201911400234.4A priority Critical patent/CN111192089B/en
Publication of CN111192089A publication Critical patent/CN111192089A/en
Application granted granted Critical
Publication of CN111192089B publication Critical patent/CN111192089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (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)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

The application discloses a method, a device and a computer system for generating electronic coupons, wherein the method comprises the following steps: receiving an electronic coupon generation request, wherein the request comprises a discount rule of the electronic coupon and a corresponding commodity; calling a preset interface to acquire valid discount information of the commodity; calculating the final selling price of the commodity according to the effective discount information and the discount rule and judging whether the final selling price meets the preset requirement; and when the final selling price meets the preset requirement, generating a corresponding electronic coupon according to the discount rule.

Description

Electronic ticket generation method and device and computer system
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for generating an electronic ticket and a computer system.
Background
The number of Chinese netizens reaches 7.72 hundred million by 12 months in 2017, and the popularization rate reaches 55.8 percent. 4074 new netizens are added all the year round, the growth rate is 5.6%, and the scale of netizens in China continues to keep stable growth. With the coming of the internet era, people prefer to purchase on line more conveniently and quickly for consumption, and the rapid development of the e-commerce industry is promoted. According to the statistics of the China Internet information center, not only is online shopping developed rapidly, but also online shopping population is rapidly expanded from young people to middle-aged and old people. As online shopping is increasingly accepted by people, some sales promotion forms in the traditional sales field, such as festivals, holidays, shopping festivals and the like, are also transferred to the online sales field. "twenty-one" has become the most important online shopping segment, and the sale of cats "twenty-one" reaches 912 billion yuan in 2015, increases to 1207 billion yuan in 2016, and increases to 1682.7 billion yuan in 2017.
When a store promotes sales by taking sales promotion activities, a method of giving a special product a discount, issuing a product coupon, or issuing a shop-wide coupon may be adopted. However, when a store generates and issues a coupon, if problems such as setting errors of the coupon amount of the coupon, setting errors of a product corresponding to the coupon, and the like occur, a situation that a plurality of coupon modes can be used by overlapping some products may occur, so that the final actual selling price is lower than the cost, and great loss is brought to the store operator.
Disclosure of Invention
In order to solve the defects of the prior art, the invention mainly aims to provide an electronic ticket generating method to avoid the loss caused by the problem of the electronic ticket arrangement.
In order to achieve the above object, the present invention provides, in a first aspect, a method for generating an electronic ticket, the method including:
receiving an electronic coupon generation request, wherein the request comprises a discount rule of the electronic coupon and a corresponding commodity;
calling a preset interface to obtain the valid discount information of the commodity;
calculating the final selling price of the commodity according to the effective discount information and the discount rule and judging whether the final selling price meets the preset requirement;
and when the final selling price meets the preset requirement, generating a corresponding electronic coupon according to the discount rule.
In some embodiments, the generating a corresponding electronic ticket according to the offer rule further includes:
generating an auditing request according to the valid discount information and the discount rule, and sending the auditing request to a corresponding auditing end so that the auditing end can audit the auditing request;
receiving an auditing result returned by the auditing end;
and when the audit is passed, generating a corresponding electronic coupon according to the discount rule.
In some embodiments, the generating a corresponding electronic ticket according to the offer rule includes:
sending the discount rule to a target platform so that the target platform can generate an electronic ticket according to the electronic ticket generating rule;
and according to a preset time period, starting a preset task at regular time to receive a generated result returned by the target platform, and storing the generated result.
In some embodiments, the request further includes an validation time period for the electronic ticket;
the calling of the preset interface and the obtaining of the valid discount information of the commodity comprise:
calling a preset interface to acquire the valid discount information of the commodity within the valid time period;
the calculating the final selling price of the commodity and judging whether the final selling price meets the preset requirement or not according to the valid discount information and the discount rule comprises the following steps:
and calculating the final selling price of the commodity in the effective time period and judging whether the final selling price meets the preset requirement or not according to the effective discount information in the effective time period and the discount information.
In some embodiments, the receiving an electronic coupon generation request, the request including a coupon rule of an electronic coupon and a corresponding merchandise includes:
receiving an electronic coupon generation request, wherein the request comprises a discount rule of the electronic coupon and a corresponding shop;
and determining the commodity corresponding to the shop as the corresponding commodity according to the corresponding relation between the shop and the commodity.
In some embodiments, the determining whether the final selling price meets a preset requirement includes:
acquiring the cost of the commodity according to the corresponding relation between the commodity and the cost;
and calculating the profit of the commodity according to the final selling price and the cost, and judging whether the profit exceeds a preset threshold value.
In some embodiments, the request further includes an originator to which the request corresponds, and the method further includes:
and when the audit is not passed, returning the electronic ticket generation request to the initiator.
In a second aspect, the present application provides an apparatus for generating an electronic ticket, the apparatus including:
the receiving module is used for receiving an electronic ticket generation request, and the request comprises the discount rule of the electronic ticket and the corresponding commodity;
the acquisition module is used for calling a preset interface to acquire the valid discount information of the commodity;
the judging module is used for calculating the final selling price of the commodity according to the valid discount information and the discount rule and judging whether the final selling price meets the preset requirement;
and the generating module is used for generating a corresponding electronic ticket according to the discount rule when the final selling price meets the preset requirement.
In some embodiments, the generating module may be further configured to send the coupon rule to a target platform so that the target platform generates an electronic coupon according to the electronic coupon generation rule, and the receiving module may be further configured to start a preset task at regular time according to a preset time period to receive a generation result returned by the target platform, and store the generation result.
In a third aspect, the present application provides a computer system comprising:
one or more processors;
and memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
receiving an electronic coupon generation request, wherein the request comprises a discount rule of the electronic coupon and a corresponding commodity;
calling a preset interface to acquire valid discount information of the commodity;
calculating the final selling price of the commodity according to the effective discount information and the discount rule and judging whether the final selling price meets the preset requirement;
and when the selling price meets the preset requirement, generating a corresponding electronic ticket according to the discount rule.
The invention has the following beneficial effects:
the invention discloses a method for generating a request by receiving an electronic ticket, wherein the request comprises a discount rule of the electronic ticket and a corresponding commodity; calling a preset interface to acquire valid discount information of the commodity; calculating the final selling price of the commodity according to the effective discount information and the discount rule and judging whether the final selling price meets the preset requirement; when the selling price meets the preset requirement, generating a corresponding electronic ticket according to the discount rule, thereby realizing verification and verification of the final selling price after the discount rule according to the valid discount information and preventing operators from mistakenly inputting the discount rule to bring economic loss to shop operation;
the application also discloses that an audit request is generated according to the valid discount information and the discount rule and is sent to a corresponding audit terminal so that the audit terminal can audit the audit request; receiving an auditing result returned by the auditing end; when the check is passed, the corresponding electronic ticket is generated according to the discount rule, so that the electronic ticket is checked and checked for many times, the situations that the final selling price is lower than the cost and the like due to repeated discount of the corresponding commodity are prevented, and the economic loss of a shop due to wrong arrangement of the electronic ticket is avoided to the greatest extent;
furthermore, the application also provides that the discount rule is sent to a target platform so that the target platform can generate the electronic ticket according to the electronic ticket generation rule, a preset task is started regularly according to a preset time period to receive a generation result returned by the target platform, the generation result is stored, synchronization of the electronic ticket generation state between the target platform and local storage is achieved, and then the sales condition analysis and other operations can be carried out on the commodity corresponding to the electronic ticket according to the stored generation state.
All products of the present invention need not have all of the above-described effects.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a block diagram of a system provided by an embodiment of the present application;
FIG. 2 is a flow chart of coupon creation provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a lot provided by an embodiment of the present application;
FIG. 4 is a schematic diagram of an approval interface provided by embodiments of the present application;
FIG. 5 is a schematic diagram of a coupon management interface provided by an embodiment of the application;
FIG. 6 is a flow chart of a method provided by an embodiment of the present application;
FIG. 7 is a block diagram of an apparatus according to an embodiment of the present disclosure;
fig. 8 is a computer system structure diagram provided in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As described in the background art, if the issue of the coupon causes problems such as an error in setting the coupon amount of the coupon and an error in setting the product corresponding to the coupon, the final actual selling price of the product may be lower than the cost after the multiple types of coupons are used in a superimposed manner, which may cause a great loss to the shop operator.
The existing e-commerce platform does not provide a coupon auditing platform for a shop operator before coupon generation, and often the operator inputs wrong money when sending a request for generating the coupon, or a plurality of operators establish different coupons for the same commodity in the same time period, so that when the coupons are overlapped for use, the finally generated selling price is too low, and economic loss is brought to the shop.
In order to solve the above problems, the present application provides a method for generating an electronic ticket, which establishes a strict verification and approval process for a generation rule of the electronic ticket to avoid the generation of such problems. Meanwhile, the application also provides a method for storing the generated result returned by the target platform, so that the coupon data intercommunication of each platform is realized, and reliable support is provided for the subsequent analysis of data such as the issuing condition of the coupon and the like.
Example one
In order to implement the method, as shown in fig. 1, a working platform may be set up in advance for managing the verification and approval process of the electronic ticket. And after the operator creates the coupon generation rule and imports the coupon generation rule into the working platform, the working platform calls the data of the related commodities to carry out price verification on the generated rule, and after the price verification is finished, a verification receipt is generated and returned to the working platform. When the verification is passed, a process engine is called to trigger an approval process, when the approval is passed, the generation rule is sent to a specified target platform, and a generation result returned by the target platform is received and stored in a database, so that the electronic ticket is checked for many times and the electronic ticket generation state is synchronized on the target platform and locally stored.
Specifically, the method can be realized by the following steps:
firstly, an operator establishes a coupon on a working platform;
as shown in fig. 2, the coupon rules include the amount of the discount such as the full-minus amount and the discount range, and can be divided into two categories: store tickets and merchandise tickets.
The store ticket can be used when purchasing commodities in all stores, and the product ticket can be used only when purchasing commodities within a specified range of the ticket, so that the type of the coupon needs to be determined when creating the coupon, the available commodity range needs to be specified if the coupon is a product ticket, and the corresponding available store needs to be specified for the store ticket.
If the operator establishes the shop coupon, the working platform automatically stores the relevant information of the coupon into an activity information table, an attachment table, an activity examination and approval table, an activity creator information table and a shop preference activity threshold table respectively.
If the operator establishes the commodity coupon, the related information of the coupon is stored in an activity information table, an attachment table, an activity examination and approval table, an activity creator information table and an activity promotion mode table.
Step two, the working platform calls a query interface to acquire the existing discount activities of the corresponding commodities in the available time period of the discount coupons;
in the case of a store coupon, all the products sold in the available time period of the corresponding store need to be inquired as the corresponding products of the coupon.
Specifically, the coupon activity includes the coupon information such as the valid coupon existing in the available time period, the participating operation activity, and the single product coupon of the corresponding commodity.
Calling a price check interface, and calculating the final selling price of the corresponding commodity after the discount activity and the discount rule in the available time period;
step four, judging whether the final selling price meets the preset requirement or not;
the determination process includes but is not limited to:
calling a query interface, reading the cost price of all corresponding commodities, and judging that the final selling price does not meet the preset requirement when the final selling price is lower than the cost price and the profit rate of the final selling price relative to the cost price is lower than the preset value;
when the profit margin is not lower than a preset value, judging that the profit margin meets the preset requirement;
when the final selling price is lower than the preset price, judging that the final selling price does not meet the preset requirement;
and when the final selling price is lower than the preset price, judging that the final selling price meets the preset requirement.
For example, when the e-commerce platform specifies that the selling price of an item participating in a certain promotion event cannot be lower than the selling price during the promotion event within 30 days, it is necessary to ensure that the final selling price after using the coupon is higher than the selling price during the promotion event, thereby preventing the e-commerce platform from being penalized.
Step five, when the preset requirements are met, the working platform sends the coupon use process engine to a corresponding approval terminal;
when the preset requirements are not met, as shown in fig. 3, the operator can apply for special approval, and when the approval terminal passes the approval, the operator can also generate the corresponding coupon.
Step six, the approval personnel use the approval terminal to approve and generate approval results to be returned to the working platform;
as shown in fig. 4, after the price inspection is completed, the price inspection can be sent to corresponding approvers step by step, and when each approver passes the approval, the corresponding coupon can be considered to pass the approval; and when any one of the approvers fails to approve, sending the corresponding coupon back to the corresponding approver for modification.
And when the coupon is a commodity coupon, updating the approved state of the coupon to an activity information table, an attachment table, an activity approval table, an activity creator information table and an activity promotion mode table, and when the coupon is a shop coupon, updating to the activity information table, the attachment table, the activity approval table, the activity creator information table and the shop discount activity threshold table.
Step seven, when the examination and approval pass, the working platform stores the ticket into a processing table of a corresponding e-commerce platform;
step eight, the working platform scans the processing table regularly according to a first preset time period, and pushes the coupon data meeting the creation conditions to the corresponding e-commerce platform through the interface of the corresponding e-commerce platform;
and step nine, the working platform regularly scans the data return interface corresponding to the e-commerce platform according to a second preset time period, and when the interface returns data, the returned data are stored in the response message table.
Therefore, the coupon realizes data storage on both a working platform and an e-commerce platform, and facilitates subsequent collection and operation of multi-platform commodity data, as shown in fig. 5, the existing coupon can be managed on the working platform, and the coupon is convenient for operators to use.
Example two
Corresponding to the foregoing embodiments, the present application provides a method for generating an electronic ticket, as shown in fig. 6, the method includes:
610. receiving an electronic coupon generation request, wherein the request comprises a discount rule of the electronic coupon and a corresponding commodity;
preferably, the method further comprises:
611. receiving an electronic coupon generation request, wherein the request comprises a discount rule of the electronic coupon and a corresponding shop;
and determining the commodity corresponding to the shop as the corresponding commodity according to the corresponding relation between the shop and the commodity.
620. Calling a preset interface to acquire valid discount information of the commodity;
630. calculating the final selling price of the commodity according to the effective discount information and the discount rule and judging whether the final selling price meets the preset requirement;
preferably, the request further includes an effective time period of the electronic ticket;
the calling of the preset interface to acquire the valid discount information of the commodity comprises the following steps:
631. calling a preset interface to acquire the valid discount information of the commodity within the valid time period;
the calculating the final selling price of the commodity and judging whether the final selling price meets the preset requirement or not according to the valid discount information and the discount rule comprises the following steps:
632. and calculating the final selling price of the commodity in the effective time period according to the effective discount information and the discount information which are effective in the effective time period, and judging whether the final selling price meets the preset requirement.
Preferably, the judging whether the final selling price meets a preset requirement includes:
633. acquiring the cost of the commodity according to the corresponding relation between the commodity and the cost;
and calculating the profit of the commodity according to the final selling price and the cost, and judging whether the profit exceeds a preset threshold value.
640. And when the final selling price meets the preset requirement, generating a corresponding electronic coupon according to the discount rule.
Preferably, the generating the corresponding electronic ticket according to the coupon rule further includes:
641. generating an auditing request according to the validated preferential information and the preferential rule, and sending the auditing request to a corresponding auditing end so that the auditing end can audit the auditing request;
receiving an auditing result returned by the auditing end;
and when the audit is passed, generating a corresponding electronic coupon according to the discount rule.
Preferably, the generating the corresponding electronic ticket according to the coupon rule includes:
642. sending the discount rule to a target platform so that the target platform can generate an electronic ticket according to the electronic ticket generation rule;
and according to a preset time period, starting a preset task at regular time to receive a generated result returned by the target platform, and storing the generated result.
Preferably, the request further includes an initiator corresponding to the request, and the method further includes:
643. and when the audit is not passed, returning the electronic ticket generation request to the initiator.
EXAMPLE III
Corresponding to the above method embodiment, the present application further provides an electronic ticket generating apparatus, as shown in fig. 7, the apparatus includes:
a receiving module 710, configured to receive an electronic ticket generation request, where the request includes a coupon rule of the electronic ticket and a corresponding commodity;
the obtaining module 720 is configured to call a preset interface to obtain the valid discount information of the commodity;
the judging module 730 is configured to calculate a final selling price of the commodity according to the valid discount information and the discount rule, and judge whether the final selling price meets a preset requirement;
and a generating module 740, configured to generate a corresponding electronic ticket according to the discount rule when the final selling price meets a preset requirement.
Preferably, the generating module 740 is further configured to send the coupon rule to a target platform so that the target platform generates an electronic coupon according to the electronic coupon generating rule, and the receiving module 710 is further configured to start a preset task at regular time according to a preset time period to receive a generated result returned by the target platform, and store the generated result.
Preferably, the generating module 740 is further configured to generate an audit request according to the valid coupon information and the coupon rule, and send the audit request to a corresponding audit terminal so that the audit terminal can audit the audit request; the receiving module 710 receives the auditing result returned by the auditing end; the generating module 740 is further configured to generate a corresponding electronic ticket according to the coupon rule when the audit is passed.
Preferably, the request further includes an effective time period of the electronic ticket;
the obtaining module 720 may further be configured to call a preset interface, and obtain the valid discount information of the commodity within the valid time period; the determining module 730 is further configured to calculate a final selling price of the commodity within the effective time period according to the discount information that has been effective within the effective time period and the discount information, and determine whether the final selling price meets a preset requirement.
Preferably, the receiving module 710 is further configured to receive an electronic ticket generation request, where the request includes a coupon rule of the electronic ticket and a corresponding store; and determining the commodity corresponding to the shop as the corresponding commodity according to the corresponding relation between the shop and the commodity.
Preferably, the judging module is further configured to obtain the cost of the commodity according to a corresponding relationship between the commodity and the cost; and calculating the profit of the commodity according to the final selling price and the cost, and judging whether the profit exceeds a preset threshold value.
Preferably, the request further includes an initiator corresponding to the request, and the generating module 740 is further configured to return the electronic ticket generating request to the initiator when the audit is not passed.
Example four
Corresponding to the above method, apparatus, and system, a fourth embodiment of the present application provides a computer system, including: one or more processors; and memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising: receiving an electronic coupon generation request, wherein the request comprises a discount rule of the electronic coupon and a corresponding commodity;
calling a preset interface to acquire valid discount information of the commodity;
calculating the final selling price of the commodity according to the effective discount information and the discount rule and judging whether the final selling price meets the preset requirement;
and when the final selling price meets the preset requirement, generating a corresponding electronic coupon according to the discount rule.
Fig. 8 illustrates an architecture of a computer system, which may include, in particular, a processor 1510, a video display adapter 1511, a disk drive 1512, an input/output interface 1513, a network interface 1514, and a memory 1520. The processor 1510, video display adapter 1511, disk drive 1512, input/output interface 1513, network interface 1514, and memory 1520 may be communicatively coupled via a communication bus 1530.
The processor 1510 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solution provided by the present Application.
The Memory 1520 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1520 may store an operating system 1521 for controlling the operation of the computer system 1500, a Basic Input Output System (BIOS) for controlling low-level operations of the computer system 1500. In addition, a web browser 1523, a data storage management system 1524, an icon font processing system 1525, and the like can also be stored. The icon font processing system 1525 may be an application program that implements the operations of the foregoing steps in this embodiment of the application. In summary, when the technical solution provided in the present application is implemented by software or firmware, the relevant program code is stored in the memory 1520 and called for execution by the processor 1510. The input/output interface 1513 is used for connecting an input/output module to realize information input and output. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and the output devices may include a display, speaker, vibrator, indicator light, etc.
The network interface 1514 is used to connect a communication module (not shown) to enable the device to communicatively interact with other devices. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, bluetooth and the like).
The bus 1530 includes a path to transfer information between the various components of the device, such as the processor 1510, the video display adapter 1511, the disk drive 1512, the input/output interface 1513, the network interface 1514, and the memory 1520.
In addition, the computer system 1500 may also obtain information of specific extraction conditions from the virtual resource object extraction condition information database 1541 for performing condition judgment, and the like.
It should be noted that although the above devices only show the processor 1510, the video display adapter 1511, the disk drive 1512, the input/output interface 1513, the network interface 1514, the memory 1520, the bus 1530, etc., in a specific implementation, the device may also include other components necessary for normal operation. Furthermore, it will be understood by those skilled in the art that the apparatus described above may also include only the components necessary to implement the solution of the present application, and not necessarily all of the components shown in the figures.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a cloud server, or a network device) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method for generating an electronic ticket, the method comprising:
receiving an electronic coupon generation request, wherein the request comprises a discount rule of the electronic coupon and a corresponding commodity;
calling a preset interface to obtain the valid discount information of the commodity;
calculating the final selling price of the commodity according to the effective discount information and the discount rule and judging whether the final selling price meets the preset requirement;
when the final selling price meets a preset requirement, generating a corresponding electronic coupon according to the discount rule;
wherein judging whether the final selling price meets the preset requirement comprises at least one of the following steps:
when the final selling price is lower than the cost price and the profit margin of the final selling price relative to the cost price is lower than a preset value, judging that the final selling price does not meet the preset requirement;
when the profit margin is not lower than a preset value, judging that the profit margin meets the preset requirement;
when the final selling price is lower than the preset price, judging that the final selling price does not meet the preset requirement;
and when the final selling price is lower than the preset price, judging that the final selling price meets the preset requirement.
2. The method of claim 1, wherein generating the corresponding electronic coupon according to the offer rule further comprises:
generating an auditing request according to the validated offer information and the offer rule and sending the auditing request to a corresponding auditing end so that the auditing end can audit the auditing request;
receiving an auditing result returned by the auditing end;
and when the examination is passed, generating a corresponding electronic ticket according to the preferential rule.
3. The method of claim 2, wherein the generating the corresponding electronic coupon according to the offer rule comprises:
sending the discount rule to a target platform so that the target platform can generate an electronic ticket according to the electronic ticket generation rule;
and according to a preset time period, starting a preset task at regular time to receive a generated result returned by the target platform, and storing the generated result.
4. The method according to claim 1 or 2, wherein the request further contains an validation time period of the electronic ticket;
the calling of the preset interface to acquire the valid discount information of the commodity comprises the following steps:
calling a preset interface to obtain the valid discount information of the commodity within the valid time period;
the calculating the final selling price of the commodity and judging whether the final selling price meets the preset requirement or not according to the valid discount information and the discount rule comprises the following steps:
and calculating the final selling price of the commodity in the effective time period according to the effective discount information and the discount information which are effective in the effective time period, and judging whether the final selling price meets the preset requirement.
5. The method according to claim 1 or 2, wherein the receiving an electronic coupon generation request, the request including coupon rules of the electronic coupon and corresponding goods comprises:
receiving an electronic coupon generation request, wherein the request comprises a discount rule of the electronic coupon and a corresponding shop;
and determining the commodity corresponding to the shop as the corresponding commodity according to the corresponding relation between the shop and the commodity.
6. The method according to claim 1 or 2, wherein the judging whether the final selling price meets a preset requirement comprises:
acquiring the cost of the commodity according to the corresponding relation between the commodity and the cost;
and calculating the profit of the commodity according to the final selling price and the cost, and judging whether the profit exceeds a preset threshold value.
7. The method of claim 1 or 2, wherein the request further comprises an originator to which the request corresponds, the method further comprising:
and when the audit is not passed, returning the electronic ticket generation request to the initiator.
8. An apparatus for implementing the method for generating an electronic ticket according to claim 1, the apparatus comprising:
the receiving module is used for receiving an electronic coupon generation request, and the request comprises a discount rule of the electronic coupon and a corresponding commodity;
the acquisition module is used for calling a preset interface to acquire the valid discount information of the commodity;
the judging module is used for calculating the final selling price of the commodity according to the valid discount information and the discount rule and judging whether the final selling price meets the preset requirement;
and the generating module is used for generating a corresponding electronic coupon according to the discount rule when the final selling price meets the preset requirement.
9. The device according to claim 8, wherein the generating module is further configured to send the coupon rule to a target platform so that the target platform generates an electronic coupon according to the electronic coupon generating rule, and the receiving module is further configured to start a preset task at regular time according to a preset time period to receive a generated result returned by the target platform, and store the generated result.
10. A computer system, the system comprising:
one or more processors;
and memory associated with the one or more processors for storing program instructions that, when read and executed by the one or more processors, perform operations comprising:
receiving an electronic coupon generation request, wherein the request comprises a discount rule of the electronic coupon and a corresponding commodity;
calling a preset interface to acquire valid discount information of the commodity;
calculating the final selling price of the commodity according to the effective discount information and the discount rule and judging whether the final selling price meets the preset requirement;
when the final selling price meets a preset requirement, generating a corresponding electronic coupon according to the discount rule;
wherein judging whether the final selling price meets the preset requirement comprises at least one of the following steps:
when the final selling price is lower than the cost price and the profit margin of the final selling price relative to the cost price is lower than a preset value, judging that the final selling price does not meet the preset requirement;
when the profit margin is not lower than a preset value, judging that the profit margin meets the preset requirement;
when the final selling price is lower than the preset price, judging that the final selling price does not meet the preset requirement;
and when the final selling price is lower than the preset price, judging that the final selling price meets the preset requirement.
CN201911400234.4A 2019-12-30 2019-12-30 Electronic ticket generation method and device and computer system Active CN111192089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911400234.4A CN111192089B (en) 2019-12-30 2019-12-30 Electronic ticket generation method and device and computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911400234.4A CN111192089B (en) 2019-12-30 2019-12-30 Electronic ticket generation method and device and computer system

Publications (2)

Publication Number Publication Date
CN111192089A CN111192089A (en) 2020-05-22
CN111192089B true CN111192089B (en) 2022-12-16

Family

ID=70709667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911400234.4A Active CN111192089B (en) 2019-12-30 2019-12-30 Electronic ticket generation method and device and computer system

Country Status (1)

Country Link
CN (1) CN111192089B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650903B (en) * 2020-08-28 2024-03-29 武汉市可伴信息技术有限公司 Commodity collection platform based on multiple fusion modes
CN112465553A (en) * 2020-11-30 2021-03-09 北京嘀嘀无限科技发展有限公司 Travel coupon using method, device and system
CN113516512A (en) * 2021-07-16 2021-10-19 拉扎斯网络科技(上海)有限公司 Service information system, and method and device for issuing service preference activity information
CN113592562A (en) * 2021-08-09 2021-11-02 京东科技控股股份有限公司 Coupon processing method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019157983A1 (en) * 2018-02-13 2019-08-22 口碑(上海)信息技术有限公司 Transaction processing method and platform
CN110197408A (en) * 2018-02-26 2019-09-03 苏宁易购集团股份有限公司 It supports value the price method for early warning and system of commodity

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019157983A1 (en) * 2018-02-13 2019-08-22 口碑(上海)信息技术有限公司 Transaction processing method and platform
CN110197408A (en) * 2018-02-26 2019-09-03 苏宁易购集团股份有限公司 It supports value the price method for early warning and system of commodity

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Research on the Digital Coupon of Mobile Two-dimensional Code Based on;Haoyu Meng 等;《201O Second International Conference on Computational Intelligence and Natural Computing (CINC) 》;20101122;全文 *
基于电子优惠券的多渠道整合策略研究;罗美玲 等;《运筹与管理》;20170215;全文 *

Also Published As

Publication number Publication date
CN111192089A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN111192089B (en) Electronic ticket generation method and device and computer system
CN110111107B (en) Payment method, device, equipment and storage medium
CN111277625A (en) E-commerce platform order pushing method and system
CN108600323B (en) Multi-center data sharing system and using method thereof
CN114782024A (en) Material purchasing plan generation method and device
US20140214514A1 (en) Methods and systems for automated coupon processing
CN111353841B (en) Document data processing method, device and system
JP3475750B2 (en) Method of providing additional services in electronic commerce and computer
CN116151718A (en) Overseas warehouse management system, method, equipment and storage medium
CN114219589B (en) Virtual entity object generation and page display method and device and electronic equipment
CN108536715B (en) Preview page generation method, device, equipment and storage medium
CN107767207B (en) Method and equipment for processing object data set
CN115357766A (en) Data matching method and related device
CN111932319B (en) Rights and interests configuration method and device, storage medium and computer equipment
CN114820021A (en) Collaborative sales promotion method, system and medium based on commodity sales platform and supply chain
CN111506340B (en) Business rule information processing method, device and system
CN107274243A (en) A kind of auxiliary information input method and device
CN112348641A (en) Supply chain control method, electronic equipment and medium
CN111292143A (en) Electronic invoice issuing method, device and computer system
CN111679967A (en) Trade list display method and device for testing
CN111861658A (en) Data management method, terminal and storage medium
CN111260444B (en) Order issuing method, device and computer system for goods-free commodities
CN111833151B (en) Cloud ecological service method, cloud server, system, device and readable storage medium
CN111435508A (en) Resource distribution terminal information processing method and device
CN112989200B (en) Method for providing commodity use information and method for improving associated information based on comment information

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
GR01 Patent grant
GR01 Patent grant