CN113095769A - Service inventory management method, device, equipment and readable storage medium - Google Patents
Service inventory management method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN113095769A CN113095769A CN202110499700.XA CN202110499700A CN113095769A CN 113095769 A CN113095769 A CN 113095769A CN 202110499700 A CN202110499700 A CN 202110499700A CN 113095769 A CN113095769 A CN 113095769A
- Authority
- CN
- China
- Prior art keywords
- inventory
- deduction
- service
- thread
- target
- 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
Links
- 238000007726 management method Methods 0.000 title claims abstract description 59
- 238000000034 method Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 11
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000004458 analytical method Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 6
- 238000004883 computer application Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/08—Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06Q10/087—Inventory or stock management, e.g. order filling, procurement or balancing against orders
Landscapes
- Business, Economics & Management (AREA)
- Economics (AREA)
- Engineering & Computer Science (AREA)
- Marketing (AREA)
- Quality & Reliability (AREA)
- Finance (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- Accounting & Taxation (AREA)
- Operations Research (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a service inventory management method, which comprises the following steps: receiving a service inventory deduction request, and locking an inventory deduction thread; analyzing the service inventory deduction request to obtain a target service time interval and the number to be occupied of the service occupation target; searching a target inventory occupation deduction record crossed with the target service time interval existing time from the inventory deduction record table, and counting the number of the target inventory occupation deduction records to obtain the number of the crossed deduction records; calculating the sum of the number to be occupied and the number of the cross deduction records to obtain the preset maximum inventory in the same time period; judging whether the sum of the occupied quantity is larger than the maximum inventory in the same time period or not; if not, the stock deduction thread is used for carrying out stock deduction. The invention greatly reduces the probability of over-subscription of the service and unsuccessful subscription of the user to the available service, and realizes effective management of the service inventory. The invention also discloses a service inventory management device, equipment and a storage medium, and has corresponding technical effects.
Description
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for managing a service inventory.
Background
The existing inventory management systems are all directed at inventory management of physical commodities, such as corresponding increase and decrease management of inventory quantity of commodities according to the ordering condition of a user to the commodities. However, for a service inventory management business scenario requiring comprehensive consideration of time allowance, if the number of inventories is increased or decreased, especially when multiple users subscribe to services simultaneously, multiple users compete to subscribe to services, which may result in over-subscription of services or unsuccessful subscription of users to available services.
In summary, how to effectively solve the problems that the existing service inventory management method is easy to cause service overbooking or users unsuccessfully subscribe to available services, and the like, is a problem that needs to be solved urgently by those skilled in the art at present.
Disclosure of Invention
The invention aims to provide a service inventory management method, which greatly reduces the probability of over-booking of services and unsuccessful booking of available services by a user and realizes effective management of service inventory; another object of the present invention is to provide a service inventory management device, an apparatus, and a computer-readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
a service inventory management method, comprising:
when a service inventory deduction request is received, locking operation is carried out on an inventory deduction thread;
analyzing the service inventory deduction request to obtain a target service time interval and the number to be occupied of a service occupation target;
searching a target inventory occupation deduction record crossed with the target service time interval existing time from an inventory deduction record table, and counting the number of the target inventory occupation deduction records to obtain the number of crossed deduction records;
calculating the sum of the number to be occupied and the number of the cross deduction records, and acquiring the preset maximum inventory in the same time period;
judging whether the sum of the occupied quantity is larger than the maximum inventory in the same time period or not;
and if not, utilizing the inventory deduction thread to carry out inventory deduction operation.
In an embodiment of the present invention, after the performing the inventory deduction operation by using the inventory deduction thread, the method further includes:
carrying out inventory occupation deduction record generation operation;
and updating the inventory deduction record table based on the newly generated inventory occupation deduction record.
In an embodiment of the present invention, after the performing the inventory deduction operation by using the inventory deduction thread, the method further includes:
and releasing the inventory deduction thread.
In one embodiment of the present invention, the method further comprises:
and when the sum of the occupied quantities is determined to be larger than the maximum inventory in the same time period, outputting prompt information of insufficient service inventory.
In an embodiment of the present invention, after the locking operation is performed on the inventory deduction thread, the method further includes:
judging whether the inventory deduction thread is locked successfully or not;
if yes, executing the step of analyzing the service inventory deduction request;
if not, the step of locking the inventory deduction thread is repeatedly executed until the inventory deduction thread is successfully locked.
A service inventory management device, comprising:
the thread locking module is used for locking the inventory deduction thread when receiving the service inventory deduction request;
the request analysis module is used for analyzing the service inventory deduction request to obtain a target service time interval and the number to be occupied of a service occupation target;
the system comprises a record number counting module, a target service time interval calculation module and a service time counting module, wherein the record number counting module is used for searching a target inventory occupation deduction record crossed with the target service time interval existing time from an inventory deduction record table, and counting the number of the target inventory occupation deduction record to obtain the number of crossed deduction records;
the quantity calculation module is used for calculating the sum of the quantity to be occupied and the quantity occupied by the cross deduction record number and acquiring the preset maximum inventory in the same time period;
the first judgment module is used for judging whether the sum of the occupied quantity is larger than the maximum inventory in the same time period or not;
and the inventory deduction module is used for utilizing the inventory deduction thread to carry out inventory deduction operation when the sum of the occupied quantity is determined to be less than or equal to the maximum inventory in the same time period.
In one embodiment of the present invention, the method further comprises:
a deduction record generation module, configured to perform an inventory occupation deduction record generation operation after performing an inventory deduction operation using the inventory deduction thread;
and the record table updating module is used for updating the inventory deduction record table based on the newly generated inventory occupation deduction record.
In one embodiment of the present invention, the method further comprises:
and the thread releasing module is used for releasing the inventory deduction thread after the inventory deduction operation is carried out by utilizing the inventory deduction thread.
A service inventory management device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the service inventory management method as described above when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the service inventory management method as set forth above.
The service inventory management method provided by the invention locks the inventory deduction thread when receiving the service inventory deduction request; analyzing the service inventory deduction request to obtain a target service time interval and the number to be occupied of the service occupation target; searching a target inventory occupation deduction record crossed with the target service time interval existing time from the inventory deduction record table, and counting the number of the target inventory occupation deduction records to obtain the number of the crossed deduction records; calculating the sum of the number to be occupied and the number of the cross deduction records, and acquiring the preset maximum inventory in the same time period; judging whether the sum of the occupied quantity is larger than the maximum inventory in the same time period or not; if not, the stock deduction thread is used for carrying out stock deduction operation.
According to the technical scheme, by setting the inventory deduction thread locking operation, serial processing of the service inventory deduction request is guaranteed, and interference of service reservation competition among multiple users is avoided. By combining the service period and the service crossing time to carry out service inventory management, the probability of unsuccessfully booking service excess and available service by a user is greatly reduced, and the effective management of the service inventory is realized.
Correspondingly, the invention also provides a service inventory management device, equipment and a computer readable storage medium corresponding to the service inventory management method, which have the technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of an implementation of a method for service inventory management according to an embodiment of the invention;
FIG. 2 is a flow chart of another implementation of a method for service inventory management according to an embodiment of the invention;
FIG. 3 is a block diagram of a service inventory management device according to an embodiment of the invention;
FIG. 4 is a block diagram of a service inventory management device according to an embodiment of the invention;
fig. 5 is a schematic structural diagram of a service inventory management device according to this embodiment.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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.
Referring to fig. 1, fig. 1 is a flowchart of an implementation of a service inventory management method according to an embodiment of the present invention, where the method may include the following steps:
s101: when a service inventory deduction request is received, a locking operation is performed on the inventory deduction thread.
And when service subscription is needed, sending a service inventory deduction request to the service inventory management center. And presetting an inventory deduction thread locking mechanism, and locking the inventory deduction thread when the service inventory management center receives the service inventory deduction request. By setting an inventory deduction thread locking mechanism, serial processing of a service inventory deduction request is guaranteed, the service inventory management center only provides inventory deduction service for the user currently, and interference of service reservation competition among multiple users is avoided.
The services to be subscribed to may include store services, employee services, merchandise services, transaction services, and the like.
S102: and analyzing the service inventory deduction request to obtain the target service time interval and the number to be occupied of the service occupation target.
The service inventory deduction request comprises a target service time interval corresponding to the service to be requested and the quantity to be occupied of the service occupation target, wherein the target service time interval is formed by a time interval between a service starting time point and a service ending time point. After locking the inventory deduction thread, the service inventory management center analyzes the received service inventory deduction request to obtain the target service time interval and the number to be occupied of the service occupation target.
S103: and searching a target inventory occupation deduction record crossed with the target service time interval existing time from the inventory deduction record table, and counting the number of the target inventory occupation deduction records to obtain the number of the crossed deduction records.
The method comprises the steps of presetting a stock deduction record table, wherein existing stock occupation deduction records are stored in the stock deduction record table, and if each stock occupation deduction record contains an occupation target, a service time period and the occupation quantity of the occupation target. After the target service time interval corresponding to the service required to be requested and the number to be occupied of the service occupation target are obtained through analysis, the target inventory occupation deduction record crossed with the time existing in the target service time interval is searched from the inventory deduction record table, the number of the target inventory occupation deduction records is counted, the number of the crossed deduction records is obtained, and therefore the number of the inventory occupation deduction records crossed with the service time existing in the service required to be requested is counted and obtained.
S104: and calculating the sum of the number to be occupied and the number of the cross deduction records, and acquiring the preset maximum inventory in the same time period.
After analyzing and obtaining the number to be occupied by the service to be requested to the occupied target, counting and obtaining the number of inventory occupation deduction records crossed with the service time of the service to be requested, the sum of the number to be occupied and the number of the crossed deduction records is calculated, and therefore the total number to be occupied by the target is required after the number to be occupied by the service to be requested is increased.
S105: and judging whether the sum of the occupied quantities is larger than the maximum inventory in the same time period, if so, executing step S106, and if not, executing step S107.
The maximum inventory in the same time period is preset, for example, the maximum inventory in the same time period can be set according to an actual service inventory management scene. And after the sum of the occupied quantity to be occupied and the number of the cross deduction records is obtained through calculation, and the preset maximum inventory in the same time period is obtained, judging whether the sum of the occupied quantity is larger than the maximum inventory in the same time period, if so, indicating that the current inventory residual quantity is smaller than the occupied quantity and the inventory is insufficient, failing to deduct the inventory, executing step S106, otherwise, indicating that the current inventory residual quantity is larger than or equal to the occupied quantity and the current inventory residual quantity is enough for deducting the inventory, and executing step S107.
The inventory occupation deduction records existing in the inventory deduction record table can be inquired at any time point, and the preset maximum inventory in the same time period can be inquired at any time point, so that the service inventory information can be acquired in real time.
S106: and outputting prompt information of insufficient service inventory.
And when the sum of the occupied quantity is larger than the maximum inventory in the same time period, the situation that the current inventory residual quantity is smaller than the quantity to be occupied, the inventory is insufficient, the current inventory deduction fails, and the prompt information of insufficient service inventory is output.
S107: and carrying out inventory deduction operation by utilizing the inventory deduction thread.
And when the sum of the occupied quantity is determined to be less than or equal to the maximum inventory in the same time period, the current inventory surplus is more than or equal to the occupied quantity, the current inventory surplus is enough for the current inventory deduction, and the inventory deduction thread is utilized to carry out inventory deduction operation. The invention realizes inventory management based on time points by combining service duration and service cross time, solves the problems of service overbooking or unsuccessful reservation of available services by a user in a high concurrency scene by setting an inventory deduction thread locking mechanism, can accurately calculate the service inventory residual condition in real time and feed back the service inventory residual condition to the user, and the service inventory management method provided by the invention can be suitable for various business scenes such as store inventory, technician inventory and the like.
According to the technical scheme, the serial processing of the service inventory deduction request is ensured by setting the inventory deduction thread locking operation, the inventory deduction thread is ensured to be occupied by one user at the same time, and the interference of service reservation competition among multiple users is avoided. By combining the service period and the service crossing time to carry out service inventory management, the probability of unsuccessfully booking service excess and available service by a user is greatly reduced, and the effective management of the service inventory is realized.
It should be noted that, based on the above embodiments, the embodiments of the present invention also provide corresponding improvements. In the following embodiments, steps that are the same as or correspond to those in the above embodiments may be referred to one another, and corresponding advantageous effects may also be referred to one another, which is not described in detail in the following modified embodiments.
Referring to fig. 2, fig. 2 is a flowchart of another implementation of a service inventory management method according to an embodiment of the present invention, where the method may include the following steps:
s201: a service inventory deduction request is received.
S202: a lock operation is performed on the inventory deduction thread.
S203: and judging whether the locking of the inventory deduction thread is successful, if so, executing the step S204, and if not, executing the step S202.
When receiving a service inventory deduction request, applying for locking an inventory deduction thread, and judging whether the inventory deduction thread is successfully locked or not, if so, indicating that the inventory deduction thread is currently in an occupied state, and if not, indicating that the inventory deduction thread is currently in an idle state, and if not, successfully applying for locking the inventory deduction thread, and executing step S202.
S204: and analyzing the service inventory deduction request to obtain the target service time interval and the number to be occupied of the service occupation target.
S205: and searching a target inventory occupation deduction record crossed with the target service time interval existing time from the inventory deduction record table, and counting the number of the target inventory occupation deduction records to obtain the number of the crossed deduction records.
S206: and calculating the sum of the number to be occupied and the number of the cross deduction records, and acquiring the preset maximum inventory in the same time period.
S207: and judging whether the sum of the occupied quantities is larger than the maximum inventory in the same time period, if so, executing step S208, and if not, executing step S209.
S208: and outputting prompt information of insufficient service inventory.
S209: and carrying out inventory deduction operation by utilizing the inventory deduction thread.
S210: and performing inventory occupation deduction record generation operation.
After the inventory deduction operation is performed by utilizing the inventory deduction thread, an inventory occupation deduction record generation operation is performed, such as recording an occupation target, a service time period and the occupation quantity of the occupation target corresponding to the service reservation performed this time.
S211: and updating the inventory deduction record table based on the newly generated inventory occupation deduction record.
And after the inventory occupation deduction record is generated, updating the inventory deduction record table based on the newly generated inventory occupation deduction record, so that each inventory occupation deduction record in the inventory deduction record table is kept updated in real time.
S212: a release operation is performed on the inventory deduction thread.
After the prompt information of insufficient service inventory is output or the inventory deduction operation is carried out by utilizing the inventory deduction thread, the service inventory deduction request is processed and released, so that the service inventory deduction request generated subsequently is processed conveniently.
The present embodiment is different from the first embodiment corresponding to the technical solution claimed in independent claim 1, and the technical solutions claimed in dependent claims 2 to 5 are added, and of course, according to different practical situations and requirements, the technical solutions claimed in the dependent claims can be flexibly combined on the basis of not affecting the completeness of the solutions, so as to better meet the requirements of different use scenarios.
Corresponding to the above method embodiment, the present invention further provides a service inventory management device, and the service inventory management device described below and the service inventory management method described above may be referred to in correspondence.
Referring to fig. 3, fig. 3 is a block diagram of a service inventory management device according to an embodiment of the present invention, where the device may include:
a thread locking module 31, configured to lock an inventory deduction thread when receiving a service inventory deduction request;
the request analysis module 32 is configured to analyze the service inventory deduction request to obtain a target service time interval and a to-be-occupied number of a service occupation target;
the record number counting module 33 is configured to search a target inventory occupation deduction record crossed with the target service time interval existing time from the inventory deduction record table, and count the number of the target inventory occupation deduction records to obtain the number of crossed deduction records;
the quantity calculation module 34 is used for calculating the sum of the quantity to be occupied and the quantity occupied by the cross deduction record number, and acquiring the preset maximum inventory in the same time period;
the first judging module 35 is configured to judge whether the sum of the occupied quantities is greater than the maximum inventory in the same time period;
and the inventory deduction module 36 is used for performing inventory deduction operation by utilizing the inventory deduction thread when the sum of the occupied quantities is determined to be less than or equal to the maximum inventory in the same time period.
According to the technical scheme, by setting the inventory deduction thread locking operation, serial processing of the service inventory deduction request is guaranteed, and interference of service reservation competition among multiple users is avoided. By combining the service period and the service crossing time to carry out service inventory management, the probability of unsuccessfully booking service excess and available service by a user is greatly reduced, and the effective management of the service inventory is realized.
In one embodiment of the present invention, the apparatus may further include:
the deduction record generation module is used for generating an inventory occupation deduction record after the inventory deduction operation is carried out by utilizing the inventory deduction thread;
and the record table updating module is used for updating the inventory deduction record table based on the newly generated inventory occupation deduction record.
In one embodiment of the present invention, the apparatus may further include:
and the thread releasing module is used for releasing the inventory deduction thread after the inventory deduction operation is carried out by utilizing the inventory deduction thread.
In one embodiment of the present invention, the apparatus may further include:
and the information output module is used for outputting prompt information of insufficient service inventory when the sum of the occupied quantities is determined to be larger than the maximum inventory in the same time period.
In one embodiment of the present invention, the apparatus may further include:
the second judgment module is used for judging whether the locking of the inventory deduction thread is successful or not after the locking operation of the inventory deduction thread is carried out;
the request analysis module 32 is specifically a module for analyzing the service inventory deduction request when it is determined that the inventory deduction thread is successfully locked;
the thread locking module 31 is further configured to, when it is determined that the inventory deduction thread is successfully unlocked, repeatedly perform the step of locking the inventory deduction thread until the inventory deduction thread is successfully locked.
Corresponding to the above method embodiment, referring to fig. 4, fig. 4 is a schematic diagram of a service inventory management device provided by the present invention, which may include:
a memory 332 for storing a computer program;
a processor 322 for implementing the steps of the service inventory management method of the above-described method embodiments when executing the computer program.
Specifically, referring to fig. 5, fig. 5 is a schematic diagram illustrating a specific structure of a service inventory management device according to this embodiment, which may generate a relatively large difference due to different configurations or performances, and may include a processor (CPU) 322 (e.g., one or more processors) and a memory 332, where the memory 332 stores one or more computer applications 342 or data 344. Memory 332 may be, among other things, transient or persistent storage. The program stored in memory 332 may include one or more modules (not shown), each of which may include a sequence of instructions operating on a data processing device. Still further, the processor 322 may be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the servicing inventory management device 301.
The servicing inventory management apparatus 301 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input-output interfaces 358, and/or one or more operating systems 341.
The steps in the above-described service inventory management method may be implemented by the structure of a service inventory management device.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
when a service inventory deduction request is received, locking operation is carried out on an inventory deduction thread; analyzing the service inventory deduction request to obtain a target service time interval and the number to be occupied of the service occupation target; searching a target inventory occupation deduction record crossed with the target service time interval existing time from the inventory deduction record table, and counting the number of the target inventory occupation deduction records to obtain the number of the crossed deduction records; calculating the sum of the number to be occupied and the number of the cross deduction records, and acquiring the preset maximum inventory in the same time period; judging whether the sum of the occupied quantity is larger than the maximum inventory in the same time period or not; if not, the stock deduction thread is used for carrying out stock deduction operation.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
Claims (10)
1. A method for service inventory management, comprising:
when a service inventory deduction request is received, locking operation is carried out on an inventory deduction thread;
analyzing the service inventory deduction request to obtain a target service time interval and the number to be occupied of a service occupation target;
searching a target inventory occupation deduction record crossed with the target service time interval existing time from an inventory deduction record table, and counting the number of the target inventory occupation deduction records to obtain the number of crossed deduction records;
calculating the sum of the number to be occupied and the number of the cross deduction records, and acquiring the preset maximum inventory in the same time period;
judging whether the sum of the occupied quantity is larger than the maximum inventory in the same time period or not;
and if not, utilizing the inventory deduction thread to carry out inventory deduction operation.
2. The service inventory management method of claim 1, further comprising, after performing an inventory deduction operation using the inventory deduction thread:
carrying out inventory occupation deduction record generation operation;
and updating the inventory deduction record table based on the newly generated inventory occupation deduction record.
3. The service inventory management method according to claim 1 or 2, further comprising, after performing an inventory deduction operation using the inventory deduction thread:
and releasing the inventory deduction thread.
4. The service inventory management method as recited in claim 1, further comprising:
and when the sum of the occupied quantities is determined to be larger than the maximum inventory in the same time period, outputting prompt information of insufficient service inventory.
5. The service inventory management method of claim 1, further comprising, after performing the locking operation on the inventory deduction thread:
judging whether the inventory deduction thread is locked successfully or not;
if yes, executing the step of analyzing the service inventory deduction request;
if not, the step of locking the inventory deduction thread is repeatedly executed until the inventory deduction thread is successfully locked.
6. A service inventory management device, comprising:
the thread locking module is used for locking the inventory deduction thread when receiving the service inventory deduction request;
the request analysis module is used for analyzing the service inventory deduction request to obtain a target service time interval and the number to be occupied of a service occupation target;
the system comprises a record number counting module, a target service time interval calculation module and a service time counting module, wherein the record number counting module is used for searching a target inventory occupation deduction record crossed with the target service time interval existing time from an inventory deduction record table, and counting the number of the target inventory occupation deduction record to obtain the number of crossed deduction records;
the quantity calculation module is used for calculating the sum of the quantity to be occupied and the quantity occupied by the cross deduction record number and acquiring the preset maximum inventory in the same time period;
the first judgment module is used for judging whether the sum of the occupied quantity is larger than the maximum inventory in the same time period or not;
and the inventory deduction module is used for utilizing the inventory deduction thread to carry out inventory deduction operation when the sum of the occupied quantity is determined to be less than or equal to the maximum inventory in the same time period.
7. The service inventory management device according to claim 6, further comprising:
a deduction record generation module, configured to perform an inventory occupation deduction record generation operation after performing an inventory deduction operation using the inventory deduction thread;
and the record table updating module is used for updating the inventory deduction record table based on the newly generated inventory occupation deduction record.
8. The service inventory management device according to claim 6 or 7, characterized by further comprising:
and the thread releasing module is used for releasing the inventory deduction thread after the inventory deduction operation is carried out by utilizing the inventory deduction thread.
9. A service inventory management device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the service inventory management method according to any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the service inventory management method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110499700.XA CN113095769A (en) | 2021-05-08 | 2021-05-08 | Service inventory management method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110499700.XA CN113095769A (en) | 2021-05-08 | 2021-05-08 | Service inventory management method, device, equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113095769A true CN113095769A (en) | 2021-07-09 |
Family
ID=76664292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110499700.XA Pending CN113095769A (en) | 2021-05-08 | 2021-05-08 | Service inventory management method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113095769A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113610417A (en) * | 2021-08-13 | 2021-11-05 | 北京沃东天骏信息技术有限公司 | Data processing method, device, computer system and storage medium |
CN113723892A (en) * | 2021-09-13 | 2021-11-30 | 北京沃东天骏信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103426072A (en) * | 2013-07-16 | 2013-12-04 | 无限极(中国)有限公司 | Order processing system of high concurrency competitive inventory and processing method thereof |
CN107180040A (en) * | 2016-03-09 | 2017-09-19 | 广州市动景计算机科技有限公司 | The management method and device of a kind of business datum |
CN108460507A (en) * | 2017-02-22 | 2018-08-28 | 阿里巴巴集团控股有限公司 | order processing method, transaction system and server |
CN110888893A (en) * | 2019-11-18 | 2020-03-17 | 湖南御家科技有限公司 | Order processing method based on micro-service e-commerce system |
-
2021
- 2021-05-08 CN CN202110499700.XA patent/CN113095769A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103426072A (en) * | 2013-07-16 | 2013-12-04 | 无限极(中国)有限公司 | Order processing system of high concurrency competitive inventory and processing method thereof |
CN107180040A (en) * | 2016-03-09 | 2017-09-19 | 广州市动景计算机科技有限公司 | The management method and device of a kind of business datum |
CN108460507A (en) * | 2017-02-22 | 2018-08-28 | 阿里巴巴集团控股有限公司 | order processing method, transaction system and server |
CN110888893A (en) * | 2019-11-18 | 2020-03-17 | 湖南御家科技有限公司 | Order processing method based on micro-service e-commerce system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113610417A (en) * | 2021-08-13 | 2021-11-05 | 北京沃东天骏信息技术有限公司 | Data processing method, device, computer system and storage medium |
CN113723892A (en) * | 2021-09-13 | 2021-11-30 | 北京沃东天骏信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108595157B (en) | Block chain data processing method, device, equipment and storage medium | |
CN107608773B (en) | Task concurrent processing method and device and computing equipment | |
CN113095769A (en) | Service inventory management method, device, equipment and readable storage medium | |
CN111399909B (en) | Service system data distribution processing method, device and storage medium | |
CN110147470B (en) | Cross-machine-room data comparison system and method | |
CN112688799B (en) | Redis cluster-based client number distribution method and distribution device | |
CN111988429A (en) | Algorithm scheduling method and system | |
CN112799791A (en) | Method and device for calling distributed lock, electronic equipment and storage medium | |
CN109614263B (en) | Disaster tolerance data processing method, device and system | |
CN113111078B (en) | Resource data processing method and device, computer equipment and storage medium | |
CN113312359B (en) | Distributed job progress calculation method and device and storage medium | |
CN112598529B (en) | Data processing method and device, computer readable storage medium and electronic equipment | |
US8924343B2 (en) | Method and system for using confidence factors in forming a system | |
CN112671923B (en) | Unified interface service communication scheduling method and device | |
CN111651522B (en) | Data synchronization method and device | |
CN117608829A (en) | Large-data-volume parallel compensation calculation method based on Akka and kafka | |
CN116074553B (en) | Video stream transmission method, device, electronic equipment and storage medium | |
CN116382929A (en) | Distributed lock processing method, device, electronic equipment and storage medium | |
CN111984473B (en) | Memory snapshot data acquisition method and related device | |
CN115563160A (en) | Data processing method, data processing device, computer equipment and computer readable storage medium | |
CN110705884B (en) | List processing method, device, equipment and storage medium | |
CN112115518A (en) | Service data checking method and device | |
CN110648090A (en) | Logistics process node management method and system | |
CN114598559A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
CN116915664A (en) | Traffic threshold reminding method and device, electronic equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210709 |
|
RJ01 | Rejection of invention patent application after publication |