CN110717810A - Real-time transaction method, device, equipment and computer readable storage medium - Google Patents

Real-time transaction method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110717810A
CN110717810A CN201910957615.6A CN201910957615A CN110717810A CN 110717810 A CN110717810 A CN 110717810A CN 201910957615 A CN201910957615 A CN 201910957615A CN 110717810 A CN110717810 A CN 110717810A
Authority
CN
China
Prior art keywords
commodity
identification
reservation
request
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
Application number
CN201910957615.6A
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201910957615.6A priority Critical patent/CN110717810A/en
Publication of CN110717810A publication Critical patent/CN110717810A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • G06Q30/0637Approvals

Landscapes

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

Abstract

The present disclosure provides a real-time transaction method, apparatus, device and computer-readable storage medium. The method comprises the following steps: receiving a commodity reservation request, and determining whether the commodity can be reserved according to the reservation request; if yes, acquiring an idle commodity identification corresponding to the commodity, and marking the idle commodity identification in a preset state; receiving a purchase request of the commodity, and determining a corresponding target commodity identifier marked as the preset state according to the purchase request; generating a service list corresponding to the purchase request according to the target commodity identification; and updating the mark of the target commodity identification to be in a sold state according to the transaction information corresponding to the target commodity identification, and generating a sales list corresponding to the transaction information. In the method, the equipment, the device and the computer readable storage medium provided by the disclosure, horizontal expansion is supported, high concurrency is supported, the system downtime during a service peak is effectively solved, and better user experience is provided for users.

Description

