Data comparison method, device, electronic device and storage medium

CN118445597BActive Publication Date: 2024-10-01NINGBO ZITENG INFORMATION TECH CO LTD +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410902812.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-01
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

When steel companies conduct comparative analysis of profits, revenue and costs, manual comparative analysis is inefficient and inaccurate, affecting production and operating efficiency.

Method used

Provide a data comparison method. By obtaining report detailed data, based on the configured comparison conditions and dimensions, the data is classified and summarized into a two-dimensional array, and compared in multiple dimensions, a difference report is generated, and data comparison is improved. efficiency and accuracy.

Benefits of technology

It significantly improves the efficiency and accuracy of data comparison, enables more comprehensive data comparison in multiple comparison dimensions, reduces manual input, and improves the production and operating efficiency of steel companies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118445597B_ABST
    Figure CN118445597B_ABST
Patent Text Reader

Abstract

The present invention provides a data comparison method, device, electronic device and storage medium, and relates to the field of data processing technology. Comparison data can be extracted from report detail data according to the configured comparison conditions, so as to realize the extraction of comparison data of any time period, and then realize the comparison of data of any time period, thereby improving the applicability of data comparison. By classifying and aggregating the comparison data into a two-dimensional array, two groups of two-dimensional arrays are compared under multiple comparison dimensions to obtain difference data, so as to realize data comparison under multiple comparison dimensions, realize more comprehensive data comparison, and significantly improve the efficiency and accuracy of data comparison.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data comparison method, device, electronic equipment and storage medium. Background Art

[0002] During the operation of steel enterprises, they will record a variety of report data. Financial personnel of steel enterprises need to compare and analyze the profits, income and costs of steel enterprises based on the report data. Since steel enterprises have many product processes and intermediate products, the products produced by each product process are of various types and complex specifications. The cost difference between different products is huge. In addition, due to the large market fluctuations, the costs and selling prices of various products also fluctuate greatly. In terms of profits, income and costs of steel enterprises, many different factors have generated a large amount of report data.

[0003] At present, steel enterprises classify massive amounts of report data into levels, such as company level, plant level, and workshop level, and use manual comparative analysis to analyze the profits, revenues, and costs of steel enterprises level by level and make final summaries. This comparative analysis method often requires a lot of manual input and can only obtain rough comparative analysis results. The comparative analysis efficiency and result accuracy are poor, which seriously affects the production efficiency and operating efficiency of steel enterprises. Summary of the invention

[0004] The problem solved by the present invention is that the manual comparative analysis method has low efficiency and poor accuracy.

[0005] In order to solve the above problems, the present invention provides a data comparison method, device, electronic device and storage medium.

[0006] In a first aspect, the present invention provides a data comparison method, comprising:

[0007] Obtain detailed reporting data of products;

[0008] Based on at least two configured comparison conditions, extracting comparison data corresponding to each comparison condition from the report detail data;

[0009] According to the configured target variable and multiple comparison dimensions, each group of the comparison data is classified and summarized to form a two-dimensional array corresponding to each group of the comparison data;

[0010] Among at least two groups of the two-dimensional arrays, any two groups of the two-dimensional arrays are compared under the same comparison dimension to obtain difference data of the target variable between the two groups of the two-dimensional arrays.

[0011] Furthermore, it also includes:

[0012] A difference report is generated and output according to the difference data and a preset report template.

[0013] Optionally, generating and outputting a difference report according to the difference data and a preset report template includes:

[0014] Determine the mapping relationship between each field in the difference data and each title in the report template;

[0015] Based on the mapping relationship, the field values ​​corresponding to the fields in the difference data are added to the areas corresponding to the titles of the report template.

[0016] Optionally, extracting comparison data corresponding to each comparison condition from the report detail data based on the at least two comparison conditions configured includes:

[0017] Filtering out a time period that is the same as the comparison condition from the report detail data;

