CN111553776B - Data processing method and device and electronic equipment - Google Patents

Data processing method and device and electronic equipment Download PDF

Info

Publication number
CN111553776B
CN111553776B CN202010379520.3A CN202010379520A CN111553776B CN 111553776 B CN111553776 B CN 111553776B CN 202010379520 A CN202010379520 A CN 202010379520A CN 111553776 B CN111553776 B CN 111553776B
Authority
CN
China
Prior art keywords
query
query object
preset
terminal
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010379520.3A
Other languages
Chinese (zh)
Other versions
CN111553776A (en
Inventor
胡卉
张思逸
李炯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Xinzhi Cloud Service Information Technology Co ltd
Original Assignee
Chengdu Xinzhi Cloud Service Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Xinzhi Cloud Service Information Technology Co ltd filed Critical Chengdu Xinzhi Cloud Service Information Technology Co ltd
Publication of CN111553776A publication Critical patent/CN111553776A/en
Application granted granted Critical
Publication of CN111553776B publication Critical patent/CN111553776B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0603Catalogue ordering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0621Item configuration or customization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0631Item recommendations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application provides a data processing method, a data processing device and electronic equipment. The method comprises the following steps: receiving a query request sent by a first terminal, wherein the query request comprises an identification code of a query object; judging whether the query object belongs to the instant update class according to the identification code; if the query object belongs to the instant update class, sending an update request of the query object to the second terminal; receiving return data from the second terminal; and sending the query result information of the query object to the first terminal according to the returned data and the query request.

Description

Data processing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a data processing method, apparatus, and electronic device.
Background
In the field of electronic commerce, there are three roles of users, agents, and suppliers. When a user searches and purchases goods on the website of the agent, the agent needs to provide relevant goods data for the user according to the goods data provided by the provider, including inventory, latest price and the like, so as to ensure that the information of the goods which can be purchased and the amount information required to be paid for purchasing the goods are provided for the user.
The existing solution is to update commodity data in full volume from the interface of the vendor on a regular basis. When the number of commodities provided by suppliers is very large, the total update of commodity data needs a quite long time, and the system resource is consumed and the efficiency is low. When the data of the suppliers is not updated timely, the situation that the users search out more goods and cannot purchase the goods is caused, the purchase experience of the users is deteriorated, and the economic losses of the suppliers and the agents are caused, so that more aged data updating strategies are needed.
Disclosure of Invention
An embodiment of the application aims to provide a data processing method, a data processing device and electronic equipment, which are used for solving the problems existing in the prior art.
In a first aspect, an embodiment of the present invention provides a data processing method, including: receiving a query request sent by a first terminal, wherein the query request comprises an identification code of a query object; judging whether the query object belongs to the instant update class according to the identification code; if the query object belongs to the instant update class, sending an update request of the query object to the second terminal; receiving return data from the second terminal; and sending the query result information of the query object to the first terminal according to the returned data and the query request.
In an alternative embodiment, according to the returned data and the query request, sending query result information of the query object to the first terminal includes: judging whether the returned data accords with the query request or not according to the returned data and the query request; if the returned data accords with the query request, generating request success information according to the returned data; and sending request success information to the first terminal.
In an alternative embodiment, the method further comprises: if the query object does not belong to the instant update class, judging whether the current time reaches the preset update time of the query object; if the current time does not reach the preset updating time, acquiring the current state data of the query object; and sending the query result information of the query object to the first terminal according to the current state data and the query request.
In an alternative embodiment, the step of setting the preset update time includes: acquiring the current stock quantity of the query object; judging whether the current stock quantity is smaller than a preset threshold value or not; if the current stock quantity is smaller than a preset threshold value, acquiring a first updating frequency and the latest updating time of the query object in a first preset time period; and generating preset updating time according to the first updating frequency and the latest updating time.
In an alternative embodiment, the step of setting the preset update time further includes: if the current stock quantity is greater than or equal to a preset threshold value, acquiring a transaction record of the query object in a second preset time period; and generating preset updating time of the query object according to the transaction record.
In an alternative embodiment, generating a preset update time of the query object according to the transaction record includes: acquiring the transaction times of the query object in a second preset time period according to the transaction record; generating an update weight value corresponding to the query object according to the transaction times; and generating preset updating time of the query object according to the weight updating time table and the updating weight value.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including: the first receiving module is used for receiving a query request sent by the first terminal, wherein the query request comprises an identification code of a query object; the first judging module is used for judging whether the query object belongs to the instant update class according to the identification code; the first sending module is used for sending an update request of the query object to the second terminal if the query object belongs to the instant update class; the second receiving module is used for receiving the return data from the second terminal; and the second sending module is used for sending the query result information of the query object to the first terminal according to the returned data and the query request.
In an alternative embodiment, the second sending module is further configured to: judging whether the returned data accords with the query request or not according to the returned data and the query request; if the returned data accords with the query request, generating request success information according to the returned data; and sending request success information to the first terminal.
In an alternative embodiment, the apparatus further comprises: the second judging module is used for judging whether the current time reaches the preset updating time of the query object if the query object does not belong to the instant updating class; the first acquisition module is used for acquiring the current state data of the query object if the current time does not reach the preset update time; and the third sending module is used for sending the query result information of the query object to the first terminal according to the current state data and the query request.
In an alternative embodiment, the apparatus further comprises: a setting module, configured to: acquiring the current stock quantity of the query object; judging whether the current stock quantity is smaller than a preset threshold value or not; if the current stock quantity is smaller than a preset threshold value, acquiring a first updating frequency and the latest updating time of the query object in a first preset time period; and generating preset updating time according to the first updating frequency and the latest updating time.
In an alternative embodiment, the setting module is further configured to: if the current stock quantity is greater than or equal to a preset threshold value, acquiring a transaction record of the query object in a second preset time period; and generating preset updating time of the query object according to the transaction record.
In a third aspect, an embodiment provides an electronic device, including: a memory for storing a computer program; a processor for performing the method of the foregoing embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an electronic device provided in an embodiment of the present application;
FIG. 2A is an interactive scenario provided in an embodiment of the present application;
FIG. 2B is a timing diagram of an interactive scenario provided in an embodiment of the present application;
FIG. 3 is a flowchart of a data processing method according to an embodiment of the present application;
FIG. 4 is a flowchart of another data processing method according to an embodiment of the present application;
FIG. 5 is a flowchart of another data processing method according to an embodiment of the present application;
FIG. 6 is a flowchart for setting a preset update time according to an embodiment of the present application;
FIG. 7 is a flowchart of another embodiment of setting a preset update time;
FIG. 8 is a schematic diagram of a data processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another data processing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
As shown in fig. 1, the present embodiment provides an electronic apparatus 1 including: at least one processor 11 and a memory 12, one processor 11 being exemplified in fig. 1. The processor 11 and the memory 12 are connected through the bus 10, and the memory 12 stores instructions executable by the processor 11, where the instructions are executed by the processor 11, so that the electronic device 1 may perform all or part of the flow of the method in the embodiment described below, to send the corresponding query result to the first terminal according to the query request.
In an embodiment, the electronic device 1 may be a mobile phone, a notebook computer, a desktop computer, or the like.
As shown in fig. 2A, which is an interaction schematic scenario between the server 100 and the first terminal 200 and the second terminal 300 in this embodiment, the server 100 may be a data storage server or a data processing server. The first terminal 200 may be a mobile device and the second terminal 300 may be a data storage terminal or a data processing terminal. The server 100 may determine the query object according to the query request sent by the first terminal 200, determine whether the query object belongs to the instant update class according to the identification code included in the query request, send an update request corresponding to the query object to the second terminal 300 to obtain data update when the query object is determined to belong to the instant update class, compare the query request of the first terminal 200 with the return data of the second terminal 300 after obtaining the return data returned by the second terminal 300, and send the comparison result to the first terminal 200 as query result information.
In an embodiment, as shown in fig. 2B, taking data interaction in an online product transaction scenario as an example, the first terminal 200 may be a mobile phone of a user who needs online shopping, the second terminal 300 may be a data system of a vendor, and the server 100 may be a third party proxy platform, through which the user performs online product transaction with the vendor. The data processing among the server 100, the first terminal 200, and the second terminal 300 may be performed by the following steps.
Step 201: the first terminal 200 submits a purchase request for the a commodity to the server 100.
Step 202: the server 100 requests the a commodity data from the second terminal 300.
Step 203: the second terminal 300 transmits real-time data of the a commodity including the current price and inventory to the server 100.
Step 204: the server 100 updates the latest data of the commodity a to the local data after receiving the latest data.
Step 205: if the data of the a commodity does not meet the purchase request submitted by the first terminal 200, for example, the price is inconsistent, the inventory is smaller than the number of purchase requests, etc., the server 100 returns the information of the purchase failure to the first terminal 200.
Step 206: if the data of the a commodity matches the purchase request submitted by the first terminal 200, the server 100 transmits the purchase request to the second terminal 300.
Step 207: after the purchase is successful, the server 100 returns the purchase success information to the first terminal 200.
Referring to fig. 3, a data processing method provided in this embodiment may be executed by the electronic device 1 shown in fig. 1 and may be used in the interaction scenario shown in fig. 2A to 2B, and the method includes the following steps:
step 301: the query request sent by the first terminal 200 is received, where the query request includes an identification code of the query object.
In this step, the server 100 receives a query request from the first terminal 200 or from an external network, and the server 100 searches for a query object corresponding to the identifier in the memory according to the identifier carried in the query request, or searches for related data corresponding to the identifier in an external storage device connected to the server 100 through a communication network.
In an embodiment, the communication network connection mode may be a wireless connection communication mode or a wired connection communication mode, and the wireless connection communication mode may be a wireless network transmission mode using the protocol IEEE802.11 a/b/c/n/g/ac for wireless communication (Wi-Fi), a wireless network transmission mode or a radio frequency transmission mode using a bluetooth device or a transmission device with a bluetooth protocol function, a mobile network communication technology using a global system for mobile communication (GSM, global System for Mobile Communications), code Division Multiple Access (CDMA), wideband Code Division Multiple Access (WCDMA), time division synchronous code division multiple access (TD-SCDMA), a mobile network communication technology based on Orthogonal Frequency Division Multiplexing (OFDM), and the like.
The communication method of the wired connection may be a method of realizing communication by using a transmission line having a communication function such as an optical fiber, a network cable, or an electric wire, or other forms having the capability of transmitting data signals equivalent to the optical fiber, the network cable, or the electric wire.
Step 302: and judging whether the query object belongs to the instant update class according to the identification code. If yes, go to step 303, if no, go to step 306.
In this step, after the query object is identified according to the identification code, it is necessary to determine whether the query object belongs to the instant update class. In one embodiment, the instant update class of the query object is obtained immediately upon receipt of the query request, and returned to the terminal sending the query request.
Step 303: an update request of the query object is transmitted to the second terminal 300.
In this step, when it is judged that the query object belongs to the instant update class, an update request is transmitted to the second terminal 300 so as to acquire the latest data of the query object.
Step 304: and receives the return data from the second terminal 300.
In this step, the return data sent by the second terminal 300 is received in real time, where the return data includes: the instant data of the query object includes a single price, price interval, model, parameter, etc., and may also include inventory quantity.
Step 305: and sending query result information of the query object to the first terminal 200 according to the returned data and the query request.
In this step, after receiving the return data, the query condition in the query request is matched with the return data, and the information of success or failure of the matching is sent to the first terminal 200 as the query result information.
Step 306: query result information of the query object is transmitted to the first terminal 200.
In this step, when it is determined that the query object does not belong to the instant update category, the query information is directly matched with the local data, and information of success or failure of the matching is transmitted to the first terminal 200 as query result information.
Referring to fig. 4, a data processing method provided in this embodiment may be executed by the electronic device 1 shown in fig. 1 and used in the interaction scenario shown in fig. 2A to 2B, and the method includes the following steps:
step 401: the query request sent by the first terminal 200 is received, where the query request includes an identification code of the query object. For details, please refer to the description of step 301 in the above embodiment.
Step 402: and judging whether the query object belongs to the instant update class according to the identification code. For details, please refer to the description of step 302 in the above embodiment.
Step 403: an update request of the query object is transmitted to the second terminal 300. For details, refer to the description of step 303 in the above embodiment.
Step 404: and receives the return data from the second terminal 300. For details, please refer to the description of step 304 in the above embodiment.
Step 405: and sending query result information of the query object to the first terminal 200 according to the returned data and the query request. For details, refer to the description of step 305 in the above embodiment.
Step 406: and judging whether the returned data accords with the query request or not according to the returned data and the query request. If yes, go to step 407, if no, go to step 409.
In this step, the query condition of the query request transmitted by the first terminal 200 may be price, model number, parameter, etc., and may further include purchase quantity. The return data returned by the second terminal 300 according to the update request may include a price of a single piece, a price interval, a model number, a parameter, etc., and may further include an inventory number. And matching the conditions contained in the query request with the real-time data in the returned data to realize the instant updating of the related data of the query object.
Step 407: and generating request success information according to the returned data.
In this step, if the returned data meets the query request, it is indicated that the returned data meets the condition of the query request, that is, the query request is successful. The request success information may include inventory amounts of the query objects, individual prices, etc.
Step 408: the request success information is transmitted to the first terminal 200.
In this step, the request success information is sent to the first terminal 200, and the inquiry process is completed.
Step 409: the request failure information is transmitted to the first terminal 200.
In this step, if the returned data does not meet the query request, it is indicated that the second terminal 300 does not have a query object meeting the query request.
Referring to fig. 5, another method for selecting a provisioning object according to the present embodiment may be performed by the electronic device 1 shown in fig. 1 and used in the interaction scenario shown in fig. 2A to 2B, and includes the following steps:
step 501: the query request sent by the first terminal 200 is received, where the query request includes an identification code of the query object. For details, please refer to the description of step 301 in the above embodiment.
Step 502: and judging whether the query object belongs to the instant update class according to the identification code. If yes, go to step 503, if not, go to step 506. For details, please refer to the description of step 302 in the above embodiment.
Step 503: an update request of the query object is transmitted to the second terminal 300. For details, refer to the description of step 303 in the above embodiment.
Step 504: and receives the return data from the second terminal 300. For details, please refer to the description of step 304 in the above embodiment.
Step 505: and sending query result information of the query object to the first terminal 200 according to the returned data and the query request. For details, refer to the description of step 305 in the above embodiment.
Step 506: and judging whether the current time reaches the preset updating time of the query object. If not, go to step 507, if yes, go to step 508.
In this step, if the query object does not belong to the instant update class, an automatically updated time node needs to be set for the query object.
In an embodiment, the preset update time may be set to set a weight value of the query object according to the number of queries or the number of successful requests in the history data, and the period for executing the update is adjusted according to the size of the weight value. The preset updating time can also be set to adjust the updating period according to the state data of the query object, for example, when the query object is an inventory commodity, for the query object with inventory of 0, the period unit of the next updating time data is lengthened after each updating of the data, so that the updating frequency of each time is lower and lower. The purpose is that the inventory data of the just sold out commodity needs to be updated quickly, and the commodity is put on shelf as soon as possible after the commodity is restocked to be purchased. If the inventory of the commodity is 0 for a long time, the commodity is likely to be stopped, and the data of the commodity is not updated frequently.
Step 507: current state data of the query object is obtained.
In this step, when the time reaches the preset update time, the current state data of the query object is acquired at the second terminal 300, where the current state data includes a data type corresponding to the query condition in the query request.
Step 508: according to the current state data and the query request, query result information of the query object is transmitted to the first terminal 200.
In this step, the query condition of the query request transmitted by the first terminal 200 may be price, model number, parameter, etc., and may further include purchase quantity. The return data returned by the second terminal 300 according to the update request may include a price of a single piece, a price interval, a model number, a parameter, etc., and may further include an inventory number. And matching the conditions contained in the query request with the real-time data in the returned data to realize the instant updating of the related data of the query object. The request success information is sent to the first terminal 200, and the inquiry process is completed.
Referring to fig. 6, a method for setting a preset update time according to the present embodiment may be performed by the electronic device 1 as the server 100, and may be used to set the preset update time according to the above embodiment, and the specific steps are as follows:
step 601: the current inventory of the query object is obtained.
In this step, the current stock quantity of the query object is obtained, and further, whether the query object needs to be updated for adjustment is determined according to the current stock quantity. In an embodiment, acquiring related data of the query object requires acquiring a commodity list meeting a condition to be updated, where the condition to be updated may be that the inventory number is equal to a certain preset value.
Step 602: and judging whether the current stock quantity is smaller than a preset threshold value. If yes, go to step 603, if no, go to step 605.
In this step, after the current inventory amount of the query object is obtained, whether the current inventory amount needs to be modified in update time is determined by a preset threshold value set in advance.
Step 603: and acquiring a first updating frequency and the latest updating time of the query object in a first preset time period.
In this step, if the current inventory amount is smaller than the preset threshold value, it is indicated that the inventory of the query object is insufficient or unchanged for a long time. The historical transaction record contains historical transaction information of the query object, and the transaction information can be the latest update time, transaction amount, update weight value, update period and the like.
Step 604: and generating preset updating time according to the first updating frequency and the latest updating time.
In this step, the update frequency may be the latest update time of the query object data, when the current state data of the query object is consistent and is smaller than the preset threshold, the number of times of modifying the update time will increase, and when the number of times of modifying reaches a certain level, the interval of each time of modifying the update time is further enlarged until the number of times of modifying exceeds the maximum value, and no update is performed.
In one embodiment, next commodity update time = last update time + fm (number of down-updates per unit time), fm is a direct correlation function of the number of down-updates. In actual operation, the functions and parameters can be optimized and adjusted in advance according to actual conditions, and after each update is finished, the system waits for an update period time and then carries out an update operation again. As shown in table 1, for each commodity, the down-conversion update times are recorded correspondingly, and the next update time is generated according to the latest update time and the down-conversion update times.
Table 1:
# commodity ID Time of last update Stock number Frequency-down updating times Next update time
1 SKU-001 2020-3-1 02:00 0 2 2020-3-1 12:00
2 SKU-002 2020-3-1 02:00 0 4 2020-3-2 12:00
3 SKU-003 2020-3-2 02:00 0 10 2020-3-10 12:00
Step 605: and acquiring a transaction record of the query object in a second preset time period.
In this step, the transaction record may be the number of transactions and the number of transactions in the past period of time, which is used as a conditional value for setting the update weight value. In one embodiment, the updated weight value is a positive correlation function with respect to the purchase technical value.
Step 606: and generating preset updating time of the query object according to the transaction record.
In this step, the execution cycle periodically executes the relevant update policy. And extracting relevant commodity identification codes according to the weight value range in the strategy, and carrying out data synchronization according to the query request. And updating the latest execution time to the current time after the execution is completed and recording.
Referring to fig. 7, another method for setting a preset update time according to the present embodiment may be performed by the electronic device 1 as the server 100, and may be used to set the preset update time according to the above embodiment, and the specific steps are as follows:
step 701: the current inventory of the query object is obtained. For details, refer to the description of step 601 in the above embodiment.
Step 702: and judging whether the current stock quantity is smaller than a preset threshold value. For details, please refer to the description of step 602 in the above embodiment.
Step 703: and acquiring a first updating frequency and the latest updating time of the query object in a first preset time period. For details, please refer to the description of step 603 in the above embodiment.
Step 704: and generating preset updating time according to the first updating frequency and the latest updating time. For details, please refer to the description of step 604 in the above embodiment.
Step 705: and acquiring a transaction record of the query object in a second preset time period. For details, please refer to the description of step 605 in the above embodiment.
Step 706: and acquiring the transaction times of the query object in a second preset time period according to the transaction record.
In this step, the transaction record may be the number of transactions and the number of transactions in the past period of time, which is used as a conditional value for setting the update weight value. Purchase data, query data, etc. for calculating the weight value may be extracted from the historical transaction data after it is acquired.
Step 707: and generating an updated weight value corresponding to the query object according to the transaction times.
In this step, the execution cycle periodically executes the relevant update policy. And extracting relevant identification codes, namely commodity IDs, according to the weight value range in the strategy, and carrying out data synchronization according to the query request. The update weight value corresponding to the historical transaction data is shown in table 2, the historical transaction data has the latest update time corresponding to each commodity ID, and different purchase count values generate different update weight values.
Table 2:
# commodity ID Time of last update Purchase count value Weight value
1 SKU-001 2020-3-1 02:00 1200 3
2 SKU-002 2020-3-1 02:00 1500 4
3 SKU-003 2020-3-2 02:00 4000 10
Step 708: and generating preset updating time of the query object according to the weight updating time table and the updating weight value.
In this step, different update periods are formulated for different update weight values. The weight update schedule is shown in table 3, and different update weight values correspond to different execution periods.
Table 3:
# policy ID Time of last execution Maximum weight Minimum weight Execution cycle
1 PLAN-001 2020-3-1 02:00 3 0 For 1 week
2 PLAN-002 2020-3-1 02:00 8 4 For 1 day
3 PLAN-003 2020-3-2 02:00 10 9 1 hour
Referring to fig. 8, a data processing apparatus 800 provided in this embodiment is applicable to the electronic device 1 shown in fig. 1 and in the scenario of data processing in fig. 2A to 2B, so as to determine a query object according to an identification code included in a query request, and confirm whether the query object belongs to an instant update class, when confirming that the query object belongs to the instant update class, send an update request corresponding to the query object to the second terminal 300 to obtain data update, compare the query request of the first terminal 200 with the return data of the second terminal 300 after obtaining the return data returned by the second terminal 300, and send the comparison result to the first terminal 200 as query result information. The device comprises: a first receiving module 801, a first judging module 802, a first transmitting module 803, a second receiving module 804, and a second transmitting module 805. The specific principle is as follows:
the first receiving module 801 is configured to receive a query request sent by a first terminal, where the query request includes an identification code of a query object. For details, please refer to the description of step 301 in the above method embodiment.
The first determining module 802 is configured to determine whether the query object belongs to the instant update category according to the identification code. For details, please refer to the description of step 302 in the method embodiment above.
The first sending module 803 sends an update request of the query object to the second terminal if the query object belongs to the instant update class. For details, please refer to the description of step 303 in the above method embodiment.
And a second receiving module 804, configured to receive the return data from the second terminal. For details, please refer to the description of step 304 in the method embodiment above.
And the second sending module 805 is configured to send, according to the returned data and the query request, query result information of the query object to the first terminal. For details, please refer to the description of step 305 in the above method embodiment.
In an embodiment, the second sending module 805 is further configured to: judging whether the returned data accords with the query request or not according to the returned data and the query request; if the returned data accords with the query request, generating request success information according to the returned data; and sending request success information to the first terminal. For details, refer to the description of steps 406-409 in the method embodiment described above.
Referring to fig. 9, another data processing apparatus 900 provided in this embodiment is applicable to the electronic device 1 shown in fig. 1 and the scenario of data processing in fig. 2A to 2B, so as to determine a query object according to an identification code included in a query request, and confirm whether the query object belongs to an instant update class, when confirming that the query object belongs to the instant update class, send an update request corresponding to the query object to the second terminal 300 to obtain data update, compare the query request of the first terminal 200 with the return data of the second terminal 300 after obtaining the return data returned by the second terminal 300, and send the comparison result to the first terminal 200 as query result information. The device comprises: a first receiving module 901, a first judging module 902, a first transmitting module 903, a second receiving module 904, a second transmitting module 905, a setting module 906, a second judging module 907, a first acquiring module 908, and a third transmitting module 909. The specific principle is as follows:
the first receiving module 901 is configured to receive a query request sent by a first terminal, where the query request includes an identification code of a query object. For details, please refer to the description of step 301 in the above method embodiment.
The first determining module 902 is configured to determine whether the query object belongs to the instant update category according to the identification code. For details, please refer to the description of step 302 in the method embodiment above.
The first sending module 903 sends an update request of the query object to the second terminal if the query object belongs to the instant update class. For details, please refer to the description of step 303 in the above method embodiment.
And a second receiving module 904, configured to receive the return data from the second terminal. For details, please refer to the description of step 304 in the method embodiment above.
And the second sending module 905 is configured to send, according to the returned data and the query request, query result information of the query object to the first terminal. For details, please refer to the description of step 305 in the above method embodiment.
The setting module 906 is configured to: acquiring the current stock quantity of the query object; judging whether the current stock quantity is smaller than a preset threshold value or not; if the current stock quantity is smaller than a preset threshold value, acquiring a first updating frequency and the latest updating time of the query object in a first preset time period; generating preset updating time according to the first updating frequency and the latest updating time; the current stock quantity is larger than or equal to a preset threshold value, and a transaction record of the query object in a second preset time period is obtained; and generating preset updating time of the query object according to the transaction record. For details, please refer to the description of steps 601-606 in the above embodiments.
In one embodiment, the setting module 906 is further configured to: acquiring the current stock quantity of the query object; judging whether the current stock quantity is smaller than a preset threshold value or not; if the current stock quantity is smaller than a preset threshold value, acquiring a first updating frequency and the latest updating time of the query object in a first preset time period; generating preset updating time according to the first updating frequency and the latest updating time; the current stock quantity is larger than or equal to a preset threshold value, and a transaction record of the query object in a second preset time period is obtained; acquiring the transaction times of the query object in a second preset time period according to the transaction record; generating an update weight value corresponding to the query object according to the transaction times; and generating preset updating time of the query object according to the weight updating time table and the updating weight value. For details, please refer to the description of steps 701-708 in the above embodiments.
The second judging module 907 is configured to judge whether the current time reaches the preset update time of the query object if the query object does not belong to the instant update category. For details, please refer to the description of step 506 in the method embodiment above.
The first obtaining module 908 is configured to obtain current state data of the query object if the current time does not reach the preset update time. For details, please refer to the description of step 507 in the above method embodiment.
And a third sending module 909, configured to send query result information of the query object to the first terminal according to the current state data and the query request. For details, please refer to the description of step 508 in the method embodiment above.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM) random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations may be suggested to one skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (9)

