CN110443684B - Combined product snapshot type price information processing method and device - Google Patents

Combined product snapshot type price information processing method and device Download PDF

Info

Publication number
CN110443684B
CN110443684B CN201910716625.0A CN201910716625A CN110443684B CN 110443684 B CN110443684 B CN 110443684B CN 201910716625 A CN201910716625 A CN 201910716625A CN 110443684 B CN110443684 B CN 110443684B
Authority
CN
China
Prior art keywords
price
product
combined product
atomic
sequence string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910716625.0A
Other languages
Chinese (zh)
Other versions
CN110443684A (en
Inventor
黄少波
罗剑平
李逶
王子飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910716625.0A priority Critical patent/CN110443684B/en
Publication of CN110443684A publication Critical patent/CN110443684A/en
Application granted granted Critical
Publication of CN110443684B publication Critical patent/CN110443684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0611Request for offers or quotes

Abstract

The application provides a combined product snapshot type price information processing method and a device, wherein the combined product snapshot type price information processing method comprises the following steps: receiving ordering request data of the combined product sent by a sale front end; the ordering request data comprises the latest price and the price snapshot sequence string of the combined product, and the ordering request data is obtained in advance by the selling front end before a purchase request of a customer for the combined product is received; acquiring latest price data and a price snapshot sequence string in a combined product price list of the combined product; and comparing the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in the price list of the combined product respectively to realize transaction verification. The method and the device can enable the verification and the accounting of the combined product selling price to be simpler and more efficient, save system resource overhead, improve the possibility of successful processing of selling transaction data and improve user experience.

Description

Combined product snapshot type price information processing method and device
Technical Field
The present application relates to security authentication technologies and internet technologies, and in particular, to a method and an apparatus for processing snapshot-type price information of a combination product.
Background
With the rapid development of internet information technology, various electronic commerce sales platforms in various industries appear in China to meet the increasing living demands of people in China. In the e-commerce sales mode, there is a mode in which atomic products are packaged into a combination product for sale: the quotation object is an atomic product, the sales object is a combined product, and the accounting object is an atomic product. In order to reduce the burden of the system, generally speaking, the system does not calculate the price of the combined product for use according to the association relation information of the combined product and the atomic product in real time when a customer purchases the product and the price of the combined product is calculated according to the price of the atomic product.
In the mode of packaging the atomic product into the combined product for sale, in the process of purchasing the combined product by a customer, the situation that the atomic product is just bidding again exists, if the combined product sale transaction is allowed to be executed continuously at the moment, the total price point calculation is unequal, the total point accounting is unequal, and finally the sale transaction has to be refused to be executed continuously. When the atomic product is frequently quoted or the total time of single quoted price is long due to the huge number of the atomic products, a large number of sales transactions are possibly rejected and failed, so that the user experiences very poor experience on e-commerce shopping.
Disclosure of Invention
Aiming at the problems in the prior art, the application provides a combined product snapshot type price information processing method, which aims to solve the problem that in the prior art, a large number of sales transactions are rejected and fail due to the fact that the atomic product is frequently quoted or the number of the atomic products is huge, so that the total time of single quotation is long.
In order to solve the technical problem, the application provides the following technical scheme:
in a first aspect, the present application provides a combined product snapshot type price information processing method, including:
receiving ordering request data of the combined product sent by a sale front end; the ordering request data comprises the latest price and the price snapshot sequence string of the combined product, and the ordering request data is obtained in advance by the selling front end before a purchase request of a customer for the combined product is received;
acquiring latest price data and a price snapshot sequence string in a combined product price list of the combined product;
and comparing the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in the price list of the combined product respectively to realize transaction verification.
Further, the combined product snapshot type price information processing method further comprises the following steps: and generating the combined product price table, wherein the combined product price table comprises a combined product name, a combined product price and a price snapshot sequence string.
Further, the generating the price list of the combined product comprises:
generating a price snapshot sequence string according to relevant information when the combined product is quoted every time;
acquiring quotation data of original sub-products in the combined product, and adding the quotation data of the atomic product and the price snapshot sequence string of the quotation into an atomic product price list of a database, wherein the atomic product price list stores atomic product names, atomic product prices and the price snapshot sequence string;
calculating the latest price of the combined product according to the atomic product price table and a pre-established association relation table of the combined product and the atomic product;
inserting the latest price of the combined product and the sequence string of price snapshots into the price table of the combined product.
Further, the generating a price snapshot sequence string according to the related information includes:
and acquiring the timestamp information of the current moment and converting and generating a price snapshot sequence string according to the timestamp information.
Further, the adding the quote data of the atomic product and the price snapshot sequence string of the quote into the atomic product price table of the database includes:
and adding the quotation data of the atomic products into the corresponding price field of each atomic product in the price list of the atomic products, and adding the price snapshot sequence string of the quotation into the price snapshot sequence string field of the price list of the atomic products.
Further, the combined product snapshot type price information processing method further comprises the following steps:
and establishing the association relation table according to the relevant information of the combined product, wherein the association relation table comprises the name of the combined product, the contained atomic products and the quantity of each atomic product.
In a second aspect, there is provided a combination product snapshot type price information processing apparatus including:
the order placing request receiving unit is used for receiving order placing request data of the combined product sent by the selling front end; the ordering request data comprises the latest price and the price snapshot sequence string of the combined product, and the ordering request data is obtained in advance by the selling front end before a purchase request of a customer for the combined product is received;
the information receiving unit is used for acquiring the latest price data and the price snapshot sequence string in the price list of the combined product;
and the information processing unit is used for comparing the latest price and the price snapshot sequence string in the ordering request data with the latest price data and the price snapshot sequence string in the price list of the combined product respectively to realize transaction verification.
Further, the combined product snapshot type price information processing apparatus further includes:
and the combined product price table generating unit is used for generating the combined product price table, and the combined product price table comprises a combined product name, a combined product price and a price snapshot sequence string.
Further, the combination product price table generating unit includes:
the sequence string generating module is used for generating a price snapshot sequence string according to the related information when the combined product is quoted each time, and the sequence string is globally unique in all quoted batches;
the atomic product price list processing module is used for acquiring quotation data of atomic products in the combined product, and adding the quotation data of the atomic products and the price snapshot sequence string of the quotation into an atomic product price list of a database, wherein the atomic product price list stores atomic product names, atomic product prices and the price snapshot sequence string;
the price generating unit is used for calculating the latest price of the combined product according to the atomic product price table and a pre-established association relation table of the combined product and the atomic product;
inserting the latest price of the combined product and the sequence string of price snapshots into the price table of the combined product.
Further, the sequence string generation module comprises:
the timestamp acquisition module is used for acquiring timestamp information of the current moment;
and the sequence string generation submodule is used for generating a price snapshot sequence string according to the timestamp information.
Further, the atomic product price list processing module is specifically configured to:
and adding the quotation data of the atomic products into the corresponding price field of each atomic product in the price list of the atomic products, and adding the price snapshot sequence string of the quotation into the price snapshot sequence string field of the price list of the atomic products.
Further, the combined product snapshot type price information processing apparatus further includes: and the incidence relation table calculation unit is used for establishing the incidence relation table according to the relevant information of the combined product, and the incidence relation table comprises the name of the combined product, the contained atomic products and the quantity of each atomic product.
In a third aspect, a combined product snapshot type price information processing method is provided, including:
acquiring a combined product purchase request of a customer;
and sending the order placing request data acquired in advance to a sales background server based on the combined product purchase request so that the sales background server compares the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in a pre-created combined product price list respectively to realize transaction verification.
Further, the combined product snapshot type price information processing method further comprises the following steps:
sending an information acquisition request of the combined product to the sales background server;
and receiving the relevant attribute information of the combined product fed back by the sales background server, wherein the relevant attribute information comprises the latest price and the price snapshot sequence string in the ordering request data.
In a fourth aspect, there is provided a sales front-end comprising:
a request acquisition unit for acquiring a combined product purchase request of a customer;
and the data sending unit is used for sending the order placing request data acquired in advance to the sales background server based on the combined product purchase request so that the sales background server compares the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in a pre-established combined product price list respectively to realize transaction verification.
Further, the sales front end further comprises:
the request sending unit is used for sending an information acquisition request of the combined product to the sales background server;
and the information receiving unit is used for receiving the relevant attribute information of the combined product fed back by the sales background server, wherein the relevant attribute information comprises the latest price and the price snapshot sequence string in the ordering request data.
In a fifth aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the combined product snapshot-type price information processing method when executing the program.
In a fifth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned combined product snapshot-type price information processing method.
The method and the device can enable the verification and the accounting of the combined product selling price to be simpler and more efficient, save system resource overhead, improve the possibility of successful processing of selling transaction data and improve user experience.
Drawings
In order to more clearly illustrate the embodiments of the present application 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 application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a combined product snapshot type price information processing method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating the generation of a price list for a combination product according to an embodiment of the present application;
FIG. 3 is a block diagram of a snapshot-type price information processing apparatus for a combined product according to an embodiment of the present application;
fig. 4 is a block diagram of a snapshot-type price information processing apparatus for a combined product according to an embodiment of the present application;
fig. 5 is a block diagram showing a structure of a combined product price table generating unit according to an embodiment of the present application;
fig. 6 is a block diagram of a sequence string generation module according to an embodiment of the present application;
fig. 7 is a block diagram of a combined product snapshot type price information processing apparatus according to an embodiment of the present application;
FIG. 8 is a flow chart of a combined product snapshot price information processing method according to yet another embodiment of the present application;
FIG. 9 is a flowchart of a snapshot-type price information processing method for a combined product according to yet another embodiment of the present application;
FIG. 10 is a first schematic diagram of a sales front end according to an embodiment of the present application;
FIG. 11 is a first schematic diagram of a sales front end according to an embodiment of the present application;
fig. 12 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a flowchart of a combined product snapshot type price information processing method according to an embodiment of the present application, and as shown in fig. 1, the method includes:
s101: receiving ordering request data of the combined product sent by a sale front end; the ordering request data comprises the latest price and the price snapshot sequence string of the combined product, and the ordering request data is obtained in advance by the selling front end before a purchase request of a customer for the combined product is received;
the selling front end can be a WEB end, a PC end, an intelligent mobile phone APP and the like, and can request the selling back end (a selling background server) for the related attribute data of the selling target product (namely the combined product). The post-sale end feeds back related attribute data to the front-sale end based on the request of the front-sale end, wherein the related attribute data comprises the latest price of the combined product and information such as a corresponding price snapshot sequence string.
When a customer selects a certain combined product to place an order for purchase, the sales front end generates corresponding order placement request data, and sends the order placement request data to the sales back end for processing, wherein the order placement request data comprises the latest price of the combined product and information such as a corresponding price snapshot sequence string in related attribute data acquired by the sales front end before.
S102: acquiring latest price data and a price snapshot sequence string in a combined product price list of the combined product;
the latest price data and the price snapshot sequence string in the combined product price table of the combined product can be determined by the generated price snapshot sequence string at each pricing, the pricing price of the atomic product, the incidence relation between the combined product and the atomic product and other information.
S103: and comparing the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in the price list of the combined product respectively to realize transaction verification.
And carrying out consistency comparison on the latest price in the order request data and the latest price data in the combined product price list, and carrying out consistency comparison on the price snapshot sequence string in the order request data and the price snapshot sequence string in the combined product price list. If the comparison is consistent, the price of the combined product used by the order placing request is considered to be the latest price and the price snapshot sequence string is accurate, the price is verified, otherwise, the price snapshot sequence string is not verified, and the order placing request is rejected.
After the verification, whether a new round of quotation is carried out or not at present or whether the atomic product price list has new quotation data or not, the ordering request is considered to be a legal request at the moment, and the transaction is allowed to be successful.
In addition, a related transaction register can be recorded, the selling back end inquires an atomic product price table according to the price snapshot sequence string of the ordering request data, corresponding atomic product price information is obtained, related sales detail records are recorded, and the total account accounting is guaranteed to be equal.
The main execution body of the method shown in fig. 1 is a sales background server, which may be a mobile terminal, a PC, a server, or other devices. The method comprises the steps of obtaining latest price data and a price snapshot sequence string in a combined product price list of a combined product based on received order placing request data of the combined product sent by a sale front end, and comparing the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in the combined product price list respectively to achieve transaction verification. The method can make the verification and accounting of the combined product sale price simpler and more efficient, save the system resource overhead, improve the possibility of successful processing of the sale transaction data and improve the user experience.
In one embodiment, the combined product snapshot type price information processing method further includes: and generating the price list of the combined product. The combined product price table comprises a combined product name, a combined product price and a price snapshot sequence string.
In one embodiment, as shown in fig. 2, generating the price table of the combined product may include the steps of:
s201: generating a price snapshot sequence string according to relevant information when the combined product is quoted every time;
there may be many related information, such as time stamp information of the current time, or commodity number information. For example, in specific implementation, the time stamp information of the current time may be obtained first, and then the price snapshot sequence string may be generated according to the time stamp information. For example, the price snapshot sequence string is: "20191231235959999999" (the price snapshot sequence string extracts the information composition of the digital part according to the timestamp "2019-12-3123: 59: 59.999999").
S202: and acquiring the quotation data of the atomic product, and adding the quotation data of the atomic product and the price snapshot sequence string of the quotation into an atomic product price list of a database, wherein the atomic product price list stores the name of the atomic product, the price of the atomic product and the price snapshot sequence string.
Specifically, offer data for the raw sub-products in the combined product may be obtained from a raw sub-product offer source in the combined product.
The atomic product price table stores information such as the name, price and price snapshot sequence string of each atomic product of the combined product.
In specific implementation, adding the price snapshot sequence string of the current offer of the atomic product into the atomic product price table of the database may be adding the price snapshot sequence string of the current offer into the price snapshot sequence string field of the atomic product price table. The price snapshot sequence string field contains the price snapshot sequence string and some other information, such as field header information.
S203: calculating the latest price of the combined product according to the atomic product price table and a pre-established association relation table of the combined product and the atomic product;
the association table of the combination product and the atomic product may store information such as a name of the combination product, the atomic products included, and the number of the atomic products included.
And establishing an association relation table according to the relevant information of the combined product, wherein the association relation table comprises the name of the combined product, the contained atomic products, the quantity of each atomic product and the like.
Based on the price table of the atomic product and the incidence relation table of the combined product and the atomic product, the latest price information of the combined product can be obtained.
S204: inserting the latest price of the combined product and the sequence string of price snapshots into the price table of the combined product.
And inserting the latest price and the price snapshot sequence string of the combined product into a price list of the combined product to obtain a complete price list of the combined product, wherein the price list of the combined product comprises the name, the price and the price snapshot sequence string of the combined product and the like.
By the method and the device, the verification and accounting of the combined product selling price can be simpler and more efficient, the system resource overhead is saved, the possibility of successfully processing the selling transaction data is improved, and the user experience is improved.
Based on the same inventive concept, the embodiment of the present application further provides a combined product snapshot type price information processing apparatus, which can be used to implement the method described in the foregoing embodiment, as described in the following embodiment. Because the principle of the combined product snapshot type price information processing device for solving the problems is similar to that of the combined product snapshot type price information processing method, the implementation of the combined product snapshot type price information processing device can refer to the implementation of the combined product snapshot type price information processing method, and repeated parts are not described again. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
Fig. 3 is a block diagram of a combined product snapshot type price information processing apparatus according to an embodiment of the present application, and as shown in fig. 3, the combined product snapshot type price information processing apparatus includes: a ordering request receiving unit 301, an information receiving unit 302, and an information processing unit 303.
The order request receiving unit 301 is configured to receive order request data of a combined product sent by a sales front end; the ordering request data comprises the latest price and the price snapshot sequence string of the combined product, and the ordering request data is obtained in advance by the selling front end before a purchase request of a customer for the combined product is received;
the information receiving unit 302 is configured to obtain latest price data and a price snapshot sequence string in a combined product price table of the combined product;
the information processing unit 303 is configured to compare the latest price and the price snapshot sequence string in the ordering request data with the latest price data and the price snapshot sequence string in the price table of the combined product, respectively, to implement transaction verification.
In one embodiment, as shown in fig. 4, the combined product snapshot type price information processing apparatus further includes:
a combined product price table generating unit 401, configured to generate the combined product price table, where the combined product price table includes a combined product name, a combined product price, and a price snapshot sequence string.
In one embodiment, as shown in fig. 5, the combined product price table generating unit 401 includes:
a sequence string generating module 501, configured to generate a price snapshot sequence string according to relevant information when the combined product is offered each time;
an atomic product price list processing module 502, configured to obtain offer data of an atomic product in the combined product, and add the offer data of the atomic product and a price snapshot sequence string of the offer to an atomic product price list of a database, where an atomic product name, an atomic product price, and a price snapshot sequence string are stored in the atomic product price list;
a price generating module 503, configured to calculate the latest price of the combined product according to the atomic product price table and a pre-established association relationship table between the combined product and the atomic product;
an inserting module 504, configured to insert the latest price of the combined product and the sequence string of price snapshots into the price table of the combined product.
In one embodiment, as shown in fig. 6, the sequence string generating module 501 includes:
a timestamp obtaining module 601, configured to obtain timestamp information of the current time 501;
and the sequence string generating submodule 602 is configured to generate a price snapshot sequence string according to the timestamp information.
In one embodiment, the atomic product price list processing module is specifically configured to: and adding the quotation data of the atomic products into the corresponding price field of each atomic product in the price list of the atomic products, and adding the price snapshot sequence string of the quotation into the price snapshot sequence string field of the price list of the atomic products.
In one embodiment, as shown in fig. 7, the combined product snapshot type price information processing apparatus further includes: an association relation table calculating unit 701, configured to establish the association relation table according to relevant information of the combined product, where the association relation table includes names of the combined products, atomic products included in the combined product, and the number of each atomic product.
By the method and the device, the verification and accounting of the combined product selling price can be simpler and more efficient, the system resource overhead is saved, the possibility of successfully processing the selling transaction data is improved, and the user experience is improved.
Fig. 8 is a flowchart of a combined product snapshot type price information processing method according to an embodiment of the present application, and as shown in fig. 8, the combined product snapshot type price information processing method includes:
s801: the method comprises the steps that a combined product purchase request of a customer is obtained by a sale front end;
the selling front end can be a WEB end, a PC end, an intelligent mobile phone APP and the like, and can request the selling back end (a selling background server) for the related attribute data of the selling target product (namely the combined product). The post-sale end feeds back related attribute data to the front-sale end based on the request of the front-sale end, wherein the related attribute data comprises the latest price of the combined product and information such as a corresponding price snapshot sequence string.
S802: and sending the order placing request data acquired in advance to a sales background server based on the combined product purchase request so that the sales background server compares the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in a pre-created combined product price list respectively to realize transaction verification.
When a customer selects a certain combined product to place an order for purchase, the front-end generates corresponding order-placing request data and sends the order-placing request data to the back-end for processing, wherein the order-placing request data comprises the latest price of the combined product and information such as a corresponding price snapshot sequence string in related attribute data acquired by the front-end before the sale.
As can be seen from the flow shown in fig. 8, the combined product purchase request of the customer is obtained by the sales front end, and the combined product purchase request of the customer is obtained by the sales front end, so that the verification and accounting of the combined product sales price are simpler and more efficient, the system resource overhead is saved, the possibility of successfully processing the sales transaction data is improved, and the user experience is improved.
In one embodiment, as shown in fig. 9, before S801, the combined product snapshot type price information processing method further includes:
s901: sending an information acquisition request of the combined product to the sales background server;
s902: and receiving the relevant attribute information of the combined product fed back by the sales background server, wherein the relevant attribute information comprises the latest price and the price snapshot sequence string in the ordering request data.
Based on the same inventive concept, the embodiment of the present application further provides a front-end for sale, which can be used to implement the methods described in the above embodiments, as described in the following embodiments. Because the principle of solving the problem of the sale front end is similar to the combined product snapshot price information processing method, the implementation of the sale front end can refer to the implementation of the combined product snapshot price information processing method, and repeated parts are not described again. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
Fig. 10 is a schematic diagram of a sales front end according to an embodiment of the present application, and as shown in fig. 10, the sales front end includes:
a request acquisition unit 1001 for acquiring a combined product purchase request of a customer;
the data sending unit 1002 is configured to send order placing request data acquired in advance to a sales backend server based on the combined product purchase request, so that the sales backend server compares the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in a pre-created combined product price list, respectively, to implement transaction verification.
In one embodiment, as shown in fig. 11, the sales front end further comprises:
a request sending unit 1101 that sends an information acquisition request of a combination product to the sales backoffice server;
an information receiving unit 1102, configured to receive related attribute information of the combined product fed back by the sales background server, where the related attribute information includes the latest price in the ordering request data and a price snapshot sequence string.
By the method and the device, the verification and accounting of the combined product selling price can be simpler and more efficient, the system resource overhead is saved, the possibility of successfully processing the selling transaction data is improved, and the user experience is improved.
In order to make the description of the above embodiments clearer, the following specifically describes the flow of the combined product snapshot type price information processing method of the present application, and specifically includes the following steps:
firstly, the method comprises the following steps: quotation processing flow
Step 1, quotation is started, and a system (such as obtaining a current timestamp of the system and extracting information of a digital part) generates a globally unique 'price snapshot sequence string'. The 'price snapshot sequence string' is generated every time the quotation is generated, only one quotation is generated at one time, and the 'price snapshot sequence string' fields of the 'atomic product price list' and the 'combined product price list' are uniformly recorded when the 'price snapshot sequence string' is used for the subsequent processing of the quotation.
Examples are as follows:
the "price snapshot sequence string" is: "20191231235959999999" (information components of the digital part can be extracted by the timestamp "2019-12-3123: 59: 59.999999").
And 2, the system acquires the latest quotation data of the atomic product from a certain mode (such as a file, a database, interface calling and the like) and records the latest quotation data into an atomic product price table of the database. The quotation data of the database is only inserted and not modified each time. And when the quotation data of the atomic product is inserted, taking the 'price snapshot sequence string' generated in the step 1 as the field content of the 'price snapshot sequence string' in the 'atomic product price table', and recording the field content and the quotation data into the 'atomic product price table' of the database.
Examples are as follows:
the "price snapshot sequence string" is: "20191231235959999999"
The data recorded in the atomic product price table is as follows:
Figure BDA0002155652110000111
step 3, the system acquires relevant information of the incidence relation table of the combined product and the atomic product, matches the latest quotation inserted into the price table of the atomic product in the step 2, and calculates the price of the combined product in a summary way
Examples are:
the data of the association relation table of the combined product and the atomic product is as follows:
Figure BDA0002155652110000112
Figure BDA0002155652110000121
the data recorded in the atomic product price table is as follows:
Figure BDA0002155652110000122
"calculate a summary of prices for the combination product" as:
the price of the single set of the mobile phone set is 2000 yuan/set multiplied by 1 set +100 yuan/piece multiplied by 2 piece which is 2200 yuan
And 4, recording the calculation result of the step 3 into a database, namely a combined product price table. The quotation data of the database is only inserted and not modified each time. And when the combined product quotation data is inserted, taking the 'price snapshot sequence string' generated in the step 1 as the field content of the 'price snapshot sequence string' and recording the field content and the quotation data into a database 'combined product price table'.
Examples are as follows:
the "price snapshot sequence string" is: "20191231235959999999"
The "calculation result in step 3" is:
price of 'mobile phone set' single set is 2200 yuan
The data recorded in the 'combination product price table' is as follows:
Figure BDA0002155652110000123
II, secondly: sales processing flow
Step 1, the system 'sale front end' (WEB end, PC end, intelligent mobile phone APP mode) requests the 'sale back end' (sale background server) for selling the relevant attribute data of the target product (namely the combined product).
And 2, returning relevant attribute data of the combined product by the 'after-sale end', wherein the relevant attribute data comprises the latest price of the combined product and a corresponding 'price snapshot sequence string'.
And 3, when the client selects a certain combined product to place an order and purchase, the system sends order placing request data to a sales end for processing by the sales front end, wherein the order placing request data comprises the latest price of the combined product in the related attribute data acquired by the sales front end and a corresponding price snapshot sequence string.
Step 4, the system processes ordering request data sent by the selling front end by the selling back end: inquiring the latest price data of the 'combined product price table', carrying out consistency comparison with the latest price of the combined product in the ordering request data and the corresponding 'price snapshot sequence string', if the comparison is consistent, considering that the price of the combined product used by the ordering request is the latest price and the 'price snapshot sequence string' is accurate, and if the comparison is not consistent, passing the verification, otherwise not passing the verification, and rejecting the ordering request.
And 5, after the system is processed in the step 4 and passes the verification, whether the current quotation processing module carries out a new quotation and whether the atomic product price list has new quotation data or not, the quotation request is considered to be a legal request at the moment, and the transaction is allowed to be successful. When the relevant transaction register is recorded, the ' selling back end ' inquires ' the ' atomic product price table ' according to the ' price snapshot sequence string ' of the ordering request data, and obtains the corresponding atomic product price information for recording the relevant selling detail records, so as to ensure the total account accounting to be equal.
By the method and the device, the verification and accounting of the combined product selling price can be simpler and more efficient, the system resource overhead is saved, the possibility of successfully processing the selling transaction data is improved, and the user experience is improved.
In terms of hardware, the present application provides an embodiment of an electronic device that combines all or part of contents in a product snapshot type price information processing method, where the electronic device specifically includes the following contents:
a processor (processor), a memory (memory), a communication Interface (Communications Interface), and a bus; the processor, the memory and the communication interface complete mutual communication through the bus; the communication interface is used for realizing information transmission between the front sale end and the back sale end; the electronic device may be a desktop computer, a tablet computer, a mobile terminal, and the like, but the embodiment is not limited thereto. In this embodiment, the electronic device may refer to the embodiment of the snapshot-type price information processing method for a combined product in the embodiment and the embodiments of the terminal and the server, which are incorporated herein, and repeated descriptions are omitted here.
Fig. 12 is a schematic block diagram of a system configuration of an electronic device 9600 according to an embodiment of the present application. As shown in fig. 12, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. Notably, this fig. 12 is exemplary; other types of structures may also be used in addition to or in place of the structure to implement telecommunications or other functions.
In one embodiment, the combined product snapshot price information processing functionality may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
s101: receiving ordering request data of the combined product sent by a sale front end; the ordering request data comprises the latest price and the price snapshot sequence string of the combined product, and the ordering request data is obtained in advance by the selling front end before a purchase request of a customer for the combined product is received;
s102: acquiring latest price data and a price snapshot sequence string in a combined product price list of the combined product;
the latest price data and the price snapshot sequence string in the combined product price table of the combined product can be determined by the generated price snapshot sequence string at each pricing, the pricing price of the atomic product, the incidence relation between the combined product and the atomic product and other information.
S103: and comparing the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in the price list of the combined product respectively to realize transaction verification.
As can be seen from the above description, the electronic device provided in the embodiment of the present application can make the verification and accounting of the selling price of the combined product simpler and more efficient, save system resource overhead, improve the possibility of successful processing of the sales transaction data, and improve user experience.
In one embodiment, the combined product snapshot price information processing functionality may be integrated into the central processor 9100. The central processor 9100 may be configured to control as follows:
s801: the method comprises the steps that a combined product purchase request of a customer is obtained by a sale front end;
s802: and sending the order placing request data acquired in advance to a sales background server based on the combined product purchase request so that the sales background server compares the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in a pre-created combined product price list respectively to realize transaction verification.
As can be seen from the above description, the electronic device provided in the embodiment of the present application can make the verification and accounting of the selling price of the combined product simpler and more efficient, save system resource overhead, improve the possibility of successful processing of the sales transaction data, and improve user experience.
In another embodiment, the terminal or the server may be configured separately from the central processor 9100, for example, the terminal or the server may be a chip connected to the central processor 9100, and the snapshot-type price information processing function of the combined product is realized by the control of the central processor.
As shown in fig. 12, the electronic device 9600 may further include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is noted that the electronic device 9600 also does not necessarily include all of the components shown in fig. 12; further, the electronic device 9600 may further include components not shown in fig. 12, which can be referred to in the related art.
As shown in fig. 12, a central processor 9100, sometimes referred to as a controller or operational control, can include a microprocessor or other processor device and/or logic device, which central processor 9100 receives input and controls the operation of the various components of the electronic device 9600.
The memory 9140 can be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 9100 can execute the program stored in the memory 9140 to realize information storage or processing, or the like.
The input unit 9120 provides input to the central processor 9100. The input unit 9120 is, for example, a key or a touch input device. Power supply 9170 is used to provide power to electronic device 9600. The display 9160 is used for displaying display objects such as images and characters. The display may be, for example, an LCD display, but is not limited thereto.
The memory 9140 can be a solid state memory, e.g., Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 9140 could also be some other type of device. Memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application/function storage portion 9142, the application/function storage portion 9142 being used for storing application programs and function programs or for executing a flow of operations of the electronic device 9600 by the central processor 9100.
The memory 9140 can also include a data store 9143, the data store 9143 being used to store data, such as contacts, digital data, pictures, sounds, and/or any other data used by an electronic device. The driver storage portion 9144 of the memory 9140 may include various drivers for the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging applications, contact book applications, etc.).
The communication module 9110 is a transmitter/receiver 9110 that transmits and receives signals via an antenna 9111. The communication module (transmitter/receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing ordinary telecommunications functions. The audio processor 9130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording locally through the microphone 9132 and enabling locally stored sounds to be played through the speaker 9131.
An embodiment of the present application further provides a computer-readable storage medium capable of implementing all steps in the combined product snapshot type price information processing method in which the execution subject is the server or the client in the above embodiment, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all steps of the combined product snapshot type price information processing method in which the execution subject is the server or the client in the above embodiment, for example, when the processor executes the computer program, the processor implements the following steps:
s101: receiving ordering request data of the combined product sent by a sale front end; the ordering request data comprises the latest price and the price snapshot sequence string of the combined product, and the ordering request data is obtained in advance by the selling front end before a purchase request of a customer for the combined product is received;
s102: acquiring latest price data and a price snapshot sequence string in a combined product price list of the combined product;
the latest price data and the price snapshot sequence string in the combined product price table of the combined product can be determined by the generated price snapshot sequence string at each pricing, the pricing price of the atomic product, the incidence relation between the combined product and the atomic product and other information.
S103: and comparing the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in the price list of the combined product respectively to realize transaction verification.
As can be seen from the above description, the computer-readable storage medium provided in the embodiments of the present application enables the checksum calculation of the sales price of a combination product to be simpler and more efficient, saves system resource overhead, improves the probability of successful processing of sales transaction data, and improves user experience.
An embodiment of the present application further provides a computer-readable storage medium capable of implementing all steps in the combined product snapshot type price information processing method in which the execution subject is the server or the client in the above embodiment, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program implements all steps of the combined product snapshot type price information processing method in which the execution subject is the server or the client in the above embodiment, for example, when the processor executes the computer program, the processor implements the following steps:
s801: the method comprises the steps that a combined product purchase request of a customer is obtained by a sale front end;
s802: and sending the order placing request data acquired in advance to a sales background server based on the combined product purchase request so that the sales background server compares the latest price and the price snapshot sequence string in the order placing request data with the latest price data and the price snapshot sequence string in a pre-created combined product price list respectively to realize transaction verification.
As can be seen from the above description, the computer-readable storage medium provided in the embodiments of the present application enables the checksum calculation of the sales price of a combination product to be simpler and more efficient, saves system resource overhead, improves the probability of successful processing of sales transaction data, and improves user experience.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the present application are explained by applying specific embodiments in the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (14)

1. A combined product snapshot type price information processing method is characterized by comprising the following steps:
receiving ordering request data of the combined product sent by a sale front end; the ordering request data comprises the latest price and the price snapshot sequence string of the combined product, and the ordering request data is obtained in advance by the selling front end before a purchase request of a customer for the combined product is received;
the latest price calculation method of the combined product comprises the following steps: acquiring quotation data of an atomic product, and adding the quotation data of the atomic product and a price snapshot sequence string of the quotation into an atomic product price list of a database, wherein the atomic product price list stores an atomic product name, an atomic product price and a price snapshot sequence string; calculating the latest price of the combined product according to the atomic product price table and a pre-established association relation table of the combined product and the atomic product; the price snapshot sequence string is generated by acquiring the timestamp information of the current moment and converting the timestamp information when the combined product is quoted each time; inserting the latest price and the price snapshot sequence string of the combined product into the price list of the combined product to generate the price list of the combined product;
acquiring the latest price and a price snapshot sequence string in a combined product price table of the combined product;
and comparing the latest price and the price snapshot sequence string in the order placing request data with the latest price and the price snapshot sequence string in the price list of the combined product respectively to realize transaction verification.
2. The method according to claim 1, wherein the price table of the combination product includes a name of the combination product, a price of the combination product, and a price snapshot sequence string.
3. The method according to claim 2, wherein the step of adding the quote data of the atomic product and the price snapshot sequence string of the current quote into the price table of the atomic product in the database includes:
and adding the quotation data of the atomic products into the corresponding price field of each atomic product in the price list of the atomic products, and adding the price snapshot sequence string of the quotation into the price snapshot sequence string field of the price list of the atomic products.
4. The combination product snapshot price information processing method of claim 3, further comprising:
and establishing the association relation table according to the relevant information of the combined product, wherein the association relation table comprises the name of the combined product, the contained atomic products and the quantity of each atomic product.
5. A combination product snapshot-type price information processing apparatus, comprising:
the order placing request receiving unit is used for receiving order placing request data of the combined product sent by the selling front end; the ordering request data comprises the latest price and the price snapshot sequence string of the combined product, and the ordering request data is obtained in advance by the selling front end before a purchase request of a customer for the combined product is received; the latest price calculation method of the combined product comprises the following steps: acquiring quotation data of an atomic product, and adding the quotation data of the atomic product and a price snapshot sequence string of the quotation into an atomic product price list of a database, wherein the atomic product price list stores an atomic product name, an atomic product price and a price snapshot sequence string; calculating the latest price of the combined product according to the atomic product price table and a pre-established association relation table of the combined product and the atomic product; the price snapshot sequence string is generated by acquiring the timestamp information of the current moment and converting the timestamp information when the combined product is quoted each time; inserting the latest price and the price snapshot sequence string of the combined product into the price list of the combined product to generate the price list of the combined product;
the information receiving unit is used for acquiring the latest price and the price snapshot sequence string in the price list of the combined product;
and the information processing unit is used for comparing the latest price and the price snapshot sequence string in the ordering request data with the latest price and the price snapshot sequence string in the price list of the combined product respectively to realize transaction verification.
6. The apparatus according to claim 5, wherein the price table of the combination product includes a name of the combination product, a price of the combination product, and a price snapshot sequence string.
7. The apparatus for processing snapshot-type price information of a combined product according to claim 6, wherein said atomic product price list processing module is specifically configured to:
and adding the quotation data of the atomic products into the corresponding price field of each atomic product in the price list of the atomic products, and adding the price snapshot sequence string of the quotation into the price snapshot sequence string field of the price list of the atomic products.
8. The combination product snapshot price information processing apparatus of claim 7, further comprising: and the incidence relation table calculation unit is used for establishing the incidence relation table according to the relevant information of the combined product, and the incidence relation table comprises the name of the combined product, the contained atomic products and the quantity of each atomic product.
9. A combined product snapshot type price information processing method is characterized by comprising the following steps:
acquiring a combined product purchase request of a customer;
sending the order placing request data acquired in advance to a sales background server based on the combined product purchase request so that the sales background server respectively compares the latest price and the price snapshot sequence string in the order placing request data with the latest price and the price snapshot sequence string in a pre-established combined product price list to realize transaction verification; the latest price calculation method of the combined product comprises the following steps: acquiring quotation data of an atomic product, and adding the quotation data of the atomic product and a price snapshot sequence string of the quotation into an atomic product price list of a database, wherein the atomic product price list stores an atomic product name, an atomic product price and a price snapshot sequence string; calculating the latest price of the combined product according to the atomic product price table and a pre-established association relation table of the combined product and the atomic product; the price snapshot sequence string is generated by acquiring the timestamp information of the current moment and converting the timestamp information when the combined product is quoted each time; and inserting the latest price of the combined product and the price snapshot sequence string into the price list of the combined product to generate the price list of the combined product.
10. The combination product snapshot price information processing method of claim 9, further comprising:
sending an information acquisition request of the combined product to the sales background server;
and receiving the relevant attribute information of the combined product fed back by the sales background server, wherein the relevant attribute information comprises the latest price and the price snapshot sequence string in the ordering request data.
11. A sales front-end, comprising:
a request acquisition unit for acquiring a combined product purchase request of a customer;
the data sending unit is used for sending the order placing request data acquired in advance to the sales background server based on the combined product purchase request so that the sales background server respectively compares the latest price and the price snapshot sequence string in the order placing request data with the latest price and the price snapshot sequence string in a pre-established combined product price list to realize transaction verification; the latest price calculation method of the combined product comprises the following steps: acquiring quotation data of an atomic product, and adding the quotation data of the atomic product and a price snapshot sequence string of the quotation into an atomic product price list of a database, wherein the atomic product price list stores an atomic product name, an atomic product price and a price snapshot sequence string; calculating the latest price of the combined product according to the atomic product price table and a pre-established association relation table of the combined product and the atomic product; the price snapshot sequence string is generated by acquiring the timestamp information of the current moment and converting the timestamp information when the combined product is quoted each time; and inserting the latest price of the combined product and the price snapshot sequence string into the price list of the combined product to generate the price list of the combined product.
12. The front-end for sale of claim 11, further comprising:
the request sending unit is used for sending an information acquisition request of the combined product to the sales background server;
and the information receiving unit is used for receiving the relevant attribute information of the combined product fed back by the sales background server, wherein the relevant attribute information comprises the latest price and the price snapshot sequence string in the ordering request data.
13. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the combined product snapshot price information processing method of any one of claims 1 to 4 and 9 to 10 when executing the program.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the combined product snapshot price information processing method of any one of claims 1 to 4, 9 to 10.
CN201910716625.0A 2019-08-05 2019-08-05 Combined product snapshot type price information processing method and device Active CN110443684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910716625.0A CN110443684B (en) 2019-08-05 2019-08-05 Combined product snapshot type price information processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910716625.0A CN110443684B (en) 2019-08-05 2019-08-05 Combined product snapshot type price information processing method and device

Publications (2)

Publication Number Publication Date
CN110443684A CN110443684A (en) 2019-11-12
CN110443684B true CN110443684B (en) 2022-04-29

Family

ID=68433226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910716625.0A Active CN110443684B (en) 2019-08-05 2019-08-05 Combined product snapshot type price information processing method and device

Country Status (1)

Country Link
CN (1) CN110443684B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112102000B (en) * 2020-09-16 2024-04-16 广州探途天下科技有限公司 Vehicle renting price verification method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5794211A (en) * 1995-06-13 1998-08-11 Ncr Corporation EPL price verification system and method
CN102789617A (en) * 2011-05-19 2012-11-21 乐活在线(北京)网络技术有限公司 Commodity information correlation method and system
CN102750325A (en) * 2012-05-29 2012-10-24 张连山 Method for webpage label price verification and error processing
CN109285049B (en) * 2018-08-28 2022-06-21 北京三快在线科技有限公司 Order checking method, system, electronic equipment and storage medium
CN109544170B (en) * 2018-11-26 2023-08-11 努比亚技术有限公司 Transaction snapshot verification method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN110443684A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN105099688A (en) Operation method for electronic account, display method and apparatus for payment page
WO2014194853A1 (en) Data processing method, system, terminal and server
CN106998314B (en) Account interaction method and device
CN111008892A (en) Business limit adjusting method and device and computer readable storage medium
CN105871785B (en) Service processing method, device and system
CN104679824A (en) Webpage generating method and webpage generating system of network platform
CN112308558A (en) Voice interaction payment method, server, device, equipment and system
CN110443684B (en) Combined product snapshot type price information processing method and device
JP2015531518A (en) Method and apparatus for processing electronic transaction information
KR20200000595A (en) Blockchain based certificate management method and device, server and system thereof
KR20200017150A (en) System for paying using virtual money and method thereof
CN110266686B (en) Data sharing method, device, equipment and computer readable storage medium
CN109784915B (en) Content presetting method and device
WO2020019291A1 (en) Information processing method, electronic device, server, and information processing system
CN106716401A (en) Data interaction processing method, device and system
CN112182400B (en) Message processing method, message processing device, electronic equipment and storage medium
CN111144977B (en) Stock order processing method and device
CN104123635A (en) Processing object processing method, system and equipment
US10210491B2 (en) Systems and methods for object processing
CN112766969A (en) Mobile payment method and system, payment device and computer readable storage medium
CN111797099A (en) Data processing method and device based on subjects and auxiliary attributes
CN111932272B (en) VR (virtual reality) -device-based payment method and device
CN106296234B (en) Network data processing method and system, server and application terminal
CN111833033B (en) Virtual transaction method and system for digital product
CN114025039B (en) Authentication method and device for displaying incoming call number and 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
GR01 Patent grant
GR01 Patent grant