WO2019149189A1 - Method and device for data processing - Google Patents
Method and device for data processing Download PDFInfo
- Publication number
- WO2019149189A1 WO2019149189A1 PCT/CN2019/073684 CN2019073684W WO2019149189A1 WO 2019149189 A1 WO2019149189 A1 WO 2019149189A1 CN 2019073684 W CN2019073684 W CN 2019073684W WO 2019149189 A1 WO2019149189 A1 WO 2019149189A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- item
- predetermined
- stack
- predetermined item
- attribute information
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0283—Price estimation or determination
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
Definitions
- the present disclosure relates to the field of computer information processing, and in particular to a method and apparatus for data processing.
- the methods for solving the above problems mainly include commodity sorting, searching and traversing methods, including: text correlation, feature value positioning, and the like.
- the above problem can be solved, for example, by text relevance, that is, whether a target that is traversed by the keyword retrieval algorithm is related to the source text, including whether a feature representing the commodity is extracted from the product name or description, including Fuzzy correlation and precise correlation are two kinds of positioning methods.
- the above problem can also be solved, for example, by a feature value localization method, typically by identifying the trait consistency of the image, such as whether the picture is the same or similar to the retrieved picture.
- the floating part calibration of the order payable amount needs to find a suitable spread supplementary product to be completed, and the difference supplementary goods must belong to the same category and the same supplier as the goods to be placed, in order to complete the order submission.
- the text correlation algorithm is more suitable for users to search for goods, and is not suitable for finding the difference of the floating sales price for the goods with only the starting price.
- the difference supplementary goods are not related by text relevance, but by the need of goods. Positioned by the category and supplier.
- the eigenvalue localization algorithm is more suitable for the retrieval of source data as pictures, and it is impossible to locate the categories and suppliers.
- the search for the price difference and the order placement the purchase user must have no perception, and the calculation time limit of tp99 and above is required.
- the two methods in the prior art cannot achieve the transaction timeliness.
- the present disclosure provides a method and apparatus for data processing, which is capable of performing price adjustment and product amount adjustment in a transaction in which a real-time sales price of a supplier is obtained at a time when an order is placed. Avoid experiencing problems and order contract disputes during the purchase of goods.
- a method for data processing comprising: receiving and responding to a user's purchase instruction for a predetermined item, the predetermined item comprising a price floating item; extracting related information of the predetermined item Attribute information of the predetermined item; determining, by the stack, one of the plurality of first items as a premium item of the predetermined item according to the attribute information of the predetermined item; and passing the predetermined item and the premium item Generate order data.
- the method further includes: when the first item corresponding to the attribute information of the predetermined item is not included in the stack, establishing corresponding to the attribute information of the predetermined item The first item.
- the method further includes: establishing the stack by the plurality of first commodities.
- the determining, according to the attribute information of the predetermined item, one of the plurality of first items from the stack as the premium item of the predetermined item comprising: extracting the predetermined item Attribute information of the commodity; obtaining a weight of each of the plurality of first commodities; determining, according to the attribute information and the weight, the first corresponding to the predetermined commodity in the stack a commodity; and the first commodity as the premium commodity.
- the generating the order data by using the predetermined item and the premium item comprises: determining the quantity of the premium item, generating premium item information;
- the premium product information and the related information of the predetermined product are input into an order pipeline, and the order data is generated.
- the first commodity when the first item corresponding to the attribute information of the predetermined item is not included in the stack, establishing a location corresponding to the attribute information of the predetermined item
- the first commodity includes: a first commodity that establishes a predetermined unit price, the first commodity is identical to attribute information of the predetermined commodity; inserts the newly created first commodity into the stack; and passes MAX-HEAP- The INSERT process maintains an index of the stack.
- the establishing the stack by using a plurality of first commodities includes: acquiring an association matrix by using all current predetermined commodities and the plurality of first commodity sequences; setting the plurality of An initial weight sequence of the first commodity; and an iterative calculation by the correlation matrix and the initial weight sequence to determine the weight sequence.
- the iterative calculation includes:
- D i is the i-th iteration value
- L is the correlation matrix
- n is the number of first commodities.
- the method further includes: updating the association matrix periodically according to the category heat, the historical sales volume, and the merchant daily time.
- the method includes: a receiving module, configured to receive and respond to a user purchase instruction for a predetermined item, the predetermined item including a price floating item; and an information module for passing the predetermined item Correlating information extracting attribute information of the predetermined item; a premium module, configured to determine, by the stack, one of the plurality of first items as a premium item of the predetermined item according to the attribute information of the predetermined item; and placing an order And a module, configured to generate order data by using the predetermined item and the premium item.
- the premium module includes: a determination sub-module, configured to: when the stack does not include the first commodity corresponding to the attribute information of the predetermined item, Establishing the first item corresponding to the attribute information of the predetermined item.
- the method further includes: a stacking module, configured to establish the stack by the plurality of first commodities.
- an electronic device comprising: one or more processors; a storage device for storing one or more programs; and one or more programs being one or more processors Executing, such that one or more processors implement the method as described above.
- a computer readable medium having stored thereon a computer program that, when executed by a processor, implements a method as hereinbefore described.
- FIG. 1 is a system block diagram of a method for data processing, according to an exemplary embodiment.
- FIG. 2 is a flow chart of a method for data processing, according to an exemplary embodiment.
- FIG. 3 is a flow chart showing a method for data processing, according to another exemplary embodiment.
- FIG. 4 is a block diagram of an apparatus for data processing, according to an exemplary embodiment.
- FIG. 5 is a block diagram of an apparatus for data processing, according to an exemplary embodiment.
- FIG. 6 is a block diagram of an electronic device, according to an exemplary embodiment.
- FIG. 7 schematically shows a schematic diagram of a computer readable storage medium in an exemplary embodiment of the present disclosure.
- FIG. 1 is a system block diagram of a method for data processing, according to an exemplary embodiment.
- system architecture 100 can include terminal devices 101, 102, 103, network 104, and server 105.
- the network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105.
- Network 104 may include various types of connections, such as wired, wireless communication links, fiber optic cables, and the like.
- the user can interact with the server 105 over the network 104 using the terminal devices 101, 102, 103 to receive or transmit messages and the like.
- Various communication client applications such as a shopping application, a web browser application, a search application, an instant communication tool, a mailbox client, a social platform software, and the like, may be installed on the terminal devices 101, 102, and 103.
- the terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop portable computers, desktop computers, and the like.
- the server 105 may be a server that provides various services, such as a back-end data management server (for example only) that provides support for a shopping site browsed by the user using the terminal devices 101, 102, 103.
- the background data management server may perform processing such as analyzing the received product information query request and the like, and feed back the processing result (for example, target push information and product information) to the terminal device.
- the method for data processing provided by the embodiment of the present disclosure is generally performed by the server 105. Accordingly, the webpage generating apparatus is generally disposed in the client 101.
- FIG. 2 is a flow chart of a method for data processing, according to an exemplary embodiment.
- a purchase instruction for a predetermined item including a price floating item is received and responded to by the user.
- the predetermined item may be, for example, a travel item such as a travel vacation, and may also provide, for example, an item that is estimated to be an offer price for online quotation, and the predetermined item may also be, for example, a price floating item, and the disclosure is not limited thereto.
- the starting price refers to the lowest price of a commodity over a period of time, time (such as check-in time, travel time, departure time, etc.).
- the floating sales price refers to the real-time sales price of the goods that can be sold under the travel time and the check-in time selected by the consumer, which is a value that varies with the date and time.
- the predetermined item may also be, for example, an item to be calibrated: an item having only a starting price and having a floating selling price characteristic.
- step S204 attribute information of the predetermined item is extracted by the related information of the predetermined item.
- the floating part calibration of the order payable amount needs to find the appropriate spread supplementary goods to complete, and the difference supplementary goods must belong to the same category and the same supplier as the goods to be placed, in order to complete the order submission.
- the attribute information of the merchandise may include, for example, a category of the predetermined merchandise, a merchant that the predetermined merchandise is sold, a merchandise sales heat weight, and the like.
- the amount payable refers to the amount that the consumer needs to pay when purchasing the product.
- one of the plurality of first items is determined as a premium item of the predetermined item from the stack based on the attribute information of the predetermined item.
- the stack is established by a plurality of first commodities. For example, extracting attribute information of the predetermined item; acquiring a weight of each of the plurality of first items; determining, in the stack, the reservation according to the attribute information and the weight The first item corresponding to the item; and the first item as the premium item.
- the premium product can also be called a price difference product. In order to ensure that the product can be sold at the real-time sales price, an item that needs to be automatically replenished with the order can be used to supplement the difference between the starting price and the amount payable (the difference). .
- the premium item to be selected in the stack is defined as the first item.
- step S208 order data is generated by the predetermined item and the premium item. For example, determining the quantity of the premium item, generating premium item information; and inputting the premium item information and related information of the predetermined item into an order pipeline to generate the order data.
- the corresponding premium item is called in real time according to the attribute information of the predetermined item, and the order data is generated.
- the timeliness of the transaction refers to one of the necessary elements of the trading system.
- the e-commerce system requires smooth and no delay and stuck in the order submission process.
- the commonly measured performance indicators are tp90 and tp99.
- the method further includes: when the first item corresponding to the attribute information of the predetermined item is not included in the stack, establishing corresponding to the attribute information of the predetermined item The first item.
- FIG. 3 is a flow chart showing a method for data processing, according to another exemplary embodiment.
- FIG. 3 is an exemplary depiction of a method for data processing.
- step S302 the user selects an item to prepare to submit an order, and the user selects an item from among a plurality of predetermined items.
- step S304 the first commodity stack is traversed to determine whether there is a premium product. If there is a premium product in the stack, the process proceeds to step S306, otherwise, the process proceeds to step S308.
- step S306 a premium item is determined.
- step S308 a new item is created.
- step S310 a new premium item is inserted into the stack.
- step S312 the premium item and the predetermined item are subjected to a price floating calibration operation.
- step S314 the price update is completed according to the amount due and the order is placed.
- the method further includes: establishing the stack by the plurality of first commodities.
- the following settings are made:
- the amount payable is the amount payable.
- the first item index stack H The first item index stack H.
- the first commodity index stack H is initialized according to the following steps.
- Step 2 According to the products currently published by the merchant, traverse the products currently spliced using the SKU in the first product weight sequence D, and obtain the SKU association matrix:
- l ab represents the number of items spliced between SKU a and SKU b .
- the third step initial setting the value in the first product weight sequence D
- the sequence is D.
- Step 5 In the above step 4, the optimization process is to first average the values in the SKU correlation matrix L, if the mean value Where ⁇ is a smaller constant. At this point, the SKU correlation matrix is considered sparse, and the iterative formula is smoothed to optimize:
- I is a unit matrix.
- Step 6 Based on the obtained first product weight sequence D, a bottom-up method is used to construct a maximum heap using the process MAX-HEAPIFY.
- the scheduled item is SKU ⁇ ( ⁇ x, ⁇ m), the amount payable Commodity starting price Obtaining its category cid and its supplier venderid, entering the first commodity stack H traversal, obtaining the first commodity SKU ⁇ of SKU ⁇ ;
- the update algorithm can be adjusted according to the real-time situation of the market.
- the calibrator in a transaction in which the price changes frequently and needs to obtain the real-time sales price of the supplier at the time of placing the order, the calibrator accurately places an order according to the real-time sales price provided by the supplier interface, and comprehensively weights
- the stacking and stack traversal mechanism completes the difference price replenishment product positioning, the commodity payable amount calibration, enhances the user experience, reduces the customer service pressure, and completes the transaction quickly and smoothly.
- the comprehensive weight refers to the average weight value of the aggregate category weight, the merchant weight and the sales weight.
- the creation of the first item may also be performed, for example, in a first-in, first-out, first-in, first-out manner, and may be indexed in chronological order, and traversed after completion of the stacking.
- predetermined items can be, for example, subjected to parallel calibration without the need for loop traversal, which can improve higher efficiency.
- the program may be stored in a computer readable storage medium, which may be a read only memory, a magnetic disk or an optical disk, or the like.
- FIG. 4 is a block diagram of an apparatus for data processing, according to an exemplary embodiment.
- the device 40 for data processing comprises: a receiving module 402, an information module 404, a premium module 406, and an ordering module 408.
- the receiving module 402 is configured to receive and respond to a user purchase instruction for a predetermined item, the price item comprising a price floating item.
- the predetermined item includes a price floating item.
- the predetermined item may be, for example, a travel item such as a travel vacation, and may also provide, for example, an item that is estimated to be an offer price for online quotation, and the predetermined item may also be, for example, a price floating item, and the disclosure is not limited thereto.
- the starting price refers to the lowest price of a commodity over a period of time, time (such as check-in time, travel time, departure time, etc.).
- the floating sales price refers to the real-time sales price of the goods that can be sold under the travel time and the check-in time selected by the consumer, which is a value that varies with the date and time.
- the predetermined item may also be, for example, an item to be calibrated: an item having only a starting price and having a floating selling price characteristic.
- the information module 404 is configured to extract attribute information of the predetermined item by using related information of the predetermined item.
- the floating part calibration of the amount payable for the order needs to find the appropriate price difference to complete the goods, and the difference supplementary goods must belong to the same category and the same supplier as the goods to be placed, in order to complete the order submission.
- the attribute information of the merchandise may include, for example, a category of the predetermined merchandise, a merchant that the predetermined merchandise is sold, a merchandise sales heat weight, and the like.
- the amount payable refers to the amount that the consumer needs to pay when purchasing the product.
- the premium module 406 is configured to determine one of the plurality of first commodities from the stack as the premium commodity of the predetermined commodity according to the attribute information of the predetermined commodity.
- the method further includes: a determining submodule, configured to establish, when the stack does not include the first item corresponding to the attribute information of the predetermined item, the first item corresponding to the attribute information of the predetermined item.
- the order module 408 is configured to generate order data by using the predetermined item and the premium item. Determining the quantity of the premium product, generating premium product information; inputting the premium product information and related information of the predetermined product into an order pipeline to generate the order data.
- a stack module (not shown) for establishing the stack by a plurality of first items.
- the apparatus for data processing of the present disclosure when the premium item is stored in a pre-established stack, when the predetermined item is placed, the corresponding premium item is called in real time according to the attribute information of the predetermined item to generate the order data.
- the timeliness of the transaction refers to one of the necessary elements of the trading system.
- the e-commerce system requires smooth and no delay and stuck in the order submission process.
- the commonly measured performance indicators are tp90 and tp99.
- FIG. 5 is a block diagram of an apparatus for data processing, according to an exemplary embodiment.
- the apparatus 50 for data processing includes a receiving module 502, a calibrator module 504, a difference replenishment commodity stack module 506, and an ordering module 508.
- the receiving module 502 is configured to receive and respond to a user's purchase instruction for a predetermined item. Only when the goods are placed at the starting price, the floating sales price calibrator parameters (including the SKU to be calibrated and the amount payable for the goods at the current selected travel time) are provided;
- the calibrator module 504 in the stack with the comprehensive weight stacking, replenishes the commodity stack, and searches for the legal spread supplement product according to the category, merchant, and sales heat weight of the commodity to be calibrated.
- the stack module 506 is configured to newly create a difference-price supplementary product, and the newly-built product needs to be stacked and applied according to the above-mentioned category, merchant, and sales heat weight, and the price difference supplementary commodity stack with the comprehensive weight stacking is updated.
- the order module 508 calculates the supplementary quantity of the difference replenishment commodity, and completes the calculation of the floating sales price calibrator.
- the goods to be calibrated SKU and the difference replenishment commodity 5 enter the order pipeline at the same time, and the exact amount of the payable amount is completed.
- the floating sales price calibrator can quickly traverse and locate in the stack according to the comprehensive weight of the item heat weight, the merchant heat, and the sales volume of the goods to be calibrated according to the characteristics of the goods to be calibrated.
- the newly established difference-price supplementary goods are also stacked according to the comprehensive weights, which facilitates subsequent quick retrieval. And complete the floating sales price calibration of the goods to be calibrated and the price difference supplementary goods, and realize the joint order.
- FIG. 6 is a block diagram of an electronic device, according to an exemplary embodiment.
- FIG. 6 An electronic device 200 according to such an embodiment of the present disclosure is described below with reference to FIG. 6 is merely an example and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
- electronic device 200 is embodied in the form of a general purpose computing device.
- the components of the electronic device 200 may include, but are not limited to, at least one processing unit 210, at least one storage unit 220, a bus 230 connecting different system components (including the storage unit 220 and the processing unit 210), a display unit 240, and the like.
- the storage unit stores a program code
- the program code may be executed by the processing unit 210, such that the processing unit 210 performs various exemplary embodiments according to the present disclosure described in the electronic recipe flow processing method section of the present specification described above.
- the processing unit 210 can perform the steps as shown in FIG. 2, FIG.
- the storage unit 220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 2201 and/or a cache storage unit 2202, and may further include a read only storage unit (ROM) 2203.
- RAM random access storage unit
- ROM read only storage unit
- the storage unit 220 may also include a program/utility 2204 having a set (at least one) of the program modules 2205, including but not limited to: an operating system, one or more applications, other program modules, and programs. Data, each of these examples or some combination may include an implementation of a network environment.
- Bus 230 may be representative of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures. bus.
- the electronic device 200 can also communicate with one or more external devices 300 (eg, a keyboard, pointing device, Bluetooth device, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 200, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. This communication can take place via an input/output (I/O) interface 250.
- electronic device 200 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) via network adapter 260.
- Network adapter 260 can communicate with other modules of electronic device 200 via bus 230.
- the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network.
- the instructions include a number of instructions to cause a computing device (which may be a personal computer, server, or network device, etc.) to perform the electronic recipe flow processing method described above in accordance with an embodiment of the present disclosure.
- FIG. 7 schematically shows a schematic diagram of a computer readable storage medium in an exemplary embodiment of the present disclosure.
- a program product 400 for implementing the above method which may employ a portable compact disk read only memory (CD-ROM) and includes program code, and may be at a terminal device, according to an embodiment of the present disclosure, is described.
- CD-ROM portable compact disk read only memory
- the program product of the present disclosure is not limited thereto, and in this document, the readable storage medium may be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
- the program product can employ any combination of one or more readable media.
- the readable medium can be a readable signal medium or a readable storage medium.
- the readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
- the computer readable storage medium can include a data signal that is propagated in a baseband or as part of a carrier, in which readable program code is carried. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
- the readable storage medium can also be any readable medium other than a readable storage medium that can transmit, propagate or transport a program for use by or in connection with an instruction execution system, apparatus or device.
- Program code embodied on a readable storage medium may be transmitted by any suitable medium, including but not limited to wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.
- Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language, such as Java, C++, etc., including conventional procedural Programming language—such as the "C" language or a similar programming language.
- the program code can execute entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the remote computing device on the user computing device, or entirely on the remote computing device or server. Execute on.
- the remote computing device can be connected to the user computing device via any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computing device (eg, provided using an Internet service) Businesses are connected via the Internet).
- LAN local area network
- WAN wide area network
- Businesses are connected via the Internet.
- the computer readable medium carries one or more programs that, when executed by one of the devices, cause the computer readable medium to perform the function of receiving and responding to a user's purchase instruction for a predetermined item
- the predetermined item includes a price floating item; the attribute information of the predetermined item is extracted by the related information of the predetermined item; and one of the plurality of first items is determined from the stack as the predetermined item according to the attribute information of the predetermined item An premium product; and generating order data by the predetermined product and the premium product.
- modules may be distributed in the device according to the description of the embodiments, or may be correspondingly changed in one or more devices different from the embodiment.
- the modules of the above embodiments may be combined into one module, or may be further split into multiple sub-modules.
- the exemplary embodiments described herein may be implemented by software, or may be implemented by software in combination with necessary hardware. Therefore, the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network.
- a non-volatile storage medium which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.
- a number of instructions are included to cause a computing device (which may be a personal computer, server, mobile terminal, or network device, etc.) to perform a method in accordance with an embodiment of the present disclosure.
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Engineering & Computer Science (AREA)
- Marketing (AREA)
- Economics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
A method and device for data processing are provided, relating to the field of computer information processing. The method comprises: receiving and responding to a purchase instruction of a user for a predetermined item, the predetermined item comprising a floating price item (S202); extracting attribute information of the predetermined item by means of related information of the predetermined item (S204); determining one of a plurality of first items from an item stack as a price differential compensation item of the predetermined item according to the attribute information of the predetermined item (S206); and generating order data via the predetermined item and the price differential compensation item (S208). The method and device can realize positioning of price compensation items and adjustment of the amount payable for items with respect to frequent price changes when real-time sales prices of suppliers are required to be provided for order placement, so as to avoid poor user experience and purchase order contractual disputes in a purchase process.
Description
本公开涉及计算机信息处理领域,具体而言,涉及一种用于数据处理的方法及装置。The present disclosure relates to the field of computer information processing, and in particular to a method and apparatus for data processing.
旅游度假等出行类商品的线上售卖日渐普及,但线上报价仅能提供预估起价,因商品价格波动频繁,在前台展示的商品价格不一定是用户提单时可售卖的商品应付金额,用户在购买的过程中往往形成临时订单,需要线下客服与用户沟通后才能确认能否按照最新应付金额变更订单后支付订单。并需要用户(或客服代替)进行第二次下单方可生成应付金额准确的待支付订单。Online sales of travel and other travel goods are becoming more and more popular, but online quotation can only provide an estimated starting price. Due to frequent fluctuations in commodity prices, the price of goods displayed at the front desk is not necessarily the amount payable for goods sold by the user. In the process of purchasing, a temporary order is often formed, and the offline customer service is required to communicate with the user to confirm whether the order can be paid after the order is changed according to the latest amount due. And the user (or customer service instead) is required to make a second order to generate an order to be paid with an accurate amount due.
在现有技术中,解决上述问题的方法主要有商品排序、查找与遍历方法包括:文本相关性、特征值定位等。在现有技术中,可例如通过文本相关性解决上述问题,即为从商品名称或描述中,抽取一批能代表该商品的特征,利用关键字检索算法遍历的目标与源文本是否相关,包括模糊相关和精确相关两种定位方式。在现有技术中,还可例如特征值定位方法解决上述问题,通常通过识别图像的特质一致性,例如是否与所检索的图片为相同或类似的图片。In the prior art, the methods for solving the above problems mainly include commodity sorting, searching and traversing methods, including: text correlation, feature value positioning, and the like. In the prior art, the above problem can be solved, for example, by text relevance, that is, whether a target that is traversed by the keyword retrieval algorithm is related to the source text, including whether a feature representing the commodity is extracted from the product name or description, including Fuzzy correlation and precise correlation are two kinds of positioning methods. In the prior art, the above problem can also be solved, for example, by a feature value localization method, typically by identifying the trait consistency of the image, such as whether the picture is the same or similar to the retrieved picture.
在现有技术中,订单应付金额的浮动部分校准需要找到合适的差价补充商品才可以完成,差价补充商品必须与待下单商品属于相同品类、相同供应商,才能完成订单提交。首先,文本相关性算法更适用于用户检索商品,而不适合为仅有起价的商品找到浮动销售价的差价补充商品,这种差价补充商品不是通过文本相关性关联的,而是通过需要商品的所在品类、所在供应商进行定位。其次,特征值定位算法更适合于源数据为图片的检索,无法进行品类和供应商的定位。最后,差价补充商品的查找和下单,购买用户必须无感知,需要tp99及以上的计算时效,现有技术中的两种方法均无法做到交易时效性的。In the prior art, the floating part calibration of the order payable amount needs to find a suitable spread supplementary product to be completed, and the difference supplementary goods must belong to the same category and the same supplier as the goods to be placed, in order to complete the order submission. First of all, the text correlation algorithm is more suitable for users to search for goods, and is not suitable for finding the difference of the floating sales price for the goods with only the starting price. The difference supplementary goods are not related by text relevance, but by the need of goods. Positioned by the category and supplier. Secondly, the eigenvalue localization algorithm is more suitable for the retrieval of source data as pictures, and it is impossible to locate the categories and suppliers. Finally, the search for the price difference and the order placement, the purchase user must have no perception, and the calculation time limit of tp99 and above is required. The two methods in the prior art cannot achieve the transaction timeliness.
因此,需要一种新的用于数据处理的方法及装置。Therefore, there is a need for a new method and apparatus for data processing.
在所述背景技术部分公开的上述信息仅用于加强对本公开的背景的理解,因此它可以包括不构成对本领域普通技术人员已知的现有技术的信息。The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure, and thus it may include information that does not constitute a prior art known to those of ordinary skill in the art.
发明内容Summary of the invention
有鉴于此,本公开提供一种用于数据处理的方法及装置,能够对于价格变动频繁,需要在下单时刻获得供应商实时销售价的交易中,进行成差价补充商品定位、商品应付金额校准,避免商品购买过程中的体验问题与订单合同纠纷。In view of this, the present disclosure provides a method and apparatus for data processing, which is capable of performing price adjustment and product amount adjustment in a transaction in which a real-time sales price of a supplier is obtained at a time when an order is placed. Avoid experiencing problems and order contract disputes during the purchase of goods.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will be apparent from the following detailed description.
根据本公开的一方面,提出一种用于数据处理的方法,该方法包括:接收并响应用户对预定商品的购买指令,所述预定商品包括价格浮动商品;通过所述预定商品的相关信息提取所述预定商品的属性信息;根据所述预定商品的属性信息由堆栈中确定多个第一商品中的一个作为所述预定商品的补价商品;以及通过所述预定商品与所述补价商品生成下单数据。According to an aspect of the present disclosure, a method for data processing is provided, the method comprising: receiving and responding to a user's purchase instruction for a predetermined item, the predetermined item comprising a price floating item; extracting related information of the predetermined item Attribute information of the predetermined item; determining, by the stack, one of the plurality of first items as a premium item of the predetermined item according to the attribute information of the predetermined item; and passing the predetermined item and the premium item Generate order data.
在本公开的一种示例性实施例中,还包括:当所述堆栈中不包含与所述预定商品的属性信息对应的所述第一商品时,建立与所述预定商品的属性信息对应的所述第一商品。In an exemplary embodiment of the present disclosure, the method further includes: when the first item corresponding to the attribute information of the predetermined item is not included in the stack, establishing corresponding to the attribute information of the predetermined item The first item.
在本公开的一种示例性实施例中,还包括:通过多个第一商品建立所述堆栈。In an exemplary embodiment of the present disclosure, the method further includes: establishing the stack by the plurality of first commodities.
在本公开的一种示例性实施例中,所述根据所述预定商品的属性信息由堆栈中确定多个第一商品中的一个作为所述预定商品的补价商品,包括:提取所述预定商品的属性信息;获取所述多个第一商品中的每一个第一商品的权重;根据所述属性信息与所述权重,在所述堆栈中确定与所述预定商品对应的所述第一商品;以及将所述第一商品作为所述补价商品。In an exemplary embodiment of the present disclosure, the determining, according to the attribute information of the predetermined item, one of the plurality of first items from the stack as the premium item of the predetermined item, comprising: extracting the predetermined item Attribute information of the commodity; obtaining a weight of each of the plurality of first commodities; determining, according to the attribute information and the weight, the first corresponding to the predetermined commodity in the stack a commodity; and the first commodity as the premium commodity.
在本公开的一种示例性实施例中,所述通过所述预定商品与所述补价商品生成下单数据,包括:确定所述补价商品的数量,生成补价商品信息;将所述补价商品信息与所述预定商品的相关信息输入下单管道,生成所述下单数据。In an exemplary embodiment of the present disclosure, the generating the order data by using the predetermined item and the premium item comprises: determining the quantity of the premium item, generating premium item information; The premium product information and the related information of the predetermined product are input into an order pipeline, and the order data is generated.
在本公开的一种示例性实施例中,所述当所述堆栈中不包含与所述预定商品的属性信息对应的所述第一商品时,建立与所述预定商品的属性信息对应的所述第一商品,包括:建立预定单价的第一商品,所述第一商品与所述预定商品的属性信息相同;将新建立的所述第一商品插入所述堆栈;以及通过MAX-HEAP-INSERT过程维护所述堆栈的索引。In an exemplary embodiment of the present disclosure, when the first item corresponding to the attribute information of the predetermined item is not included in the stack, establishing a location corresponding to the attribute information of the predetermined item The first commodity includes: a first commodity that establishes a predetermined unit price, the first commodity is identical to attribute information of the predetermined commodity; inserts the newly created first commodity into the stack; and passes MAX-HEAP- The INSERT process maintains an index of the stack.
在本公开的一种示例性实施例中,所述通过多个第一商品建立所述堆栈,包括:通过当前所有预定商品与所述多个第一商品序列,获取关联矩阵;设置所述多个第一 商品的初始权重序列;以及通过所述关联矩阵与初始权重序列,经过迭代计算,确定权重序列。In an exemplary embodiment of the present disclosure, the establishing the stack by using a plurality of first commodities includes: acquiring an association matrix by using all current predetermined commodities and the plurality of first commodity sequences; setting the plurality of An initial weight sequence of the first commodity; and an iterative calculation by the correlation matrix and the initial weight sequence to determine the weight sequence.
在本公开的一种示例性实施例中,所述迭代计算包括:In an exemplary embodiment of the present disclosure, the iterative calculation includes:
D
i=L·D
i-1;
D i =L·D i-1 ;
其中,
为所述初始权重序列,D
i为第i次迭代数值,L为所述关联矩阵,n为第一商品的数量。
among them, For the initial weight sequence, D i is the i-th iteration value, L is the correlation matrix, and n is the number of first commodities.
在本公开的一种示例性实施例中,还包括:采用自底向上的方法利用过程MAX-HEAPIFY构建一个最大堆,作为所述堆栈。In an exemplary embodiment of the present disclosure, further comprising: constructing a maximum heap as the stack using a bottom-up approach using the process MAX-HEAPIFY.
在本公开的一种示例性实施例中,还包括:根据品类热度,历史销量,商家日度,定时更新关联矩阵。In an exemplary embodiment of the present disclosure, the method further includes: updating the association matrix periodically according to the category heat, the historical sales volume, and the merchant daily time.
在本公开的一种示例性实施例中,包括:接收模块,用于接收并响应用户对预定商品的购买指令,所述预定商品包括价格浮动商品;信息模块,用于通过所述预定商品的相关信息提取所述预定商品的属性信息;补价模块,用于根据所述预定商品的属性信息由堆栈中确定多个第一商品中的一个作为所述预定商品的补价商品;以及下单模块,用于通过所述预定商品与所述补价商品生成下单数据。In an exemplary embodiment of the present disclosure, the method includes: a receiving module, configured to receive and respond to a user purchase instruction for a predetermined item, the predetermined item including a price floating item; and an information module for passing the predetermined item Correlating information extracting attribute information of the predetermined item; a premium module, configured to determine, by the stack, one of the plurality of first items as a premium item of the predetermined item according to the attribute information of the predetermined item; and placing an order And a module, configured to generate order data by using the predetermined item and the premium item.
在本公开的一种示例性实施例中,所述补价模块,包括:判断子模块,用于当所述堆栈中不包含与所述预定商品的属性信息对应的所述第一商品时,建立与所述预定商品的属性信息对应的所述第一商品。In an exemplary embodiment of the present disclosure, the premium module includes: a determination sub-module, configured to: when the stack does not include the first commodity corresponding to the attribute information of the predetermined item, Establishing the first item corresponding to the attribute information of the predetermined item.
在本公开的一种示例性实施例中,还包括:堆栈模块,用于通过多个第一商品建立所述堆栈。In an exemplary embodiment of the present disclosure, the method further includes: a stacking module, configured to establish the stack by the plurality of first commodities.
根据本公开的一方面,提出一种电子设备,该电子设备包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如上文的方法。According to an aspect of the present disclosure, an electronic device is provided, the electronic device comprising: one or more processors; a storage device for storing one or more programs; and one or more programs being one or more processors Executing, such that one or more processors implement the method as described above.
根据本公开的一方面,提出一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如上文中的方法。According to an aspect of the present disclosure, a computer readable medium is provided having stored thereon a computer program that, when executed by a processor, implements a method as hereinbefore described.
根据本公开的用于数据处理的方法及装置,能够对于价格变动频繁,需要在下单时刻获得供应商实时销售价的交易中,进行成差价补充商品定位、商品应付金额校准,避免商品购买过程中的体验问题与订单合同纠纷。According to the method and apparatus for data processing according to the present disclosure, it is possible to perform price adjustment and product payable amount calibration in a transaction in which a price change is frequent and a supplier real-time sales price is required to be obtained at the time of placing an order, thereby avoiding the purchase of the product. Experience issues and order contract disputes.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。The above general description and the following detailed description are merely exemplary and are not intended to limit the disclosure.
通过参照附图详细描述其示例实施例,本公开的上述和其它目标、特征及优点将变得更加显而易见。The above and other objects, features, and advantages of the present invention will become more apparent from the aspects of the description.
图1是根据一示例性实施例示出的一种用于数据处理的方法的系统框图。FIG. 1 is a system block diagram of a method for data processing, according to an exemplary embodiment.
图2是根据一示例性实施例示出的一种用于数据处理的方法的流程图。2 is a flow chart of a method for data processing, according to an exemplary embodiment.
图3是根据另一示例性实施例示出的一种用于数据处理的方法的流程图。FIG. 3 is a flow chart showing a method for data processing, according to another exemplary embodiment.
图4是根据一示例性实施例示出的一种用于数据处理的装置的框图。FIG. 4 is a block diagram of an apparatus for data processing, according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种用于数据处理的装置的框图。FIG. 5 is a block diagram of an apparatus for data processing, according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种电子设备的框图。FIG. 6 is a block diagram of an electronic device, according to an exemplary embodiment.
图7示意性示出本公开示例性实施例中一种计算机可读存储介质示意图。FIG. 7 schematically shows a schematic diagram of a computer readable storage medium in an exemplary embodiment of the present disclosure.
现在将参考附图更全面地描述示例实施例。然而,示例实施例能够以多种形式实施,且不应被理解为限于在此阐述的实施例;相反,提供这些实施例使得本公开将全面和完整,并将示例实施例的构思全面地传达给本领域的技术人员。在图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in a variety of forms and should not be construed as being limited to the embodiments set forth herein. To those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and the repeated description thereof will be omitted.
此外,所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施例中。在下面的描述中,提供许多具体细节从而给出对本公开的实施例的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而没有特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知方法、装置、实现或者操作以避免模糊本公开的各方面。Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are set forth However, one skilled in the art will appreciate that the technical solution of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the present disclosure.
附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the figures are merely functional entities and do not necessarily have to correspond to physically separate entities. That is, these functional entities may be implemented in software, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor devices and/or microcontroller devices. entity.
附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the figures are merely illustrative, and not all of the contents and operations/steps are necessarily included, and are not necessarily performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially merged, so the actual execution order may vary depending on the actual situation.
应理解,虽然本文中可能使用术语第一、第二、第三等来描述各种组件,但这些 组件不应受这些术语限制。这些术语乃用以区分一组件与另一组件。因此,下文论述的第一组件可称为第二组件而不偏离本公开概念的教示。如本文中所使用,术语“及/或”包括相关联的列出项目中的任一个及一或多者的所有组合。It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components are not limited by these terms. These terms are used to distinguish one component from another. Thus, a first component discussed below could be termed a second component without departing from the teachings of the present disclosure. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
本领域技术人员可以理解,附图只是示例实施例的示意图,附图中的模块或流程并不一定是实施本公开所必须的,因此不能用于限制本公开的保护范围。It will be understood by those skilled in the art that the drawings are only a schematic diagram of the exemplary embodiments, and the modules or processes in the drawings are not necessarily required to implement the disclosure, and therefore are not intended to limit the scope of the disclosure.
图1是根据一示例性实施例示出的一种用于数据处理的方法的系统框图。FIG. 1 is a system block diagram of a method for data processing, according to an exemplary embodiment.
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, system architecture 100 can include terminal devices 101, 102, 103, network 104, and server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various types of connections, such as wired, wireless communication links, fiber optic cables, and the like.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。The user can interact with the server 105 over the network 104 using the terminal devices 101, 102, 103 to receive or transmit messages and the like. Various communication client applications, such as a shopping application, a web browser application, a search application, an instant communication tool, a mailbox client, a social platform software, and the like, may be installed on the terminal devices 101, 102, and 103.
终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop portable computers, desktop computers, and the like.
服务器105可以是提供各种服务的服务器,例如对用户利用终端设备101、102、103所浏览的购物类网站提供支持的后台数据管理服务器(仅为示例)。后台数据管理服务器可以对接收到的产品信息查询请求等数据进行分析等处理,并将处理结果(例如目标推送信息、产品信息)反馈给终端设备。The server 105 may be a server that provides various services, such as a back-end data management server (for example only) that provides support for a shopping site browsed by the user using the terminal devices 101, 102, 103. The background data management server may perform processing such as analyzing the received product information query request and the like, and feed back the processing result (for example, target push information and product information) to the terminal device.
需要说明的是,本公开实施例所提供的用于数据处理的方法一般由服务器105执行,相应地,网页生成装置一般设置于客户端101中。It should be noted that the method for data processing provided by the embodiment of the present disclosure is generally performed by the server 105. Accordingly, the webpage generating apparatus is generally disposed in the client 101.
图2是根据一示例性实施例示出的一种用于数据处理的方法的流程图。2 is a flow chart of a method for data processing, according to an exemplary embodiment.
如图2所示,在S202中,接收并响应用户对预定商品的购买指令,所述预定商品包括价格浮动商品。预定商品可例如为旅游度假等出行类商品,还可例如为线上报价仅能提供预估起价的商品,预定商品还可例如为价格浮动商品,本公开不以此为限。在本公开中,起价是指某商品在一段日期、时间(如入住时间、出行时间、起飞时间等)内的最低价格。浮动销售价是指:消费者所选的出行、入住时间下商品可成交的实时销售价,是一个随日期、时间变化浮动的值。在本公开中,预定商品还可例如为待校准商品:只有起价,具有浮动销售价特性的商品。As shown in FIG. 2, in S202, a purchase instruction for a predetermined item including a price floating item is received and responded to by the user. The predetermined item may be, for example, a travel item such as a travel vacation, and may also provide, for example, an item that is estimated to be an offer price for online quotation, and the predetermined item may also be, for example, a price floating item, and the disclosure is not limited thereto. In the present disclosure, the starting price refers to the lowest price of a commodity over a period of time, time (such as check-in time, travel time, departure time, etc.). The floating sales price refers to the real-time sales price of the goods that can be sold under the travel time and the check-in time selected by the consumer, which is a value that varies with the date and time. In the present disclosure, the predetermined item may also be, for example, an item to be calibrated: an item having only a starting price and having a floating selling price characteristic.
在步骤S204中,通过所述预定商品的相关信息提取所述预定商品的属性信息。 如上文所述,订单应付金额的浮动部分校准需要找到合适的差价补充商品才可以完成,差价补充商品必须与待下单商品属于相同品类、相同供应商,才能完成订单提交。商品的属性信息可例如包括预定商品的品类、预定商品销售的商家、商品销量热度权重等等。在本公开中,应付金额是指:消费者购买商品时,当次需要支付的金额。In step S204, attribute information of the predetermined item is extracted by the related information of the predetermined item. As mentioned above, the floating part calibration of the order payable amount needs to find the appropriate spread supplementary goods to complete, and the difference supplementary goods must belong to the same category and the same supplier as the goods to be placed, in order to complete the order submission. The attribute information of the merchandise may include, for example, a category of the predetermined merchandise, a merchant that the predetermined merchandise is sold, a merchandise sales heat weight, and the like. In the present disclosure, the amount payable refers to the amount that the consumer needs to pay when purchasing the product.
在步骤S206中,根据所述预定商品的属性信息由堆栈中确定多个第一商品中的一个作为所述预定商品的补价商品。在本公开的一个实施例中,通过多个第一商品建立所述堆栈。可例如,提取所述预定商品的属性信息;获取所述多个第一商品中的每一个第一商品的权重;根据所述属性信息与所述权重,在所述堆栈中确定与所述预定商品对应的所述第一商品;以及将所述第一商品作为所述补价商品。补价商品,也可称之为差价补充商品,为保证商品能够按照实时销售价出售,而需要自动补入订单的一个商品,通过这个商品可以将起价与应付金额的差值(差价)补充完整。在本公开中,为了避免混淆,在堆栈中的待选择的补价商品被定义为第一商品。In step S206, one of the plurality of first items is determined as a premium item of the predetermined item from the stack based on the attribute information of the predetermined item. In one embodiment of the present disclosure, the stack is established by a plurality of first commodities. For example, extracting attribute information of the predetermined item; acquiring a weight of each of the plurality of first items; determining, in the stack, the reservation according to the attribute information and the weight The first item corresponding to the item; and the first item as the premium item. The premium product can also be called a price difference product. In order to ensure that the product can be sold at the real-time sales price, an item that needs to be automatically replenished with the order can be used to supplement the difference between the starting price and the amount payable (the difference). . In the present disclosure, to avoid confusion, the premium item to be selected in the stack is defined as the first item.
在步骤S208中,通过所述预定商品与所述补价商品生成下单数据。可例如,确定所述补价商品的数量,生成补价商品信息;将所述补价商品信息与所述预定商品的相关信息输入下单管道,生成所述下单数据。In step S208, order data is generated by the predetermined item and the premium item. For example, determining the quantity of the premium item, generating premium item information; and inputting the premium item information and related information of the predetermined item into an order pipeline to generate the order data.
根据本公开的用于数据处理的方法,通过在预先建立的堆栈中储存补价商品,在预定商品下单时,根据预定商品的属性信息实时调用对应的补价商品进而生成下单数据的方式,能够对于价格变动频繁,需要在下单时刻获得供应商实时销售价的交易中,进行成差价补充商品定位、商品应付金额校准,避免商品购买过程中的体验问题与订单合同纠纷。并且保证交易的时效性。其中,交易时效性是指,交易系统的必要要素之一,一般要求电商系统在订单提交过程中流畅无延迟与卡顿,通常衡量的性能指标为tp90和tp99。According to the method for data processing of the present disclosure, when the premium item is stored in a pre-established stack, when the predetermined item is placed, the corresponding premium item is called in real time according to the attribute information of the predetermined item, and the order data is generated. In the transaction where the price changes frequently, it is necessary to obtain the real-time sales price of the supplier at the time of placing the order, and to perform the product positioning of the difference price and the calibration of the amount of the goods payable, thereby avoiding the experience problem and the contract contract dispute in the purchase process of the product. And to ensure the timeliness of the transaction. Among them, the timeliness of the transaction refers to one of the necessary elements of the trading system. Generally, the e-commerce system requires smooth and no delay and stuck in the order submission process. The commonly measured performance indicators are tp90 and tp99.
应清楚地理解,本公开描述了如何形成和使用特定示例,但本公开的原理不限于这些示例的任何细节。相反,基于本公开公开的内容的教导,这些原理能够应用于许多其它实施例。It should be clearly understood that the present disclosure describes how to make and use particular examples, but the principles of the present disclosure are not limited to the details of the examples. Rather, these principles can be applied to many other embodiments based on the teachings of the disclosure.
在本公开的一种示例性实施例中,还包括:当所述堆栈中不包含与所述预定商品的属性信息对应的所述第一商品时,建立与所述预定商品的属性信息对应的所述第一商品。In an exemplary embodiment of the present disclosure, the method further includes: when the first item corresponding to the attribute information of the predetermined item is not included in the stack, establishing corresponding to the attribute information of the predetermined item The first item.
图3是根据另一示例性实施例示出的一种用于数据处理的方法的流程图。图3是对用于数据处理的方法的示例性描述。FIG. 3 is a flow chart showing a method for data processing, according to another exemplary embodiment. FIG. 3 is an exemplary depiction of a method for data processing.
在步骤S302中,用户选择商品准备提交订单,用户从多个预定商品之中,选择商品。In step S302, the user selects an item to prepare to submit an order, and the user selects an item from among a plurality of predetermined items.
在步骤S304中,遍历第一商品堆栈,判断是否存在补价商品,当堆栈中存在补价商品时,进入步骤S306,否则进入步骤S308。In step S304, the first commodity stack is traversed to determine whether there is a premium product. If there is a premium product in the stack, the process proceeds to step S306, otherwise, the process proceeds to step S308.
在步骤S306中,确定补价商品。In step S306, a premium item is determined.
在步骤S308中,新建第一商品。In step S308, a new item is created.
在步骤S310中,新建补价商品插入堆栈。In step S310, a new premium item is inserted into the stack.
在步骤S312中,补价商品与预定商品进行价格浮动校准运算。In step S312, the premium item and the predetermined item are subjected to a price floating calibration operation.
在步骤S314中,按照应付金额完成价格更新并下单。In step S314, the price update is completed according to the amount due and the order is placed.
在本公开的一种示例性实施例中,还包括:通过多个第一商品建立所述堆栈。在本公开中进行如下设置:In an exemplary embodiment of the present disclosure, the method further includes: establishing the stack by the plurality of first commodities. In the present disclosure, the following settings are made:
提交订单商品集合为S={SKU
1,SKU
2,…SKU
n},
Submit the order item collection as S={SKU 1 , SKU 2 ,...SKU n },
预定商品为K={SKU
x,SKU
y,…SKU
m},
The scheduled item is K={SKU x , SKU y ,...SKU m },
第一商品索引堆栈H。The first item index stack H.
当H==Null时,根据如下步骤初始化第一商品索引堆栈H。When H==Null, the first commodity index stack H is initialized according to the following steps.
第一步:设定第一商品权重序列为D=[SKU
1,SKU
2,…,SKU
m]
T。
Step 1: Set the first product weight sequence to D=[SKU 1 , SKU 2 ,...,SKU m ] T .
第二步:根据商家目前所发布的商品,遍历查找目前使用第一商品权重序列D中的SKU进行搭售的商品,得到SKU关联矩阵:Step 2: According to the products currently published by the merchant, traverse the products currently spliced using the SKU in the first product weight sequence D, and obtain the SKU association matrix:
式中l
ab表示SKU
a,SKU
b之间相互搭售商品的数量。
Where l ab represents the number of items spliced between SKU a and SKU b .
第三步:初始化设定第一商品权重序列D中的值为
The third step: initial setting the value in the first product weight sequence D
第四步:此时可推演得出迭代公式为D
i=L·D
i-1,可以证明经多次迭代后D会最终收敛,即D
i≈D
i-1,最终得到第一商品权重序列为D。
The fourth step: At this point, the iterative formula can be derived as D i =L·D i-1 , which can prove that D will eventually converge after multiple iterations, ie D i ≈D i-1 , and finally get the first commodity weight. The sequence is D.
第五步:上述第4步中可优化处理为首先将SKU关联矩阵L中的数值求均值,若均值
其中∝为一个较小的常数。此时认为SKU关联矩阵较稀疏,将迭代公式进行平滑处理优化为:
Step 5: In the above step 4, the optimization process is to first average the values in the SKU correlation matrix L, if the mean value Where ∝ is a smaller constant. At this point, the SKU correlation matrix is considered sparse, and the iterative formula is smoothed to optimize:
式中,I为单位矩阵。In the formula, I is a unit matrix.
第六步:基于已获得的第一商品权重序列D,采用自底向上的方法利用过程MAX-HEAPIFY构建一个最大堆。Step 6: Based on the obtained first product weight sequence D, a bottom-up method is used to construct a maximum heap using the process MAX-HEAPIFY.
设:预定商品为SKU
α(α≥x,α≤m),应付金额
商品起价
获得其品类cid及所属供应商venderid,进入第一商品堆栈H遍历,获得SKU
α的第一商品SKU
β;
Set: The scheduled item is SKU α (α≥x, α≤m), the amount payable Commodity starting price Obtaining its category cid and its supplier venderid, entering the first commodity stack H traversal, obtaining the first commodity SKU β of SKU α ;
当SKU
β==Null时,即SKU
β未在第一商品索引堆栈H中,需创建新的第一商品SKU
β,并将其加入第一商品索引堆栈H;
When SKU β == Null, that is, SKU β is not in the first commodity index stack H, a new first commodity SKU β needs to be created and added to the first commodity index stack H;
设SKU
β单价
品类cid、所属供应商为venderid均与SKU
α相同;
Set SKU β unit price The category cid and the supplier of the venderid are the same as the SKU α ;
设第一商品SKU
β的综合权重,按照权重公式完成第一商品插入堆栈H;
Set the comprehensive weight of the first commodity SKU β , and complete the first commodity insertion stack H according to the weight formula;
首先,将SKU
β加入第一商品权重序列D中,识别SKU
β与其他SKU搭售情况,重新进行建立堆栈索引中的的第一步至第五步,随后采用MAX-HEAP-INSERT过程维护第一商品索引堆栈H。
First, add SKU β to the first product weight sequence D, identify SKU β and other SKU tying, re-establish the first step to the fifth step in the stack index, and then use the MAX-HEAP-INSERT process to maintain the A commodity index stack H.
动态更新SKU关联矩阵L:Dynamically update the SKU association matrix L:
定期根据品类热度堆栈权重q,历史销量堆栈权重t,商家热度权重f,动态更新SKU关联矩阵
更新算法可根据市场实时情况调整。
Regularly based on the category heat stack weight q, historical sales stack weight t, merchant heat weight f, dynamically updated SKU association matrix The update algorithm can be adjusted according to the real-time situation of the market.
浮动销售价校准值γFloating sales price calibration value γ
对SKU
α校准器完成组合:
Complete the combination of the SKU alpha calibrator:
当α<m,则仅需进入初始步骤,完成全部K={SKU
x,SKU
y,…SKU
m}下的校准;
When α<m, then only the initial step is required to complete the calibration under all K={SKU x , SKU y ,...SKU m };
根据本公开的用于数据处理的方法,可以在价格变动频繁,需要在下单时刻获得供应商实时销售价的交易中,通过校准器按照供应商接口提供的实时销售价准确下单,通过综合权重的堆排及堆栈遍历机制,完成差价补充商品定位、商品应付金额校准,提升用户体验,减少客服压力,快速顺利完成交易。综合权重是指集合品类权重、商家权重和销量权重为一体的平均权重值。According to the method for data processing of the present disclosure, in a transaction in which the price changes frequently and needs to obtain the real-time sales price of the supplier at the time of placing the order, the calibrator accurately places an order according to the real-time sales price provided by the supplier interface, and comprehensively weights The stacking and stack traversal mechanism completes the difference price replenishment product positioning, the commodity payable amount calibration, enhances the user experience, reduces the customer service pressure, and completes the transaction quickly and smoothly. The comprehensive weight refers to the average weight value of the aggregate category weight, the merchant weight and the sales weight.
在本公开中,第一商品的创建还可例如可按先进先出、后进先出法进行堆排,可按照时间顺序进行索引,完成堆排后供遍历。In the present disclosure, the creation of the first item may also be performed, for example, in a first-in, first-out, first-in, first-out manner, and may be indexed in chronological order, and traversed after completion of the stacking.
在本公开中,预定商品可例如进行并行校准,无需循环遍历,能够提升更高效率。In the present disclosure, predetermined items can be, for example, subjected to parallel calibration without the need for loop traversal, which can improve higher efficiency.
本领域技术人员可以理解实现上述实施例的全部或部分步骤被实现为由CPU执行的计算机程序。在该计算机程序被CPU执行时,执行本公开提供的上述方法所限定的上述功能。所述的程序可以存储于一种计算机可读存储介质中,该存储介质可以是只读存储器,磁盘或光盘等。Those skilled in the art will appreciate that all or a portion of the steps to implement the above-described embodiments are implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the above-described functions defined by the above-described methods provided by the present disclosure are performed. The program may be stored in a computer readable storage medium, which may be a read only memory, a magnetic disk or an optical disk, or the like.
此外,需要注意的是,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。Further, it should be noted that the above-described drawings are merely illustrative of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processing shown in the above figures does not indicate or limit the chronological order of these processes. In addition, it is also easy to understand that these processes may be performed synchronously or asynchronously, for example, in a plurality of modules.
下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following is an apparatus embodiment of the present disclosure, which may be used to implement the method embodiments of the present disclosure. For details not disclosed in the disclosed device embodiments, please refer to the method embodiments of the present disclosure.
图4是根据一示例性实施例示出的一种用于数据处理的装置的框图。用于数据处理的装置40包括:接收模块402,信息模块404,补价模块406,下单模块408。FIG. 4 is a block diagram of an apparatus for data processing, according to an exemplary embodiment. The device 40 for data processing comprises: a receiving module 402, an information module 404, a premium module 406, and an ordering module 408.
接收模块402用于接收并响应用户对预定商品的购买指令,所述预定商品包括价格浮动商品。所述预定商品包括价格浮动商品。预定商品可例如为旅游度假等出行类商品,还可例如为线上报价仅能提供预估起价的商品,预定商品还可例如为价格浮动商品,本公开不以此为限。在本公开中,起价是指某商品在一段日期、时间(如入住时间、出行时间、起飞时间等)内的最低价格。浮动销售价是指:消费者所选的出行、入住时间下商品可成交的实时销售价,是一个随日期、时间变化浮动的值。在本公开中,预定商品还可例如为待校准商品:只有起价,具有浮动销售价特性的商品。The receiving module 402 is configured to receive and respond to a user purchase instruction for a predetermined item, the price item comprising a price floating item. The predetermined item includes a price floating item. The predetermined item may be, for example, a travel item such as a travel vacation, and may also provide, for example, an item that is estimated to be an offer price for online quotation, and the predetermined item may also be, for example, a price floating item, and the disclosure is not limited thereto. In the present disclosure, the starting price refers to the lowest price of a commodity over a period of time, time (such as check-in time, travel time, departure time, etc.). The floating sales price refers to the real-time sales price of the goods that can be sold under the travel time and the check-in time selected by the consumer, which is a value that varies with the date and time. In the present disclosure, the predetermined item may also be, for example, an item to be calibrated: an item having only a starting price and having a floating selling price characteristic.
信息模块404用于通过所述预定商品的相关信息提取所述预定商品的属性信息。订单应付金额的浮动部分校准需要找到合适的差价补充商品才可以完成,差价补充商品必须与待下单商品属于相同品类、相同供应商,才能完成订单提交。商品的属性信息可例如包括预定商品的品类、预定商品销售的商家、商品销量热度权重等等。在本公开中,应付金额是指:消费者购买商品时,当次需要支付的金额。The information module 404 is configured to extract attribute information of the predetermined item by using related information of the predetermined item. The floating part calibration of the amount payable for the order needs to find the appropriate price difference to complete the goods, and the difference supplementary goods must belong to the same category and the same supplier as the goods to be placed, in order to complete the order submission. The attribute information of the merchandise may include, for example, a category of the predetermined merchandise, a merchant that the predetermined merchandise is sold, a merchandise sales heat weight, and the like. In the present disclosure, the amount payable refers to the amount that the consumer needs to pay when purchasing the product.
补价模块406用于根据所述预定商品的属性信息由堆栈中确定多个第一商品中的一个作为所述预定商品的补价商品。还包括:判断子模块,用于当所述堆栈中不包含与所述预定商品的属性信息对应的所述第一商品时,建立与所述预定商品的属性信息对应的所述第一商品。The premium module 406 is configured to determine one of the plurality of first commodities from the stack as the premium commodity of the predetermined commodity according to the attribute information of the predetermined commodity. The method further includes: a determining submodule, configured to establish, when the stack does not include the first item corresponding to the attribute information of the predetermined item, the first item corresponding to the attribute information of the predetermined item.
下单模块408用于通过所述预定商品与所述补价商品生成下单数据。确定所述补价商品的数量,生成补价商品信息;将所述补价商品信息与所述预定商品的相关信息输入下单管道,生成所述下单数据。The order module 408 is configured to generate order data by using the predetermined item and the premium item. Determining the quantity of the premium product, generating premium product information; inputting the premium product information and related information of the predetermined product into an order pipeline to generate the order data.
还包括:堆栈模块(图中未示出)用于通过多个第一商品建立所述堆栈。Also included is a stack module (not shown) for establishing the stack by a plurality of first items.
根据本公开的用于数据处理的装置,通过在预先建立的堆栈中储存补价商品,在预定商品下单时,根据预定商品的属性信息实时调用对应的补价商品进而生成下单数据的方式,能够对于价格变动频繁,需要在下单时刻获得供应商实时销售价的交易中,进行成差价补充商品定位、商品应付金额校准,避免商品购买过程中的体验问题与订单合同纠纷。并且保证交易的时效性。其中,交易时效性是指,交易系统的必要要素之一,一般要求电商系统在订单提交过程中流畅无延迟与卡顿,通常衡量的性能指标为tp90和tp99。According to the apparatus for data processing of the present disclosure, when the premium item is stored in a pre-established stack, when the predetermined item is placed, the corresponding premium item is called in real time according to the attribute information of the predetermined item to generate the order data. In the transaction where the price changes frequently, it is necessary to obtain the real-time sales price of the supplier at the time of placing the order, and to perform the product positioning of the difference price and the calibration of the amount of the goods payable, thereby avoiding the experience problem and the contract contract dispute in the purchase process of the product. And to ensure the timeliness of the transaction. Among them, the timeliness of the transaction refers to one of the necessary elements of the trading system. Generally, the e-commerce system requires smooth and no delay and stuck in the order submission process. The commonly measured performance indicators are tp90 and tp99.
图5是根据一示例性实施例示出的一种用于数据处理的装置的框图。用于数据处理的装置50包括:接收模块502,校准器模块504,差价补充商品堆栈模块506,下单模块508。FIG. 5 is a block diagram of an apparatus for data processing, according to an exemplary embodiment. The apparatus 50 for data processing includes a receiving module 502, a calibrator module 504, a difference replenishment commodity stack module 506, and an ordering module 508.
其中,接收模块502,用于接收并响应用户对预定商品的购买指令。仅有起价商品下单时,提供其浮动销售价校准器参数(含待校准商品SKU、当前所选出行时间下商品应付金额);The receiving module 502 is configured to receive and respond to a user's purchase instruction for a predetermined item. Only when the goods are placed at the starting price, the floating sales price calibrator parameters (including the SKU to be calibrated and the amount payable for the goods at the current selected travel time) are provided;
校准器模块504,在带综合权重堆排的差价补充商品堆栈,根据待校准商品的品类、商家、销量热度权重,寻找合法的差价补充商品。The calibrator module 504, in the stack with the comprehensive weight stacking, replenishes the commodity stack, and searches for the legal spread supplement product according to the category, merchant, and sales heat weight of the commodity to be calibrated.
堆栈模块506,用于新建差价补充商品,新建的商品需要根据上述品类、商家、销量热度权重进行堆排应用,更新带综合权重堆排的差价补充商品堆栈。The stack module 506 is configured to newly create a difference-price supplementary product, and the newly-built product needs to be stacked and applied according to the above-mentioned category, merchant, and sales heat weight, and the price difference supplementary commodity stack with the comprehensive weight stacking is updated.
下单模块508,计算差价补充商品的补充数量,完成浮动销售价校准器计算,待校准商品SKU与差价补充商品⑤同时进入下单管道,完成准确的应付金额下单。The order module 508 calculates the supplementary quantity of the difference replenishment commodity, and completes the calculation of the floating sales price calibrator. The goods to be calibrated SKU and the difference replenishment commodity 5 enter the order pipeline at the same time, and the exact amount of the payable amount is completed.
根据本公开的用于数据处理的装置,浮动销售价校准器能够按待校准商品特性,在堆栈中根据待校准商品的品类热度权重、商家热度、销量的综合权重进行快速遍历及定位。新建立的差价补充商品,同样根据综合权重进行堆排,便于后续快速检索。并完成待校准商品与差价补充商品的浮动销售价校准,实现联合下单。According to the apparatus for data processing of the present disclosure, the floating sales price calibrator can quickly traverse and locate in the stack according to the comprehensive weight of the item heat weight, the merchant heat, and the sales volume of the goods to be calibrated according to the characteristics of the goods to be calibrated. The newly established difference-price supplementary goods are also stacked according to the comprehensive weights, which facilitates subsequent quick retrieval. And complete the floating sales price calibration of the goods to be calibrated and the price difference supplementary goods, and realize the joint order.
图6是根据一示例性实施例示出的一种电子设备的框图。FIG. 6 is a block diagram of an electronic device, according to an exemplary embodiment.
下面参照图6来描述根据本公开的这种实施方式的电子设备200。图6显示的电子设备200仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。An electronic device 200 according to such an embodiment of the present disclosure is described below with reference to FIG. The electronic device 200 shown in FIG. 6 is merely an example and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
如图6所示,电子设备200以通用计算设备的形式表现。电子设备200的组件可以包括但不限于:至少一个处理单元210、至少一个存储单元220、连接不同系统组件(包括存储单元220和处理单元210)的总线230、显示单元240等。As shown in Figure 6, electronic device 200 is embodied in the form of a general purpose computing device. The components of the electronic device 200 may include, but are not limited to, at least one processing unit 210, at least one storage unit 220, a bus 230 connecting different system components (including the storage unit 220 and the processing unit 210), a display unit 240, and the like.
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元210执行,使得所述处理单元210执行本说明书上述电子处方流转处理方法部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元210可以执行如图2,图3中所示的步骤。Wherein, the storage unit stores a program code, and the program code may be executed by the processing unit 210, such that the processing unit 210 performs various exemplary embodiments according to the present disclosure described in the electronic recipe flow processing method section of the present specification described above. The steps of the embodiment. For example, the processing unit 210 can perform the steps as shown in FIG. 2, FIG.
所述存储单元220可以包括易失性存储单元形式的可读介质,例如随机存取存储 单元(RAM)2201和/或高速缓存存储单元2202,还可以进一步包括只读存储单元(ROM)2203。The storage unit 220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 2201 and/or a cache storage unit 2202, and may further include a read only storage unit (ROM) 2203.
所述存储单元220还可以包括具有一组(至少一个)程序模块2205的程序/实用工具2204,这样的程序模块2205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The storage unit 220 may also include a program/utility 2204 having a set (at least one) of the program modules 2205, including but not limited to: an operating system, one or more applications, other program modules, and programs. Data, each of these examples or some combination may include an implementation of a network environment.
总线230可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。 Bus 230 may be representative of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures. bus.
电子设备200也可以与一个或多个外部设备300(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备200交互的设备通信,和/或与使得该电子设备200能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口250进行。并且,电子设备200还可以通过网络适配器260与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。网络适配器260可以通过总线230与电子设备200的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备200使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The electronic device 200 can also communicate with one or more external devices 300 (eg, a keyboard, pointing device, Bluetooth device, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 200, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 200 to communicate with one or more other computing devices. This communication can take place via an input/output (I/O) interface 250. Moreover, electronic device 200 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) via network adapter 260. Network adapter 260 can communicate with other modules of electronic device 200 via bus 230. It should be understood that although not shown in the figures, other hardware and/or software modules may be utilized in conjunction with electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives. And data backup storage systems, etc.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、或者网络设备等)执行根据本公开实施方式的上述电子处方流转处理方法。Through the description of the above embodiments, those skilled in the art will readily understand that the example embodiments described herein may be implemented by software or by software in combination with necessary hardware. Therefore, the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network. The instructions include a number of instructions to cause a computing device (which may be a personal computer, server, or network device, etc.) to perform the electronic recipe flow processing method described above in accordance with an embodiment of the present disclosure.
图7示意性示出本公开示例性实施例中一种计算机可读存储介质示意图。FIG. 7 schematically shows a schematic diagram of a computer readable storage medium in an exemplary embodiment of the present disclosure.
参考图7所示,描述了根据本公开的实施方式的用于实现上述方法的程序产品400,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Referring to FIG. 7, a program product 400 for implementing the above method, which may employ a portable compact disk read only memory (CD-ROM) and includes program code, and may be at a terminal device, according to an embodiment of the present disclosure, is described. For example running on a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, the readable storage medium may be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随 机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product can employ any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
所述计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读存储介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The computer readable storage medium can include a data signal that is propagated in a baseband or as part of a carrier, in which readable program code is carried. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable storage medium can also be any readable medium other than a readable storage medium that can transmit, propagate or transport a program for use by or in connection with an instruction execution system, apparatus or device. Program code embodied on a readable storage medium may be transmitted by any suitable medium, including but not limited to wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language, such as Java, C++, etc., including conventional procedural Programming language—such as the "C" language or a similar programming language. The program code can execute entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the remote computing device on the user computing device, or entirely on the remote computing device or server. Execute on. In the case of a remote computing device, the remote computing device can be connected to the user computing device via any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computing device (eg, provided using an Internet service) Businesses are connected via the Internet).
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该计算机可读介质实现如下功能:接收并响应用户对预定商品的购买指令,所述预定商品包括价格浮动商品;通过所述预定商品的相关信息提取所述预定商品的属性信息;根据所述预定商品的属性信息由堆栈中确定多个第一商品中的一个作为所述预定商品的补价商品;以及通过所述预定商品与所述补价商品生成下单数据。The computer readable medium carries one or more programs that, when executed by one of the devices, cause the computer readable medium to perform the function of receiving and responding to a user's purchase instruction for a predetermined item, The predetermined item includes a price floating item; the attribute information of the predetermined item is extracted by the related information of the predetermined item; and one of the plurality of first items is determined from the stack as the predetermined item according to the attribute information of the predetermined item An premium product; and generating order data by the predetermined product and the premium product.
本领域技术人员可以理解上述各模块可以按照实施例的描述分布于装置中,也可以进行相应变化唯一不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。It will be understood by those skilled in the art that the above various modules may be distributed in the device according to the description of the embodiments, or may be correspondingly changed in one or more devices different from the embodiment. The modules of the above embodiments may be combined into one module, or may be further split into multiple sub-modules.
通过以上的实施例的描述,本领域的技术人员易于理解,这里描述的示例实施例可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施例的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施例的方法。Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software in combination with necessary hardware. Therefore, the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network. A number of instructions are included to cause a computing device (which may be a personal computer, server, mobile terminal, or network device, etc.) to perform a method in accordance with an embodiment of the present disclosure.
以上具体地示出和描述了本公开的示例性实施例。应可理解的是,本公开不限于这里描述的详细结构、设置方式或实现方法;相反,本公开意图涵盖包含在所附权利 要求的精神和范围内的各种修改和等效设置。The exemplary embodiments of the present disclosure have been particularly shown and described above. It is to be understood that the invention is not limited to the details of the details of
此外,本公开附图所示出的结构、比例、大小等,均仅用以配合说明书所公开的内容,以供本领域技术人员了解与阅读,并非用以限定本公开可实施的限定条件,故不具技术上的实质意义,任何结构的修饰、比例关系的改变或大小的调整,在不影响本公开所能产生的技术效果及所能实现的目的下,均应仍落在本公开所公开的技术内容得能涵盖的范围内。同时,本说明书中所引用的如“上”、“第一”、“第二”及“一”等的用语,也仅为便于叙述的明了,而非用以限定本公开可实施的范围,其相对关系的改变或调整,在无实质变更技术内容下,当也视为本公开可实施的范畴。In addition, the structures, the proportions, the sizes, and the like shown in the drawings of the present disclosure are only for the purpose of the disclosure of the specification, and are intended to be understood by those skilled in the art. Therefore, it is not technically meaningful. Any modification of the structure, change of the proportional relationship, or adjustment of the size should be disclosed in the present disclosure without affecting the technical effects and the achievable objectives of the present disclosure. The technical content can be covered within the scope. In the meantime, the terms "upper", "first", "second", and "the" are used in the description, and are not intended to limit the scope of the disclosure. Changes or adjustments in the relative relationship are considered to be within the scope of the present disclosure without departing from the scope of the invention.
Claims (15)
- 一种用于数据处理的方法,其特征在于,包括:A method for data processing, comprising:接收并响应用户对预定商品的购买指令,所述预定商品包括价格浮动商品;Receiving and responding to a user purchase instruction for a predetermined item, the predetermined item comprising a price floating item;通过所述预定商品的相关信息提取所述预定商品的属性信息;Extracting attribute information of the predetermined item by related information of the predetermined item;根据所述预定商品的属性信息由堆栈中确定多个第一商品中的一个作为所述预定商品的补价商品;以及Determining, by the attribute information of the predetermined item, one of the plurality of first items as a premium item of the predetermined item from the stack;通过所述预定商品与所述补价商品生成下单数据。The order data is generated by the predetermined item and the premium item.
- 如权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:当所述堆栈中不包含与所述预定商品的属性信息对应的所述第一商品时,建立与所述预定商品的属性信息对应的所述第一商品。When the first item corresponding to the attribute information of the predetermined item is not included in the stack, the first item corresponding to the attribute information of the predetermined item is established.
- 如权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:通过多个第一商品建立所述堆栈。The stack is established by a plurality of first items.
- 如权利要求1所述的方法,其特征在于,所述根据所述预定商品的属性信息由堆栈中确定多个第一商品中的一个作为所述预定商品的补价商品,包括:The method of claim 1, wherein the determining, by the stack based on the attribute information of the predetermined item, one of the plurality of first items as the premium item of the predetermined item, comprises:提取所述预定商品的属性信息;Extracting attribute information of the predetermined item;获取所述多个第一商品中的每一个第一商品的权重;Obtaining a weight of each of the plurality of first commodities;根据所述属性信息与所述权重,在所述堆栈中确定与所述预定商品对应的所述第一商品;以及Determining, in the stack, the first item corresponding to the predetermined item based on the attribute information and the weight; and将所述第一商品作为所述补价商品。The first commodity is used as the premium commodity.
- 如权利要求1所述的方法,其特征在于,所述通过所述预定商品与所述补价商品生成下单数据,包括:The method of claim 1, wherein the generating the order data by the predetermined item and the premium item comprises:确定所述补价商品的数量,生成补价商品信息;Determining the quantity of the premium items to generate premium product information;将所述补价商品信息与所述预定商品的相关信息输入下单管道,生成所述下单数据。And inputting the premium commodity information and the related information of the predetermined commodity into an order pipeline to generate the order data.
- 如权利要求2所述的方法,其特征在于,所述当所述堆栈中不包含与所述预定商品的属性信息对应的所述第一商品时,建立与所述预定商品的属性信息对应的所述第一商品,包括:The method according to claim 2, wherein when said first item corresponding to attribute information of said predetermined item is not included in said stack, said attribute information corresponding to said predetermined item is created The first commodity includes:建立预定单价的第一商品,所述第一商品与所述预定商品的属性信息相同;Establishing a first commodity of a predetermined unit price, the first commodity having the same attribute information as the predetermined commodity;将新建立的所述第一商品插入所述堆栈;以及Inserting the newly created first item into the stack;通过MAX-HEAP-INSERT过程维护所述堆栈的索引。The index of the stack is maintained by the MAX-HEAP-INSERT procedure.
- 如权利要求3所述的方法,其特征在于,所述通过多个第一商品建立所述堆栈,包括:The method of claim 3 wherein said establishing said stack by said plurality of first products comprises:通过当前所有预定商品与所述多个第一商品序列,获取关联矩阵;Acquiring an association matrix by all current predetermined items and the plurality of first item sequences;设置所述多个第一商品的初始权重序列;以及Setting an initial weighting sequence of the plurality of first commodities;通过所述关联矩阵与初始权重序列,经过迭代计算,确定权重序列。Through the correlation matrix and the initial weight sequence, the weight sequence is determined through iterative calculation.
- 如权利要求7所述的方法,其特征在于,所述迭代计算包括:The method of claim 7 wherein said iterative calculation comprises:D i=L·D i-1 D i =L·D i-1
- 如权利要求7所述的方法,其特征在于,还包括:The method of claim 7 further comprising:采用自底向上的方法利用过程MAX-HEAPIFY构建一个最大堆,作为所述堆栈。A bottom-up approach is used to build a maximum heap using the process MAX-HEAPIFY as the stack.
- 如权利要求7所述的方法,其特征在于,还包括:The method of claim 7 further comprising:根据品类热度,历史销量,商家热度,定时更新关联矩阵。According to the category heat, historical sales, business heat, regularly update the correlation matrix.
- 一种用于数据处理的装置,其特征在于,包括:An apparatus for data processing, comprising:接收模块,用于接收并响应用户对预定商品的购买指令,所述预定商品包括价格浮动商品;a receiving module, configured to receive and respond to a user purchase instruction for a predetermined item, the predetermined item comprising a price floating item;信息模块,用于通过所述预定商品的相关信息提取所述预定商品的属性信息;An information module, configured to extract attribute information of the predetermined item by using related information of the predetermined item;补价模块,用于根据所述预定商品的属性信息由堆栈中确定多个第一商品中的一个作为所述预定商品的补价商品;以及a premium module, configured to determine, by the stack, one of the plurality of first commodities as a premium commodity of the predetermined commodity according to attribute information of the predetermined commodity;下单模块,用于通过所述预定商品与所述补价商品生成下单数据。And an order module, configured to generate order data by using the predetermined item and the premium item.
- 如权利要求11所述的装置,其特征在于,所述补价模块,包括:The apparatus of claim 11, wherein the premium module comprises:判断子模块,用于当所述堆栈中不包含与所述预定商品的属性信息对应的所述第一商品时,建立与所述预定商品的属性信息对应的所述第一商品。a judging submodule configured to: when the first item corresponding to the attribute information of the predetermined item is not included in the stack, establish the first item corresponding to the attribute information of the predetermined item.
- 如权利要求11所述的装置,其特征在于,还包括:The device of claim 11 further comprising:堆栈模块,用于通过多个第一商品建立所述堆栈。a stack module for establishing the stack by a plurality of first commodities.
- 一种电子设备,其特征在于,包括:An electronic device, comprising:一个或多个处理器;One or more processors;存储装置,用于存储一个或多个程序;a storage device for storing one or more programs;当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理 器实现如权利要求1-10中任一所述的方法。The one or more programs are executed by the one or more processors such that the one or more processors implement the method of any of claims 1-10.
- 一种计算机可读介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如权利要求1-10中任一所述的方法。A computer readable medium having stored thereon a computer program, wherein the program is executed by a processor to implement the method of any of claims 1-10.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810092410.1 | 2018-01-30 | ||
CN201810092410.1A CN110097386B (en) | 2018-01-30 | 2018-01-30 | Method and device for data processing |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019149189A1 true WO2019149189A1 (en) | 2019-08-08 |
Family
ID=67442862
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/073684 WO2019149189A1 (en) | 2018-01-30 | 2019-01-29 | Method and device for data processing |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110097386B (en) |
WO (1) | WO2019149189A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113902467A (en) * | 2021-09-14 | 2022-01-07 | 特赞(上海)信息科技有限公司 | Method and system for matching supply and demand based on design service industry SKU and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102402757A (en) * | 2010-09-15 | 2012-04-04 | 阿里巴巴集团控股有限公司 | Method and device for providing information, and method and device for determining comprehensive relevance |
CN105894347A (en) * | 2016-03-11 | 2016-08-24 | 上海鸿安能源科技有限公司 | Fluctuating valuation method for oil product transaction website |
CN106022888A (en) * | 2016-05-27 | 2016-10-12 | 北京众成汇通信息技术有限公司 | Goods recommendation method and device |
CN107180371A (en) * | 2016-03-11 | 2017-09-19 | 北京京东尚科信息技术有限公司 | The method and system of commodity is bought using reward voucher |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2001273668A1 (en) * | 2000-06-30 | 2002-01-14 | Enron Net Works Llc | Buying and selling goods and services using automated method and apparatus |
CN107248096A (en) * | 2017-04-20 | 2017-10-13 | 多点生活(中国)网络科技有限公司 | Order processing method and system |
-
2018
- 2018-01-30 CN CN201810092410.1A patent/CN110097386B/en active Active
-
2019
- 2019-01-29 WO PCT/CN2019/073684 patent/WO2019149189A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102402757A (en) * | 2010-09-15 | 2012-04-04 | 阿里巴巴集团控股有限公司 | Method and device for providing information, and method and device for determining comprehensive relevance |
CN105894347A (en) * | 2016-03-11 | 2016-08-24 | 上海鸿安能源科技有限公司 | Fluctuating valuation method for oil product transaction website |
CN107180371A (en) * | 2016-03-11 | 2017-09-19 | 北京京东尚科信息技术有限公司 | The method and system of commodity is bought using reward voucher |
CN106022888A (en) * | 2016-05-27 | 2016-10-12 | 北京众成汇通信息技术有限公司 | Goods recommendation method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110097386B (en) | 2024-06-18 |
CN110097386A (en) | 2019-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9706011B2 (en) | Personalized real estate event feed | |
KR20190007871A (en) | Electronic commerce method for overseas purchasing and apparatus therefor | |
US9396224B2 (en) | Systems and methods for sorting, grouping, and rendering subsets of large datasets over a network | |
US10242381B1 (en) | Optimized selection and delivery of content | |
CN113095893A (en) | Method and device for determining sales of articles | |
CN110348921B (en) | Method and device for selecting store articles | |
CN110827101B (en) | Shop recommending method and device | |
CN109978306B (en) | Data processing method and device | |
CN113450172B (en) | Commodity recommendation method and device | |
CN110852846A (en) | Processing method and device for recommended object, electronic equipment and storage medium | |
US20200082331A1 (en) | Scraping network sites to arrange expedited delivery services for items | |
CN116594683A (en) | Code annotation information generation method, device, equipment and storage medium | |
JP5620589B2 (en) | Product information search | |
CN110827102B (en) | Method and device for adjusting goods price | |
CN110895761B (en) | After-sales service application information processing method and device | |
CN110232581B (en) | Method and device for providing coupons for users | |
WO2019149189A1 (en) | Method and device for data processing | |
WO2021216526A1 (en) | Methods for identifying product variants | |
US20210065080A1 (en) | Systems and methods for cosmetics products retail displays | |
US20160275535A1 (en) | Centralized system for progressive price management | |
CN107357847B (en) | Data processing method and device | |
CN111833085A (en) | Method and device for calculating price of article | |
US20140229327A1 (en) | Facilitating a user to purchase multiple products from different shopping sites | |
CN110738538B (en) | Method and device for identifying similar objects | |
CN110751496B (en) | Commodity price detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19748201 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19748201 Country of ref document: EP Kind code of ref document: A1 |