Data processing method and device, equipment, medium and product
By obtaining and displaying product shipment data in the data processing of the furniture industry, the problems of delay and high cost of data processing are solved, real-time display and efficiency improvement of data are achieved, and real-time data needs are met.
Patent Information
- Application Number
- CN202411243056.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
During the digital transformation process, the furniture industry faces problems of high delay in data processing, expensive cost and long construction cycle, which leads to limited real-time data update capabilities, affecting the accuracy and timeliness of shipment data analysis, and hindering market dynamic response and strategy adjustment.
Provide a data processing method, by obtaining product shipment data within a preset period and data quantity within each preset period, and determining the time slice number and data quantity threshold according to the set display time and time slice size, if the data quantity reaches The threshold is displayed, otherwise the period is adjusted until the threshold is reached.
Real-time display of product shipment data is realized, data processing efficiency is improved, the needs of real-time data scenarios are met, and costs and construction cycles are reduced.
Smart Images

Figure CN119201386A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular, to a data processing method, device, equipment, medium and product. Background Art
[0002] The main problems faced in the digital transformation of the furniture industry include high data processing delays, high costs, and long construction cycles, which limit the ability to update data in real time. In addition, the lack of real-time and dynamic data display affects the accuracy and timeliness of shipment data analysis, hindering rapid response to market dynamics and strategy adjustments.
[0003] At present, the furniture industry needs to monitor shipment data in real time, but the existing real-time technology cannot reuse the existing offline technology components. It is necessary to deploy special technology components for real-time data processing. At the same time, specialized technicians are needed to develop real-time processing functions, resulting in high costs and a long construction period. Summary of the invention
[0004] Embodiments of the present invention provide a data processing method, apparatus, device, medium and product, which can improve the efficiency of data processing, thereby quickly and efficiently meeting the needs of real-time data scenarios.
[0005] In a first aspect, an embodiment of the present invention provides a data processing method, including:
[0006] Acquire product shipment data within a preset time period and a first data volume corresponding to each preset period of the product shipment data; wherein the time period corresponding to the preset period is smaller than the preset time period;
[0007] Determine the number of time slices according to the set display time and the set time slice size;
[0008] Determining a data volume threshold based on the number of time slices and the first data volume;
[0009] If the total quantity corresponding to the product shipment data is greater than or equal to the data volume threshold, the product shipment data is displayed;
[0010] If the total quantity corresponding to the product shipment data is less than the data volume threshold, the preset time period is adjusted, and based on the adjusted preset time period, the operation of obtaining the product shipment data within the preset time period is returned until the total quantity corresponding to the product shipment data is greater than or equal to the data volume threshold.
[0011] In a second aspect, an embodiment of the present invention further provides a data processing device, the device comprising:
[0012] A data acquisition module, used to acquire product shipment data within a preset period and a first data volume corresponding to each preset period of the product shipment data; wherein the period corresponding to the preset period is smaller than the preset period;
[0013] A time slice quantity determination module, used to determine the number of time slices according to a set display time and a set time slice size;
[0014] A data volume threshold determination module, configured to determine a data volume threshold based on the number of time slices and the first data volume;
[0015] A data display module, configured to display the product shipment data if the total quantity corresponding to the product shipment data is greater than or equal to the data quantity threshold;
[0016] A preset time period adjustment module is used to adjust the preset time period if the total quantity corresponding to the product shipment data is less than the data volume threshold, and return to execute the operation of obtaining the product shipment data within the preset time period based on the adjusted preset time period until the total quantity corresponding to the product shipment data is greater than or equal to the data volume threshold.
[0017] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:
[0018] at least one processor; and
[0019] a memory communicatively connected to the at least one processor; wherein,
[0020] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the data processing method described in the embodiment of the present invention.
[0021] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data processing method described in the embodiment of the present invention when executed.
[0022] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which implements the data processing method described in the embodiment of the present invention when executed by a processor.
[0023] The embodiments of the present invention disclose a data processing method, device, equipment, medium and product, including: obtaining product shipment data within a preset time period and a first data volume corresponding to the product shipment data in each preset period; wherein the time period corresponding to the preset period is less than the preset time period; determining the number of time slices according to a set display time and a set time slice size; determining a data volume threshold based on the number of time slices and the first data volume; if the total number corresponding to the product shipment data is greater than or equal to the data volume threshold, displaying the product shipment data; if the total number corresponding to the product shipment data is less than the data volume threshold, adjusting the preset time period, and returning to execute the operation of obtaining the product shipment data within the preset time period based on the adjusted preset time period until the total number corresponding to the product shipment data is greater than or equal to the data volume threshold. The above technical solution specifically considers determining the number of time slices according to the set display time and the set time slice size, and can quickly determine the number of time slices; at the same time, it also considers determining the data volume threshold according to the number of time slices and the first data volume, and can quickly determine the data volume threshold; finally, the total number corresponding to the product shipment data is compared with the data volume threshold, and if the total number is greater than or equal to the data volume threshold, the product shipment data is displayed, and the real-time display of the product shipment data is realized. Compared with the prior art, the technical solution provided by this embodiment can quickly determine the number of time slices and the data volume threshold, realize the real-time display of product shipment data, and improve the efficiency of data processing, so as to quickly and efficiently meet the needs of real-time data scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a flow chart of a data processing method in Embodiment 1 of the present invention;
[0025] Figure 2 is a flow chart of a data processing method in Embodiment 2 of the present invention;
[0026] Figure 3 is a structural schematic diagram of a data processing device in Embodiment 3 of the present invention;
[0027] Figure 4 It is a structural schematic diagram of an electronic device in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0029] Embodiment 1
[0030] Figure 1This is a flowchart of a data processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of processing data. The method can be executed by a data processing device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server. Specifically, it includes the following steps:
[0031] S110: Acquire product shipment data within a preset period and a first data volume corresponding to the product shipment data in each preset period.
[0032] In this embodiment, the preset time period can be a preset time period, wherein the preset time period can be in days, such as three days, five days, etc.; the product shipment data can be understood as the product shipment volume, that is, the volume of products sold, wherein the product can be a furniture product, such as a mattress; the preset cycle can be a preset time period, such as minutes, hours, etc.; wherein the time period corresponding to the preset cycle is less than the preset time period. The first data volume can be understood as the data volume corresponding to the product shipment data in each preset cycle, such as: the data volume corresponding to the product shipment data per hour.
[0033] Exemplarily, assuming that the preset time period is two days and the preset cycle is hours, the method of obtaining the product shipment data within the preset time period and the first data volume corresponding to the product shipment data in each preset cycle can be described as: obtaining the product shipment data within two days and the first data volume corresponding to the product shipment data per hour.
[0034] Continuing with the above description, there are 48 hours in two days, and the product shipment data has a corresponding first data volume in each hour, that is, 48 first data volumes. For example, in the first hour, the first data volume corresponding to the product shipment data is 2, that is, there are 2 product shipment data in the first hour; in the second hour, the first data volume corresponding to the product shipment data is 10, that is, there are 10 product shipment data in the second hour...; and so on, 48 first data volumes can be obtained.
[0035] S120: Determine the number of time slices according to the set display time and the set time slice size.
[0036] In this embodiment, the product shipment data needs to be displayed, and the set display time can be a display time set in advance, such as 1 hour, that is, the product shipment data is displayed for one hour; the time slice can be understood as the granularity of time, and the time slice size is set in advance, such as 1 millisecond, 1 second, etc., wherein the set time slice size is smaller than the set display time; the number of time slices can be understood as the number of time slices contained in the set display time.
[0037] For example, an implementation method for determining the number of time slices according to the set display time and the set time slice size can be described as follows: the set display time and the set time slice size are respectively recorded as R and T, and then according to the formula P=R / T, the number of time slices P can be obtained; wherein the units of R and T must be consistent. For example, assuming that the set display time R is 1 hour, that is, 3600 seconds, and the set time slice size T is 1 second, then according to the above formula, the number of time slices can be determined to be 3600.
[0038] S130: Determine a data volume threshold based on the number of time slices and the first data volume.
[0039] In this embodiment, the data volume threshold is used to compare with the total quantity corresponding to the product shipment data, so as to determine whether the product shipment data can be displayed; wherein the data volume threshold can be understood as a critical value of the data volume, such as: the minimum data volume value.
[0040] Furthermore, for determining the data volume threshold based on the number of time slices and the first data volume, one implementation method can be described as: calculate the ratio of multiple first data volumes to the total quantity corresponding to the product shipment data, and obtain multiple ratios; obtain the expected value of the data volume based on the total quantity and the preset time period; multiply the multiple ratios by the expected value of the data volume, and divide the multiple multiplication results by the number of time slices to obtain multiple target data volumes; sum the multiple target data volumes, and use the summed result as the data volume threshold.
[0041] Continuing with the above description, the expected value of the data volume=total quantity / (preset time period-1); wherein the preset time period is greater than 1.
[0042] S140: If the total quantity corresponding to the product shipment data is greater than or equal to the data quantity threshold, the product shipment data is displayed.
[0043] In this embodiment, the total quantity corresponding to the product shipment data can be understood as the total data volume corresponding to the product shipment data within a preset period. For example, assuming that the total quantity corresponding to the product shipment data is S and the data volume threshold is e, if S>=e, the product shipment data is displayed.
[0044] S150. If the total quantity corresponding to the product shipment data is less than the data volume threshold, adjust the preset time period, and return to execute the operation of obtaining the product shipment data within the preset time period based on the adjusted preset time period until the total quantity corresponding to the product shipment data is greater than or equal to the data volume threshold.
[0045] In this embodiment, if the total quantity corresponding to the product shipment data is less than the data volume threshold, it means that the data volume of the obtained product shipment data is small, and the preset time period needs to be adjusted at this time; specifically, the preset time period needs to be increased, for example: the original two-day preset time period is adjusted to three days. Further, after the preset time period is adjusted, the process returns to execute the acquisition of the product shipment data within the adjusted preset time period and the first data volume corresponding to the product shipment data within each preset cycle, and the number of time slices is determined according to the set display time and the set time slice size, and the data volume threshold is determined based on the number of time slices and the first data volume, and the total quantity corresponding to the product shipment data is compared with the data volume threshold. If the total quantity is greater than or equal to the data volume threshold, the product shipment data is displayed, otherwise the preset time period is continued to be increased, and the above steps are repeated until the total quantity is greater than or equal to the data volume threshold.
[0046] The technical solution of this embodiment is to obtain the product shipment data within a preset time period and the first data volume corresponding to the product shipment data in each preset period; determine the number of time slices according to the set display time and the set time slice size; determine the data volume threshold based on the number of time slices and the first data volume; if the total number corresponding to the product shipment data is greater than or equal to the data volume threshold, the product shipment data is displayed; if the total number corresponding to the product shipment data is less than the data volume threshold, the preset time period is adjusted, and based on the adjusted preset time period, the operation of obtaining the product shipment data within the preset time period is returned to execute until the total number corresponding to the product shipment data is greater than or equal to the data volume threshold. The above technical solution specifically considers that the number of time slices can be determined according to the set display time and the set time slice size, and the number of time slices can be determined quickly; at the same time, it also considers that the data volume threshold can be determined according to the number of time slices and the first data volume, and the data volume threshold can be determined quickly; finally, the total number corresponding to the product shipment data is compared with the data volume threshold, and if the total number is greater than or equal to the data volume threshold, the product shipment data is displayed, realizing the real-time display of the product shipment data. The technical solution provided in this embodiment can quickly determine the number of time slices and data volume thresholds, realize real-time display of product shipment data, and improve data processing efficiency, thereby quickly and efficiently meeting the needs of real-time data scenarios.
[0047] Embodiment 2
[0048] Figure 2 This is a flow chart of a data processing method provided in Embodiment 2 of the present invention. Based on the above embodiment, the method includes the following steps:
[0049] S210: Acquire product shipment data within a preset period and a first data volume corresponding to the product shipment data in each preset period.
[0050] S220: Calculate the set display time and the set time slice size according to a preset calculation logic to obtain the number of time slices.
[0051] In this embodiment, the preset operation logic is a preset operation method, such as a division operation. Further, the set display time is divided by the set time slice size to obtain the number of time slices.
[0052] S230: Determine the proportion of the multiple first data amounts to the total amount corresponding to the product shipment data, and obtain multiple proportions.
[0053] In this embodiment, the proportion may be understood as the ratio of the first data volume to the total quantity corresponding to the product shipment data.
[0054] Exemplarily, assuming that there are n first data volumes, which are divided into S1, S2, ..., Sn, and assuming that the total quantity corresponding to the product shipment data is S, then the proportion of the above n first data volumes in the total quantity S is calculated to obtain multiple proportions: S1 / S, S2 / S, ..., Sn / S.
[0055] S240: Determine the expected data volume of product shipment data based on a preset time period and a total quantity.
[0056] In this embodiment, the expected data volume can be understood as the expected value of the data volume corresponding to the product shipment data. Exemplarily, assuming that the preset time period is a day, the expected data volume is K=S / (a-1).
[0057] S250: Determine a data volume threshold according to multiple weights, an expected data volume, and a number of time slices.
[0058] In this embodiment, one implementation of determining the data volume threshold according to multiple weights, expected data volumes, and the number of time slices can be described as the following steps:
[0059] a1) for each specific gravity, determining a second data amount according to the expected data amount and the specific gravity, and obtaining a plurality of second data amounts;
[0060] Exemplarily, the expected data volume K is multiplied by a plurality of weights respectively to obtain a plurality of second data volumes: K*S1 / S, K*S2 / S, ..., K*Sn / S.
[0061] b1) for each second data amount, determining a target data amount based on the second data amount and the number of time slices, to obtain a plurality of target data amounts;
[0062] Exemplarily, multiple second data volumes are divided by the number of time slices P respectively to obtain multiple target data volumes: (K*S1 / S) / P, (K*S2 / S) / P, ..., (K*Sn / S) / P.
[0063] c1) Accumulate multiple target data volumes to obtain a data volume threshold.
[0064] Exemplarily, the above-mentioned multiple target data volumes are accumulated to obtain the data volume threshold value e=(K*S1 / S) / P+(K*S2 / S) / P+…+(K*Sn / S) / P.
[0065] S260: If the total quantity corresponding to the product shipment data is greater than or equal to the data quantity threshold, the product shipment data is displayed.
[0066] In this embodiment, one implementation method of displaying product shipment data can be described as the following steps:
[0067] a2) Determine the amount of sub-data to be displayed in each time slice based on the total quantity and the number of time slices corresponding to the product shipment data;
[0068] Exemplarily, the total quantity S corresponding to the product shipment data is divided by the number of time slices P to obtain the amount of sub-data to be displayed in each time slice: S / P. Further, assuming that there are 100 pieces of product shipment data and the number of time slices is 20, the amount of sub-data to be displayed in each time slice is 5 pieces of product shipment data. b2) Add product-related information to each piece of product shipment data to obtain new product shipment data;
[0069] In this embodiment, product-related information can be understood as key information of product shipment data, where product-related information can include: customer information, address information and brand information; new product shipment data can be understood as product shipment data after adding product-related information. Specifically, customer information, address information and brand information are added to each piece of product shipment data to obtain new product shipment data.
[0070] c2) Mark each time slice with a serial number in sequence;
[0071] Among them, each time slice has a different serial number;
[0072] Exemplarily, P time slices are marked with serial numbers in sequence, for example: the first time slice is marked as 1, the second time slice is marked as 2, ..., and the Pth time slice is marked as P.
[0073] d2) allocating sub-data volume of new product shipment data to each time slice;
[0074] In this embodiment, new product shipment data of sub-data amounts are allocated to P time slices after the marked serial number. For example, (S / P) new product shipment data are allocated to the time slices with serial numbers 1, 2, ..., P, respectively.
[0075] Further, assuming that S=10, P=5, and the 10 new product shipment data are respectively a1, a2, ..., a10, then 2 new product shipment data are respectively allocated to the time slices with sequence numbers 1, 2, ..., 5. For example, 2 new product shipment data a1 and a2 are allocated to the time slice with sequence number 1; 2 new product shipment data a3 and a4 are allocated to the time slice with sequence number 2; 2 new product shipment data a5 and a6 are allocated to the time slice with sequence number 3; 2 new product shipment data a7 and a8 are allocated to the time slice with sequence number 4; 2 new product shipment data a9 and a10 are allocated to the time slice with sequence number 5.
[0076] e2) The new product shipment data after allocation is displayed in sequence according to the sequence number of the time slice.
[0077] In this embodiment, the implementation method of displaying the allocated new product shipment data in sequence according to the serial number of the time slice can be: determining the timestamp information corresponding to each time slice based on the set display start time, the serial number of the time slice and the set time slice size; adding the timestamp information corresponding to the time slice to the new product shipment data of the sub-data volume under each time slice; and displaying the allocated new product shipment data according to the timestamp information.
[0078] Following the above description, setting the display start time can be understood as the starting time point of the display; and the timestamp information can be understood as the time point corresponding to each time slice.
[0079] Exemplarily, assuming that the display start time is set to T0, the method for determining the timestamp information corresponding to each time slice based on the display start time T0, the sequence number of the time slice, and the set time slice size T can be: timestamp information = T0 + sequence number of the time slice * T. Specifically, the timestamp information corresponding to the time slice with sequence number 1 is T1 = T0 + T, the timestamp information corresponding to the time slice with sequence number 2 is T2 = T0 + 2T, ..., and the timestamp information corresponding to the time slice with sequence number P is TP = T0 + P * T.
[0080] Continuing with the above description, the method of adding timestamp information corresponding to the time slice for the new product shipment data of the sub-data volume under each time slice can be described as: adding timestamp information T1 to the (S / P) new product shipment data under the time slice with serial number 1; adding timestamp information T2 to the (S / P) new product shipment data under the time slice with serial number 2; ...; adding timestamp information TP to the (S / P) new product shipment data under the time slice with serial number P.
[0081] Exemplarily, the manner of displaying the allocated new product shipment data according to the timestamp information may be: displaying the corresponding new product shipment data in sequence according to the timestamp information T1, T2, ..., TP. Specifically, let S = 10, P = 5, and the 10 new product shipment data are a1, a2, ..., a10, then at time point T1, display the new product shipment data a1 and a2; at time point T2, display the new product shipment data a3 and a4; at time point T3, display the new product shipment data a5 and a6; at time point T4, display the new product shipment data a7 and a8; at time point T5, display the new product shipment data a9 and a10.
[0082] S270. If the total quantity corresponding to the product shipment data is less than the data volume threshold, adjust the preset time period, and return to execute the operation of obtaining the product shipment data within the preset time period based on the adjusted preset time period until the total quantity corresponding to the product shipment data is greater than or equal to the data volume threshold.
[0083] The technical solution of this embodiment is to obtain product shipment data within a preset time period and the first data volume corresponding to the product shipment data in each preset period; calculate the set display time and the set time slice size according to the preset calculation logic to obtain the number of time slices; determine the proportion of multiple first data volumes to the total quantity corresponding to the product shipment data to obtain multiple proportions; determine the expected data volume of the product shipment data based on the preset time period and the total quantity; determine the data volume threshold according to the multiple proportions, the expected data volume and the number of time slices; if the total quantity corresponding to the product shipment data is greater than or equal to the data volume threshold, display the product shipment data; if the total quantity corresponding to the product shipment data is less than the data volume threshold, adjust the preset time period, and return to execute the operation of obtaining the product shipment data within the preset time period based on the adjusted preset time period until the total quantity corresponding to the product shipment data is greater than or equal to the data volume threshold. The above technical solution calculates the set display time and the set time slice size according to the preset operation logic, and can quickly obtain the number of time slices; at the same time, the data volume threshold is determined according to multiple proportions, the expected data volume and the number of time slices, and the data volume threshold can be quickly determined; finally, the total number is compared with the data volume threshold, and if the total number is greater than or equal to the data volume threshold, the product shipment data is displayed, and the real-time display of the product shipment data is realized. The technical solution provided in this embodiment can quickly obtain the number of time slices and the data volume threshold, and realize the real-time display of product shipment data, thereby improving the efficiency of data processing, and can quickly and efficiently meet the needs of real-time data scenarios.
[0084] Embodiment 3
[0085] Figure 3 A structural diagram of a data processing device provided in Embodiment 3 of the present invention is shown in FIG. Figure 3As shown, the device comprises:
[0086] The data acquisition module 310 is used to acquire product shipment data within a preset period and a first data volume corresponding to each preset period of the product shipment data; wherein the period corresponding to the preset period is smaller than the preset period;
[0087] A time slice quantity determination module 320, configured to determine the number of time slices according to a set display time and a set time slice size;
[0088] A data volume threshold determination module 330, configured to determine a data volume threshold based on the number of time slices and the first data volume;
[0089] A data display module 340 is used to display the product shipment data if the total quantity corresponding to the product shipment data is greater than or equal to the data quantity threshold;
[0090] The preset time period adjustment module 350 is used to adjust the preset time period if the total quantity corresponding to the product shipment data is less than the data volume threshold, and return to execute the operation of obtaining the product shipment data within the preset time period based on the adjusted preset time period until the total quantity corresponding to the product shipment data is greater than or equal to the data volume threshold.
[0091] Optionally, the data volume threshold determination module 330 may specifically include:
[0092] a proportion determining unit, configured to determine proportions of the plurality of first data quantities to the total quantity corresponding to the product shipment data, and obtain a plurality of proportions;
[0093] an expected data volume determination unit, configured to determine the expected data volume of the product shipment data based on the preset time period and the total quantity;
[0094] A data volume threshold determination unit is used to determine a data volume threshold according to the multiple proportions, the expected data volume and the number of time slices.
[0095] Optionally, the data volume threshold determination unit may be specifically configured to:
[0096] For each proportion, determining a second data amount according to the expected data amount and the proportion, and obtaining a plurality of second data amounts;
[0097] For each of the second data amounts, determining a target data amount based on the second data amount and the number of time slices, to obtain multiple target data amounts;
[0098] The multiple target data volumes are accumulated to obtain a data volume threshold.
[0099] Optionally, the data display module 340 may specifically include:
[0100] A sub-data quantity determination unit, configured to determine the sub-data quantity to be displayed in each time slice based on the total quantity corresponding to the product shipment data and the number of time slices;
[0101] An information adding unit, used to add product related information to each piece of product shipping data to obtain new product shipping data;
[0102] A time slice marking unit is used to mark each time slice with a serial number in sequence; wherein each time slice has a different serial number;
[0103] A data allocation unit, configured to allocate the sub-data volume of new product shipment data to each time slice;
[0104] The data display unit is used to display the allocated new product shipment data in sequence according to the sequence number of the time slice.
[0105] Optionally, the data display unit may be specifically used for:
[0106] Determine timestamp information corresponding to each time slice based on the set display start time, the sequence number of the time slice, and the set time slice size;
[0107] Adding timestamp information corresponding to the time slice to the new product shipment data of the sub-data volume under each time slice;
[0108] The allocated new product shipment data is displayed according to the timestamp information.
[0109] Optionally, the time slice quantity determination module 320 may be specifically used for:
[0110] The set display time and the set time slice size are calculated according to a preset calculation logic to obtain the number of time slices.
[0111] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not described in detail in this embodiment, please refer to the methods provided by all the above embodiments of the present invention.
[0112] Embodiment 4
[0113] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0114] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0115] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0116] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a data processing method.
[0117] In some embodiments, the data processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the data processing method in any other appropriate manner (e.g., by means of firmware).
[0118] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0119] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0120] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0121] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0122] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0123] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0124] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the data processing method provided in any embodiment of the present application.
[0125] In the process of implementation, the computer program product can be written in one or more programming languages or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0126] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0127] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A data processing method, characterized in that: include: Acquire product shipment data within a preset time period and a first data volume corresponding to each preset period of the product shipment data; wherein the time period corresponding to the preset period is smaller than the preset time period; Determine the number of time slices according to the set display time and the set time slice size; Determining a data volume threshold based on the number of time slices and the first data volume; If the total quantity corresponding to the product shipment data is greater than or equal to the data volume threshold, the product shipment data is displayed; If the total quantity corresponding to the product shipment data is less than the data volume threshold, the preset time period is adjusted, and based on the adjusted preset time period, the operation of obtaining the product shipment data within the preset time period is returned until the total quantity corresponding to the product shipment data is greater than or equal to the data volume threshold.
2. The method according to claim 1, characterized in that: Determining a data volume threshold based on the number of time slices and the first data volume includes: Determine a proportion of a plurality of the first data amounts to a total amount corresponding to the product shipment data, and obtain a plurality of proportions; determining an expected data volume of the product shipment data based on the preset time period and the total quantity; A data volume threshold is determined according to the multiple proportions, the expected data volume, and the number of time slices.
3. The method according to claim 2, characterized in that Determining a data volume threshold according to the multiple proportions, the expected data volume, and the number of time slices includes: For each proportion, determining a second data amount according to the expected data amount and the proportion, and obtaining a plurality of second data amounts; For each of the second data amounts, determining a target data amount based on the second data amount and the number of time slices, to obtain multiple target data amounts; The multiple target data volumes are accumulated to obtain a data volume threshold.
4. The method according to claim 1, characterized in that: The product shipment data is displayed, including: Determining the amount of sub-data to be displayed in each time slice based on the total quantity corresponding to the product shipment data and the number of time slices; Add product related information to each product shipment data to obtain new product shipment data; Mark each time slice with a serial number in sequence; wherein each time slice has a different serial number; Allocate the sub-data amount of new product shipment data to each time slice; The new product shipment data after allocation will be displayed in sequence according to the sequence number of the time slice.
5. The method according to claim 4, characterized in that The new product shipment data after allocation is displayed in sequence according to the sequence number of the time slice, including: Determine timestamp information corresponding to each time slice based on the set display start time, the sequence number of the time slice, and the set time slice size; Adding timestamp information corresponding to the time slice to the new product shipment data of the sub-data volume under each time slice; The allocated new product shipment data is displayed according to the timestamp information.
6. The method according to claim 1, characterized in that Determine the number of time slices based on the set display time and set time slice size, including: The set display time and the set time slice size are calculated according to a preset calculation logic to obtain the number of time slices.
7. A data processing device, characterized in that: include: A data acquisition module, used to acquire product shipment data within a preset period and a first data volume corresponding to each preset period of the product shipment data; wherein the period corresponding to the preset period is smaller than the preset period; A time slice quantity determination module, used to determine the number of time slices according to a set display time and a set time slice size; A data volume threshold determination module, configured to determine a data volume threshold based on the number of time slices and the first data volume; A data display module, configured to display the product shipment data if the total quantity corresponding to the product shipment data is greater than or equal to the data quantity threshold; A preset time period adjustment module is used to adjust the preset time period if the total quantity corresponding to the product shipment data is less than the data volume threshold, and return to execute the operation of obtaining the product shipment data within the preset time period based on the adjusted preset time period until the total quantity corresponding to the product shipment data is greater than or equal to the data volume threshold.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the data processing method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the data processing method according to any one of claims 1 to 6 when executed.
10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the data processing method according to any one of claims 1 to 6.