1. A method of data processing, comprising:
receiving a query request sent by a first terminal, wherein the query request comprises an identification code of a query object;
judging whether the query object belongs to an instant update class according to the identification code;
if the query object belongs to the instant update class, sending an update request of the query object to a second terminal;
receiving return data from the second terminal;
according to the returned data and the query request, query result information of the query object is sent to the first terminal;
if the query object does not belong to the instant update class, judging whether the current time reaches the preset update time of the query object;
if the current time does not reach the preset updating time, acquiring current state data of the query object;
and sending query result information of the query object to the first terminal according to the current state data and the query request.
2. The method according to claim 1, wherein the sending query result information of the query object to the first terminal according to the returned data and the query request includes:
judging whether the returned data accords with the query request or not according to the returned data and the query request;
if the returned data accords with the query request, generating request success information according to the returned data;
and sending the request success information to the first terminal.
3. The method of claim 1, wherein the step of setting the preset update time comprises:
acquiring the current stock quantity of the query object;
judging whether the current stock quantity is smaller than a preset threshold value or not;
if the current stock quantity is smaller than the preset threshold value, acquiring a first updating frequency and the latest updating time of the query object in a first preset time period;
and generating the preset updating time according to the first updating frequency and the latest updating time.
4. A method according to claim 3, wherein the step of setting the preset update time further comprises:
if the current stock quantity is greater than or equal to the preset threshold value, acquiring a transaction record of the query object in a second preset time period;
and generating the preset updating time of the query object according to the transaction record.
5. The method of claim 4, wherein generating the preset update time for the query object from the transaction record comprises:
acquiring the transaction times of the query object in the second preset time period according to the transaction record;
generating an updated weight value corresponding to the query object according to the transaction times;
and generating the preset updating time of the query object according to the weight updating time table and the updating weight value.
6. A data processing apparatus, comprising:
the first receiving module is used for receiving a query request sent by the first terminal, wherein the query request comprises an identification code of a query object;
the first judging module is used for judging whether the query object belongs to the instant update class according to the identification code;
the first sending module is used for sending an update request of the query object to the second terminal if the query object belongs to the instant update class;
the second receiving module is used for receiving the return data from the second terminal;
the second sending module is used for sending the query result information of the query object to the first terminal according to the returned data and the query request;
the second judging module is used for judging whether the current time reaches the preset updating time of the query object or not if the query object does not belong to the instant updating class;
the first acquisition module is used for acquiring the current state data of the query object if the current time does not reach the preset updating time;
and the third sending module is used for sending the query result information of the query object to the first terminal according to the current state data and the query request.
7. The apparatus of claim 6, further comprising a setup module to:
acquiring the current stock quantity of the query object;
judging whether the current stock quantity is smaller than a preset threshold value or not;
if the current stock quantity is smaller than the preset threshold value, acquiring a first updating frequency and the latest updating time of the query object in a first preset time period;
and generating the preset updating time according to the first updating frequency and the latest updating time.
8. The apparatus of claim 7, wherein the setup module is further to:
if the current stock quantity is greater than or equal to the preset threshold value, acquiring a transaction record of the query object in a second preset time period;
and generating the preset updating time of the query object according to the transaction record.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor configured to perform the method of any one of claims 1 to 5.
CN202010379520.3A 2020-04-26 2020-05-07 Data processing method and device and electronic equipment Active CN111553776B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010341512X 2020-04-26
CN202010341512 2020-04-26