Real-time transaction method, device, equipment and computer readable storage medium
Technical Field
The disclosure relates to a transaction technology, in particular to a real-time transaction technology, and belongs to the field of communication.
Background
At present, with the development of networks, online shopping has become an indispensable shopping form in people's life, and is convenient and efficient.
In online shopping, a real-time transaction system is a core part, most of the prior art inventions take open source messages as development components, most of the technologies are limited to the Ali technology components, the use of the Ali components is influenced by the fault of a single data node sometimes, when the single node has a problem, the user side does not sense the problem, and the performance of the user side is low when the single node has frequent access to a database, so that the high real-time requirement of a service system cannot be met.
Therefore, the transaction system in the prior art has the technical problem of low real-time performance.
Disclosure of Invention
The present disclosure provides a real-time transaction method, apparatus, device and computer readable storage medium, to solve the problems of low performance and low real-time performance of a service system caused by frequent access of a database in the prior art.
A first aspect of the present disclosure provides a real-time transaction method, including:
receiving a commodity reservation request, and determining whether the commodity can be reserved according to the reservation request;
if yes, acquiring an idle commodity identification corresponding to the commodity, and marking the idle commodity identification in a preset state;
receiving a purchase request of the commodity, and determining a corresponding target commodity identifier marked as the preset state according to the purchase request;
generating a service list corresponding to the purchase request according to the target commodity identification;
and updating the mark of the target commodity identification to be in a sold state according to the transaction information corresponding to the target commodity identification, and generating a sales list corresponding to the transaction information.
Another aspect of the present disclosure is to provide a real-time transaction apparatus including:
the reservation request receiving module is used for receiving a commodity reservation request and determining whether the commodity can be reserved according to the reservation request;
the reservation marking module is used for acquiring an idle commodity identification corresponding to the commodity if the reservation can be carried out, and marking the idle commodity identification in a reservation state;
the purchase request receiving module is used for receiving the purchase request of the commodity and determining the corresponding target commodity identifier marked to be in the preset state according to the purchase request;
the business list generating module is used for generating a business list corresponding to the purchase request according to the target commodity identification;
and the sales list generating module is used for updating the mark of the target commodity identifier into a sold state according to the transaction information corresponding to the target commodity identifier and generating a sales list corresponding to the transaction information.
Yet another aspect of the present disclosure is to provide a real-time transaction apparatus including:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the real-time transaction method as described in the first aspect above.
Yet another aspect of the present disclosure is to provide a computer readable storage medium having stored thereon a computer program for execution by a processor to implement the real-time transaction method as described in the first aspect above.
The present disclosure provides a real-time transaction method, apparatus, device and computer-readable storage medium. The method comprises the following steps: receiving a commodity reservation request, and determining whether the commodity can be reserved according to the reservation request; if yes, acquiring an idle commodity identification corresponding to the commodity, and marking the idle commodity identification in a preset state; receiving a purchase request of the commodity, and determining a corresponding target commodity identifier marked as the preset state according to the purchase request; generating a service list corresponding to the purchase request according to the target commodity identification; and updating the mark of the target commodity identification to be in a sold state according to the transaction information corresponding to the target commodity identification, and generating a sales list corresponding to the transaction information. In the method, the equipment, the device and the computer readable storage medium provided by the disclosure, horizontal expansion is supported, high concurrency is supported, the system downtime during a service peak is effectively solved, and better user experience is provided for users. The problem of high reliability is solved, and data safety is effectively guaranteed.
Drawings
FIG. 1 is a system architecture diagram illustrating a real-time transaction method in accordance with an exemplary embodiment of the present invention;
FIG. 2 is a flow diagram illustrating a real-time transaction method according to an exemplary embodiment of the invention;
FIG. 3 is a flow chart illustrating a real-time transaction method according to another exemplary embodiment of the present invention;
FIG. 4 is a block diagram illustrating a real-time transaction device in accordance with an exemplary embodiment of the present invention;
FIG. 5 is a block diagram of a real-time transaction device according to another exemplary embodiment of the present invention;
fig. 6 is a block diagram illustrating a real-time transaction apparatus according to an exemplary embodiment of the present invention.
Detailed Description
With the development of science and technology, the requirements of users on real-time transaction systems are higher and higher. In the prior art, open source messages are mostly used as development components, the method is not limited to the Ali technical components, the phenomenon of low performance caused by frequent access to a database is avoided, and the requirement of high instantaneity of a service system is met.
Fig. 1 is a system architecture diagram illustrating an exemplary embodiment of the present invention.
As shown in fig. 1, the system architecture may include a terminal device 101, a server 102. The terminal device 101 may interact with the server 102. For example, the user may perform operations on the terminal apparatus 101, perform operations such as reservation, purchase, and the like of goods, thereby enabling the terminal apparatus 101 to generate messages based on the operations, and interact with the server 102.
Various shopping client applications may be installed on the terminal device 101.
The server 102 may be a server that provides various services, such as processing received communication data of the terminal apparatus 101. For example, in response to a predetermined message sent by the terminal device and a message for a purchase, for example, the server 102 may generate an order based on these messages.
The server may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices and servers in fig. 1 is merely illustrative. There may be any number of terminal devices and servers, as desired for implementation.
Fig. 2 is a flow chart illustrating a real-time transaction method according to an exemplary embodiment of the invention.
As shown in fig. 2, the method provided by this embodiment includes:
step 201, receiving a commodity reservation request, and determining whether the commodity can be reserved according to the reservation request.
The method provided by the embodiment may be executed by an electronic device with computing capability, for example, a server in the system architecture shown in fig. 1.
Wherein, the user can use the terminal device as shown in fig. 1 to perform the reservation and purchase operation of the commodity.
The user can operate on the terminal device, select a desired product, and perform a predetermined operation. For example, the user may open an introduction page of one article in the terminal device, a predetermined key may be displayed in the introduction page, and the user may click a predetermined operation to enable the terminal device to transmit a predetermined request corresponding to the article to the server.
Specifically, after receiving a commodity reservation request sent by the terminal device, the server may obtain a commodity identifier corresponding to the commodity. The product identification may be in the form of a string code, for example, a string of numbers.
Further, the server side may store a plurality of identifiers corresponding to the goods, for example, if there is a mobile phone with a model a as a good, a plurality of goods identifiers corresponding to the mobile phone with the model a may be stored, and each goods identifier corresponds to a real good. For example, if there are 1000 mobile phones with model a in total, there are 1000 product identifiers corresponding to the mobile phones.
In practical application, the product identifier may further have tag information, for example, after a product is ordered, a product identifier tag corresponding to the product is marked as predetermined to indicate that the actual product corresponding to the identifier is predetermined. For another example, after the article is purchased, a article tag corresponding to the article is marked as purchase to indicate that the actual article corresponding to the identifier is purchased. And the commodity identification corresponding to the actual commodity which is not marked is the idle commodity identification.
After receiving the commodity reservation request, the server may determine the commodity identifier corresponding to the commodity according to the commodity reservation request. For example, the article reservation request may include article information such as the name, model, and the like of the article. The server may determine the corresponding product identifier according to the product information.
Specifically, a database may be maintained, which includes a correspondence between the commodity information and the commodity identifier, so that the corresponding commodity identifier may be determined according to the commodity information.
Further, whether the determined commodity identification has an idle commodity identification or not can be judged, and if yes, the commodity can be determined to be reserved; otherwise, the goods cannot be ordered. If no free goods identification exists, the goods can be considered to be reserved or purchased in all, that is, no free inventory goods can be reserved by the user. Therefore, it can be determined that the article cannot be reserved.
In actual application, if the goods can be reserved, step 202 is executed, and if the goods cannot be reserved, the server may feed back to the terminal device that the goods are not available, or that the goods are all sold, or that the goods are all reserved, or the like.
Step 202, obtaining an idle commodity identification corresponding to the commodity, and marking the idle commodity identification in a preset state.
If the server determines that the commodity can be reserved, namely the commodity has the corresponding free commodity identification, the server can acquire the free commodity identification corresponding to the commodity and then mark the state of the free commodity as the reserved state. For example, when a user needs to purchase a mobile phone of a model a, the mobile phone of the model a has 1000 physical commodities, and each commodity corresponds to one identifier. 400 reserved goods identifications are written in the stock reservation table, the server selects one of the remaining 600 goods identifications which are not written in the stock reservation table as a reserved goods of the user, and writes the identification of the goods in the stock reservation table, which indicates that the goods are reserved. All the reserved commodity identifications are recorded in the stock reservation table to prevent one commodity from being reserved repeatedly, and when the user does not send a payment request to the server for half an hour, the commodity is released from the stock reservation table to enable the commodity identification to be in an idle state.
Step 203, receiving the purchase request of the commodity, and determining the corresponding target commodity identifier marked as the predetermined state according to the purchase request.
After the user finishes reserving the commodities, the user can purchase the corresponding commodities. For example, the user terminal operates to click a purchase button. So that the user terminal can transmit a purchase request for the goods to the server.
And after receiving the purchase request sent by the user terminal, the server determines the target commodity corresponding to the purchased commodity according to the purchase request of the user. Specifically, the identifier of the product predetermined by the user may be determined according to the user information, and the identifier may be determined as the target product identifier.
For example, when the server receives a purchase request from the user, the server finds information of a product reserved by the user in the inventory reservation table, for example, the product reserved by the system is 01 when the user reserves, and the server determines the product identification 01 as a target identification of a product which the user can buy. The product identifier includes various attributes of the product, such as various information of color, specification size, manufacturer, date of manufacture, batch of manufacture, etc., and may be a serial code composed of a plurality of numbers or letters, and the product identifier 01 in this example is used by way of example only.
And 204, generating a service list corresponding to the purchase request according to the target commodity identification.
After the target commodity identification is obtained, a business list can be generated according to the commodity identification and the purchasing user, and the business list records the purchasing user and the corresponding commodity identification. The business list may further include specific order information, such as price information, target product identification, purchaser information, receiving address information, shipping address information, and the like.
Step 205, updating the mark of the target commodity identifier to be a sold state according to the transaction information corresponding to the target commodity identifier, and generating a sales list corresponding to the transaction information.
Specifically, after the user pays, the server may further generate transaction information corresponding to the target product identifier. The transaction information includes user information, commodity identification, transaction time, transaction amount, distribution address, and the like. And may mark the target item identification as sold.
For example, the identification of the goods purchased by the user may be written into the inventory occupancy table, which indicates that the goods are already sold, and all the sold goods identifications are recorded in the inventory occupancy table. The server generates a sales list according to the transaction information, and the sales list records the transaction information of all users. For example, if the user a purchases an article whose article identifier 01, and the server adds the article identifier 01 to the inventory accounting table, it indicates that the article has been sold. The transaction information of the user A is that the purchased commodity is marked as 01, the transaction time is No. 8/30 in 2019, the transaction amount is 5000 yuan, the distribution address is a place B, and the transaction information is written into a sales list. The product identifier includes various attributes of the product, such as various information of color, specification size, manufacturer, date of manufacture, batch of manufacture, etc., and may be a serial code composed of a plurality of numbers or letters, and the product identifier 01 in this example is used by way of example only.
The method provided by the embodiment is used for real-time transaction, and is executed by a device provided with the method provided by the embodiment, and the device is generally realized in a hardware and/or software mode.
The real-time transaction method provided by the embodiment comprises the following steps: receiving a commodity reservation request, and determining whether the commodity can be reserved according to the reservation request; if yes, acquiring an idle commodity identification corresponding to the commodity, and marking the idle commodity identification in a preset state; receiving a purchase request of the commodity, and determining a corresponding target commodity identifier marked as the preset state according to the purchase request; generating a service list corresponding to the purchase request according to the target commodity identification; and updating the mark of the target commodity identification to be in a sold state according to the transaction information corresponding to the target commodity identification, and generating a sales list corresponding to the transaction information. The method provided by the embodiment supports horizontal expansion, supports high concurrency, effectively solves the system downtime during the service peak, and provides better user experience for users.
Fig. 3 is a flowchart illustrating a real-time transaction method according to another exemplary embodiment of the present invention.
As shown in fig. 3, the real-time transaction method provided in this embodiment includes:
step 301, receiving a merchandise reservation request.
The principle and implementation of step 301 is the same as that of step 201, and will not be described again.
After step 301, step 302A may be executed, or step 302B may be executed, and the method provided by the embodiment provides two different ways of determining whether the product can be predetermined.
Step 302A, determining a commodity identification corresponding to a commodity according to the commodity reservation request, judging whether an idle commodity identification exists, and if so, determining that the commodity can be reserved; otherwise, it is determined that the article cannot be reserved.
The server receives a reservation request sent by the user terminal, judges whether an idle commodity identification exists, wherein the idle commodity identification refers to an identification which is not written in the inventory reservation table, if so, the commodity can be reserved, otherwise, the commodity cannot be reserved. For example: the server receives a reservation request sent by a user terminal, and if all the product identifications are written in the inventory reservation table, the user cannot reserve, and if 100 machines are written in the inventory reservation table and 50 machines are not written in the inventory reservation table, the product can be reserved.
Step 302B, obtaining inventory information corresponding to the commodity, and determining whether the commodity can be reserved according to the inventory information, where the inventory information includes a saleable quantity and a bookable quantity.
The saleable quantity refers to the quantity of commodities that can be sold, and the bookable quantity refers to the quantity of commodities that can be booked.
Judging whether the goods can be reserved according to the inventory information of the goods, for example: if there are 1000 model a handsets, and there are already 200 handsets reserved, then the model a handsets may be reserved by a number of 800. If 50 mobile phones are sold after the reservation, the number of sellable products is updated to 950, and the number of bookable products is still 800. Assuming that there is another handset of the model subscribed by the user, the subscription number is 100, the subscription number will be updated to 700.
Step 303, if yes, acquiring an idle commodity identification corresponding to the commodity, and marking the idle commodity identification in a preset state.
Step 303 is similar to step 202 in implementation principle and manner, and is not described again.
And step 304, updating the inventory information corresponding to the commodity.
Wherein the inventory information includes a saleable quantity and a bookable quantity.
After the server receives the reservation request of the user and reserves the commodity for the user, the server needs to update the inventory information in time so as to know the commodity condition in time.
The number available for sale is the number of products that have not been sold in stock, and for example, the number available for sale for one mobile phone may be 1000.
Specifically, the bookable quantity refers to an amount of goods that is not booked, for example, if the number of mobile phones of a model is 1000, and 100 of them are booked, the bookable quantity of mobile phones of the model is 900. Step 305 may be performed if the user wishes to purchase a predetermined item, and step 309 may be performed if the user wishes to cancel the predetermined item.
Step 305, receiving a purchase request of the commodity, and determining a corresponding target commodity identifier marked as the predetermined state according to the purchase request.
Step 306, generating a service list corresponding to the purchase request according to the target commodity identification.
Step 305-306 is similar to step 203-204 and will not be described again.
Step 307, clearing the preset state of the target commodity identification according to the transaction information corresponding to the target commodity identification; and marking the target commodity identification as the sold state.
After the server marks the item identification as a sold state, step 304 may be executed to update the inventory information. For example, when the available inventory is 1000, if the user sends a purchase request to the server and the transaction is successful, that is, if the user purchases a mobile phone, the server first clears the information ordered by the client in the inventory ordering table, and the server marks the identification corresponding to the product as the sold state and updates the available inventory to 999.
And 308, generating a sales list corresponding to the transaction information.
Step 308 is similar to the implementation and principle of generating the sales list in step 205, and is not described again.
Step 307 may be followed by step 304 of updating the inventory information based on the identity of the goods sold.
Step 309, receiving the cancellation reservation request of the commodity, and determining the commodity identification of the commodity which is cancelled for reservation according to the cancellation reservation request.
Step 310, clearing the predetermined state of the commodity identification.
Step 304 of updating the inventory information corresponding to the goods may also be performed after step 310.
If the user wishes to cancel the reservation of a commodity, the user terminal may be operated to send a cancel reservation request to the server.
The server receives the user's request for canceling the reservation, clears the reservation information in the inventory reservation table, and updates the inventory information. For example, the number of currently available goods is 1000, the number of bookable goods is 100, the server receives the request for canceling the booking, the user cancels the booking of one goods, the corresponding booking information in the inventory booking table is cleared, and the number of bookable goods is updated to 101.
Fig. 4 is a block diagram illustrating a real-time transaction apparatus according to an exemplary embodiment of the present invention.
As shown in fig. 4, the real-time transaction apparatus provided in this embodiment includes:
a reservation request receiving module 41, configured to receive a commodity reservation request, and determine whether the commodity can be reserved according to the reservation request;
a reservation marking module 42, configured to, if the reservation can be made, obtain an idle product identifier corresponding to the product, and mark the idle product identifier in a reservation state;
a purchase request accepting module 43, configured to receive a purchase request of the commodity, and determine, according to the purchase request, a corresponding target commodity identifier marked as the predetermined state;
a service list generating module 44, configured to generate a service list corresponding to the purchase request according to the target product identifier;
and the sales list generating module 45 is configured to update the mark of the target commodity identifier to a sold state according to the transaction information corresponding to the target commodity identifier, and generate a sales list corresponding to the transaction information.
The real-time transaction device provided by the embodiment comprises a reservation request receiving module, a reservation marking module, a purchase request receiving module, a business list generating module and a sales list generating module. The reservation request receiving module is used for receiving a commodity reservation request and determining whether the commodity can be reserved according to the reservation request; the reservation marking module is used for acquiring an idle commodity identification corresponding to the commodity if the reservation can be carried out, and marking the idle commodity identification in a reservation state; the purchase request receiving module is used for receiving the purchase request of the commodity and determining the corresponding target commodity identifier marked to be in the preset state according to the purchase request; the business list generating module is used for generating a business list corresponding to the purchase request according to the target commodity identification; and the sales list generating module is used for updating the mark of the target commodity identifier into a sold state according to the transaction information corresponding to the target commodity identifier and generating a sales list corresponding to the transaction information. The device provided by the embodiment supports horizontal expansion, supports high concurrency, effectively solves the system downtime during the service peak, and provides better user experience for users.
The specific principle and implementation of the apparatus provided in this embodiment are similar to those of the embodiment shown in fig. 2, and are not described here again.
Fig. 5 is a block diagram illustrating a real-time transaction apparatus according to another exemplary embodiment of the present invention.
As shown in fig. 5, on the basis of the above embodiment, the real-time transaction apparatus provided in this embodiment further includes:
the idle product identifier determining module 41A is specifically configured to:
determining a commodity identification corresponding to the commodity according to the commodity reservation request, judging whether an idle commodity identification exists, and if so, determining that the commodity can be reserved; otherwise, it is determined that the article cannot be reserved.
The inventory acquisition module 41B is specifically configured to:
acquiring inventory information corresponding to the commodity, and determining whether the commodity can be reserved according to the inventory information, wherein the inventory information comprises the available quantity and the reserved quantity.
The predetermined marking module 42 is specifically configured to:
if yes, acquiring an idle commodity identification corresponding to the commodity, and marking the idle commodity identification in a preset state;
optionally, the apparatus further comprises an inventory update module 48 configured to:
updating inventory information corresponding to the commodities;
and/or updating the mark of the target commodity mark to be sold, and updating inventory information corresponding to the commodity;
wherein the inventory information includes a saleable quantity and a bookable quantity.
The purchase request accepting module 43 is specifically configured to:
receiving a purchase request of the commodity, and determining a corresponding target commodity identifier marked as the preset state according to the purchase request;
the service list generation module 44 is specifically configured to:
generating a service list corresponding to the purchase request according to the target commodity identification;
the scheduled purge module 46 is specifically configured to:
receiving a reservation canceling request of the commodity, and determining a commodity identifier of the commodity subjected to reservation canceling according to the reservation canceling request;
the sales list generation module 45 is specifically configured to:
and updating the mark of the target commodity identification to be in a sold state according to the transaction information corresponding to the target commodity identification, and generating a sales list corresponding to the transaction information. ,
the specific principle and implementation of the apparatus provided in this embodiment are similar to those of the embodiment shown in fig. 3, and are not described herein again.
As shown in fig. 6, the real-time transaction apparatus provided in this embodiment includes:
a memory 61;
a processor 62; and
a computer program;
wherein the computer program is stored in the memory 61 and configured to be executed by the processor 62 to implement any of the real-time transaction methods described above.
The present embodiments also provide a computer-readable storage medium, having stored thereon a computer program,
the computer program is executed by a processor to implement any of the real-time transaction methods described above.
The present embodiment also provides a computer program comprising program code for performing any of the real-time transaction methods as described above when the computer program is run by a computer.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A real-time transaction method, comprising:
receiving a commodity reservation request, and determining whether the commodity can be reserved according to the reservation request;
if yes, acquiring an idle commodity identification corresponding to the commodity, and marking the idle commodity identification in a preset state;
receiving a purchase request of the commodity, and determining a corresponding target commodity identifier marked as the preset state according to the purchase request;
generating a service list corresponding to the purchase request according to the target commodity identification;
and updating the mark of the target commodity identification to be in a sold state according to the transaction information corresponding to the target commodity identification, and generating a sales list corresponding to the transaction information.
2. The method of claim 1, wherein the determining whether the item can be reserved according to the reservation request comprises:
determining a commodity identification corresponding to the commodity according to the commodity reservation request, judging whether an idle commodity identification exists, and if so, determining that the commodity can be reserved; otherwise, it is determined that the article cannot be reserved.
3. The method of claim 1,
after the idle commodity identification mark is in a preset state, updating inventory information corresponding to the commodity;
and/or updating the mark of the target commodity mark to be sold, and updating inventory information corresponding to the commodity;
wherein the inventory information includes a saleable quantity and a bookable quantity.
4. The method of claim 3, wherein said determining whether the item can be reserved according to the reservation request comprises:
acquiring inventory information corresponding to the commodity, and determining whether the commodity can be reserved according to the inventory information, wherein the inventory information comprises the available quantity and the reserved quantity.
5. The method of claim 3, further comprising:
receiving a reservation canceling request of the commodity, and determining a commodity identifier of the commodity subjected to reservation canceling according to the reservation canceling request;
and clearing the preset state of the commodity identification, and updating the inventory information corresponding to the commodity.
6. The method of claim 3, wherein the updating the indicia of the target item identification to a sold status comprises:
clearing the preset state of the target commodity identification;
and marking the target commodity identification as the sold state.
7. A real-time transaction apparatus, comprising:
the reservation request receiving module is used for receiving a commodity reservation request and determining whether the commodity can be reserved according to the reservation request;
the reservation marking module is used for acquiring an idle commodity identification corresponding to the commodity if the reservation can be carried out, and marking the idle commodity identification in a reservation state;
the purchase request receiving module is used for receiving the purchase request of the commodity and determining the corresponding target commodity identifier marked to be in the preset state according to the purchase request;
the business list generating module is used for generating a business list corresponding to the purchase request according to the target commodity identification;
and the sales list generating module is used for updating the mark of the target commodity identifier into a sold state according to the transaction information corresponding to the target commodity identifier and generating a sales list corresponding to the transaction information.
8. The real-time transaction apparatus according to claim 7, wherein the free commodity identification determination module is specifically configured to:
determining a commodity identification corresponding to the commodity according to the commodity reservation request, judging whether an idle commodity identification exists, and if so, determining that the commodity can be reserved; otherwise, it is determined that the article cannot be reserved.
9. A real-time transaction apparatus, comprising:
a memory;
a processor; and
a computer program;
wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any of claims 1-6.
10. A computer-readable storage medium, having stored thereon a computer program,
the computer program is executed by a processor to implement the method according to any one of claims 1-6.
CN201910957615.6A 2019-10-10 2019-10-10 Real-time transaction method, device, equipment and computer readable storage medium Pending CN110717810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910957615.6A CN110717810A (en) 2019-10-10 2019-10-10 Real-time transaction method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910957615.6A CN110717810A (en) 2019-10-10 2019-10-10 Real-time transaction method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110717810A true CN110717810A (en) 2020-01-21

