Data processing method, device, electronic device and storage medium

By obtaining user login information and data in the configuration database, the parameters and operation logic in the Excel table are automatically processed, which solves the problem of low maintenance efficiency of Excel tables in the existing technology and achieves automatic processing and efficient user experience.

CN110688827BActive Publication Date: 2024-09-06PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910728965.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-08
Publication Date
2024-09-06
Estimated Expiration
2039-08-08

AI Technical Summary

Technical Problem

In the existing technology, when customer project requirements are modified, the modified Excel form needs to be resubmitted, resulting in high labor costs, low processing efficiency, and the inability to automatically maintain, affecting the user experience.

Method used

By detecting parameter input, obtain user login information, obtain the target Excel table from the configuration database, determine the parameter position, replace the current data, analyze the operation logic and perform calculations, to achieve automatic processing and display of Excel table data.

Benefits of technology

There is no need to resubmit Excel tables, automatic maintenance of Excel table data is realized, processing efficiency and user experience are improved, and the trouble of manual maintenance is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110688827B
    Figure CN110688827B
Patent Text Reader

Abstract

The present invention provides a data processing method, device, electronic device and storage medium. The data processing method can obtain the user's login information when a parameter input is detected, obtain the target Excel table corresponding to the user from the configuration database according to the login information, and retrieve the target data corresponding to the parameter from the configuration database, determine the position data of the parameter in the target Excel table according to the target data, and replace the current data corresponding to the position data in the target Excel table with the parameter to realize automatic replacement of data in the Excel table, further parse the target Excel table to obtain the operation logic corresponding to the position data, perform corresponding calculations on the parameter according to the operation logic, obtain output data, and display the output data at the same time, thereby realizing automatic processing of data in the Excel table and avoiding the trouble brought to users by manual maintenance of the Excel table.
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 processing method, device, electronic device and storage medium. Background Art

[0002] In existing technical solutions, when customers modify project requirements, they often resubmit the modified data, and the data submitted by customers is usually in the form of Excel tables.

[0003] Since each data in the Excel spreadsheet has a certain calculation logic, customers have to re-maintain the Excel spreadsheet before submitting data each time. This not only has high labor costs, but also low processing efficiency and is not timely enough. However, it is currently impossible to automatically maintain the Excel spreadsheet after receiving the data. Summary of the Invention

[0004] In view of the above, it is necessary to provide a data processing method, device, electronic device and storage medium that can realize automatic processing of data in Excel tables, avoid the trouble caused to users by manual maintenance of Excel tables, and provide a better user experience.

[0005] A data processing method, comprising:

[0006] When parameter input is detected, the user's login information is obtained;

[0007] According to the login information, a target Excel sheet corresponding to the user is obtained from a configuration database;

[0008] Retrieving target data corresponding to the parameters from the configuration database;

[0009] Determine the position data of the parameter in the target Excel table according to the target data;

[0010] Replace the current data corresponding to the position data in the target Excel table with the parameter;

[0011] Parse the target Excel table to obtain the corresponding operation logic on the position data;

[0012] Perform corresponding calculations on the parameters according to the operation logic to obtain output data;

[0013] The output data is displayed.

[0014] According to a preferred embodiment of the present invention, before obtaining the target Excel spreadsheet corresponding to the user from the configuration database according to the login information, the method further includes:

[0015] When receiving any Excel spreadsheet, obtain the customer information recorded by the electronic device;

[0016] Identify the customer information and obtain a target identifier;

[0017] Using a configuration algorithm, generating a table identifier of the arbitrary Excel table according to the target identifier;

[0018] The arbitrary Excel table is recorded in the configuration database using the table identifier as a unique identifier.

[0019] According to a preferred embodiment of the present invention, obtaining a target Excel spreadsheet corresponding to the user from a configuration database according to the login information includes:

[0020] Obtaining the login user from the login information;

[0021] Determine a first target identifier of the enterprise to which the logon user belongs;

[0022] Obtaining a target table identifier corresponding to the first target identifier;

[0023] Matching the target table identifier with all table identifiers stored in the configuration database to obtain a matching first table identifier;

[0024] An Excel table corresponding to the first table identifier is retrieved from the configuration database as the target Excel table.

[0025] According to a preferred embodiment of the present invention, retrieving target data corresponding to the parameter from the configuration database includes:

[0026] Obtaining a parameter identifier corresponding to the parameter;

[0027] Matching the parameter identifier with data identifiers of all data stored in the configuration database to obtain matching data;

[0028] The matched data is determined as the target data.

[0029] According to a preferred embodiment of the present invention, performing corresponding calculations on the parameters according to the operation logic to obtain output data includes:

[0030] POI technology is used to perform corresponding calculations on the parameters according to the operation logic to obtain output data.

[0031] According to a preferred embodiment of the present invention, after performing corresponding calculations on the parameters according to the operation logic to obtain output data, the method further includes:

[0032] Get uploaded standard data;

[0033] Calculating a standard deviation between the output data and the standard data;

[0034] When the standard deviation exceeds a preset range, a prompt message is issued.

[0035] According to a preferred embodiment of the present invention, when the standard deviation exceeds a preset range, the method further includes:

[0036] Get execution log;

[0037] Carry the execution log and issue the prompt information.

[0038] A data processing device, comprising:

[0039] An acquisition unit, used to acquire the user's login information when parameter input is detected;

[0040] The acquisition unit is further configured to acquire a target Excel spreadsheet corresponding to the user from a configuration database according to the login information;

[0041] a retrieving unit, configured to retrieve target data corresponding to the parameter from the configuration database;

[0042] a determining unit, configured to determine position data of the parameter in the target Excel table according to the target data;

[0043] a replacement unit, configured to replace the current data corresponding to the position data in the target Excel table with the parameter;

[0044] A parsing unit, configured to parse the target Excel table to obtain the corresponding operation logic on the position data;

[0045] an operation unit, configured to perform corresponding calculations on the parameters according to the operation logic to obtain output data;

[0046] A display unit is used to display the output data.

[0047] According to a preferred embodiment of the present invention, the acquisition unit is further configured to, before acquiring the target Excel table corresponding to the user from the configuration database according to the login information, upon receiving any

[0048] When using Excel spreadsheets, obtain customer information recorded by electronic devices;

[0049] The device further comprises:

[0050] an identification unit, configured to identify the customer information and obtain a target identifier;

[0051] A generating unit, configured to generate a table identifier of the arbitrary Excel table according to the target identifier by adopting a configuration algorithm;

[0052] The recording unit is used to record the arbitrary Excel table into the configuration database using the table identifier as a unique identifier.

[0053] According to a preferred embodiment of the present invention, the acquiring unit acquires the target Excel spreadsheet corresponding to the user from the configuration database according to the login information, including:

[0054] Obtaining the login user from the login information;

[0055] Determine a first target identifier of the enterprise to which the logon user belongs;

[0056] Obtaining a target table identifier corresponding to the first target identifier;

[0057] Matching the target table identifier with all table identifiers stored in the configuration database to obtain a matching first table identifier;

[0058] An Excel table corresponding to the first table identifier is retrieved from the configuration database as the target Excel table.

[0059] According to a preferred embodiment of the present invention, the calling unit is specifically configured to:

[0060] Obtaining a parameter identifier corresponding to the parameter;

[0061] Matching the parameter identifier with data identifiers of all data stored in the configuration database to obtain matching data;

[0062] The matched data is determined as the target data.

[0063] According to a preferred embodiment of the present invention, the computing unit is specifically configured to:

[0064] POI technology is used to perform corresponding calculations on the parameters according to the operation logic to obtain output data.

[0065] According to a preferred embodiment of the present invention, the acquisition unit is further configured to acquire the uploaded standard data after performing corresponding calculations on the parameters according to the operation logic to obtain output data;

[0066] The device further comprises:

[0067] a calculation unit, configured to calculate a standard deviation between the output data and the standard data;

[0068] The sending unit is used to send a prompt message when the standard deviation exceeds a preset range.

[0069] According to a preferred embodiment of the present invention, the acquisition unit is further configured to acquire an execution log when the standard deviation exceeds a preset range;

[0070] The sending unit is further configured to carry the execution log and send out the prompt information.

[0071] An electronic device, comprising:

[0072] a memory storing at least one instruction; and

[0073] A processor executes instructions stored in the memory to implement the data processing method.

[0074] A computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement the data processing method.

[0075] It can be seen from the above technical solution that the present invention can obtain the user's login information when parameter input is detected, obtain the target Excel table corresponding to the user from the configuration database based on the login information, and call the target data corresponding to the parameter from the configuration database, further determine the position data of the parameter in the target Excel table based on the target data, and replace the current data corresponding to the position data in the target Excel table with the parameter, thereby realizing automatic replacement of data in the Excel table without resubmitting a new Excel table, further parsing the target Excel table, obtaining the corresponding operation logic on the position data, performing corresponding calculations on the parameters according to the operation logic, obtaining output data, and displaying the output data at the same time, thereby realizing automatic processing of data in the Excel table, avoiding the trouble brought to users by manual maintenance of Excel tables, and providing better user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 It is a flow chart of a preferred embodiment of the data processing method of the present invention.

[0077] Figure 2 It is a functional module diagram of a preferred embodiment of the data processing device of the present invention.

[0078] Figure 3 It is a structural diagram of an electronic device according to a preferred embodiment of the present invention for implementing the data processing method.

[0079] Description of main component symbols

[0080]

[0081] DETAILED DESCRIPTION

[0082] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0083] like Figure 1 FIG. 1 is a flow chart of a preferred embodiment of the data processing method of the present invention. According to different requirements, the order of the steps in the flow chart can be changed, and some steps can be omitted.

[0084] The data processing method is applied to one or more electronic devices, which are devices that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Their hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital signal processors (DSPs), embedded devices, etc.

[0085] The electronic device may be any electronic product that can interact with a user, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0086] The electronic device may further include a network device and / or a user device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers.

[0087] The network where the electronic device is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.

[0088] S10, when parameter input is detected, the user's login information is obtained.

[0089] In at least one embodiment of the present invention, the electronic device can provide a display interface for the user. When the user needs to change certain project requirement data, the user can log in directly and fill in the requirement data in the corresponding fields in the display interface after successful login, that is, input parameters.

[0090] Furthermore, when parameter input is detected, it indicates that there may be a change in the required data, and therefore, the electronic device will start a subsequent process to process the data.

[0091] In at least one embodiment of the present invention, the input parameters may include, but are not limited to, one or more of the following combinations:

[0092] Turnover, name, movable property data, immovable property data, breach of contract loss value, etc.

[0093] It is understandable that the above parameters are parameters that may change during the course of business, and once the values ​​change, other business data may also change accordingly.

[0094] In at least one embodiment of the present invention, the login information may include, but is not limited to, one or more of the following combinations:

[0095] The user's username, password, login time, login location, etc.

[0096] S11, obtaining a target Excel spreadsheet corresponding to the user from a configuration database according to the login information.

[0097] In at least one embodiment of the present invention, in order to better serve customers, after establishing a cooperative relationship with a customer, the electronic device often needs to record various business data of the customer.

[0098] Specifically, the electronic device receives the Excel spreadsheet uploaded by the customer, and saves the uploaded Excel spreadsheet into the configuration database.

[0099] In at least one embodiment of the present invention, the configuration database may be any database, which is not limited by the present invention. Furthermore, the configuration database is used to store all service data, and the configuration database can communicate with the electronic device.

[0100] In at least one embodiment of the present invention, before obtaining a target Excel spreadsheet corresponding to the user from a configuration database according to the login information, the method further includes:

[0101] When any Excel table is received, the customer information recorded by the electronic device is obtained. Furthermore, the electronic device identifies the customer information, obtains a target identifier, adopts a configuration algorithm, generates a table identifier of the arbitrary Excel table according to the target identifier, uses the table identifier as a unique identifier, and records the arbitrary Excel table in the configuration database.

[0102] In at least one embodiment of the present invention, the customer information includes, but is not limited to, one or more of the following combinations:

[0103] Customer name, customer target ID, customer address, customer contact information, etc.

[0104] In at least one embodiment of the present invention, the snowflake algorithm can be used to process any bit data in the target identifier to generate a table identifier of the arbitrary Excel table, which is not limited by the present invention.

[0105] In at least one embodiment of the present invention, since the target identifier of each enterprise is unique, the table identifier generated by the target identifier is also unique. Therefore, through the table identifier, an Excel table can be uniquely identified, effectively avoiding table acquisition errors.

[0106] Through the above implementation, when any Excel table is received, since each Excel table corresponds to an enterprise or company, this implementation generates the table identifier that can uniquely identify an Excel table based on the target identifier, so as to distinguish the Excel tables according to different enterprises, make the data records in the configuration database clearer, and make it easier to obtain data according to different enterprises, thereby improving the efficiency and accuracy of data extraction.

[0107] In at least one embodiment of the present invention, the electronic device obtaining, according to the login information, a target Excel spreadsheet corresponding to the user from a configuration database includes:

[0108] The electronic device obtains the logon user from the login information and determines a first target identifier of the enterprise to which the logon user belongs. Furthermore, the electronic device obtains a target table identifier corresponding to the first target identifier, matches the target table identifier with all table identifiers stored in the configuration database to obtain a matching first table identifier, and retrieves an Excel table corresponding to the first table identifier from the configuration database as the target Excel table.

[0109] For example: after the electronic device determines that the logon user is user A, if user A belongs to enterprise B, and the target identifier of enterprise B is 1234, and the table identifier corresponding to the target identifier 1234 is 123456789, then the electronic device obtains data from the configuration database with the table identifier 123456789, and thus obtains the target Excel table.

[0110] Through the above implementation, the target Excel table can be automatically acquired quickly and accurately by taking the target table identifier as the matching basis.

[0111] S12, retrieving target data corresponding to the parameters from the configuration database.

[0112] In at least one embodiment of the present invention, the electronic device also saves the data in each Excel table separately to the configuration database, and while saving, records the position data of each data in the corresponding Excel table, that is, the row and column of each data in the corresponding Excel table, and configures a data identifier for each data.

[0113] In at least one embodiment of the present invention, each parameter also corresponds to a parameter identifier, and the parameter identifier is compared with the data identifier of each data in the configuration database, so that the target data corresponding to the parameter can be uniquely determined from the configuration database.

[0114] Specifically, the electronic device retrieves target data corresponding to the parameter from the configuration database, including:

[0115] The electronic device obtains a parameter identifier corresponding to the parameter, matches the parameter identifier with data identifiers of all data stored in the configuration database to obtain matched data, and determines the matched data as the target data.

[0116] For example, when the parameter input is detected and the parameter identifier of the parameter is determined to be 456, the electronic device uses the parameter identifier 456 as a matching basis and obtains the data corresponding to 456 from the configuration database as the target data.

[0117] Through the above implementation, after receiving the parameter, the parameter identifier can be automatically detected, and the target data can be acquired according to the parameter identifier.

[0118] S13, determining the position data of the parameter in the target Excel table according to the target data.

[0119] In at least one embodiment of the present invention, since the position data of the target data in the target Excel table is also recorded while the target data is stored, the electronic device can directly determine the position data of the parameter in the target Excel table based on the target data.

[0120] S14, replacing the current data corresponding to the position data in the target Excel table with the parameters.

[0121] In at least one embodiment of the present invention, after determining the location data, the electronic device can directly locate the corresponding position in the target Excel spreadsheet according to the location data and replace the data without re-uploading a new Excel spreadsheet.

[0122] It's understandable that, under normal circumstances, the data in the Excel spreadsheet stored in the configuration database remains unchanged unless project requirements change. However, if the data changes, unlike the previous method of re-uploading the Excel spreadsheet to update, this solution will only perform a partial update based on the changed data, eliminating the need for users to recreate the Excel spreadsheet, making it more convenient.

[0123] S15, parsing the target Excel table to obtain the corresponding operation logic on the position data.

[0124] In at least one embodiment of the present invention, each grid in the target Excel table may include certain operation logic. Therefore, the electronic device parses the target Excel table to confirm the operation logic of the grid corresponding to the position data.

[0125] Specifically, the electronic device may use POI (Poor Obfuscation Implementation) technology to parse the target Excel table, which is not limited in the present invention.

[0126] Furthermore, there are four main classes in a POI package, including:

[0127] (1) Workbook: Worksheet, obtained through the create(FileInputStream fis) method of WorkbookFactory.

[0128] (2) Sheet: Sheet, obtained through the getSheetAt(int num) method of the Workbook instance.

[0129] (3) Row: row, obtained through the getRow(int num) method of the sheet instance.

[0130] (4)Cell: Cell, obtained through the getCell(int num) method of the Row instance.

[0131] Finally, the corresponding method is called according to the data type through the Cell instance to obtain the value of the cell, thereby realizing the parsing of the target Excel table.

[0132] S16, performing corresponding calculations on the parameters according to the operation logic to obtain output data.

[0133] In at least one embodiment of the present invention, the output data refers to the result obtained after the parameters are operated by the operation logic, that is, the output data is the result obtained after data processing according to the input parameters. The output data can be in the form of a jar package, which is not limited by the present invention.

[0134] Specifically, the electronic device performs corresponding calculations on the parameters according to the operation logic to obtain output data including:

[0135] The electronic device adopts POI technology and performs corresponding calculations on the parameters according to the operation logic to obtain output data.

[0136] The POI technology can be used to read the data in the target Excel table, which will not be described in detail in the present invention.

[0137] In at least one embodiment of the present invention, after performing corresponding calculations on the parameters according to the operation logic to obtain output data, the method further includes:

[0138] The electronic device obtains the uploaded standard data. Further, the electronic device calculates the standard deviation between the output data and the standard data, and issues a prompt message when the standard deviation exceeds a preset range.

[0139] Specifically, the standard data refers to data whose accuracy can be determined.

[0140] Furthermore, the preset range can be customized and is not limited by the present invention.

[0141] Furthermore, the electronic device may send the prompt information to a designated developer so that the developer can make timely technical adjustments and maintenance, thereby improving response efficiency.

[0142] Furthermore, in order to facilitate timely supervision of the designated developer, the electronic device may also simultaneously send the prompt information to relevant persons in charge, such as sending the prompt information to the leader of the designated developer, etc., to facilitate the execution of the business.

[0143] Specifically, when the standard deviation exceeds a preset range, the electronic device determines that there is a large error in the present embodiment, and thus issues a prompt message to facilitate relevant personnel to make timely technical corrections.

[0144] In at least one embodiment of the present invention, when the standard deviation exceeds a preset range, the method further includes:

[0145] The electronic device obtains an execution log. Further, the electronic device carries the execution log and issues the prompt information.

[0146] Through the above implementation, when the prompt information is sent, the execution log is also sent together to assist developers in confirming the error points and improve operation and maintenance efficiency.

[0147] S17, displaying the output data.

[0148] In at least one embodiment of the present invention, the electronic device may display the output data on a configuration interface for easy viewing by a user.

[0149] Through the above implementation, timely feedback can be provided based on the parameters input by the user, so that the user can see the data changes caused by the changes in the parameters, giving the user a better experience.

[0150] It can be seen from the above technical solution that the present invention can obtain the user's login information when parameter input is detected, obtain the target Excel table corresponding to the user from the configuration database based on the login information, and call the target data corresponding to the parameter from the configuration database, further determine the position data of the parameter in the target Excel table based on the target data, and replace the current data corresponding to the position data in the target Excel table with the parameter, thereby realizing automatic replacement of data in the Excel table without resubmitting a new Excel table, further parsing the target Excel table, obtaining the corresponding operation logic on the position data, performing corresponding calculations on the parameters according to the operation logic, obtaining output data, and displaying the output data at the same time, thereby realizing automatic processing of data in the Excel table, avoiding the trouble brought to users by manual maintenance of Excel tables, and providing better user experience.

[0151] like Figure 2, which is a functional module diagram of a preferred embodiment of a data processing device of the present invention. The data processing device 11 includes an acquisition unit 110, a retrieval unit 111, a determination unit 112, a replacement unit 113, a parsing unit 114, a calculation unit 115, a display unit 116, an identification unit 117, a generation unit 118, a recording unit 119, a calculation unit 120, a sending unit 121, and a storage unit 122. The module / unit referred to in the present invention refers to a series of computer program segments that can be executed by the processor 13 and can perform fixed functions, which are stored in the memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.

[0152] When parameter input is detected, the acquisition unit 110 acquires the user's login information.

[0153] In at least one embodiment of the present invention, the acquisition unit 110 can provide a display interface for the user. When the user needs to change certain project requirement data, the user can log in directly and fill in the requirement data in the corresponding fields in the display interface after successful login, that is, input parameters.

[0154] Furthermore, when parameter input is detected, it indicates that there may be a change in the required data, so the subsequent process will be started to process the data.

[0155] In at least one embodiment of the present invention, the input parameters may include, but are not limited to, one or more of the following combinations:

[0156] Turnover, name, movable property data, immovable property data, breach of contract loss value, etc.

[0157] It is understandable that the above parameters are parameters that may change during the course of business, and once the values ​​change, other business data may also change accordingly.

[0158] In at least one embodiment of the present invention, the login information may include, but is not limited to, one or more of the following combinations:

[0159] The user's username, password, login time, login location, etc.

[0160] The acquiring unit 110 acquires a target Excel spreadsheet corresponding to the user from a configuration database according to the login information.

[0161] In at least one embodiment of the present invention, in order to better serve customers, after establishing a cooperative relationship with a customer, it is often necessary to record various business data of the customer.

[0162] Specifically, the acquiring unit 110 receives the Excel spreadsheet uploaded by the customer and saves the uploaded Excel spreadsheet into the configuration database.

[0163] In at least one embodiment of the present invention, the configuration database may be any database, which is not limited by the present invention. Furthermore, the configuration database is used to store all service data, and the configuration database can communicate with the electronic device.

[0164] In at least one embodiment of the present invention, before obtaining a target Excel spreadsheet corresponding to the user from a configuration database according to the login information, the method further includes:

[0165] When any Excel table is received, the acquisition unit 110 acquires the customer information recorded by the electronic device. Further, the identification unit 117 identifies the customer information and obtains a target identifier. Using a configuration algorithm, the generation unit 118 generates a table identifier of the arbitrary Excel table according to the target identifier, using the table identifier as a unique identifier, and the recording unit 119 records the arbitrary Excel table into the configuration database.

[0166] In at least one embodiment of the present invention, the customer information includes, but is not limited to, one or more of the following combinations:

[0167] Customer name, customer target ID, customer address, customer contact information, etc.

[0168] In at least one embodiment of the present invention, the snowflake algorithm can be used to process any bit data in the target identifier to generate a table identifier of the arbitrary Excel table, which is not limited by the present invention.

[0169] In at least one embodiment of the present invention, since the target identifier of each enterprise is unique, the table identifier generated by the target identifier is also unique. Therefore, through the table identifier, an Excel table can be uniquely identified, effectively avoiding table acquisition errors.

[0170] Through the above implementation, when any Excel table is received, since each Excel table corresponds to an enterprise or company, this implementation generates the table identifier that can uniquely identify an Excel table based on the target identifier, so as to distinguish the Excel tables according to different enterprises, make the data records in the configuration database clearer, and make it easier to obtain data according to different enterprises, thereby improving the efficiency and accuracy of data extraction.

[0171] In at least one embodiment of the present invention, the acquiring unit 110 acquires the target Excel spreadsheet corresponding to the user from the configuration database according to the login information, including:

[0172] The acquisition unit 110 acquires the logon user from the login information and determines the first target identifier of the enterprise to which the logon user belongs. Furthermore, the acquisition unit 110 acquires the target table identifier corresponding to the first target identifier, matches the target table identifier with all table identifiers stored in the configuration database to obtain a matching first table identifier, and retrieves the Excel table corresponding to the first table identifier from the configuration database as the target Excel table.

[0173] For example: after the acquisition unit 110 determines that the logon user is user A, if the user A belongs to enterprise B, and the target identifier of enterprise B is 1234, and the table identifier corresponding to the target identifier 1234 is 123456789, then the acquisition unit 110 obtains data from the configuration database with the table identifier 123456789, and thus obtains the target Excel table.

[0174] Through the above implementation, the target Excel table can be automatically acquired quickly and accurately by taking the target table identifier as the matching basis.

[0175] The retrieving unit 111 retrieves target data corresponding to the parameters from the configuration database.

[0176] In at least one embodiment of the present invention, the saving unit 122 also saves the data in each Excel table separately to the configuration database, and while saving, records the position data of each data in the corresponding Excel table, that is, the row and column of each data in the corresponding Excel table, and configures a data identifier for each data.

[0177] In at least one embodiment of the present invention, each parameter also corresponds to a parameter identifier, and the parameter identifier is compared with the data identifier of each data in the configuration database, so that the target data corresponding to the parameter can be uniquely determined from the configuration database.

[0178] Specifically, the retrieving unit 111 retrieves the target data corresponding to the parameter from the configuration database, including:

[0179] The retrieving unit 111 obtains a parameter identifier corresponding to the parameter, matches the parameter identifier with data identifiers of all data stored in the configuration database to obtain matched data, and determines the matched data as the target data.

[0180] For example, when the parameter input is detected and the parameter identifier of the parameter is determined to be 456, the retrieving unit 111 uses the parameter identifier 456 as a matching basis and obtains the data corresponding to 456 from the configuration database as the target data.

[0181] Through the above implementation, after receiving the parameter, the parameter identifier can be automatically detected, and the target data can be acquired according to the parameter identifier.

[0182] The determining unit 112 determines the position data of the parameter in the target Excel table according to the target data.

[0183] In at least one embodiment of the present invention, since the position data of the target data in the target Excel table is also recorded while the target data is stored, the determination unit 112 can directly determine the position data of the parameter in the target Excel table based on the target data.

[0184] The replacing unit 113 replaces the current data corresponding to the position data in the target Excel table with the parameters.

[0185] In at least one embodiment of the present invention, after determining the position data, the replacement unit 113 can directly locate the corresponding position in the target Excel table according to the position data and replace the data without re-uploading a new Excel table.

[0186] It's understandable that, under normal circumstances, the data in the Excel spreadsheet stored in the configuration database remains unchanged unless project requirements change. However, if the data changes, unlike the previous method of re-uploading the Excel spreadsheet to update, this solution will only perform a partial update based on the changed data, eliminating the need for users to recreate the Excel spreadsheet, making it more convenient.

[0187] The parsing unit 114 parses the target Excel table to obtain the corresponding operation logic on the position data.

[0188] In at least one embodiment of the present invention, each cell in the target Excel table may include certain operation logic. Therefore, the parsing unit 114 parses the target Excel table to confirm the operation logic of the cell corresponding to the position data.

[0189] Specifically, the parsing unit 114 may use POI (Poor Obfuscation Implementation) technology to parse the target Excel table, which is not limited in the present invention.

[0190] Furthermore, there are four main classes in a POI package, including:

[0191] (1) Workbook: Worksheet, obtained through the create(FileInputStreamfis) method of WorkbookFactory.

[0192] (2) Sheet: Sheet, obtained through the getSheetAt(int num) method of the Workbook instance.

[0193] (3) Row: row, obtained through the getRow(int num) method of the sheet instance.

[0194] (4)Cell: Cell, obtained through the getCell(int num) method of the Row instance.

[0195] Finally, the corresponding method is called according to the data type through the Cell instance to obtain the value of the cell, thereby realizing the parsing of the target Excel table.

[0196] The operation unit 115 performs corresponding calculations on the parameters according to the operation logic to obtain output data.

[0197] In at least one embodiment of the present invention, the output data refers to the result obtained after the parameters are operated by the operation logic, that is, the output data is the result obtained after data processing according to the input parameters. The output data can be in the form of a jar package, which is not limited by the present invention.

[0198] Specifically, the operation unit 115 performs corresponding calculations on the parameters according to the operation logic, and obtains output data including:

[0199] The operation unit 115 uses POI technology to perform corresponding calculations on the parameters according to the operation logic to obtain output data.

[0200] The POI technology can be used to read the data in the target Excel table, which will not be described in detail in the present invention.

[0201] In at least one embodiment of the present invention, after performing corresponding calculations on the parameters according to the operation logic to obtain output data, the method further includes:

[0202] The acquisition unit 110 acquires the uploaded standard data. Further, the calculation unit 120 calculates the standard deviation between the output data and the standard data. When the standard deviation exceeds a preset range, the sending unit 121 sends a prompt message.

[0203] Specifically, the standard data refers to data whose accuracy can be determined.

[0204] Furthermore, the preset range can be customized and is not limited by the present invention.

[0205] Furthermore, the sending unit 121 may send the prompt information to a designated developer so that the developer can make technical adjustments and maintenance in a timely manner, thereby improving response efficiency.

[0206] Furthermore, in order to facilitate timely supervision of the designated developer, the sending unit 121 may also simultaneously send the prompt information to relevant persons in charge, such as sending the prompt information to the leader of the designated developer, etc., so as to facilitate the execution of the business.

[0207] The above implementation can verify whether the present implementation is effective. Specifically, when the standard deviation exceeds the preset range, it is determined that the present implementation has a large error, and thus a prompt message is issued to facilitate timely technical correction by relevant personnel.

[0208] In at least one embodiment of the present invention, when the standard deviation exceeds a preset range, the method further includes:

[0209] The acquiring unit 110 acquires the execution log. Furthermore, the sending unit 121 carries the execution log and sends the prompt information.

[0210] Through the above implementation, when the prompt information is sent, the execution log is also sent together to assist developers in confirming the error points and improve operation and maintenance efficiency.

[0211] The display unit 116 displays the output data.

[0212] In at least one embodiment of the present invention, the display unit 116 may display the output data on a configuration interface for easy viewing by the user.

[0213] Through the above implementation, timely feedback can be provided based on the parameters input by the user, so that the user can see the data changes caused by the changes in the parameters, giving the user a better experience.

[0214] It can be seen from the above technical solution that the present invention can obtain the user's login information when parameter input is detected, obtain the target Excel table corresponding to the user from the configuration database based on the login information, and call the target data corresponding to the parameter from the configuration database, further determine the position data of the parameter in the target Excel table based on the target data, and replace the current data corresponding to the position data in the target Excel table with the parameter, thereby realizing automatic replacement of data in the Excel table without resubmitting a new Excel table, further parsing the target Excel table, obtaining the corresponding operation logic on the position data, performing corresponding calculations on the parameters according to the operation logic, obtaining output data, and displaying the output data at the same time, thereby realizing automatic processing of data in the Excel table, avoiding the trouble brought to users by manual maintenance of Excel tables, and providing better user experience.

[0215] like Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device according to a preferred embodiment of the present invention for implementing a data processing method.

[0216] The electronic device 1 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes but is not limited to a microprocessor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc.

[0217] The electronic device 1 may also be, but is not limited to, any electronic product that can interact with a user through a keyboard, mouse, remote control, touchpad or voice control device, such as a personal computer, a tablet computer, a smart phone, a personal digital assistant (PDA), a game console, an interactive network television (IPTV), a smart wearable device, etc.

[0218] The electronic device 1 may also be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server.

[0219] The network where the electronic device 1 is located includes but is not limited to the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.

[0220] In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12 , a processor 13 , and a computer program stored in the memory 12 and executable on the processor 13 , such as a data processing program.

[0221] Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 1 and does not constitute a limitation on the electronic device 1. The electronic device 1 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device 1 may also include input and output devices, network access devices, buses, etc.

[0222] The processor 13 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 13 is the computing core and control center of the electronic device 1, connecting various parts of the entire electronic device 1 using various interfaces and lines, and executing the operating system of the electronic device 1 as well as various installed applications, program codes, etc.

[0223] The processor 13 executes the operating system of the electronic device 1 and various installed applications. The processor 13 executes the applications to implement the steps in the above-mentioned embodiments of the data processing method, for example Figure 1 Steps S10, S11, S12, S13, S14, S15, S16, and S17 are shown.

[0224] Alternatively, when the processor 13 executes the computer program, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example: when parameter input is detected, the user's login information is obtained; based on the login information, the target Excel table corresponding to the user is obtained from the configuration database; from the configuration database, the target data corresponding to the parameter is retrieved; based on the target data, the position data of the parameter in the target Excel table is determined; the current data corresponding to the position data in the target Excel table is replaced with the parameter; the target Excel table is parsed to obtain the corresponding operation logic on the position data; the corresponding calculation is performed on the parameter according to the operation logic to obtain output data; and the output data is displayed.

[0225] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the electronic device 1. For example, the computer program may be divided into an acquisition unit 110, a retrieval unit 111, a determination unit 112, a replacement unit 113, a parsing unit 114, a calculation unit 115, a display unit 116, an identification unit 117, a generation unit 118, a recording unit 119, a calculation unit 120, a sending unit 121, and a storage unit 122.

[0226] The memory 12 can be used to store the computer programs and / or modules. The processor 13 implements the various functions of the electronic device 1 by running or executing the computer programs and / or modules stored in the memory 12 and accessing the data stored in the memory 12. The memory 12 may mainly include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area may store data generated based on the use of the electronic device (such as audio data, etc.). In addition, the memory 12 may include high-speed random access memory and non-volatile memory, such as a hard disk, internal memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0227] The memory 12 may be an external memory and / or an internal memory of the electronic device 1. Furthermore, the memory 12 may be a circuit with a storage function that is not in a physical form in an integrated circuit, such as a RAM (Random-Access Memory) or a FIFO (First In First Out). Alternatively, the memory 12 may be a physical memory, such as a memory stick or a TF card.

[0228] If the modules / units integrated in the electronic device 1 are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the present invention can also implement all or part of the processes in the above-mentioned method embodiments by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above-mentioned method embodiments.

[0229] The computer program includes computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. It should be noted that the content of the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0230] Combine Figure 1The memory 12 in the electronic device 1 stores multiple instructions to implement a data processing method, and the processor 13 can execute the multiple instructions to achieve: when parameter input is detected, obtain the user's login information; according to the login information, obtain the target Excel table corresponding to the user from the configuration database; call the target data corresponding to the parameter from the configuration database; according to the target data, determine the position data of the parameter in the target Excel table; replace the current data corresponding to the position data in the target Excel table with the parameter; parse the target Excel table to obtain the corresponding operation logic on the position data; perform corresponding calculations on the parameter according to the operation logic to obtain output data; and display the output data.

[0231] According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:

[0232] When receiving any Excel spreadsheet, obtain the customer information recorded by the electronic device;

[0233] Identify the customer information and obtain a target identifier;

[0234] Using a configuration algorithm, generating a table identifier of the arbitrary Excel table according to the target identifier;

[0235] The arbitrary Excel table is recorded in the configuration database using the table identifier as a unique identifier.

[0236] According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:

[0237] Obtaining the login user from the login information;

[0238] Determine a first target identifier of the enterprise to which the logon user belongs;

[0239] Obtaining a target table identifier corresponding to the first target identifier;

[0240] Matching the target table identifier with all table identifiers stored in the configuration database to obtain a matching first table identifier;

[0241] An Excel table corresponding to the first table identifier is retrieved from the configuration database as the target Excel table.

[0242] According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:

[0243] Obtaining a parameter identifier corresponding to the parameter;

[0244] Matching the parameter identifier with data identifiers of all data stored in the configuration database to obtain matching data;

[0245] The matched data is determined as the target data.

[0246] According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:

[0247] POI technology is used to perform corresponding calculations on the parameters according to the operation logic to obtain output data.

[0248] According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:

[0249] Get uploaded standard data;

[0250] Calculating a standard deviation between the output data and the standard data;

[0251] When the standard deviation exceeds a preset range, a prompt message is issued.

[0252] According to a preferred embodiment of the present invention, the processor 13 further executes a plurality of instructions including:

[0253] Get execution log;

[0254] Carry the execution log and issue the prompt information.

[0255] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0256] In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the module division is merely a logical functional division, and actual implementation may employ other division methods.

[0257] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected to achieve the purpose of the solution of this embodiment according to actual needs.

[0258] In addition, the functional modules in various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or hardware plus software functional modules.

[0259] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0260] Therefore, the embodiments should be considered in all respects as illustrative and non-restrictive, and the scope of the invention is defined by the appended claims rather than the foregoing description, and all changes that come within the meaning and range of equivalents of the claims are intended to be embraced therein. Any reference to a figure in a claim should not be construed as limiting the claim to which it relates.

[0261] Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in a system claim may also be implemented by a single unit or device through software or hardware. Second-order terms are used to indicate names and do not imply any particular order.

[0262] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not limiting. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A data processing method, characterized in that: The method comprises: When parameter input is detected, the user's login information is obtained; According to the login information, a target Excel table corresponding to the user is obtained from a configuration database; Retrieving target data corresponding to the parameter from the configuration database; According to the target data, determining the position data of the parameter in the target Excel table; Replace the current data corresponding to the position data in the target Excel table with the parameter; Parse the target Excel table to obtain the corresponding operation logic on the position data; Perform corresponding calculations on the parameters according to the operation logic to obtain output data; The output data is displayed.

2. The data processing method according to claim 1, characterized in that: Before acquiring a target Excel table corresponding to the user from a configuration database according to the login information, the method further includes: When any Excel spreadsheet is received, customer information recorded by the electronic device is obtained; Identify the customer information and obtain a target identifier; Using a configuration algorithm, generating a table identifier of the arbitrary Excel table according to the target identifier; The arbitrary Excel table is recorded into the configuration database using the table identifier as a unique identifier.

3. The data processing method according to claim 1, characterized in that: The acquiring a target Excel table corresponding to the user from a configuration database according to the login information comprises: Obtaining the login user from the login information; Determine a first target identifier of the enterprise to which the logon user belongs; Acquire a target table identifier corresponding to the first target identifier; Matching the target table identifier with all table identifiers stored in the configuration database to obtain a matching first table identifier; The Excel table corresponding to the first table identifier is retrieved from the configuration database as the target Excel table.

4. The data processing method according to claim 1, characterized in that: The retrieving target data corresponding to the parameter from the configuration database comprises: Obtaining a parameter identifier corresponding to the parameter; Matching the parameter identifier with the data identifiers of all data stored in the configuration database to obtain matching data; The matched data is determined as the target data.

5. The data processing method according to claim 1, characterized in that: The performing corresponding calculation on the parameters according to the operation logic to obtain output data comprises: The POI technology is used to perform corresponding calculations on the parameters according to the operation logic to obtain output data.

6. The data processing method according to claim 1, characterized in that: After performing corresponding calculations on the parameters according to the operation logic to obtain output data, the method further includes: Get uploaded standard data; Calculating a standard deviation between the output data and the standard data; When the standard deviation exceeds a preset range, a prompt message is issued.

7. The data processing method according to claim 6, characterized in that: When the standard deviation exceeds a preset range, the method further includes: Get execution log; The execution log is carried and the prompt information is issued.

8. A data processing device, characterized in that: The device comprises: An acquisition unit, used to acquire the user's login information when a parameter input is detected; The acquisition unit is further used to acquire a target Excel table corresponding to the user from a configuration database according to the login information; A retrieving unit, used for retrieving target data corresponding to the parameter from the configuration database; A determination unit, used for determining the position data of the parameter in the target Excel table according to the target data; A replacement unit, used for replacing the current data corresponding to the position data in the target Excel table with the parameter; A parsing unit, used for parsing the target Excel table to obtain the corresponding operation logic on the position data; A calculation unit, used for performing corresponding calculations on the parameters according to the calculation logic to obtain output data; A display unit is used to display the output data.

9. An electronic device, characterized in that: The electronic device comprises: a memory storing at least one instruction; and A processor executes instructions stored in the memory to implement the data processing method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement the data processing method according to any one of claims 1 to 7.