[0018] Detailed data corresponding to the time period is extracted from the report detailed data, and the detailed data is determined to be comparison data corresponding to the comparison condition.

[0019] Optionally, according to the configured target variable and multiple comparison dimensions, each group of the comparison data is classified and summarized to form a two-dimensional array corresponding to each group of the comparison data, including:

[0020] Determine each of the comparison dimensions and a target variable corresponding to the comparison dimension;

[0021] A cross-classification method is used to extract the target variable corresponding to each comparison dimension from each group of the comparison data;

[0022] The extracted target variables are summarized to obtain a two-dimensional array corresponding to the group of comparison data.

[0023] Furthermore, it also includes:

[0024] Data alignment and data completion are performed on each group of the two-dimensional arrays.

[0025] Optionally, any two groups of the two-dimensional arrays are compared under the same comparison dimension to obtain difference data of the target variable between the two groups of the two-dimensional arrays, including:

[0026] Determining a comparison order of the plurality of comparison dimensions;

[0027] Matrix calculation is performed on the two groups of two-dimensional arrays at the same comparison dimension according to the comparison order to obtain difference data of the target variable between the two groups of two-dimensional arrays.

[0028] In a second aspect, the present invention provides a data comparison device, comprising:

[0029] Data collection module, used to obtain detailed reporting data of products;

[0030] A data extraction module, configured to extract comparison data corresponding to each comparison condition from the report detail data based on at least two comparison conditions configured;

[0031] A data classification module, used for classifying and aggregating each group of the comparison data according to the configured target variable and multiple comparison dimensions to form a two-dimensional array corresponding to each group of the comparison data;

[0032] The data comparison module is used to compare any two groups of the two-dimensional arrays in the at least two groups of the two-dimensional arrays under the same comparison dimension to obtain the difference data of the target variable between the two groups of the two-dimensional arrays.

[0033] In a third aspect, the present invention provides an electronic device, including a memory and a processor;

[0034] The memory is used to store computer programs;

[0035] The processor is used to implement the data comparison method as described in the first aspect when executing the computer program.

[0036] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the data comparison method as described in the first aspect is implemented.

[0037] The beneficial effect of the data comparison method of the present invention is that the comparison data can be extracted from the report detail data according to the configured comparison conditions, and the comparison data of any time period can be extracted, and then the comparison of data of any time period can be realized, thereby improving the applicability of data comparison. By classifying and aggregating the comparison data into a two-dimensional array, the two groups of two-dimensional arrays are compared under multiple comparison dimensions to obtain difference data, and data comparison under multiple comparison dimensions is realized, thereby realizing a more comprehensive data comparison. Compared with the existing manual comparison analysis, the data comparison method of the present invention can significantly improve the efficiency and accuracy of data comparison.

[0038] The embodiments of the present invention also provide a device, an electronic device and a storage medium corresponding to the above method, which have the same beneficial effects as the above method. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A flowchart of a data comparison method provided by an embodiment of the present invention.

[0040] Figure 2 A flowchart of a data comparison method provided by an embodiment of the present invention.

[0041] Figure 3 A structural schematic diagram of a data comparison method provided by an embodiment of the present invention.

[0042] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0043] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be interpreted as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.

[0044] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0045] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to"; the term "based on" means "based at least in part on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". The relevant definitions of other terms will be given in the following description.

[0046] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0047] This embodiment provides a data comparison method, device, electronic device and storage medium.

[0048] like Figure 1 As shown, a data comparison method provided by an embodiment of the present invention includes:

[0049] S100: Obtain detailed reporting data of the product.

[0050] In this step, detailed reporting data of the steel enterprise's products are obtained. The products can be parts produced by various production processes of the steel enterprise, or finished products composed of various parts. The obtained detailed reporting data includes product specification data, type data, cost data, sales data, sales channels, sales revenue receipts and product profit data.

[0051] It should be noted that the detailed report data can be collected and organized through enterprise information systems such as ERP (Enterprise Resource Planning). The collected data needs to be linked and spliced, that is, the specification data, category data, cost data, sales data, sales channels, sales revenue receipts and product profit data from different sources and formats should be merged and spliced ​​for better analysis and processing.

[0052] S200: Based on at least two configured comparison conditions, extract comparison data corresponding to each comparison condition from the report detail data.

[0053] In this step, the user needs to select the comparison conditions for comparative analysis. Comparative analysis is to compare the data corresponding to the two comparison conditions. When configuring the comparison conditions, the user needs to configure at least two comparison conditions. According to the at least two comparison conditions configured by the user, the comparison data corresponding to each comparison condition in the report detail data obtained in the above step S100 is extracted. That is, the comparison data is the specification data, category data, cost data, sales volume data, sales channels, sales revenue receipts and variety profit data of the product corresponding to the comparison time.

[0054] It should be noted that the two comparison conditions for comparative analysis can be divided into a base period and a reporting period, where the base period refers to the comparison base for comparative analysis. It is not limited to a date concept. For example, if the actual profit of this month is compared with the actual profit of last month, the base period is the monthly period of last month, and the reporting period is the monthly period of last month; if the budgeted profit of this year is compared with the budgeted profit of last year, the base period is the budget of last year, and the reporting period is the budget of this year; if the profit of this month's steel variety is analyzed, the base period may be the conventional Q235B steel variety this month, and the reporting period is all other steel varieties except Q235B steel variety this month. Reporting period: the object data of the current comparative analysis. The reporting period and the base period are a pair of indicators, and the general reporting period is relative to the base period.

[0055] S300: According to the configured target variable and multiple comparison dimensions, each group of comparison data is classified and summarized to form a two-dimensional array corresponding to each group of comparison data.

[0056] In this step, the user needs to select multiple comparison dimensions for comparative analysis. Each comparison dimension can be product type, production quantity, product brand or sales channel, etc. When configuring the comparison dimension, the user needs to select different comparison dimensions according to needs. The user also needs to select the target variable for comparative analysis, which can be the sales volume, profit, income or cost of the product. For example, if the target variable of the comparative analysis is cost, the cost comparison of each dimension can be performed in the four comparison dimensions of product type, production quantity, product brand and sales channel.

[0057] Data classification and summary is to sort, organize and summarize a large amount of comparison data according to each comparison dimension in order to better understand and analyze the data.

[0058] It should be noted that in the above steps S200 and S300, it is necessary to configure the comparison conditions, target variables and comparison dimensions. The comparison conditions, target variables and comparison dimensions can be completed in one configuration by the user, or the configuration of the comparison conditions can be completed before executing step S200, and the configuration of the target variables and comparison dimensions can be completed before executing step S300.

[0059] S400: Among at least two groups of two-dimensional arrays, compare any two groups of two-dimensional arrays under the same comparison dimension to obtain difference data of the target variable between the two groups of two-dimensional arrays.

[0060] In this step, the same comparison dimensions in two sets of two-dimensional arrays are selected, and each set of comparison dimensions corresponds to the target variable. The two sets of target variables with the same comparison dimension are subjected to difference operation to obtain the comparison difference value of the target variable. In this way, the difference operation is performed on the target variables under other comparison dimensions, that is, the comparison difference value of the target variable under each comparison dimension is obtained.

[0061] In this embodiment, the comparison data can be extracted from the report detail data according to the configured comparison conditions, so as to realize the extraction of comparison data of any time period, and then realize the comparison of data of any time period, thereby improving the applicability of data comparison. By classifying and aggregating the comparison data into a two-dimensional array, the two groups of two-dimensional arrays are compared under multiple comparison dimensions to obtain difference data, so as to realize data comparison under multiple comparison dimensions and realize more comprehensive data comparison. Compared with the existing manual comparison analysis, the data comparison method of the present invention can significantly improve the efficiency and accuracy of data comparison.