Family

ID=69211314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910957615.6A Pending CN110717810A (en) 2019-10-10 2019-10-10 Real-time transaction method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110717810A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113570302A (en) * 2021-06-30 2021-10-29 杭州万纵信息科技有限公司 Cross-border e-commerce pre-sale management method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160321743A1 (en) * 2005-06-30 2016-11-03 Ebay Inc. Business event processing
CN106294746A (en) * 2016-08-10 2017-01-04 中国银行股份有限公司 A kind of concurrent transaction data processing method and device
CN107341624A (en) * 2016-04-29 2017-11-10 苏宁云商集团股份有限公司 A kind of processing method and processing device of business datum
CN108122145A (en) * 2016-11-28 2018-06-05 阿里巴巴集团控股有限公司 A kind of production method of cloud computing commodity and device, electronic equipment
CN108460507A (en) * 2017-02-22 2018-08-28 阿里巴巴集团控股有限公司 order processing method, transaction system and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160321743A1 (en) * 2005-06-30 2016-11-03 Ebay Inc. Business event processing
CN107341624A (en) * 2016-04-29 2017-11-10 苏宁云商集团股份有限公司 A kind of processing method and processing device of business datum
CN106294746A (en) * 2016-08-10 2017-01-04 中国银行股份有限公司 A kind of concurrent transaction data processing method and device
CN108122145A (en) * 2016-11-28 2018-06-05 阿里巴巴集团控股有限公司 A kind of production method of cloud computing commodity and device, electronic equipment
CN108460507A (en) * 2017-02-22 2018-08-28 阿里巴巴集团控股有限公司 order processing method, transaction system and server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113570302A (en) * 2021-06-30 2021-10-29 杭州万纵信息科技有限公司 Cross-border e-commerce pre-sale management method and system