Publications (2)

Publication Number Publication Date
CN111553776A CN111553776A (en) 2020-08-18
CN111553776B true CN111553776B (en) 2023-08-08

Family

ID=72007944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010379520.3A Active CN111553776B (en) 2020-04-26 2020-05-07 Data processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111553776B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1100034A2 (en) * 1999-11-12 2001-05-16 Hewlett-Packard Company, A Delaware Corporation A system amd method for ordering consumer items in electronic commerce
JP2004244181A (en) * 2003-02-14 2004-09-02 Toppan Printing Co Ltd Inventor information providing device, terminal equipment, inventory information providing method and inventory information providing program
CN101877094A (en) * 2009-01-28 2010-11-03 朱丹 Commodity electric catalog system
CN102024010A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Data processing system and data processing method
CN102916935A (en) * 2011-08-04 2013-02-06 深圳华强电子交易网络有限公司 Site content pickup-preventing method
CN103324187A (en) * 2013-06-09 2013-09-25 深圳市元征科技股份有限公司 Data updating method of car diagnostic equipment and car diagnostic equipment
CN103577959A (en) * 2013-11-11 2014-02-12 中国联合网络通信集团有限公司 Server, client terminal and merchandise distribution information pushing and identification method
CN104408097A (en) * 2014-11-17 2015-03-11 深圳市比一比网络科技有限公司 Hybrid indexing method and system based on character field hot update
CN106341449A (en) * 2016-08-15 2017-01-18 腾讯科技(深圳)有限公司 Data synchronization method and device
CN107066471A (en) * 2016-11-23 2017-08-18 阿里巴巴集团控股有限公司 A kind of method and device of dynamic display of information
CN107544783A (en) * 2016-06-27 2018-01-05 腾讯科技(深圳)有限公司 A kind of data-updating method, apparatus and system
CN107563843A (en) * 2017-08-08 2018-01-09 深圳开思时代科技有限公司 The inquiry price quoting method and system of auto-parts
WO2018018544A1 (en) * 2016-07-28 2018-02-01 孙秋实 Information pushing method during instant commodity update reminding and pushing system
CN107833083A (en) * 2017-09-25 2018-03-23 阿里巴巴集团控股有限公司 A kind of order for goods processing method, device, server, shopping terminals and system
CN109948994A (en) * 2018-12-14 2019-06-28 深圳壹账通智能科技有限公司 A kind of instant communicating method, device, computer system and readable storage medium storing program for executing
CN109978452A (en) * 2019-03-20 2019-07-05 广州精选速购网络科技有限公司 Logistics information automatic update method and system
CN110443679A (en) * 2019-07-05 2019-11-12 亳州市聪睿科技咨询有限公司 One kind being based on electric business supply system and Supply Method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040030608A1 (en) * 2002-06-10 2004-02-12 Say-Yee Wen Communicating apparatus with scanning function
US20040143516A1 (en) * 2002-06-25 2004-07-22 Hastie Neil A. System for allowing vendors to manage product information in a database system
US20150278890A1 (en) * 2014-03-28 2015-10-01 Samsung Electro-Mechanics Co., Ltd. Electronic information label system with adjustable wake-up update period

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1100034A2 (en) * 1999-11-12 2001-05-16 Hewlett-Packard Company, A Delaware Corporation A system amd method for ordering consumer items in electronic commerce
JP2004244181A (en) * 2003-02-14 2004-09-02 Toppan Printing Co Ltd Inventor information providing device, terminal equipment, inventory information providing method and inventory information providing program
CN101877094A (en) * 2009-01-28 2010-11-03 朱丹 Commodity electric catalog system
CN102024010A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Data processing system and data processing method
CN102916935A (en) * 2011-08-04 2013-02-06 深圳华强电子交易网络有限公司 Site content pickup-preventing method
CN103324187A (en) * 2013-06-09 2013-09-25 深圳市元征科技股份有限公司 Data updating method of car diagnostic equipment and car diagnostic equipment
CN103577959A (en) * 2013-11-11 2014-02-12 中国联合网络通信集团有限公司 Server, client terminal and merchandise distribution information pushing and identification method
CN104408097A (en) * 2014-11-17 2015-03-11 深圳市比一比网络科技有限公司 Hybrid indexing method and system based on character field hot update
CN107544783A (en) * 2016-06-27 2018-01-05 腾讯科技(深圳)有限公司 A kind of data-updating method, apparatus and system
WO2018018544A1 (en) * 2016-07-28 2018-02-01 孙秋实 Information pushing method during instant commodity update reminding and pushing system
CN106341449A (en) * 2016-08-15 2017-01-18 腾讯科技(深圳)有限公司 Data synchronization method and device
CN107066471A (en) * 2016-11-23 2017-08-18 阿里巴巴集团控股有限公司 A kind of method and device of dynamic display of information
CN107563843A (en) * 2017-08-08 2018-01-09 深圳开思时代科技有限公司 The inquiry price quoting method and system of auto-parts
CN107833083A (en) * 2017-09-25 2018-03-23 阿里巴巴集团控股有限公司 A kind of order for goods processing method, device, server, shopping terminals and system
CN109948994A (en) * 2018-12-14 2019-06-28 深圳壹账通智能科技有限公司 A kind of instant communicating method, device, computer system and readable storage medium storing program for executing
CN109978452A (en) * 2019-03-20 2019-07-05 广州精选速购网络科技有限公司 Logistics information automatic update method and system
CN110443679A (en) * 2019-07-05 2019-11-12 亳州市聪睿科技咨询有限公司 One kind being based on electric business supply system and Supply Method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
空间数据库增量联动更新方法研究;曹洋洋;基础科学;全文 *

