CN109472458A - Prize inventory allocation method, apparatus, computer equipment and storage medium - Google Patents

Prize inventory allocation method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN109472458A
CN109472458A CN201811208025.5A CN201811208025A CN109472458A CN 109472458 A CN109472458 A CN 109472458A CN 201811208025 A CN201811208025 A CN 201811208025A CN 109472458 A CN109472458 A CN 109472458A
Authority
CN
China
Prior art keywords
prize
inventory
type
adjustment
stockpile number
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811208025.5A
Other languages
Chinese (zh)
Inventor
李天合
李东明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811208025.5A priority Critical patent/CN109472458A/en
Publication of CN109472458A publication Critical patent/CN109472458A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06312Adjustment or analysis of established resource schedule, e.g. resource or task levelling, or dynamic rescheduling
    • 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
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Educational Administration (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of prize inventory allocation method, apparatus, computer equipment and storage mediums, it the described method includes: obtaining the stockpile number of each prize type in inventory database, and is each operation activity prizegiving for applying for prize according to the stockpile number;Prize adjustment request is received, includes adjustment prize type in the prize adjustment request;All operation activities for being assigned the adjustment prize type are inquired in the inventory database, and obtain the prize quantity of the adjustment prize type of each operation activity surplus;According to the prize quantity of the adjustment prize type of each operation activity surplus, the stockpile number that prize type is adjusted described in the inventory database is adjusted.The present invention can be operation activity prizegiving according to prize inventory and adjust prize inventory automatically, do not need manual examination and verification, improve the efficiency of prize distribution, avoid the generation of prize distribution excess phenomenon.

Description

Prize inventory allocation method, apparatus, computer equipment and storage medium
Technical field
The present invention relates to run movable prize management domain, and in particular to a kind of prize inventory allocation method, apparatus, meter Calculate machine equipment and storage medium.
Background technique
Currently, in runing movable operation, prize management be all the pure awards in operation activity with The management of prize, but not for the stock control for runing movable prize progress prize quantity.Therefore.Run movable operation Personnel can usually set the prize quantity more than physical holding of stock when carrying out runing the setting of movable prize, in this way can be to operation Activity causes prize amount super generating, but the border Embarrassing that can not be fulfilled.
Summary of the invention
The embodiment of the present invention provides a kind of prize inventory allocation method, apparatus, computer equipment and storage medium, the present invention It automatically can be operation activity prizegiving and adjusting prize inventory according to prize inventory, not need manual examination and verification, improve The efficiency of prize distribution avoids the generation of prize distribution excess phenomenon.
A kind of prize inventory allocation method, comprising:
The stockpile number of each prize type in inventory database is obtained, and is each of application prize according to the stockpile number Operation activity prizegiving;
Prize adjustment request is received, includes adjustment prize type in the prize adjustment request;
All operation activities for being assigned the adjustment prize type are inquired in the inventory database, and are obtained each The prize quantity of the adjustment prize type of the operation activity surplus;
According to the prize quantity of the adjustment prize type of each operation activity surplus, the inventory database is adjusted Described in adjust prize type stockpile number.
A kind of prize inventory allocation device, comprising:
Prize distribution module, for obtaining the stockpile number of each prize type in inventory database, and according to the inventory Quantity is to apply for each operation activity prizegiving of prize;
Request module includes adjustment prize type in the prize adjustment request for receiving prize adjustment request;
Enquiry module, for inquiring all operations for being assigned the adjustment prize type in the inventory database Activity, and obtain the prize quantity of the adjustment prize type of each operation activity surplus;
Module is adjusted, for the prize quantity according to the adjustment prize type of each operation activity surplus, adjustment The stockpile number of prize type is adjusted described in the inventory database.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer-readable instruction run on device, the processor realize above-mentioned prize inventory point when executing the computer-readable instruction The step of method of completing the square.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer-readable instruction, institute State the step of above-mentioned prize inventory allocation method is realized when computer-readable instruction is executed by processor.
Prize inventory allocation method, apparatus, computer equipment and storage medium provided by the invention, to the inventory of prize Amount has carried out dynamic overall management;When creating operation activity, i.e., according to the inventory of prize type each in inventory database Amount is each operation activity prizegiving of application prize;And after success prizegiving, it can also be sent according to each operation activity The prize quantity for the adjustment prize type of surplus after product of awarding prizes, adjusts the inventory that prize type is adjusted in the inventory database Quantity.After prize is distributed to operation activity by the present invention, the occupancy to inventory's prize in inventory database is a kind of virtual Prize occupy, should during only stockpile number of prize change, and do not distribute prize really or by each prize Prize number or batch are issued to the ownership for runing movable user to determine these prizes.The present invention can be according to prize library It deposits automatically as operation activity prizegiving and adjusting prize inventory, does not need manual examination and verification, improve the efficiency of prize distribution, Avoid the generation of prize distribution excess phenomenon.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is the application environment schematic diagram of prize inventory allocation method in one embodiment of the invention;
Fig. 2 is the flow chart of prize inventory allocation method in one embodiment of the invention;
Fig. 3 is the flow chart of the step S10 of prize inventory allocation method in one embodiment of the invention;
Fig. 4 is the flow chart of the step S10 of prize inventory allocation method in another embodiment of the present invention;
Fig. 5 is the flow chart of the step S10 of prize inventory allocation method in further embodiment of this invention;
Fig. 6 is the flow chart of the step S40 of prize inventory allocation method in one embodiment of the invention;
Fig. 7 is the functional block diagram of prize inventory allocation device in one embodiment of the invention;
Fig. 8 is the schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Prize inventory allocation method provided by the invention, can be applicable in the application environment such as Fig. 1, wherein client (meter Calculate machine equipment) it is communicated by network with server.Wherein, client (computer equipment) is including but not limited to various People's computer, laptop, smart phone, tablet computer, camera and portable wearable device.Server can be with solely The server clusters of the either multiple servers compositions of vertical server is realized.
In one embodiment, it as shown in Fig. 2, providing a kind of prize inventory allocation method, applies in Fig. 1 in this way It is illustrated for server, comprising the following steps:
S10, the stockpile number for obtaining each prize type in inventory database, and be application prize according to the stockpile number Each operation activity prizegiving.
In one embodiment, as shown in figure 3, the step S10 includes:
S101, receives prize inventory application, includes in the prize inventory application and the operation associated prize of activity name The prize quantity of type and each prize type.
In one embodiment, further comprising the steps of before the step S101: reception activity creates information, the activity Creating information includes operation activity name and awards information;The awards information includes awards type and awards effective time.It can Understand ground, the awards information further comprises the limitation of prize-winning number, winning probability, prize granting restrictive condition etc.;In this implementation It is completion creation in the activity creation information by the awards information in example, and prize corresponding for each awards type Type and prize quantity need to be carried out into S104 according to the stockpile number of each prize type in the step S101 really It is fixed.It is living according to the activity creation information creating operation and when determining the stockpile number meet demand of the prize type It is dynamic, and comprising the prize type in the prize inventory application in the prize that distributes of the operation activity created, and the prize Type prize quantity to be distributed also is consistent with the prize quantity in the prize inventory application.
Understandably, the prize inventory application is display interface setting operation movable activity wound of the user in client Information (activity creates information and is associated with operation activity name) is built, then inputs or choose the corresponding prize type of each awards type And its after prize quantity (the prize type and its prize quantity are associated with the operation activity name), it is sent to server (detect the prize type and prize quantity input finish after be automatically sent to server, or click ACK button it After be sent to server).
In one embodiment, the method also includes:
When detecting that user triggers Inventory Transshipment button, will be sent to comprising the request of the Inventory Transshipment of user inventory demand Preset audit side.That is, if the stockpile number of the prize type of display is low when creating operation activity and choosing prize type When the prize quantity that user needs, user can prompt to replenish the stock, at this point, user inputs the inventory requirements of oneself, and with It clicks or the triggering modes such as sliding triggers the Inventory Transshipment button, Inventory Transshipment request is sent to preset audit side, with It is whether reasonable that Inventory Transshipment request is audited for the audit side, and then determines whether to replenish the stock according to the program.
Further, the audit can be described to be audited for manual examination and verification or by preset audit server Audit server can audit Inventory Transshipment request according to preset auditing standards, and the auditing standards are according to careful Nuclear parameter is formulated.The audit parameter may include that the current stockpile number of the prize type (is needed to judge whether to belong to The stockpile number range to be replenished the stock), the highest value of inventory of the preset prize type (inventory proposed to judge user Whether demand excessively high, in order to be adjusted to it), with the stockpile number of the kind prizes type of the prize type (to In the case where kind prizes type inventory is sufficient, judge whether the prize that user demand can be substituted with kind prizes type Type), the total discharging quantity of the prize type before this (to judge user's ratings of the prize type, and then determines If replenishing the stock with the presence or absence of providing the risk do not gone out), the prize type and the total hair of all kind prizes types before this The ratio of quantity is put (to judge user ratings of the prize type in kind prizes type, and if then determining supplement The risk that inventory does not go out with the presence or absence of granting) etc..
In one embodiment, the method also includes:
The stockpile number of prize type described in the inventory database is detected, and in the stockpile number of the prize type Lower than the prize type minimum inventory threshold value when, by comprising inventory requirements Inventory Transshipment request be sent to the audit side. In the present embodiment, each of inventory database prize type sets a corresponding inventory requirements and minimum inventory threshold Value can automatic item audit when the stockpile number corresponding to the prize type in inventory database is lower than minimum inventory threshold value Side sends the Inventory Transshipment request for the inventory requirements that one includes above-mentioned setting, and the review process of the audit side is with above-mentioned, Details are not described herein.Understandably, the audit side can agree to or reject described when receiving the request of above-mentioned Inventory Transshipment Inventory Transshipment request agrees to that the Inventory Transshipment is asked after can also modifying to the inventory requirements in Inventory Transshipment request It asks;But regardless of above-mentioned processing result, above-mentioned processing result can be notified to feed back to requesting party.
In one embodiment, before the step S101, comprising:
When detecting that user triggers the title of prize type described in the corresponding button of prize type or typing, inventory is shown According to the corresponding stockpile number of prize type described in library.
That is, in the present embodiment, before sending prize storage application, needing typing or choosing required with activity Prize type, in order to avoid user choose prize type the shortage of stock the case where occur, can user be operation activity When choosing prize type, server is the stockpile number in inventory database for obtaining the prize type, and carries out to user Prompt.
S102 obtains the corresponding stockpile number of each prize type inquired in inventory database, and described in detecting Whether stockpile number is greater than or equal to the required prize quantity.
In this step, mainly whether the stockpile number of prize type described in verifying inventory database is greater than or equal to The prize quantity of each prize type set in the step S101;If stockpile number is greater than or equal to the prize number Amount, then the stockpile number meet demand of presently described prize type, represents this prize inventory's application success at this time;If inventory Amount is less than the prize quantity, then the stockpile number of presently described prize type is unsatisfactory for demand, represents this prize library at this time Application failure is deposited, need to remodify the prize type of application or/and prize quantity and then secondary is applied.That is, in library In deposit data library, it is stored with the stockpile number of multiple prize types and each prize type;User can be each in client Operation activity application inventory prize (send prize inventory application), in order to which the inventory's prize that will apply is as the operation activity Prize distributed;It, can be from the prize and after this prize inventory's application success (current stockpile number meet demand) The prize quantity of application is reduced in the stockpile number of kind class, that is, for the prize of prize type described in the operation active reservations, And reserved quantity is the prize quantity.
In one embodiment, further comprising the steps of after the step S20:
When the stockpile number is less than the required prize quantity, the shortage of stock of the prize type is prompted, and Show the current stockpile number of the prize type;That is, representing this prize when prompting the shortage of stock of the prize type Product inventory's application failure, at this time, it may be necessary to remodify the prize type of application or/and prize quantity and then secondary applied.
In another embodiment, it after the shortage of stock that the prize type is confirmed in above-mentioned steps, can be performed following Step is to remodify the prize type or/and prize quantity of application: receiving the modification instruction comprising modification parameter, repairs to described Change parameter to modify;The modification parameter includes prize type to be modified or/and prize quantity to be modified.That is, current It, can be from following the three of the present embodiment when stockpile number is unsatisfactory for the demand of the prize quantity of the prize type currently set A aspect modifies the awards information currently set, to match prize inventory.
In the embodiment in a first aspect, can only modify to the prize type to be modified, and the prize type Required prize quantity is not changed;At this point, further including modified prize type in the modification instruction;Hereafter, it is also necessary to Again the corresponding stockpile number of prize type in inventory database after query modification, and detect the modified prize type of institute Stockpile number whether be greater than or equal to the prize quantity;The stockpile number of prize type after the modification is greater than or equal to institute When stating prize quantity, current stockpile number meet demand is prompted;The stockpile number of prize type after the modification is less than the prize When product quantity, the shortage of stock of the prize type is prompted.
It, can be only to the prize quantity to be modified (at this point, also being wrapped in modification instruction in the embodiment second aspect Modified prize quantity is included, and modified prize quantity can be according to the prize type shown in a upper embodiment Current stockpile number be adjusted, modified prize quantity is less than or equal to current stockpile number) repaired Change, and the prize type is not changed;Hereafter, it needs to judge to obtain before whether modified prize quantity is less than or equal to The corresponding stockpile number of the prize type;If so, prompting current stockpile number meet demand;If it is not, then described in prompt The shortage of stock of prize type.
In the third aspect of the embodiment, the prize type to be modified and the prize number to be modified can be modified simultaneously Amount;At this point, further including hereafter modified prize type and modified prize quantity need again in the modification instruction The corresponding modified prize quantity of prize type in inventory database after query modification, and detect modified prize kind Whether the stockpile number of class is greater than or equal to modified prize quantity;If so, prompting current stockpile number meet demand;If It is no, prompt the shortage of stock of the prize type.
In embodiment in terms of above three, prompt the concrete operations after current stockpile number meet demand or deficiency same Above-mentioned, details are not described herein.
S103 prompts current stockpile number full when the stockpile number is greater than or equal to the required prize quantity Sufficient demand, by the operation activity name, the prize type and the prize quantity associated storage to the inventory database. That is, the stockpile number meet demand of presently described prize type, represents this prize inventory's application success at this time;It at this time can be with The prize quantity of each prize type set in the step S101 and the movable operation activity name of the operation are closed Connection is stored to database, for prize type and quantity that subsequent confirmation operation activity can distribute, that is, by clearly Prize inventory's application record, is clear that how much prize quantity of what prize type have been applied in which operation activity Prize.
S104 is updated storage after the stockpile number in the inventory database is reduced the prize quantity.It can Understand ground, after this prize inventory's application success, can correspond to the inventory of the prize type in the inventory database Quantity is reduced and is stored after corresponding prize quantity, so that the prize for the operation active reservations prize quantity is distributed (referring to following step S105-S108).
Understandably, the process for applying for inventory's prize is a kind of virtual prize occupancy, that is, for substantially, it should The stockpile number of prize is only had modified in the process, does not distribute prize really or is issued to the prize number or batch of each prize Movable user is runed to determine the ownership of these prizes, therefore, if desired the prize quantity is adjusted subsequent, Adjustment process will be more easier (not being related to the docking of specific prize or moving for prize entity, it is only necessary to right in systems Quantity should be adjusted), actual motion performance is more efficient, and prize management is also more flexible.For example, one in inventory database is encouraged The prize of kind class, and the stockpile number of the prize is 10, meanwhile, 10 prizes have different 10 prizes numbers, when one When inventory's prize of 5 prize types has successfully been applied in a operation activity, then the stockpile number of the prize is updated to 5, still, 10 prizes number of the prize is unoccupied, and when distributing prize, the prize of same prize type can be distributed to more A operation activity (while multiple operation activities being allowed successfully to apply for inventory's prize), therefore the prize that any prize can be numbered It is distributed to any operation activity for successfully applying for inventory's prize, in the present embodiment, when carrying out stock control to prize, not The use state for changing prize, the form for using only the distribution of prize stockpile number carry out the stock control of prize.
In one embodiment, as shown in figure 4, after the step S104, comprising:
S105 receives prize and distributes instruction, the prize distribute instruction comprising operation activity name, group encourage prize type and Group's prize quantity.That is, in this step, distributed if some operation activity needs to carry out prize, it can timing (one fixation of setting Award prizes the time) or (as long as triggering prize-winning item distribute prize in real time) triggering prize distributes instruction in real time, will need to distribute Prize group prize prize type and group prize quantity (group encourage prize type and group prize quantity can triggering prize-winning item it Afterwards, calculate and export according to the awards information of above-mentioned setting) it is sent to server.
S106 is inquired in the inventory database and is encouraged prize kind with the group of the operation activity name associated storage Class, and the prize quantity with group's prize prize class association storage is obtained, the prize quantity is reduced into the group and is encouraged After quantity, instruction is distributed according to the prize and distributes prize.In the present embodiment, record is distributed by clearly prize, just It is clear that, which prize each operation activity has respectively distributed.It in another embodiment, can be periodically in the inventory It is detected in database with whether the prize quantity of each prize class association storage of the operation activity name is zero, in some prize It is neck by the prize category flag when prize quantity of kind class associated storage has been zero (the prize type, which has been provided, to be finished) It takes complete.Understandably, the prize category flag is when getting to finish, and when client transmission prize distributes instruction, meeting is automatic Ignore the prize type not distribute it.
In one embodiment, as shown in figure 5, after the step S104, comprising:
S107 obtains each operation movable awards effective time, and detects whether current time has been more than that the awards have Imitate the time.That is, in this embodiment, mainly being retracted to the prize for being over the operation activity surplus for sending prize;This When, detect whether each operation movable awards effective time has exceeded the time limit in this step;Understandably, movable in the operation When awards effective time has exceeded the time limit, all prizes of the operation activity surplus will not be provided again, at this time can be by institute The prize quantity for stating each prize type of operation activity surplus is recycled in the stockpile number of inventory database.
S108, when current time has been more than the awards effective time, by the movable each prize kind of operation The prize quantity of class surplus, correspondence increase in the stockpile number of the prize type in the inventory database.That is, fortune The prize finished is not distributed in battalion's activity, can also be retracted, and this is retracted prize and can equally be recorded.It is appreciated that Ground, in this step, it is also necessary to by the prize quantity of the movable each prize type surplus of operation, be recorded as zero.
S20, prize adjustment request is received, includes adjustment prize type in the prize adjustment request;The prize adjustment In request can also include the corresponding adjustment quantity of the adjustment prize type, the adjustment quantity can correspond to it is subsequent need into The stockpile number of prize type is adjusted described in the inventory database of row adjustment.
S30, all operation activities for being assigned the adjustment prize type are inquired in the inventory database, and obtain Take the prize quantity of the adjustment prize type of each operation activity surplus;
Understandably, in the present embodiment, if having multiple operation activities while carrying out, if the one of A operation activity application The prize quantity of kind of prize type has distributed when finishing, at this point, in view of that may have the same of B operation activity application For the prize quantity of prize type there are also sufficient surplus, it can be considered to (be set as the prize type to the prize type Adjustment prize type) reasonably deployed;At this point, being inquired first in inventory database and the adjustment prize class association All movable titles of operation, and the prize quantity of the surplus of each movable adjustment prize type of operation is obtained, in turn Judge whether the prize quantity of surplus can be deployed;When that can be deployed, B can be runed to the movable adjustment (for example, only retracting the adjustment quantity in above-mentioned steps S20) is retracted to inventory in the prize quantity part of prize type surplus Database, A operation activity sends the prize inventory's application for being directed to the adjustment prize type to server again, so as to complete prize Dynamic adjustment.
S40, the prize quantity according to the adjustment prize type of each operation activity surplus, adjust the inventory According to the stockpile number for adjusting prize type described in library.
In one embodiment, as shown in fig. 6, the step S40 includes:
S401, whether the prize quantity for detecting the adjustment prize type of each operation activity surplus is more than default threshold Value.That is, judging surplus by the way that whether the prize quantity for verifying prize type surplus is more than preset threshold in this step Whether the prize quantity can be deployed.Wherein, the preset threshold can be the specific value (ratio for representing prize quantity Such as, the prize quantity of surplus is more than 100), prize quantity and the preset prize quantity that also can be expressed as surplus are (living The prize quantity set in dynamic creation information) ratio;For example, the prize quantity of surplus is more than preset prize quantity Half, i.e. the prize quantity of judgement surplus are more than preset threshold.In the present embodiment, in the tune of all operation activity names When the prize quantity of whole prize type surplus is less than preset threshold, the prize quantity of the adjustment prize type surplus is prompted It is unsatisfactory for adjustment demand.
S402, when the prize quantity of the adjustment prize type of surplus is more than preset threshold, by the prize of surplus The prize quantity of preset ratio in product quantity increases to the stockpile number of the adjustment prize type in the inventory database In.It, can be with when the prize quantity of the corresponding adjustment prize type surplus of some operation activity name is more than preset threshold By part (preset ratio set according to demand) prize of the associated adjustment prize type surplus of the operation activity name Quantity increases in the stockpile number of the adjustment prize type in the inventory database;That is, can by by other The prize quantity of operation activity surplus is supplemented to stockpile number, to carry out further rational allocation to inventory's prize.Into After row allotment, it can receive other and run movable prize inventory's application to the adjustment prize type.
Prize inventory allocation method provided by the invention has carried out dynamic overall management to the stockpile number of prize;? It when creating operation activity, i.e., is each operation activity point for applying for prize according to the stockpile number of prize type each in inventory database With prize;And after success prizegiving, the adjustment prize kind of surplus after prize can also be distributed according to each operation activity The prize quantity of class adjusts the stockpile number that prize type is adjusted in the inventory database.Prize is distributed to fortune by the present invention After battalion's activity, the occupancy to inventory's prize in inventory database is a kind of virtual prize occupancy, during being somebody's turn to do only with lottery The stockpile number of product changes, and does not distribute prize really or the prize number or batch of each prize are issued to operation and live Dynamic user determines the ownership of these prizes.The present invention automatically can be operation activity prizegiving according to prize inventory with Prize inventory is adjusted, manual examination and verification are not needed, improves the efficiency of prize distribution, avoids the hair of prize distribution excess phenomenon It is raw.
In one embodiment, as shown in fig. 7, providing a kind of prize inventory allocation device, the prize inventory allocation device with Prize inventory allocation method corresponds in above-described embodiment.The prize inventory allocation device includes:
Prize distribution module 11, for obtaining the stockpile number of each prize type in inventory database, and according to the library Depositing quantity is to apply for each operation activity prizegiving of prize;
Request module 12 includes adjustment prize type in the prize adjustment request for receiving prize adjustment request;
Enquiry module 13, for inquiring all fortune for being assigned the adjustment prize type in the inventory database Battalion's activity, and obtain the prize quantity of the adjustment prize type of each operation activity surplus;
Module 14 is adjusted, for the prize quantity according to the adjustment prize type of each operation activity surplus, is adjusted The stockpile number of prize type is adjusted described in the whole inventory database.
In one embodiment, the prize distribution module 11 includes:
First receiving submodule includes and operation activity for receiving prize inventory's application, in the prize inventory application The prize quantity of the prize type of names associate and each prize type;
Acquisition submodule, for obtaining the corresponding stockpile number of inquire in inventory database each prize type, And detect whether the stockpile number is greater than or equal to the required prize quantity;
Prompting submodule, for prompting current when the stockpile number is greater than or equal to the required prize quantity Stockpile number meet demand, by the operation activity name, the prize type and the prize quantity associated storage to described Inventory database;
Submodule is updated, for the stockpile number in the inventory database to be reduced the prize quantity later more New storage.
In one embodiment, the prize distribution module 11 further include:
First detection sub-module, for detecting that user triggers prize type described in the corresponding button of prize type or typing Title when, show inventory database described in the corresponding stockpile number of prize type.
In one embodiment, the prize distribution module 11 further include:
Second receiving submodule distributes instruction for receiving prize, the prize distribute instruction comprising operation activity name, Group's prize prize type and group's prize quantity;
Group's prize submodule, for described in the inquiry in the inventory database and the operation activity name associated storage Group's prize prize type, and the prize quantity with group's prize prize class association storage is obtained, the prize quantity is buckled After subtracting group's prize quantity, instruction is distributed according to the prize and distributes prize.
In one embodiment, the prize distribution module 11 further include:
Whether second detection sub-module for obtaining each operation movable awards effective time, and detects current time More than the awards effective time;
Inventory increases submodule, for when current time has been more than the awards effective time, by the operation activity Each prize type surplus prize quantity, the corresponding inventory for increasing to the prize type in the inventory database In quantity.
In one embodiment, the adjustment module 14 includes:
Third detection sub-module, the prize quantity of the adjustment prize type for detecting each operation activity surplus It whether is more than preset threshold;
Adjusting submodule will be tied when the prize quantity for the adjustment prize type in surplus is more than preset threshold The prize quantity of preset ratio in the remaining prize quantity, increases to the adjustment prize type in the inventory database Stockpile number in.
In one embodiment, the method also includes:
Inventory Transshipment module, for user inventory demand will to be included when detecting that user triggers Inventory Transshipment button Inventory Transshipment request is sent to preset audit side;Or the stockpile number of prize type described in the detection inventory database, And when the stockpile number of the prize type is lower than the minimum inventory threshold value of the prize type, by the inventory comprising inventory requirements Augmentation requests are sent to the audit side.
Specific about prize inventory allocation device limits the limit that may refer to above for prize inventory allocation method Fixed, details are not described herein.Modules in above-mentioned prize inventory allocation device can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 8.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium be stored with operating system, computer-readable instruction and Database.The built-in storage provides ring for the operation of operating system and computer-readable instruction in non-volatile memory medium Border.To realize a kind of prize inventory allocation method when the computer-readable instruction is executed by processor.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer-readable instruction that can be run on a processor, processor perform the steps of when executing computer-readable instruction
The stockpile number of each prize type in inventory database is obtained, and is each of application prize according to the stockpile number Operation activity prizegiving;
Prize adjustment request is received, includes adjustment prize type in the prize adjustment request;
All operation activities for being assigned the adjustment prize type are inquired in the inventory database, and are obtained each The prize quantity of the adjustment prize type of the operation activity surplus;
According to the prize quantity of the adjustment prize type of each operation activity surplus, the inventory database is adjusted Described in adjust prize type stockpile number.
In one embodiment, a kind of computer readable storage medium is provided, computer-readable instruction is stored thereon with, It is performed the steps of when computer-readable instruction is executed by processor
The stockpile number of each prize type in inventory database is obtained, and is each of application prize according to the stockpile number Operation activity prizegiving;
Prize adjustment request is received, includes adjustment prize type in the prize adjustment request;
All operation activities for being assigned the adjustment prize type are inquired in the inventory database, and are obtained each The prize quantity of the adjustment prize type of the operation activity surplus;
According to the prize quantity of the adjustment prize type of each operation activity surplus, the inventory database is adjusted Described in adjust prize type stockpile number.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer-readable instruction, it is non-volatile that the computer-readable instruction can be stored in one Property computer-readable storage medium in, the computer-readable instruction is when being executed, it may include as above-mentioned each method embodiment Process.Wherein, to memory, storage, database or other media used in each embodiment provided by the present invention Any reference may each comprise non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.It is volatile Property memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM It is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link DRAM (SLDRAM), the direct RAM of memory bus (RDRAM), Direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit or module division progress for example, in practical application, can according to need and by above-mentioned function distribution by difference Functional unit or module complete, i.e., the internal structure of described device is divided into different functional unit or module, with complete All or part of function described above.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of prize inventory allocation method characterized by comprising
The stockpile number of each prize type in inventory database is obtained, and is each operation for applying for prize according to the stockpile number Activity prizegiving;
Prize adjustment request is received, includes adjustment prize type in the prize adjustment request;
All operation activities for being assigned the adjustment prize type are inquired in the inventory database, and are obtained each described The prize quantity of the adjustment prize type of operation activity surplus;
According to the prize quantity of the adjustment prize type of each operation activity surplus, institute in the inventory database is adjusted State the stockpile number of adjustment prize type.
2. prize inventory allocation method as described in claim 1, which is characterized in that each prize in the acquisition inventory database The stockpile number of type, and be each operation activity prizegiving for applying for prize according to the stockpile number, comprising:
Prize inventory application is received, includes and the operation associated prize type of activity name and each institute in the prize inventory application State the prize quantity of prize type;
The corresponding stockpile number of each prize type inquired in inventory database is obtained, and detect the stockpile number to be It is no to be greater than or equal to the required prize quantity;
When the stockpile number is greater than or equal to the required prize quantity, current stockpile number meet demand is prompted, it will The operation activity name, the prize type and the prize quantity associated storage are to the inventory database;
It is updated storage after the stockpile number in the inventory database is reduced the prize quantity.
3. the method for prize inventory allocation as claimed in claim 2, which is characterized in that reception prize inventory's application, it is described In prize inventory's application comprising with operation the associated prize type of activity name and each prize type prize quantity before, Include:
When detecting that user triggers the title of prize type described in the corresponding button of prize type or typing, inventory database is shown Described in the corresponding stockpile number of prize type.
4. prize inventory allocation method as claimed in claim 2, which is characterized in that the institute by the inventory database It states after stockpile number reduces and update storage after the prize quantity, comprising:
It receives prize and distributes instruction, the prize distributes instruction and includes operation activity name, group's prize prize type and group's prize quantity;
It is inquired in the inventory database and encourages prize type with the group of the operation activity name associated storage, and obtained With the prize quantity of group's prize prize class association storage;
After the prize quantity is reduced group's prize quantity, instruction is distributed according to the prize and distributes prize.
5. prize inventory allocation method as claimed in claim 2, which is characterized in that the institute by the inventory database It states after stockpile number reduces and update storage after the prize quantity, comprising:
Each operation movable awards effective time is obtained, and detects whether current time has been more than the awards effective time;
When current time has been more than the awards effective time, by the prize of the movable each prize type surplus of operation Product quantity, correspondence increase in the stockpile number of the prize type in the inventory database.
6. prize inventory allocation method as described in claim 1, which is characterized in that described according to each operation activity surplus The adjustment prize type prize quantity, adjust described in the inventory database adjust prize type stockpile number, Include:
Whether the prize quantity for detecting the adjustment prize type of each operation activity surplus is more than preset threshold;
It, will be pre- in the prize quantity of surplus when the prize quantity of the adjustment prize type of surplus is more than preset threshold If the prize quantity of ratio increases in the stockpile number of the adjustment prize type in the inventory database.
7. prize inventory allocation method as described in claim 1, which is characterized in that the method also includes:
It is default by being sent to comprising the request of the Inventory Transshipment of user inventory demand when detecting that user triggers Inventory Transshipment button Audit side;Or
The stockpile number of prize type described in the inventory database is detected, and is lower than in the stockpile number of the prize type When the minimum inventory threshold value of the prize type, the Inventory Transshipment request comprising inventory requirements is sent to the audit side.
8. a kind of prize inventory allocation device characterized by comprising
Prize distribution module, for obtaining the stockpile number of each prize type in inventory database, and according to the stockpile number For each operation activity prizegiving for applying for prize;
Request module includes adjustment prize type in the prize adjustment request for receiving prize adjustment request;
Enquiry module, for inquiring all operations work for being assigned the adjustment prize type in the inventory database It is dynamic, and obtain the prize quantity of the adjustment prize type of each operation activity surplus;
Module is adjusted, for the prize quantity according to the adjustment prize type of each operation activity surplus, described in adjustment The stockpile number of prize type is adjusted described in inventory database.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer-readable instruction of upper operation, which is characterized in that the processor is realized when executing the computer-readable instruction as weighed Benefit requires the step of any one of 1 to 7 prize inventory allocation method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer-readable instruction, special Sign is, the prize inventory point as described in any one of claim 1 to 7 is realized when the computer-readable instruction is executed by processor The step of method of completing the square.
CN201811208025.5A 2018-10-17 2018-10-17 Prize inventory allocation method, apparatus, computer equipment and storage medium Pending CN109472458A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811208025.5A CN109472458A (en) 2018-10-17 2018-10-17 Prize inventory allocation method, apparatus, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811208025.5A CN109472458A (en) 2018-10-17 2018-10-17 Prize inventory allocation method, apparatus, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109472458A true CN109472458A (en) 2019-03-15

Family

ID=65664712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811208025.5A Pending CN109472458A (en) 2018-10-17 2018-10-17 Prize inventory allocation method, apparatus, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109472458A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087138A (en) * 2019-04-26 2019-08-02 广州华多网络科技有限公司 A kind of processing method, client and the server of virtual precious case
CN111260418A (en) * 2020-02-18 2020-06-09 深圳市随金科技有限公司 Method, device, server and storage medium for probability selection of object
CN111680948A (en) * 2020-05-28 2020-09-18 泰康保险集团股份有限公司 Inventory management system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005102884A1 (en) * 2004-04-21 2005-11-03 Neo Promotion, Inc. Present stock management system
CN104112215A (en) * 2013-04-22 2014-10-22 腾讯科技(深圳)有限公司 Method, device and system for award distribution
CN105096065A (en) * 2014-04-16 2015-11-25 阿里巴巴集团控股有限公司 Inventory deduction method and inventory deduction device
CN105608607A (en) * 2016-01-29 2016-05-25 上海云活科技有限公司 Internet-based prize distribution system
CN105678530A (en) * 2016-02-17 2016-06-15 中国建设银行股份有限公司 Data processing method and system
CN106875085A (en) * 2016-12-29 2017-06-20 南京欣网互联信息技术有限公司 A kind of prize management method based on mobile operation
JP2018153449A (en) * 2017-03-17 2018-10-04 グローリー株式会社 Prize management system and prize storage device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005102884A1 (en) * 2004-04-21 2005-11-03 Neo Promotion, Inc. Present stock management system
CN104112215A (en) * 2013-04-22 2014-10-22 腾讯科技(深圳)有限公司 Method, device and system for award distribution
CN105096065A (en) * 2014-04-16 2015-11-25 阿里巴巴集团控股有限公司 Inventory deduction method and inventory deduction device
CN105608607A (en) * 2016-01-29 2016-05-25 上海云活科技有限公司 Internet-based prize distribution system
CN105678530A (en) * 2016-02-17 2016-06-15 中国建设银行股份有限公司 Data processing method and system
CN106875085A (en) * 2016-12-29 2017-06-20 南京欣网互联信息技术有限公司 A kind of prize management method based on mobile operation
JP2018153449A (en) * 2017-03-17 2018-10-04 グローリー株式会社 Prize management system and prize storage device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087138A (en) * 2019-04-26 2019-08-02 广州华多网络科技有限公司 A kind of processing method, client and the server of virtual precious case
CN110087138B (en) * 2019-04-26 2020-11-20 广州华多网络科技有限公司 Processing method of virtual treasure box, client and server
CN111260418A (en) * 2020-02-18 2020-06-09 深圳市随金科技有限公司 Method, device, server and storage medium for probability selection of object
CN111680948A (en) * 2020-05-28 2020-09-18 泰康保险集团股份有限公司 Inventory management system

Similar Documents

Publication Publication Date Title
CN109472458A (en) Prize inventory allocation method, apparatus, computer equipment and storage medium
CN101902494B (en) Update service node
CN103098027B (en) The method and system of requests for capacity is calculated for dynamically management
CN104966214B (en) A kind of exchange method and device of electronic ticket
CN104217320B (en) The processing system and processing method of warehouse inventory circulation
CN109472443A (en) A kind of commodity stocks auto-allocation method and platform
CN102385729A (en) Method and device for evaluating advertisement serving policy
US20220222590A1 (en) Blockchain-based room inventory management system and method
CN108933700A (en) A kind of cloud service acquisition methods trusted based on preference
CN104301257B (en) A kind of resource allocation methods, device and equipment
CN109472544A (en) Compensation data processing method, device, computer equipment and storage medium
CN105727555A (en) Upgrading method and upgrading system for user level in social networking software
CN105847893A (en) Method, device and system for advertisement delivery
CN103221970A (en) Management device and management method
CN109919449A (en) Asset count method and computer readable storage medium
CN103713852B (en) A kind of information processing method, service platform and electronic equipment
CN108334964A (en) A kind of business object reservation system, method and device
EP2822140B1 (en) Method for power allocation and resource management system
CN102511041B (en) Computer implementation and calculating system
CN108520428A (en) A kind of prize drawing information processing method and processing device
CN112799970B (en) Test data processing method, device, electronic equipment and medium
CN110231915A (en) Data managing method, system, device, computer equipment and storage medium
CN109600414A (en) A kind of resource allocation methods, device, equipment and storage medium
CN109190888A (en) project evaluation distribution method, device, terminal device and storage medium
JP5527712B2 (en) Distributed power control method and distributed power control system

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