Similar Documents

Publication Publication Date Title
CN105096015B (en) Commodity object information processing method and system
CN107886285A (en) Supply and marketing management method, equipment and computer-readable recording medium
US20130246211A1 (en) System and method for providing mobile device trade in value quotations
US20120233237A1 (en) Dynamic data transaction processing using gating criteria
CN105279631A (en) Article distribution method and apparatus
CN110659859B (en) E-commerce order inventory ERP management method and system
CN112074859A (en) Welfare type low-price mall system and operation method thereof
CN115953157A (en) Method and device for automatically changing numerical value in order through sharing
CN101206753A (en) Electric commerce implementing method and electric commerce server as well as electric commerce client
US20150073840A1 (en) Information processing device, program and electronic receipt system
CN111353841A (en) Document data processing method, device and system
US20130317907A1 (en) Business to Consumer Marketing
CN110163632A (en) Withdrawing method and its system, user terminal
CN110717810A (en) Real-time transaction method, device, equipment and computer readable storage medium
CN113362085A (en) Primary and secondary account management method and system
CN102880980A (en) System for purchasing a plurality of products on mobile phone
CN115357766B (en) Data matching method and related device
JP5878901B2 (en) Information processing apparatus and program
JP2010055316A (en) Customer information management system
CN108428047A (en) A kind of building work smart allocation method, apparatus and system
CN114022064A (en) Associated transaction order management method, device and equipment based on transaction link
CN111199427B (en) Grouping management method and device for network users, electronic equipment and storage medium
JP2008134909A (en) Warranty system
US20110131143A1 (en) Patent-Product Information Distribution Systems and Methods
CN111435508B (en) Method and device for processing information of resource issuing terminal

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: 20200121

RJ01 Rejection of invention patent application after publication