[0062] Alternatively, if Figure 2 As shown, based on the above data comparison method embodiment, it also includes:

[0063] S500: Generate and output a difference report based on the difference data and a preset report template.

[0064] In this step, after obtaining the preset report template, the report template is filled according to the difference data to generate and output the difference report.

[0065] In this embodiment, by responding to the user's configuration, the target variable is compared and the difference data is obtained. When the difference data is filled into a preset report template, a difference report is generated and output, and a corresponding difference report is automatically generated, thereby improving the efficiency of report generation.

[0066] Specifically, based on the difference data and the preset report template, a difference report is generated and output, including:

[0067] Determine the mapping relationship between each field in the difference data and each title in the report template; based on the mapping relationship, add the field value corresponding to each field in the difference data to the area corresponding to each title in the report template.

[0068] After determining the difference data and report template, traverse each title in the report template, and for each traversed title, find the field that matches the identifier of the current title from the difference data, and establish a corresponding relationship between the current title and the field that matches the identifier. By traversing each title in the report template, the corresponding relationship between the report template title and the difference data field can be determined, and the field values ​​corresponding to each field in the difference data are added to the area corresponding to each title in the report template, so as to quickly generate a difference report and improve the efficiency of generating the difference report.

[0069] Optionally, based on at least two configured comparison conditions, comparison data corresponding to each comparison condition is extracted from the report detail data, including:

[0070] The time period that is the same as the comparison condition is selected from the report detailed data; the detailed data corresponding to the time period is extracted from the report detailed data, and the detailed data is determined to be the comparison data corresponding to the comparison condition.

[0071] In this embodiment, after the comparison condition is determined, the report detail data is screened, and the time period that is the same as the comparison condition can be screened out from the report detail data. The detailed data corresponding to the screened time period is determined in the report detail data, and the detailed data corresponding to the time period is extracted as the comparison data corresponding to the comparison condition.

[0072] In this embodiment, comparison data can be extracted from the report detail data according to the configured comparison conditions, so as to extract comparison data of any time period, and then compare data of any time period, thereby improving the applicability of data comparison.

[0073] Optionally, according to the configured target variable and multiple comparison dimensions, each group of comparison data is classified and summarized to form a two-dimensional array corresponding to each group of comparison data, including:

[0074] Determine each comparison dimension and the target variable corresponding to the comparison dimension; use the cross-classification method to extract the target variable corresponding to each comparison dimension from each group of comparison data; summarize the extracted target variables to obtain a two-dimensional array corresponding to the group of comparison data.

[0075] In this embodiment, each group of two-dimensional arrays is classified according to each comparison dimension through a cross-classification method. Specifically, according to each comparison dimension, the comparison data corresponding to the target variable in the two-dimensional array is classified, and a connection relationship between the target variable corresponding to each comparison dimension and the comparison data is established, thereby forming a two-dimensional array containing the comparison dimension, the comparison data and the connection relationship between the two.

[0076] It should be noted that by using cross-classification method, more comprehensive and detailed classification results can be obtained, which can make statistical analysis more efficient.

[0077] In one embodiment, data alignment and data completion are performed on a two-dimensional array that is missing data.

[0078] Specifically, data alignment is performed on different fields between the two groups of two-dimensional arrays, and missing data corresponding to different fields are completed, so that the fields of the two groups of two-dimensional data are completely consistent.

[0079] Data completion is done according to the actual situation. For example, for sales price, although there is no monthly sales volume, there is a sales price list, so the value of the price list for that month is taken; if there is no purchase volume in the purchase price column, it is still necessary to collect the actual monthly market purchase price; if there is no production cost unit consumption in that month, the comparison period data is used to replace it.

[0080] In this embodiment, by aligning and completing the data of the two-dimensional arrays, the two groups of two-dimensional arrays can be compared in multiple configured comparison dimensions, thereby avoiding the problem of being unable to compare due to missing data and improving the applicability of data comparison.

[0081] Optionally, any two sets of two-dimensional arrays are compared under the same comparison dimension to obtain the difference data of the target variable between the two sets of two-dimensional arrays, including:

[0082] Determine a comparison order of multiple comparison dimensions; perform matrix calculation on two groups of two-dimensional arrays under the same comparison dimension according to the comparison order to obtain difference data of the target variable between the two groups of two-dimensional arrays.

[0083] Specifically, the comparison order of the comparison dimension can be randomly sorted or sorted according to a set sorting method. Under a specific comparison dimension, the comparison data in one set of two-dimensional arrays is replaced with another set of corresponding comparison data, and the difference between the two sets of two-dimensional arrays is calculated by matrix calculation on the two-dimensional arrays to obtain the difference data under the comparison dimension, and the difference data of each comparison dimension is calculated cyclically, that is, the difference data of the target variable between the two sets of two-dimensional arrays under each comparison dimension is obtained.

[0084] In this embodiment, by classifying and aggregating the comparison data into a two-dimensional array, the two groups of two-dimensional arrays are compared under multiple comparison dimensions to obtain difference data, thereby realizing data comparison under multiple comparison dimensions and realizing more comprehensive data comparison, which can significantly improve the efficiency and accuracy of data comparison.

[0085] In an embodiment of the present invention, a specific application example of the above data comparison method is also provided, which is to compare and analyze the profits of products of steel enterprises, specifically including:

[0086] By using ERP (Enterprise Resource Planning) to collect detailed data on relevant product costs, detailed data on product sales revenue, and profit data on product varieties in the steel enterprise information system.

[0087] Determine the base period and reporting period, comparison dimension, and target variable for comparative analysis. If the target variable cannot be obtained directly but is calculated through other factor variables, it is necessary to determine the factor variables for calculating the target variable. In this embodiment, there are three comparison dimensions: product category, brand, and sales channel. The target variable is the profit of the product, which is calculated through factor variables, including product cost, product sales price, and total product sales quantity.

[0088] According to the base period and reporting period of comparative analysis, the comparison data of the base period and reporting period are screened out. The read comparison data are transposed, classified and summarized, associated and spliced, compared data aligned, missing data completed and normalized to form two two-dimensional arrays, corresponding to the base period data and reporting period data respectively. The columns of the two-dimensional array are the comparison dimensions and factor variables, and the rows of the two-dimensional array are the comparison dimension values ​​and the corresponding factor variable values.

[0089] Determine the order of comparison dimensions, as well as the total product sales quantity S and the sales volume ratio of each comparison dimension. Product profit analysis has product category, brand, and sales channel analysis dimensions. First calculate the total sales volume, then calculate the proportion of the sales volume of the major category in the total sales volume, and then calculate the proportion of the brand in the major category. The formula is: total product sales quantity = ∑ sales volume, sales volume = total sales volume · major category ratio · brand ratio · sales channel ratio. Among them, the formula for the energy consumption analysis dimension in the cost is: total energy consumption = ∑ various types of coal\gas standard coal consumption, various types of coal\gas standard coal ratio = various types of coal\gas standard coal consumption / total energy consumption.

[0090] The loop replaces the values ​​in the base period two-dimensional array columns with the data in the corresponding columns of the reporting period, and performs matrix calculation on the two-dimensional array. The calculated result value is subtracted from the previous result value to obtain the comparison difference value, that is, the quantitative value of the profit for each comparison dimension and factor variable is obtained.

[0091] This embodiment realizes the automation of multi-factor comparative analysis by comparing data in comparison dimensions, improves the management refinement level at the financial analysis level, and significantly improves the efficiency and accuracy of comparison work.

[0092] like Figure 3 As shown, a data comparison device 300 provided in an embodiment of the present invention includes:

[0093] Data collection module 310, used to obtain detailed reporting data of products;

[0094] The data extraction module 320 is used to extract the comparison data corresponding to each comparison condition from the report detail data based on at least two configured comparison conditions;

[0095] The data classification module 330 is used to classify and aggregate each group of comparison data according to the configured target variable and multiple comparison dimensions to form a two-dimensional array corresponding to each group of comparison data;

[0096] The data comparison module 340 is used to compare any two groups of two-dimensional arrays in at least two groups of two-dimensional arrays under the same comparison dimension to obtain the difference data of the target variable between the two groups of two-dimensional arrays.

[0097] Based on the above embodiment, it also includes:

[0098] The report module is used to generate and output difference reports based on difference data and preset report templates.

[0099] Optionally, the reporting module includes:

[0100] A mapping unit, used to determine the mapping relationship between each field in the difference data and each title in the report template;

[0101] The filler unit is used to add the field values ​​corresponding to the fields in the difference data to the areas corresponding to the titles of the report template based on the mapping relationship.

[0102] Optionally, the data extraction module 320 includes:

[0103] A screening unit, used to screen out the time period that is the same as the comparison condition in the report detail data;

[0104] The extraction unit is used to extract the detailed data corresponding to the time period from the report detailed data, and determine that the detailed data is the comparison data corresponding to the comparison condition.

[0105] Optionally, the data classification module 330 includes:

[0106] A comparison unit, used to determine each comparison dimension and a target variable corresponding to the comparison dimension;

[0107] The classification unit is used to extract the target variable corresponding to each comparison dimension from each group of comparison data by using the cross-classification method;

[0108] The summarizing unit is used to summarize the extracted target variables to obtain a two-dimensional array corresponding to the group of comparison data.

[0109] Furthermore, the data classification module also includes:

[0110] The optimization unit is used to align and complete the data of each group of two-dimensional arrays.

[0111] Optionally, the data comparison module 340 includes:

[0112] A sequence unit is used to determine the comparison order of multiple comparison dimensions;

[0113] The calculation unit is used to perform matrix calculation on the two groups of two-dimensional arrays in the same comparison dimension according to the comparison order to obtain the difference data of the target variable between the two groups of two-dimensional arrays.

[0114] like Figure 4 As shown, an electronic device 400 provided by an embodiment of the present invention includes a memory 410 and a processor 420; the memory 410 is used to store a computer program; the processor 420 is used to implement the data comparison method as described above when executing the computer program.

[0115] In other words, an electronic device 400 includes a memory 410 and a processor 420 coupled to the memory 410; the memory 410 is configured to store a computer program; and the processor 420 is configured to perform the following operations when executing the computer program:

[0116] Obtain detailed reporting data of products;

[0117] Based on at least two configured comparison conditions, extracting comparison data corresponding to each comparison condition from the report detail data;

[0118] According to the configured target variable and multiple comparison dimensions, each group of the comparison data is classified and summarized to form a two-dimensional array corresponding to each group of the comparison data;

[0119] Among at least two groups of the two-dimensional arrays, any two groups of the two-dimensional arrays are compared under the same comparison dimension to obtain difference data of the target variable between the two groups of the two-dimensional arrays.

[0120] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the data comparison method as described above is implemented.

[0121] In other words, a non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor performs the following operations:

[0122] Obtain detailed reporting data of products;

[0123] Based on at least two configured comparison conditions, extracting comparison data corresponding to each comparison condition from the report detail data;

[0124] According to the configured target variable and multiple comparison dimensions, each group of the comparison data is classified and summarized to form a two-dimensional array corresponding to each group of the comparison data;

[0125] Among at least two groups of the two-dimensional arrays, any two groups of the two-dimensional arrays are compared under the same comparison dimension to obtain difference data of the target variable between the two groups of the two-dimensional arrays.

[0126] An electronic device 400 that can be used as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device 400 is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 400 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, 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.

[0127] The electronic device 400 includes a computing unit, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) or a computer program loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for the operation of the device can also be stored. The computing unit, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0128] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. In the present application, the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment of the present invention. In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0129] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.

Claims

1. A data comparison method, characterized in that: include: Obtain detailed reporting data of products; Based on at least two configured comparison conditions, extracting comparison data corresponding to each comparison condition from the report detail data; According to the configured target variable and multiple comparison dimensions, each group of the comparison data is classified and summarized to form a two-dimensional array corresponding to each group of the comparison data; Among at least two groups of the two-dimensional arrays, any two groups of the two-dimensional arrays are compared under the same comparison dimension to obtain difference data of the target variable between the two groups of the two-dimensional arrays; According to the configured target variable and multiple comparison dimensions, each group of the comparison data is classified and summarized to form a two-dimensional array corresponding to each group of the comparison data, including: Determine each of the comparison dimensions and a target variable corresponding to the comparison dimension; A cross-classification method is used to extract the target variable corresponding to each comparison dimension from each group of the comparison data; The extracted target variables are summarized to obtain a two-dimensional array corresponding to the group of comparison data.

2. The data comparison method according to claim 1, characterized in that: Also includes: A difference report is generated and output according to the difference data and a preset report template.

3. The data comparison method according to claim 2, characterized in that: The generating and outputting a difference report according to the difference data and a preset report template includes: Determine the mapping relationship between each field in the difference data and each title in the report template; Based on the mapping relationship, the field values ​​corresponding to the fields in the difference data are added to the areas corresponding to the titles of the report template.

4. The data comparison method according to claim 1, characterized in that: The step of extracting comparison data corresponding to each comparison condition from the report detail data based on the at least two comparison conditions configured includes: Filtering out a time period that is the same as the comparison condition from the report detail data; Detailed data corresponding to the time period is extracted from the report detailed data, and the detailed data is determined to be comparison data corresponding to the comparison condition.

5. The data comparison method according to claim 1, characterized in that: Also includes: Data alignment and data completion are performed on each group of the two-dimensional arrays.

6. The data comparison method according to claim 1, characterized in that: Comparing any two groups of the two-dimensional arrays under the same comparison dimension to obtain the difference data of the target variable between the two groups of the two-dimensional arrays includes: Determining a comparison order of the plurality of comparison dimensions; Matrix calculation is performed on the two groups of two-dimensional arrays at the same comparison dimension according to the comparison order to obtain difference data of the target variable between the two groups of two-dimensional arrays.

7. A data comparison device, characterized in that: include: Data collection module, used to obtain detailed reporting data of products; A data extraction module, configured to extract comparison data corresponding to each comparison condition from the report detail data based on at least two comparison conditions configured; A data classification module, used for classifying and aggregating each group of the comparison data according to the configured target variable and multiple comparison dimensions to form a two-dimensional array corresponding to each group of the comparison data; A data comparison module, used for comparing any two groups of the two-dimensional arrays in the at least two groups of the two-dimensional arrays under the same comparison dimension to obtain difference data of the target variable between the two groups of the two-dimensional arrays; Among them, the data classification module includes: A comparison unit, used to determine each comparison dimension and a target variable corresponding to the comparison dimension; The classification unit is used to extract the target variable corresponding to each comparison dimension from each group of comparison data by using the cross-classification method; The summarizing unit is used to summarize the extracted target variables to obtain a two-dimensional array corresponding to the group of comparison data.

8. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to implement the data comparison method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the data comparison method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Report generation method and device, terminal and storage medium

    CN109657214A

  • Report generation method and device, electronic equipment and computer readable medium

    CN114490854A

  • Report data management method, device and system, computer equipment and storage medium

    CN114742023A

  • Cross-border e-commerce multi-platform profit automatic accounting method, device, equipment and medium

    CN116630071A

  • Method and device for determining report difference data, electronic equipment and storage medium

    CN117892713A