Also Published As

Publication number Publication date
CN111553776A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN105096015B (en) Commodity object information processing method and system
CN106570740B (en) Commodity ordering and purchasing method and device and server
CN101959179B (en) Method for providing mobile terminal application program, and server and mobile terminal
CN102811135B (en) Traffic notifying system and method
KR101543221B1 (en) - Method Apparatus and System for Providing Muti User-Multi Service
CN106846062A (en) A kind of control method, the advertisement transaction platform of the advertisement exposure frequency
CN104579912B (en) Data pushing method and device
CN103188626B (en) Mobile phone advertisement distribution system, method and device, data maintaining method and device
CN104766213A (en) Intelligent distribution system of fast moving consumer goods
CN107038596A (en) Accumulated point exchanging method and its system
CN105335883A (en) Order processing method and device
CN105260924A (en) Mobile terminal, order processing method thereof and Internet ticketing system and method
CN111553776B (en) Data processing method and device and electronic equipment
JP6684291B2 (en) Data processing method and device
CN102739562B (en) Method and device for sending collection information
CN102143468B (en) Method and system for charging, tariff update and service provision
CN104881410A (en) Client platform information interaction method, device and system
CN112446508A (en) Method and device for recovering package in logistics transportation, storage medium and electronic equipment
CN110753323A (en) Card resource allocation method and server
CN103166768A (en) Method and device for matching information provider and information publisher
US11574332B1 (en) Method for generating and using a 2D barcode
CN108989063B (en) Group account data processing method, device and equipment and readable storage medium
KR20130027893A (en) System for supporting merchandise purchase and control method thereof, and method for providing merchandise purchase service
CN111539792A (en) Method and device for sending recommendation information and method and device for receiving recommendation information
CN110717810A (en) Real-time transaction method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant