CN115827766A - Data modification method and device, electronic equipment and computer storage medium - Google Patents

Data modification method and device, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN115827766A
CN115827766A CN202211662789.8A CN202211662789A CN115827766A CN 115827766 A CN115827766 A CN 115827766A CN 202211662789 A CN202211662789 A CN 202211662789A CN 115827766 A CN115827766 A CN 115827766A
Authority
CN
China
Prior art keywords
data
commodity
modified
modification
strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211662789.8A
Other languages
Chinese (zh)
Inventor
高鹏
李超
颜桐
冯志成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN202211662789.8A priority Critical patent/CN115827766A/en
Publication of CN115827766A publication Critical patent/CN115827766A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Storage Device Security (AREA)

Abstract

The embodiment of the invention provides a data modification method, a system, electronic equipment and a computer storage medium. And responding to the modification standard in the received data modification request, and performing attribute analysis on the commodity data to be modified to obtain commodity attribute information of the commodity data to be modified. And determining a corresponding target modification strategy in preset modification strategies according to the commodity attribute information of the to-be-modified commodity data, wherein the preset modification strategies comprise a data type conversion strategy, a data encryption strategy and a data updating strategy, and the commodity attribute information of the to-be-modified commodity data comprises a data type, a quality identifier, field contents and a field length. And modifying the commodity data to be modified based on the target modification strategy to generate commodity data meeting the modification standard. The scheme of the invention is beneficial to realizing the unified management of commodity data and improving the efficiency of data modification.

Description

Data modification method and device, electronic equipment and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a data modification method and device, electronic equipment and a computer storage medium.
Background
The grain management platform is used for realizing the management of the grain industry, and along with the development of big data, each business system of an enterprise generates more and more data, and the difference between the versions of each business system causes the problem that the data cannot be uniformly managed. For example, due to differences of respective versions of a national grain management system and each provincial grain management subsystem, data types, data standards and the like of stored commodity data are different, and the commodity data cannot be uniformly managed.
In the prior art, in order to implement unified management of commodity data, it is usually necessary to modify the interface fields of each business system one by one to make the interfaces of each business system consistent, and then manage the commodity data through the consistent interfaces to obtain unified data meeting standards. However, in the face of more and more commodity data from different service systems, particularly when the commodity data needs to be changed, the interface fields are modified one by one, which results in low data modification efficiency.
Disclosure of Invention
Embodiments of the present invention provide a data modification method, apparatus, electronic device and computer storage medium to at least solve the above problems.
According to a first aspect of the embodiments of the present invention, there is provided a data modification method, including acquiring commodity data to be modified from a commodity management database. And responding to the modification standard in the received data modification request, and performing attribute analysis on the commodity data to be modified to obtain commodity attribute information of the commodity data to be modified. And determining a corresponding target modification strategy in preset modification strategies according to the commodity attribute information of the to-be-modified commodity data, wherein the preset modification strategies comprise a data type conversion strategy, a data encryption strategy and a data updating strategy, and the commodity attribute information of the to-be-modified commodity data comprises a data type, a quality identifier, field contents and a field length. And modifying the commodity data to be modified based on the target modification strategy to generate commodity data meeting the modification standard.
In one implementation manner, the corresponding target modification strategy is determined in the preset modification strategies according to the commodity attribute information of the commodity data to be modified, and whether the commodity data to be modified belongs to the structured data or not is judged according to the data type of the commodity data to be modified. And if the commodity data to be modified does not belong to the structured data, determining a data format conversion strategy in the preset modification strategy as a target modification strategy.
In another implementation manner, commodity data to be modified is modified based on the target modification strategy, commodity data meeting the modification standard is generated, and the data type of the commodity data to be modified is converted into structured data according to the data type conversion strategy. And determining the converted commodity data to be modified as commodity data.
In another implementation manner, a corresponding target modification strategy is determined in a preset modification strategy according to the commodity attribute information of the commodity data to be modified, and a security level matching with the quality identifier of the commodity data to be modified is determined from a preset security level mapping table according to the quality identifier of the commodity data to be modified, wherein the security level mapping table indicates the mapping relation between the quality identifier of the commodity data to be modified and the security level of the commodity data to be modified. And determining a data encryption policy from the target modification policy according to the security level. And determining the data encryption policy as a target modification policy.
In another implementation manner, the commodity data to be modified is modified based on the target modification strategy to generate the commodity data meeting the modification standard, and the commodity data to be modified is encrypted according to an encryption algorithm in the data encryption strategy, where the encryption algorithm includes at least one of symmetric encryption, asymmetric encryption and one-way encryption. And determining the encrypted commodity data to be modified as commodity data.
In another implementation manner, a corresponding target modification strategy is determined in a preset modification strategy according to the commodity attribute information of the commodity data to be modified, and the field matching degree of the field content and the field length in the commodity attribute information is calculated. And judging whether the field matching degree of the field content and the field length reaches a preset field matching degree threshold value. And if the field matching degree of the field content and the field length does not reach a preset field matching degree threshold value, determining a data updating strategy in the preset modification strategy as a target modification strategy.
In another implementation manner, the commodity data to be modified is modified based on the target modification strategy, and commodity data meeting the modification standard is generated, wherein the step of modifying the field length and the field content of the commodity data to be modified according to the preset field standard in the data updating strategy is included to update the commodity data to be modified. And determining the updated commodity data to be modified as commodity data.
According to a second aspect of the embodiments of the present invention, there is provided a data modification apparatus, including an obtaining module, configured to obtain data of a commodity to be modified from a commodity management database. And the analysis module is used for responding to the modification standard in the received data modification request, and performing attribute analysis on the commodity data to be modified to obtain the commodity attribute information of the commodity data to be modified. And the strategy determining module is used for determining a corresponding target modification strategy in preset modification strategies according to the commodity attribute information of the commodity data to be modified, wherein the preset modification strategies comprise a data type conversion strategy, a data encryption strategy and a data updating strategy, and the commodity attribute information of the commodity data to be modified comprises a data type, a quality identifier, field content and field length. And the modification module is used for modifying the commodity data to be modified based on the target modification strategy to generate the commodity data meeting the modification standard.
According to a third aspect of embodiments of the present invention, there is provided an electronic device including a processor, a memory storing a program. Wherein the program comprises instructions which, when executed by a processor, cause the processor to perform the method according to the first aspect.
According to a fourth aspect of embodiments of the present invention, there is provided a computer storage medium having stored thereon a computer program which, when executed by a processor, performs the method of the first aspect.
In the scheme of the embodiment of the invention, the data modification method determines the corresponding data type conversion strategy, the data encryption strategy and the data update strategy according to the commodity attribute information through the provided preset modification strategy, realizes the unification of data without modifying the interface fields of each service system one by one, and directly and accurately modifies the commodity data to be modified through different strategies to generate the commodity data meeting the modification standard, thereby realizing the unified management of the commodity data and improving the efficiency of data modification.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present invention, and it is also possible for a person skilled in the art to obtain other drawings based on the drawings.
FIG. 1 is a flow chart illustrating steps of a data modification method according to an embodiment of the present invention.
Fig. 2 is a block diagram of a data modification apparatus corresponding to the embodiment of fig. 1.
Fig. 3 is a schematic structural diagram of an electronic device according to another embodiment of the invention.
Detailed Description
In order to more clearly understand the technical features, objects and effects of the embodiments of the present invention, specific embodiments of the present invention will be described with reference to the accompanying drawings.
"exemplary" means "serving as an example, instance, or illustration" herein, and any illustration, embodiment, or steps described as "exemplary" herein should not be construed as a preferred or advantageous alternative.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, for simplicity and clarity of understanding, elements having the same structure or function in some of the figures may be shown only schematically or only schematically.
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention shall fall within the scope of the protection of the embodiments of the present invention.
The following further describes specific implementation of the embodiments of the present invention with reference to the drawings.
According to a first aspect of embodiments of the present invention, a data modification method is provided. Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a data modification method according to an embodiment of the present invention.
As shown in fig. 1, the present embodiment mainly includes the following steps:
and step S110, acquiring the data of the commodity to be modified from the commodity management database.
It should be understood that the grain data in the national grain management system and each provincial grade grain management subsystem are integrated in the commodity management database, and are taken as commodity data, that is, the commodity data come from different systems, have different data sources, have different data formats, have different data types and the like.
And step S120, responding to the modification standard in the received data modification request, and performing attribute analysis on the commodity data to be modified to obtain commodity attribute information of the commodity data to be modified.
It should be understood that the commodity attribute information of the commodity data to be modified includes data type, quality identification, field content and field length.
It should be further understood that the received modification standard is used to modify all the data of the commodities to be modified in the commodity management database into unified data, so as to facilitate management of the commodity data, where the unified data may be uniform data format, uniform data type, and the like.
The commodity attribute information of the commodity data to be modified is obtained by analyzing the commodity to be modified, so that the commodity to be modified can be modified subsequently according to the commodity attribute information, the complexity of modifying the commodity data to be modified is reduced, and the data modification efficiency is improved.
Step S130, determining a corresponding target modification policy in preset modification policies according to the commodity attribute information of the commodity data to be modified, where the preset modification policies include a data type conversion policy, a data encryption policy, and a data update policy, and the commodity attribute information of the commodity data to be modified includes a data type, a quality identifier, a field content, and a field length.
It should be understood that the data type conversion strategy, the data encryption strategy and the data update strategy can be respectively determined as target modification strategies according to different attribute information of the merchant data to be modified.
It should also be understood that the data type conversion strategy, the data encryption strategy and the data update strategy can also be simultaneously determined as the target modification strategy according to different attribute information of the to-be-modified business data, so that the to-be-modified commodity data can be subjected to multi-layer modification based on the data type conversion strategy, the data encryption strategy and the data update strategy.
Illustratively, the preset modification policy may be generated by an ETL tool, which is also referred to as data extraction, conversion, and loading, where the ETL is responsible for extracting data in distributed and heterogeneous data sources, such as relationship data, flat data files, and the like, to a temporary middle layer, then performing cleaning, conversion, integration, and finally loading the extracted data to a data warehouse or a data mart, so as to form a basis for online analysis processing and data mining.
It should also be understood that, in the embodiment of the present invention, the data of the commodities to be modified may be acquired from the commodity management database through the ETL tool, and the target modification policy may be determined from the preset modification policies generated by the ETL.
The corresponding target modification strategy is determined in the preset modification strategies according to the commodity attribute information of the commodity data to be modified, so that the commodity data to be modified can be modified according to the target modification strategy, the complexity of modifying the commodity data to be modified is reduced, and the data modification efficiency is improved.
And step S140, modifying the commodity data to be modified based on the target modification strategy to generate commodity data meeting the modification standard.
It should be understood that the commodity data to be modified is modified based on the target modification policy, including modifying all commodity data to be modified in the commodity management database, so that the standard commodity data obtained after modifying all commodity data to be modified is unified data, for example: the commodity data is consistent in data type and data format.
The commodity data to be modified is modified based on the target modification strategy, so that the commodity data meeting the modification standard is generated, and the unified management of the data is facilitated.
It should also be understood that a plurality of target modification strategies can be determined according to different commodity attribute information of the commodity data to be modified, and the commodity data to be modified is modified simultaneously through the target modification strategies, so that the data modification efficiency is improved.
In summary, in the solution of the embodiment of the present invention, a data modification method is provided, in which a preset modification policy is provided, and a corresponding data type conversion policy, a data encryption policy, and a data update policy are determined according to commodity attribute information, so that data unification is achieved without modifying interface fields of each service system one by one, and commodity data to be modified is precisely modified directly through different policies, and commodity data conforming to modification standards are generated, thereby achieving unified management of the commodity data and improving data modification efficiency.
In one implementation manner, the corresponding target modification strategy is determined in the preset modification strategies according to the commodity attribute information of the commodity data to be modified, and whether the commodity data to be modified belongs to the structured data or not is judged according to the data type of the commodity data to be modified. And if the commodity data to be modified does not belong to the structured data, determining a data format conversion strategy in the preset modification strategy as a target modification strategy.
It should be understood that the commodity attribute information of the commodity data to be modified may include data type, quality identification, field content and field length. In this embodiment, whether the commodity data to be modified belongs to the structured data is determined according to the data type of the commodity data to be modified.
And the target modification strategy aiming at the commodity data to be modified is directly determined according to the data type of the commodity data to be modified, so that the data modification efficiency is improved.
In another implementation manner, commodity data to be modified is modified based on the target modification strategy, commodity data meeting the modification standard is generated, and the data type of the commodity data to be modified is converted into structured data according to the data type conversion strategy. And determining the converted commodity data to be modified as commodity data.
The data type of the commodity data to be modified is converted into the structured data, and the converted commodity data to be modified is determined to be the commodity data, so that the efficiency of data modification is improved, and meanwhile, the commodity data are more conveniently used by a national grain management system and each provincial grade grain management subsystem, and unified management of the commodity data is realized.
In another implementation manner, a corresponding target modification strategy is determined in a preset modification strategy according to the commodity attribute information of the commodity data to be modified, and a security level matching with the quality identifier of the commodity data to be modified is determined from a preset security level mapping table according to the quality identifier of the commodity data to be modified, wherein the security level mapping table indicates the mapping relation between the quality identifier of the commodity data to be modified and the security level of the commodity data to be modified. And determining a data encryption policy from the target modification policy according to the security level. And determining the data encryption policy as a target modification policy.
In another implementation manner, the commodity data to be modified is modified based on the target modification strategy to generate the commodity data meeting the modification standard, and the commodity data to be modified is encrypted according to an encryption algorithm in the data encryption strategy, where the encryption algorithm includes at least one of symmetric encryption, asymmetric encryption and one-way encryption. And determining the encrypted commodity data to be modified as commodity data.
It should be understood that the specific encryption mode may be specified according to the determined data encryption policy of the commodity data to be modified, and several encryption algorithms may be used alone or in combination, and herein, the use mode is not limited.
The commodity data to be modified is encrypted according to the encryption algorithm in the data encryption strategy, so that the safety of the commodity data to be modified during data modification is improved, and the risk of data leakage is avoided.
In another implementation manner, a corresponding target modification strategy is determined in a preset modification strategy according to the commodity attribute information of the commodity data to be modified, and the field matching degree of the field content and the field length in the commodity attribute information is calculated. And judging whether the field matching degree of the field content and the field length reaches a preset field matching degree threshold value. And if the field matching degree of the field content and the field length does not reach a preset field matching degree threshold value, determining a data updating strategy in the preset modification strategy as a target modification strategy.
The data updating strategy in the preset modification strategy is determined to be the target modification strategy by judging whether the field matching degree of the field content and the field length reaches the preset field matching degree threshold value, so that the commodity data to be modified is accurately modified, the accuracy of data modification is improved, and the efficiency of data modification is further improved.
In another implementation manner, the commodity data to be modified is modified based on the target modification strategy, and commodity data meeting the modification standard is generated, including modifying the field length and the field content of the commodity data to be modified according to the preset field standard in the data updating strategy, so as to update the commodity data to be modified. And determining the updated commodity data to be modified as commodity data.
In summary, in the solution of the embodiment of the present invention, a data modification method is provided, in which a preset modification policy is provided, and a corresponding data type conversion policy, a data encryption policy, and a data update policy are determined according to commodity attribute information, so that data unification is achieved without modifying interface fields of each service system one by one, and commodity data to be modified is precisely modified directly through different policies, and commodity data conforming to modification standards are generated, thereby achieving unified management of the commodity data and improving data modification efficiency.
In another implementation mode, address information of the commodity data meeting the modification standard is obtained, and the address information is stored in a data warehouse. The address information indicates a target data table into which the commodity data conforming to the modification standard should be imported.
Illustratively, the target data table into which the commodity data should be imported may be determined by acquiring address information of the commodity data stored in the data repository, so as to import the commodity data that meets the modification criteria into the target data table.
By acquiring the address information of the commodity data stored in the data warehouse, the commodity data meeting the modification standard is imported into the target data table, and the accuracy of data import is improved.
According to a second aspect of the embodiment of the present invention, a data modification apparatus is provided, referring to fig. 2, and fig. 2 is a structural block diagram of the data modification apparatus corresponding to the embodiment of fig. 1. The data modification device of the embodiment comprises:
the obtaining module 210 is configured to obtain the data of the goods to be modified from the goods management database.
The analyzing module 220 is configured to perform attribute analysis on the to-be-modified commodity data in response to the modification standard in the received data modification request, so as to obtain commodity attribute information of the to-be-modified commodity data.
The policy determining module 230 is configured to determine a corresponding target modification policy in preset modification policies according to the commodity attribute information of the commodity data to be modified, where the preset modification policies include a data type conversion policy, a data encryption policy, and a data updating policy, and the commodity attribute information of the commodity data to be modified includes a data type, a quality identifier, a field content, and a field length.
And the modifying module 240 is configured to modify the commodity data to be modified based on the target modification policy, so as to generate commodity data meeting the modification standard.
In the scheme of the embodiment of the invention, the data modification method determines the corresponding data type conversion strategy, the data encryption strategy and the data update strategy according to the commodity attribute information through the provided preset modification strategy, realizes the unification of data without modifying the interface fields of each service system one by one, and directly and accurately modifies the commodity data to be modified through different strategies to generate the commodity data meeting the modification standard, thereby realizing the unified management of the commodity data and improving the efficiency of data modification.
The apparatus of this embodiment is used to implement the corresponding method in the foregoing method embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein again. In addition, the functional implementation of each module in the apparatus of this embodiment can refer to the description of the corresponding part in the foregoing method embodiment, and is not described herein again.
According to a third aspect of the embodiments of the present invention, there is provided an electronic device, and referring to fig. 3, a block diagram of a structure of an electronic device 300 that can be a server or a client of the present invention will now be described, which is an example of a hardware device that can be applied to aspects of the present invention. Electronic device is intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, user digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as user 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 meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
The electronic device 300 may include: a processor (processor) 302, a communication Interface 304, a memory 306, and a communication bus 308.
The processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308. A communication interface 304 for communicating with other electronic devices or servers.
The processor 302 is configured to execute the program 310, and may specifically execute the relevant steps in the foregoing method embodiments.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a processor CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The intelligent device comprises one or more processors which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may be specifically configured to cause the processor 302 to perform the following operations: and acquiring the data of the commodities to be modified from the commodity management database. And responding to the modification standard in the received data modification request, and performing attribute analysis on the commodity data to be modified to obtain commodity attribute information of the commodity data to be modified. And determining a corresponding target modification strategy in preset modification strategies according to the commodity attribute information of the to-be-modified commodity data, wherein the preset modification strategies comprise a data type conversion strategy, a data encryption strategy and a data updating strategy, and the commodity attribute information of the to-be-modified commodity data comprises a data type, a quality identifier, field contents and a field length. And modifying the commodity data to be modified based on the target modification strategy to generate commodity data meeting the modification standard.
In addition, for specific implementation of each step in the program 310, reference may be made to corresponding steps and corresponding descriptions in units in the foregoing method embodiments, which are not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
It should be noted that, according to the implementation requirement, each component/step described in the embodiment of the present invention may be divided into more components/steps, and two or more components/steps or partial operations of the components/steps may also be combined into a new component/step to achieve the purpose of the embodiment of the present invention.
The above-described method according to an embodiment of the present invention may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein may be stored in such software processing on a recording medium using a general-purpose computer, a processor, or programmable or hardware such as an ASIC or FPGA. It will be appreciated that a computer, processor, microprocessor controller, or programmable hardware includes memory components (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by a computer, processor, or hardware, implements the methods described herein. Further, when a general-purpose computer accesses code for implementing the methods illustrated herein, execution of the code transforms the general-purpose computer into a special-purpose computer for performing the methods illustrated herein.
So far, specific embodiments of the present invention have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
It should be noted that all the directional indicators (such as upper, lower, left, right, and rear … …) in the embodiments of the present invention are only used to explain the relative position relationship between the components, the motion situation, and the like in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly.
In the description of the present invention, the terms "first" and "second" are used merely for convenience in describing different components or names, and are not to be construed as indicating or implying a sequential relationship, relative importance, or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
It should be understood that although the present description has been described in terms of various embodiments, not every embodiment includes only a single embodiment, and such description is for clarity purposes only, and those skilled in the art will recognize that the embodiments described herein may be combined as suitable to form other embodiments, as will be appreciated by those skilled in the art.
The examples of the embodiments of the present invention are intended to briefly describe the technical features of the embodiments of the present invention, so that those skilled in the art can intuitively understand the technical features of the embodiments of the present invention, and the embodiments of the present invention are not unduly limited.
Finally, it should be noted that: the above embodiments are only for illustrating the embodiments of the present invention and not for limiting the embodiments of the present invention, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention, so that all equivalent technical solutions also belong to the scope of the embodiments of the present invention, and the scope of patent protection of the embodiments of the present invention should be defined by the claims.

Claims (10)

1. A method of modifying data, comprising:
acquiring data of commodities to be modified from a commodity management database;
responding to a modification standard in a received data modification request, and performing attribute analysis on the commodity data to be modified to obtain commodity attribute information of the commodity data to be modified;
determining a corresponding target modification strategy in preset modification strategies according to the commodity attribute information of the to-be-modified commodity data, wherein the preset modification strategies comprise a data type conversion strategy, a data encryption strategy and a data updating strategy, and the commodity attribute information of the to-be-modified commodity data comprises a data type, a quality identifier, field content and a field length;
and modifying the commodity data to be modified based on the target modification strategy to generate commodity data meeting the modification standard.
2. The method according to claim 1, wherein the determining a corresponding target modification policy in preset modification policies according to the commodity attribute information of the to-be-modified commodity data comprises:
judging whether the commodity data to be modified belongs to structured data or not according to the data type of the commodity data to be modified;
and if the commodity data to be modified does not belong to the structured data, determining a data format conversion strategy in the preset modification strategy as the target modification strategy.
3. The method according to claim 2, wherein the modifying the commodity data to be modified based on the target modification policy to generate commodity data meeting the modification criteria comprises:
converting the data type of the commodity data to be modified into structured data according to the data type conversion strategy;
and determining the converted commodity data to be modified as the commodity data.
4. The method according to claim 1, wherein the determining a corresponding target modification policy in preset modification policies according to the commodity attribute information of the to-be-modified commodity data further comprises:
determining a security level matched with the quality identifier of the commodity data to be modified from a preset security level mapping table according to the quality identifier of the commodity data to be modified, wherein the security level mapping table indicates the mapping relation between the quality identifier of the commodity data to be modified and the security level of the commodity data to be modified;
determining a data encryption strategy from the target modification strategy according to the security level;
determining the data encryption policy as the target modification policy.
5. The method according to claim 4, wherein the modifying the commodity data to be modified based on the target modification policy to generate commodity data meeting the modification criteria comprises:
encrypting the commodity data to be modified according to an encryption algorithm in the data encryption strategy, wherein the encryption algorithm comprises at least one of symmetric encryption, asymmetric encryption and one-way encryption;
and determining the encrypted commodity data to be modified as the commodity data.
6. The method according to claim 1, wherein the determining a corresponding target modification policy in preset modification policies according to the commodity attribute information of the to-be-modified commodity data further comprises:
calculating the field matching degree of the field content and the field length in the commodity attribute information;
judging whether the field matching degree of the field content and the field length reaches a preset field matching degree threshold value or not;
and if the field matching degree of the field content and the field length does not reach the preset field matching degree threshold value, determining a data updating strategy in the preset modification strategy as the target modification strategy.
7. The method according to claim 6, wherein the modifying the commodity data to be modified based on the target modification policy to generate commodity data meeting the modification criteria comprises:
modifying the field length and the field content of the commodity data to be modified according to a preset field standard in the data updating strategy so as to update the commodity data to be modified;
and determining the updated commodity data to be modified as the commodity data.
8. A data modification apparatus, comprising:
the acquisition module is used for acquiring the data of the commodities to be modified from the commodity management database;
the analysis module is used for responding to the modification standard in the received data modification request, and performing attribute analysis on the commodity data to be modified to obtain commodity attribute information of the commodity data to be modified;
the strategy determining module is used for determining a corresponding target modification strategy in preset modification strategies according to the commodity attribute information of the to-be-modified commodity data, wherein the preset modification strategies comprise a data type conversion strategy, a data encryption strategy and a data updating strategy, and the commodity attribute information of the to-be-modified commodity data comprises a data type, a quality identifier, field contents and a field length;
and the modification module is used for modifying the commodity data to be modified based on the target modification strategy to generate the commodity data meeting the modification standard.
9. An electronic device, comprising:
a processor;
a memory storing a program;
wherein the program comprises instructions which, when executed by the processor, cause the processor to carry out the steps performed by the method according to any one of claims 1-7.
10. A computer storage medium, characterized in that a computer program is stored thereon, which program, when being executed by a processor, carries out the steps being performed by the method according to any one of claims 1-7.
CN202211662789.8A 2022-12-23 2022-12-23 Data modification method and device, electronic equipment and computer storage medium Pending CN115827766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211662789.8A CN115827766A (en) 2022-12-23 2022-12-23 Data modification method and device, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211662789.8A CN115827766A (en) 2022-12-23 2022-12-23 Data modification method and device, electronic equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN115827766A true CN115827766A (en) 2023-03-21

Family

ID=85517956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211662789.8A Pending CN115827766A (en) 2022-12-23 2022-12-23 Data modification method and device, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN115827766A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116610685A (en) * 2023-04-25 2023-08-18 阿里健康科技(中国)有限公司 Method, device, equipment and medium for updating standard information base

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116610685A (en) * 2023-04-25 2023-08-18 阿里健康科技(中国)有限公司 Method, device, equipment and medium for updating standard information base
CN116610685B (en) * 2023-04-25 2024-05-24 阿里健康科技(中国)有限公司 Method, device, equipment and medium for updating standard information base

Similar Documents

Publication Publication Date Title
CN109408746B (en) Image information query method, image information query device, computer equipment and storage medium
US20220292093A1 (en) Techniques For In Memory Key Range Searches
WO2019061991A1 (en) Multi-element universal model platform modeling method, electronic device, and computer readable storage medium
CN111143462A (en) Data export method and device, computer equipment and storage medium
US20230237051A1 (en) Techniques for in-memory data searching
WO2021218063A1 (en) Method and apparatus for assigning parameter with value on the basis of name mapping, and computer device
CN115827766A (en) Data modification method and device, electronic equipment and computer storage medium
CN111737300A (en) Service processing method, device, equipment and computer readable storage medium
CN110084476B (en) Case adjustment method, device, computer equipment and storage medium
CN111209061A (en) Method and device for filling in user information, computer equipment and storage medium
CN108920278B (en) Resource allocation method and device
CN114238767B (en) Service recommendation method, device, computer equipment and storage medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN113420050B (en) Data query management method, device, computer equipment and readable storage medium
CN112199401B (en) Data request processing method, device, server, system and storage medium
CN114116256A (en) Variable calling method and device, computer equipment and storage medium
CN112559221A (en) Intelligent list processing method, system, equipment and storage medium
CN108566293B (en) Electronic device, zk node information notification method, and storage medium
CN107870908B (en) Information acquisition method and device
US11687266B2 (en) Managing deduplication operations based on a likelihood of duplicability
CN114443661A (en) Data lake schema classification method, device, equipment, medium and product
CN116911990A (en) Receipt generation method, receipt generation device, computer equipment and storage medium
CN116010424A (en) Attribute configuration method, attribute configuration device, computer equipment, storage medium and program product
CN117076492A (en) Service data query method, device, equipment and storage medium
CN117076721A (en) Data query method, device, equipment, medium and product

Legal Events

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