CN117370281A - Data maintenance method, device, computer equipment and storage medium - Google Patents
Data maintenance method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN117370281A CN117370281A CN202311396434.3A CN202311396434A CN117370281A CN 117370281 A CN117370281 A CN 117370281A CN 202311396434 A CN202311396434 A CN 202311396434A CN 117370281 A CN117370281 A CN 117370281A
- Authority
- CN
- China
- Prior art keywords
- user
- file
- data
- file parsing
- parsing template
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域Technical field
本申请涉及数据处理技术领域,特别是涉及一种数据维护方法、装置、计算机设备、存储介质和计算机程序产品。This application relates to the field of data processing technology, and in particular to a data maintenance method, device, computer equipment, storage medium and computer program product.
背景技术Background technique
随着数据处理技术的发展,数据维护的需求越来越高,出现了数据维护技术,通过数据维护技术能够快速维护用户的数据,保证了用户数据的正确性和可靠性。With the development of data processing technology, the demand for data maintenance is getting higher and higher. Data maintenance technology has emerged. Data maintenance technology can quickly maintain user data and ensure the accuracy and reliability of user data.
目前的数据维护方法,通常是以批量文件的方式对用户数据进行更新。具体地,针对每一文件,调用该文件对应的文件解析接口,通过文件解析接口的文件解析服务解析文件内各用户的数据,得到各用户的解析数据。然后,基于解析数据维护客户端的用户数据。The current data maintenance method usually updates user data in batch files. Specifically, for each file, the file parsing interface corresponding to the file is called, and the data of each user in the file is parsed through the file parsing service of the file parsing interface to obtain the parsed data of each user. Then, maintain the client's user data based on the parsed data.
然而,目前的数据维护方法,文件数量巨大,需要调用不同的文件解析接口对应的文件解析服务解析文件。当不存在文件对应的文件解析服务时,需要立即编写文件解析服务,编写时间较长,会带来场景响应的迟钝,进而造成数据维护方法的效率较低。However, the current data maintenance method has a huge number of files and requires calling file parsing services corresponding to different file parsing interfaces to parse the files. When there is no file parsing service corresponding to the file, the file parsing service needs to be written immediately. The writing time is long, which will cause slow response to the scene, thereby causing the data maintenance method to be inefficient.
发明内容Contents of the invention
基于此,有必要针对上述技术问题,提供一种数据维护方法、装置、计算机设备、计算机可读存储介质和计算机程序产品。Based on this, it is necessary to provide a data maintenance method, device, computer equipment, computer-readable storage medium and computer program product to address the above technical problems.
第一方面,本申请提供了一种数据维护方法,包括:In the first aspect, this application provides a data maintenance method, including:
获取待解析文件,在文件解析模板集中确定与所述待解析文件的格式对应的目标文件解析模板;所述文件解析模板集中包含多个不同格式的文件解析模板;Obtain a file to be parsed, and determine a target file parsing template corresponding to the format of the file to be parsed in a file parsing template set; the file parsing template set contains a plurality of file parsing templates in different formats;
按行读取所述待解析文件中每一行用户的用户数据,并根据所述目标文件解析模板对所述用户数据进行解析;Read the user data of each user in the file to be parsed line by line, and parse the user data according to the target file parsing template;
通过用户实体类建立解析后的所述用户数据和待维护数据的映射关系,并基于所述映射关系维护所述待维护数据。A mapping relationship between the parsed user data and the data to be maintained is established through the user entity class, and the data to be maintained is maintained based on the mapping relationship.
在其中一个实施例中,所述获取待解析文件之前,所述方法还包括:In one embodiment, before obtaining the file to be parsed, the method further includes:
响应于对模板配置信息的输入操作,展示包含配置信息的初始文件解析模板;In response to the input operation of the template configuration information, display the initial file parsing template containing the configuration information;
响应于对所述初始文件解析模板的生成操作,构建文件解析模板;In response to the generation operation of the initial file parsing template, construct a file parsing template;
基于各所述文件解析模板,构建文件解析模板集。Based on each of the file parsing templates, a file parsing template set is constructed.
在其中一个实施例中,所述模板配置信息包含分割条件和字段标识,所述响应于对模板配置信息的输入操作,展示包含配置信息的初始文件解析模板,包括:In one embodiment, the template configuration information includes segmentation conditions and field identifiers, and in response to an input operation on the template configuration information, displaying an initial file parsing template containing configuration information includes:
响应于新建文件解析模板的请求,展示初始文件解析模板;所述初始文件解析模板包含初始分割条件和初始字段标识;In response to a request to create a new file parsing template, display an initial file parsing template; the initial file parsing template includes initial segmentation conditions and initial field identifiers;
响应于所述分割条件和所述字段标识的输入操作,展示包含所述分割条件和所述字段标识的初始文件解析模板。In response to the input operation of the segmentation condition and the field identifier, an initial file parsing template including the segmentation condition and the field identifier is displayed.
在其中一个实施例中,所述在文件解析模板集中确定与所述待解析文件的格式对应的目标文件解析模板,包括:In one embodiment, determining the target file parsing template corresponding to the format of the file to be parsed in the file parsing template set includes:
根据所述待解析文件中的内容确定查询的关键词;Determine the keywords of the query based on the content in the file to be parsed;
基于所述关键词在所述文件解析模板集中确定包含所述关键词的初始文件解析模板集;Determine an initial file parsing template set containing the keyword in the file parsing template set based on the keyword;
根据初始文件解析模板集中各文件解析模板的模板标识确定所述待解析文件的格式对应的目标模板标识,并确定所述目标模板标识对应的目标文件解析模板。The target template identifier corresponding to the format of the file to be parsed is determined according to the template identifier of each file parsing template in the initial file parsing template set, and the target file parsing template corresponding to the target template identifier is determined.
在其中一个实施例中,所述根据所述目标文件解析模板对所述用户数据进行解析,包括:In one embodiment, parsing the user data according to the target file parsing template includes:
针对目标文件解析模板集中的每一分割条件,遍历所述用户的用户数据,判断所述用户数据是否满足所述分割条件;For each segmentation condition in the target file parsing template set, traverse the user's user data and determine whether the user data satisfies the segmentation condition;
在所述用户数据满足所述分割条件的情况下,基于所述分割条件,分割所述用户数据,得到分割后的用户数据;When the user data satisfies the segmentation condition, segment the user data based on the segmentation condition to obtain segmented user data;
根据所述分割条件对应的字段标识,确定分割后的用户数据对应的目标字段。According to the field identifier corresponding to the segmentation condition, the target field corresponding to the segmented user data is determined.
在其中一个实施例中,解析后的所述用户数据包含所述用户的各目标字段的数据,所述通过用户实体类建立解析后的所述用户数据和待维护数据的映射关系,并基于所述映射关系维护所述待维护数据,包括:In one embodiment, the parsed user data includes data of each target field of the user, and the mapping relationship between the parsed user data and the data to be maintained is established through the user entity class, and based on the The mapping relationship maintains the data to be maintained, including:
根据用户实体类和所述用户的各目标字段的映射关系,将所述用户的各目标字段的数据赋值到所述用户实体类中,得到所述用户的用户实体类;所述用户实体类包含用户的全量字段;According to the mapping relationship between the user entity class and each target field of the user, the data of each target field of the user is assigned to the user entity class to obtain the user entity class of the user; the user entity class includes User’s full fields;
将所述用户的用户实体类作为参数传输到用户信息维护微服务中;Transmit the user entity class of the user as a parameter to the user information maintenance microservice;
通过所述用户信息维护微服务以及所述用户的用户实体类中的各字段和待维护数据之间的映射关系,维护所述待维护数据。The data to be maintained is maintained through the user information maintenance microservice and the mapping relationship between each field in the user entity class of the user and the data to be maintained.
第二方面,本申请还提供了一种数据维护装置,包括:In the second aspect, this application also provides a data maintenance device, including:
确定模块,用于获取待解析文件,在文件解析模板集中确定与所述待解析文件的格式对应的目标文件解析模板;所述文件解析模板集中包含多个不同格式的文件解析模板;A determination module, used to obtain the file to be parsed, and determine the target file parsing template corresponding to the format of the file to be parsed in the file parsing template set; the file parsing template set contains multiple file parsing templates of different formats;
解析模块,用于按行读取所述待解析文件中每一行用户的用户数据,并根据所述目标文件解析模板对所述用户数据进行解析;A parsing module, configured to read the user data of each row of users in the file to be parsed line by line, and parse the user data according to the target file parsing template;
维护模块,用于通过用户实体类建立解析后的所述用户数据和待维护数据的映射关系,并基于所述映射关系维护所述待维护数据。A maintenance module, configured to establish a mapping relationship between the parsed user data and the data to be maintained through user entity classes, and to maintain the data to be maintained based on the mapping relationship.
第三方面,本申请还提供了一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, this application also provides a computer device, including a memory and a processor. The memory stores a computer program. When the processor executes the computer program, it implements the following steps:
获取待解析文件,在文件解析模板集中确定与所述待解析文件的格式对应的目标文件解析模板;所述文件解析模板集中包含多个不同格式的文件解析模板;Obtain a file to be parsed, and determine a target file parsing template corresponding to the format of the file to be parsed in a file parsing template set; the file parsing template set contains a plurality of file parsing templates in different formats;
按行读取所述待解析文件中每一行用户的用户数据,并根据所述目标文件解析模板对所述用户数据进行解析;Read the user data of each user in the file to be parsed line by line, and parse the user data according to the target file parsing template;
通过用户实体类建立解析后的所述用户数据和待维护数据的映射关系,并基于所述映射关系维护所述待维护数据。A mapping relationship between the parsed user data and the data to be maintained is established through the user entity class, and the data to be maintained is maintained based on the mapping relationship.
第四方面,本申请还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:In a fourth aspect, the application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
获取待解析文件,在文件解析模板集中确定与所述待解析文件的格式对应的目标文件解析模板;所述文件解析模板集中包含多个不同格式的文件解析模板;Obtain a file to be parsed, and determine a target file parsing template corresponding to the format of the file to be parsed in a file parsing template set; the file parsing template set contains a plurality of file parsing templates in different formats;
按行读取所述待解析文件中每一行用户的用户数据,并根据所述目标文件解析模板对所述用户数据进行解析;Read the user data of each user in the file to be parsed line by line, and parse the user data according to the target file parsing template;
通过用户实体类建立解析后的所述用户数据和待维护数据的映射关系,并基于所述映射关系维护所述待维护数据。A mapping relationship between the parsed user data and the data to be maintained is established through the user entity class, and the data to be maintained is maintained based on the mapping relationship.
第五方面,本申请还提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:In a fifth aspect, this application also provides a computer program product, including a computer program that implements the following steps when executed by a processor:
获取待解析文件,在文件解析模板集中确定与所述待解析文件的格式对应的目标文件解析模板;所述文件解析模板集中包含多个不同格式的文件解析模板;Obtain a file to be parsed, and determine a target file parsing template corresponding to the format of the file to be parsed in a file parsing template set; the file parsing template set contains a plurality of file parsing templates in different formats;
按行读取所述待解析文件中每一行用户的用户数据,并根据所述目标文件解析模板对所述用户数据进行解析;Read the user data of each user in the file to be parsed line by line, and parse the user data according to the target file parsing template;
通过用户实体类建立解析后的所述用户数据和待维护数据的映射关系,并基于所述映射关系维护所述待维护数据。A mapping relationship between the parsed user data and the data to be maintained is established through the user entity class, and the data to be maintained is maintained based on the mapping relationship.
上述数据维护方法、装置、计算机设备、存储介质和计算机程序产品,获取待解析文件,在文件解析模板集中确定与所述待解析文件的格式对应的目标文件解析模板;所述文件解析模板集中包含多个不同格式的文件解析模板;按行读取所述待解析文件中每一行用户的用户数据,并根据所述目标文件解析模板对所述用户数据进行解析;通过用户实体类建立解析后的所述用户数据和待维护数据的映射关系,并基于所述映射关系维护所述待维护数据。采用本方法,通过在文件解析模板集中确定文件对应的目标文件解析模板,并通过目标文件解析模板解析待解析文件中各用户的数据,能够快速解析用户数据,并基于解析后的用户数据和待维护数据之间的映射关系,维护待维护数据,提高了数据维护方法的效率。The above-mentioned data maintenance method, device, computer equipment, storage medium and computer program product obtains a file to be parsed, and determines a target file parsing template corresponding to the format of the file to be parsed in a file parsing template set; the file parsing template set contains Multiple file parsing templates in different formats; read the user data of each row of users in the file to be parsed line by line, and parse the user data according to the target file parsing template; establish the parsed user entity class through Mapping relationship between user data and data to be maintained, and maintaining the data to be maintained based on the mapping relationship. Using this method, by determining the target file parsing template corresponding to the file in the file parsing template set, and parsing the data of each user in the file to be parsed through the target file parsing template, user data can be quickly parsed, and based on the parsed user data and the data to be parsed, Maintain the mapping relationship between data, maintain the data to be maintained, and improve the efficiency of the data maintenance method.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present application or related technologies, the drawings needed to be used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings in the following description are only for the purpose of describing the embodiments or related technologies. For some embodiments of the application, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1为一个实施例中数据维护方法的流程示意图;Figure 1 is a schematic flowchart of a data maintenance method in an embodiment;
图2为一个实施例中构建文件解析模板集步骤的流程示意图;Figure 2 is a schematic flowchart of the steps of building a file parsing template set in one embodiment;
图3为一个实施例中展示初始文件解析模板步骤的流程示意图;Figure 3 is a schematic flowchart showing the steps of the initial file parsing template in one embodiment;
图4为一个实施例中确定目标文件解析模板步骤的流程示意图;Figure 4 is a schematic flowchart of the steps of determining a target file parsing template in one embodiment;
图5为一个实施例中解析用户数据步骤的流程示意图;Figure 5 is a schematic flowchart of the steps of parsing user data in one embodiment;
图6为一个实施例中维护待维护步骤的流程示意图;Figure 6 is a schematic flow chart of steps to be maintained in one embodiment;
图7为另一个实施例中数据维护方法的流程示意图;Figure 7 is a schematic flow chart of a data maintenance method in another embodiment;
图8为一个实施例中数据维护装置的结构框图;Figure 8 is a structural block diagram of a data maintenance device in one embodiment;
图9为一个实施例中计算机设备的内部结构图。Figure 9 is an internal structure diagram of a computer device in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.
在一个实施例中,如图1所示,提供了一种数据维护方法,本申请实施例以该方法应用于计算机设备为例进行说明,本申请实施例对于数据维护方法的执行设备不做限定,包括以下步骤102至步骤106:In one embodiment, as shown in Figure 1, a data maintenance method is provided. The embodiment of the present application takes the application of this method to computer equipment as an example. The embodiment of the present application does not limit the execution device of the data maintenance method. , including the following steps 102 to 106:
步骤102,获取待解析文件,在文件解析模板集中确定与待解析文件的格式对应的目标文件解析模板。Step 102: Obtain the file to be parsed, and determine the target file parsing template corresponding to the format of the file to be parsed in the file parsing template set.
其中,文件解析模板集中包含多个不同格式的文件解析模板。待解析文件中包含至少一个用户的用户数据。待解析文件的格式与该待解析文件中用户数据的内容相对应。Among them, the file parsing template set contains multiple file parsing templates in different formats. The file to be parsed contains user data of at least one user. The format of the file to be parsed corresponds to the content of the user data in the file to be parsed.
在实施中,计算机设备获取待解析文件。计算机设备基于待解析文件中用户数据的内容,确定该待解析文件的格式。然后,计算机设备在文件解析模板集中确定与该待解析文件的格式对应的目标文件解析模板。In an implementation, the computer device obtains the file to be parsed. The computer device determines the format of the file to be parsed based on the content of the user data in the file to be parsed. Then, the computer device determines the target file parsing template corresponding to the format of the file to be parsed in the file parsing template set.
步骤104,按行读取待解析文件中每一行用户的用户数据,并根据目标文件解析模板对用户数据进行解析。Step 104: Read the user data of each user in the file to be parsed line by line, and parse the user data according to the target file parsing template.
其中,待解析文件中包含至少一行用户数据,每一行用户数据为一个用户的用户数据。目标文件解析模板中包含各分割条件和各分割条件对应的字段标识。The file to be parsed contains at least one line of user data, and each line of user data is the user data of one user. The target file parsing template contains each segmentation condition and the field identifier corresponding to each segmentation condition.
在实施中,计算机设备按行读取该待解析文件中每一行用户的用户数据。然后,计算机设备针对每一行用户的用户数据,基于目标文件解析模板中的各分割条件对该用户数据进行解析,并确定解析后的用户数据的目标字段。In an implementation, the computer device reads the user data of each row of the user in the file to be parsed row by row. Then, for each row of user data, the computer device parses the user data based on each segmentation condition in the target file parsing template, and determines the target field of the parsed user data.
步骤106,通过用户实体类建立解析后的用户数据和待维护数据的映射关系,并基于映射关系维护待维护数据。Step 106: Establish a mapping relationship between the parsed user data and the data to be maintained through the user entity class, and maintain the data to be maintained based on the mapping relationship.
在实施中,计算机设备根据用户实体类和解析后的用户数据之间的映射关系以及用户实体类和待维护数据之间的映射关系,维护待维护数据。In implementation, the computer device maintains the data to be maintained according to the mapping relationship between the user entity class and the parsed user data and the mapping relationship between the user entity class and the data to be maintained.
上述数据维护方法中,通过在文件解析模板集中确定文件对应的目标文件解析模板,并通过目标文件解析模板解析待解析文件中各用户的数据,能够快速解析用户数据,并基于解析后的用户数据和待维护数据之间的映射关系,维护待维护数据,提高了数据维护方法的效率。In the above data maintenance method, by determining the target file parsing template corresponding to the file in the file parsing template set, and parsing the data of each user in the file to be parsed through the target file parsing template, user data can be quickly parsed, and based on the parsed user data The mapping relationship with the data to be maintained maintains the data to be maintained and improves the efficiency of the data maintenance method.
在一个示例性的实施例中,在查询文件解析模板集之前需要建立文件解析模板集。如图2所示,该数据维护方法的具体处理过程还包括步骤202至步骤206。其中:In an exemplary embodiment, a file parsing template set needs to be established before querying the file parsing template set. As shown in Figure 2, the specific processing process of the data maintenance method also includes steps 202 to 206. in:
步骤202,响应于对模板配置信息的输入操作,展示包含配置信息的初始文件解析模板。Step 202: In response to the input operation of the template configuration information, display the initial file parsing template containing the configuration information.
其中,初始文件解析模板中包含初始配置信息。Among them, the initial file parsing template contains initial configuration information.
在实施中,在查询文件解析模板集之前,需要先基于各文件解析模板构建文件模板集。在构建文件解析模板集之前需要先构建各文件解析模板。以下为构建一个文件解析模板的示例。计算机设备中预先设置有初始文件解析模板。计算机设备展示包含初始配置信息的初始文件解析模板。用户基于初始配置信息输入模板配置信息,以使计算机设备得到包含配置信息的初始文件解析模板。然后,计算机设备展示包含配置信息的初始文件解析模板。In implementation, before querying the file parsing template set, a file template set needs to be constructed based on each file parsing template. Before building the file parsing template set, each file parsing template needs to be built first. The following is an example of building a file parsing template. An initial file parsing template is preset in the computer equipment. The computer device displays an initial file parsing template containing initial configuration information. The user inputs template configuration information based on the initial configuration information, so that the computer device obtains an initial file parsing template containing the configuration information. The computer device then presents an initial file parsing template containing the configuration information.
步骤204,响应于对初始文件解析模板的生成操作,构建文件解析模板。Step 204: In response to the generation operation of the initial file parsing template, build the file parsing template.
在实施中,在用户确定配置信息的情况下,目标用户在包含初始文件解析模板的页面上点击生成按键,确定计算机设备需要生成文件解析模板。计算机设备响应于对初始文件解析模板的生成操作,基于配置信息构建文件解析模板。In implementation, when the user determines the configuration information, the target user clicks the generate button on the page containing the initial file parsing template and determines that the computer device needs to generate the file parsing template. The computer device constructs the file parsing template based on the configuration information in response to the generating operation of the initial file parsing template.
步骤206,基于各文件解析模板,构建文件解析模板集。Step 206: Build a file parsing template set based on each file parsing template.
在实施中,计算机设备重复执行上述步骤202至步骤204,得到多个文件解析模板。然后,计算机设备根据各文件解析模板,构建文件解析模板集。In implementation, the computer device repeatedly executes the above steps 202 to 204 to obtain multiple file parsing templates. Then, the computer device constructs a file parsing template set based on each file parsing template.
本实施例中,通过包含配置信息的初始文件解析模板构建文件解析模板,提高了构建文件解析模板的效率,并根据各文件解析模板构建文件解析模板集,便于后续基于文件解析模板集对待解析文件进行解析。In this embodiment, a file parsing template is constructed through an initial file parsing template containing configuration information, which improves the efficiency of constructing a file parsing template, and a file parsing template set is constructed based on each file parsing template to facilitate subsequent files to be parsed based on the file parsing template set. Perform analysis.
在一个示例性的实施例中,模板配置信息包含分割条件和字段标识,如图3所示,步骤202的具体处理过程包括步骤302至步骤304。其中:In an exemplary embodiment, the template configuration information includes segmentation conditions and field identifiers. As shown in FIG. 3 , the specific process of step 202 includes steps 302 to 304 . in:
步骤302,响应于新建文件解析模板的请求,展示初始文件解析模板。Step 302: In response to the request to create a new file parsing template, display the initial file parsing template.
其中,初始文件解析模板包含初始分割条件和初始字段标识。Among them, the initial file parsing template includes initial segmentation conditions and initial field identifiers.
在实施中,计算机设备中预先设置有初始文件解析模板。在需要建立文件解析模板的情况下,用户通过操作计算机设备向计算机设备发送新建文件解析模板的请求。计算机设备响应于新建文件解析模板的请求,展示初始文件解析模板。In implementation, an initial file parsing template is preset in the computer device. When a file parsing template needs to be established, the user sends a request to create a new file parsing template to the computer device by operating the computer device. The computer device displays the initial file parsing template in response to the request to create a new file parsing template.
步骤304,响应于分割条件和字段标识的输入操作,展示包含分割条件和字段标识的初始文件解析模板。Step 304: In response to the input operation of the segmentation condition and field identifier, an initial file parsing template containing the segmentation condition and field identifier is displayed.
其中,初始分割条件为分割条件的示例,初始字段标识为初始分割条件对应的字段标识的示例。初始文件解析模板中包含至少一个分割条件和字段标识。The initial segmentation condition is an example of the segmentation condition, and the initial field identifier is an example of the field identifier corresponding to the initial segmentation condition. The initial file parsing template contains at least one segmentation condition and field identifier.
在实施中,用户基于初始分割条件输入分割条件,并基于初始字段标识输入分割条件对应的字段标识。然后,用户继续输入分割条件和字段标识,直到初始文件解析模板中的分割条件和字段标识满足文件解析需求,用户停止输入分割条件和字段标识,使得计算机设备得到包含分割条件和字段标识的初始文件解析模板。计算机设备展示包含分割条件和字段标识的初始文件解析模板。In the implementation, the user inputs the segmentation condition based on the initial segmentation condition, and inputs the field identifier corresponding to the segmentation condition based on the initial field identifier. Then, the user continues to input the segmentation conditions and field identifiers until the segmentation conditions and field identifiers in the initial file parsing template meet the file parsing requirements, and the user stops inputting the segmentation conditions and field identifiers, so that the computer device obtains the initial file containing the segmentation conditions and field identifiers. Parse template. The computer device displays an initial file parsing template including segmentation conditions and field identifiers.
本实施例中,基于初始文件解析模板中的初始分割条件和初始字段标识确定配置信息,能够快速确定配置信息,便于后续基于配置信息构建文件解析模块,提高了构建文件解析模板的效率。并且,通过灵活配置批量文件格式,可以适用任意批量维护场景,提高场景响应的敏捷性。In this embodiment, the configuration information is determined based on the initial segmentation conditions and initial field identifiers in the initial file parsing template, which can quickly determine the configuration information, facilitate the subsequent construction of the file parsing module based on the configuration information, and improve the efficiency of building the file parsing template. Moreover, by flexibly configuring the batch file format, it can be applied to any batch maintenance scenario and improve the agility of scenario response.
在一个示例性的实施例中,如图4所示,步骤102中的在文件解析模板集中确定与待解析文件的格式对应的目标文件解析模板的具体处理过程包括步骤402至步骤406。其中:In an exemplary embodiment, as shown in FIG. 4 , the specific process of determining the target file parsing template corresponding to the format of the file to be parsed in the file parsing template set in step 102 includes steps 402 to 406 . in:
步骤402,根据待解析文件中的内容确定查询的关键词。Step 402: Determine the query keyword based on the content in the file to be parsed.
其中,待解析文件中包含至少一个用户的用户数据。关键词包含用户数据的部分特征或者全部特征。The file to be parsed contains user data of at least one user. Keywords contain some or all features of user data.
在实施中,计算机设备基于待解析文件中的用户数据确定查询的关键词。In an implementation, the computer device determines the keywords of the query based on user data in the file to be parsed.
在一个可选的实施例中,若待解析文件中的用户数据包含用户标识、用户名称和用户电话号码。计算机设备基于待解析文件中的用户数据,确定查询的关键词可以为名称加电话号码、也可以为电话号码。本申请实施例对于关键词的具体内容不做限定。In an optional embodiment, if the user data in the file to be parsed includes user identification, user name and user phone number. Based on the user data in the file to be parsed, the computer device determines that the query keyword can be a name plus a phone number, or it can also be a phone number. The embodiments of this application do not limit the specific content of keywords.
步骤404,基于关键词在文件解析模板集中确定包含关键词的初始文件解析模板集。Step 404: Determine an initial file parsing template set containing keywords in the file parsing template set based on the keywords.
在实施中,计算机设备基于关键词,在文件解析模板集中查询包含关键词的各初始文件解析模板,得到初始文件解析模板集。In implementation, the computer device queries each initial file parsing template containing the keyword in the file parsing template set based on the keyword, and obtains the initial file parsing template set.
步骤406,根据初始文件解析模板集中各文件解析模板的模板标识确定待解析文件的格式对应的目标模板标识,并确定目标模板标识对应的目标文件解析模板。Step 406: Determine the target template identifier corresponding to the format of the file to be parsed based on the template identifier of each file parsing template in the initial file parsing template set, and determine the target file parsing template corresponding to the target template identifier.
其中,模板标识为文件解析模板的名称。文件解析模板的模板标识是基于文件解析模板中的各字段标识确定的。Among them, the template identifier is the name of the file parsing template. The template identifier of the file parsing template is determined based on the field identifiers in the file parsing template.
在实施中,计算机设备根据待解析文件的格式,在初始文件解析模板集中各文件解析模板的模板标识确定与待解析文件各格式对应的目标名称。然后,计算机设备确定与目标名称对应的目标文件解析模板。In implementation, the computer device determines the target name corresponding to each format of the file to be parsed based on the format of the file to be parsed and the template identifier of each file parsing template in the initial file parsing template set. The computer device then determines a target file parsing template corresponding to the target name.
在一个可选的实施例中,在文件解析模板集中不存在与待解析文件的格式对应的目标文件解析模板的情况下,计算机设备执行上述步骤202至步骤204,得到与待解析文件的格式对应的目标文件解析模板。In an optional embodiment, when there is no target file parsing template corresponding to the format of the file to be parsed in the file parsing template set, the computer device performs the above steps 202 to 204 to obtain the format corresponding to the file to be parsed. Target file parsing template.
本实施例中,基于关键词确定初始文件解析模板集,并在初始文件解析模板集中确定目标文件解析模板,能够快速得到目标文件解析模板,提高了确定目标文件解析模板的效率。In this embodiment, the initial file parsing template set is determined based on keywords, and the target file parsing template is determined in the initial file parsing template set. The target file parsing template can be quickly obtained, which improves the efficiency of determining the target file parsing template.
在一个示例性的实施例中,如图5所示,步骤104中的根据目标文件解析模板对用户数据进行解析的具体处理过程包括步骤502至步骤506。其中:In an exemplary embodiment, as shown in FIG. 5 , the specific process of parsing user data according to the target file parsing template in step 104 includes steps 502 to 506 . in:
步骤502,针对目标文件解析模板集中的每一分割条件,遍历用户的用户数据,判断用户数据是否满足分割条件。Step 502: For each segmentation condition in the target file parsing template set, traverse the user's user data and determine whether the user data satisfies the segmentation condition.
在实施中,计算机设备针对目标文件解析模板中的每一分割条件,遍历一个用户的用户数据,并判断用户数据是否满足分割条件。In implementation, the computer device traverses a user's user data for each segmentation condition in the target file parsing template, and determines whether the user data satisfies the segmentation condition.
步骤504,在用户数据满足分割条件的情况下,基于分割条件,分割用户数据,得到分割后的用户数据。Step 504: When the user data satisfies the segmentation conditions, the user data is segmented based on the segmentation conditions to obtain segmented user data.
在实施中,计算机设备在用户数据满足分割条件的情况下,根据分割条件,分割用户数据,得到分割后的用户数据。In implementation, when the user data satisfies the dividing conditions, the computer device divides the user data according to the dividing conditions to obtain divided user data.
可选的,分割条件可以为定长或者分割符。即计算机设备对于每一行的用户数据按照定长或分割符划分字段。每个字段映射到客户元数据的表和字段。该种映射关系即构成了文件解析模板。本申请实施例对于分割条件不做限定。Optionally, the split condition can be fixed length or delimiter. That is, the computer equipment divides the fields of each row of user data according to fixed length or delimiter. Each field maps to a table and field of customer metadata. This mapping relationship constitutes the file parsing template. The embodiments of this application do not limit the division conditions.
步骤506,根据分割条件对应的字段标识,确定分割后的用户数据对应的目标字段。Step 506: Determine the target field corresponding to the divided user data according to the field identifier corresponding to the dividing condition.
在实施中,计算机设备根据分割条件对应的字段标识,将该字段标识确定为分割后的用户数据对应的目标字段。In implementation, the computer device determines the field identifier as the target field corresponding to the divided user data based on the field identifier corresponding to the segmentation condition.
在一个可选的实施例中,用户数据为“2023100901张三”。分割条件为在第十个字符后分割,且分割条件对应的字段标识为用户标识。计算机设备基于分割条件,将用户数据分割为“2023100901”和“张三”。然后,计算机设备将用户标识确定为“2023100901”对应的目标字段。In an optional embodiment, the user data is "2023100901 Zhang San". The splitting condition is to split after the tenth character, and the field ID corresponding to the splitting condition is the user ID. The computer equipment splits the user data into "2023100901" and "Zhang San" based on the split conditions. Then, the computer device determines the user identification as the target field corresponding to "2023100901".
本实施例中,通过文件解析模板解析待解析文件中各用户的数据,能够快速解析用户数据,得到解析后的用户数据,便于后续基于解析后的用户数据维护待维护数据,提高了数据维护方法的效率。In this embodiment, the data of each user in the file to be parsed is parsed through the file parsing template, which can quickly parse the user data and obtain the parsed user data, which facilitates subsequent maintenance of the data to be maintained based on the parsed user data and improves the data maintenance method. s efficiency.
在一个示例性的实施例中,解析后的用户数据包含用户的各目标字段的数据,如图6所示,步骤106中的具体处理过程包括步骤602至步骤606。其中:In an exemplary embodiment, the parsed user data includes data of each target field of the user. As shown in FIG. 6 , the specific processing process in step 106 includes steps 602 to 606 . in:
步骤602,根据用户实体类和用户的各目标字段的映射关系,将用户的各目标字段的数据赋值到用户实体类中,得到用户的用户实体类。Step 602: According to the mapping relationship between the user entity class and each target field of the user, assign the data of each target field of the user to the user entity class to obtain the user entity class of the user.
其中,用户实体类包含用户的全量字段。用户实体类为Java(一门面向对象的编程语言)中的类。Among them, the user entity class contains all the fields of the user. The user entity class is a class in Java (an object-oriented programming language).
在实施中,计算机设备中预先设置有用户实体类。计算机设备根据用户实体类和用户的各目标字段的数据之间的映射关系,将用户的各目标字段的数据赋值到用户实体类中对应的各属性中,得到用户的用户实体类。In implementation, the user entity class is preset in the computer device. Based on the mapping relationship between the user entity class and the data of each target field of the user, the computer device assigns the data of each target field of the user to the corresponding attributes in the user entity class to obtain the user entity class of the user.
步骤604,将用户的用户实体类作为参数传输到用户信息维护微服务中。Step 604: Transmit the user's user entity class as a parameter to the user information maintenance microservice.
在实施中,计算机设备将用户的用户实体类作为参数传输给用户信息维护微服务。其中,用户信息维护微服务包含了多种维护用户信息的功能。In implementation, the computer device transmits the user's user entity class as a parameter to the user information maintenance microservice. Among them, the user information maintenance microservice includes a variety of functions for maintaining user information.
步骤606,通过用户信息维护微服务以及用户的用户实体类中的各字段和待维护数据之间的映射关系,维护待维护数据。Step 606: Maintain the data to be maintained through the user information maintenance microservice and the mapping relationship between each field in the user's user entity class and the data to be maintained.
在实施中,计算机设备通过用户信息维护微服务以及用户的用户实体类中各字段和待维护数据之间的映射关系,维护待维护数据。In implementation, the computer device maintains the data to be maintained through the user information maintenance microservice and the mapping relationship between each field in the user's user entity class and the data to be maintained.
本实施例中,基于统一的用户信息维护微服务批量维护服务,减少开发工作、运维工作,提高了数据维护方法的效率。并且,在解析完待解析文件后,沿用单个维护的服务流程,可实现业务逻辑的复用。In this embodiment, microservice batch maintenance services are maintained based on unified user information, which reduces development work and operation and maintenance work, and improves the efficiency of the data maintenance method. Moreover, after parsing the files to be parsed, a single maintained service process can be used to achieve reuse of business logic.
在一个示例性实施例中,图7为另一个实施例中数据维护方法的流程图。计算机设备加载文件,得到待解析文件。然后,计算机设备在预先设置的文件解析模板集中确定目标文件解析模板。计算机设备轮询按行读取待解析文件中每一行用户的用户数据,并根据目标文件解析模板解析用户数据。计算机设备将解析的用户数据赋值到业务实体中。然后,计算机设备调用客户维护服务接口(用户信息维护微服务的接口),将赋值后的业务实体作为参数传入客户信息维护微服务中,通过客户信息维护微服务和赋值后的业务实体与待维护数据之间的映射关系,维护客户信息(待维护数据)。In an exemplary embodiment, FIG. 7 is a flow chart of a data maintenance method in another embodiment. The computer device loads the file and obtains the file to be parsed. Then, the computer device determines the target file parsing template in the preset file parsing template set. The computer device polls and reads the user data of each row of users in the file to be parsed line by line, and parses the user data according to the target file parsing template. The computer device assigns the parsed user data to the business entity. Then, the computer device calls the customer maintenance service interface (the interface of the user information maintenance microservice), passes the assigned business entity as a parameter into the customer information maintenance microservice, and communicates with the customer information maintenance microservice and the assigned business entity through the customer information maintenance microservice. Maintain the mapping relationship between data and maintain customer information (data to be maintained).
应该理解的是,虽然如上所述的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上所述的各实施例所涉及的流程图中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts involved in the above-mentioned embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated in this article, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in the flowcharts involved in the above embodiments may include multiple steps or stages. These steps or stages are not necessarily executed at the same time, but may be completed at different times. The execution order of these steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的数据维护方法的数据维护装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个数据维护装置实施例中的具体限定可以参见上文中对于数据维护方法的限定,在此不再赘述。Based on the same inventive concept, embodiments of the present application also provide a data maintenance device for implementing the above-mentioned data maintenance method. The problem-solving solution provided by this device is similar to the solution recorded in the above method. Therefore, for the specific limitations in one or more data maintenance device embodiments provided below, please refer to the above limitations on the data maintenance method. I won’t go into details here.
在一个示例性的实施例中,如图8所示,提供了一种数据维护装置800,包括:确定模块801、解析模块802和维护模块803,,其中:In an exemplary embodiment, as shown in Figure 8, a data maintenance device 800 is provided, including: a determination module 801, a parsing module 802 and a maintenance module 803, wherein:
确定模块801,用于获取待解析文件,在文件解析模板集中确定与所述待解析文件的格式对应的目标文件解析模板;所述文件解析模板集中包含多个不同格式的文件解析模板。The determination module 801 is used to obtain a file to be parsed, and determine a target file parsing template corresponding to the format of the file to be parsed in a file parsing template set; the file parsing template set contains multiple file parsing templates of different formats.
解析模块802,用于按行读取所述待解析文件中每一行用户的用户数据,并根据所述目标文件解析模板对所述用户数据进行解析。The parsing module 802 is configured to read the user data of each row of users in the file to be parsed line by line, and parse the user data according to the target file parsing template.
维护模块803,用于通过用户实体类建立解析后的所述用户数据和待维护数据的映射关系,并基于所述映射关系维护所述待维护数据。The maintenance module 803 is configured to establish a mapping relationship between the parsed user data and the data to be maintained through the user entity class, and maintain the data to be maintained based on the mapping relationship.
在一示例性实施例中,数据维护装置800还包括:In an exemplary embodiment, the data maintenance device 800 further includes:
第一展示模块,用于响应于对模板配置信息的输入操作,展示包含所述配置信息的初始文件解析模板。The first display module is configured to display the initial file parsing template including the configuration information in response to an input operation on the template configuration information.
第一构建模块,用于响应于对所述初始文件解析模板的生成操作,构建文件解析模板。A first building module, configured to construct a file parsing template in response to the generation operation of the initial file parsing template.
第二构建模块,用于基于各所述文件解析模板,构建文件解析模板集。The second building module is used to construct a file parsing template set based on each of the file parsing templates.
在一示例性实施例中,模板配置信息包含分割条件和字段标识。第一展示模块包括:In an exemplary embodiment, the template configuration information includes segmentation conditions and field identifiers. The first display module includes:
第一展示子模块,用于响应于新建文件解析模板的请求,展示初始文件解析模板;所述初始文件解析模板包含初始分割条件和初始字段标识。The first display sub-module is used to display an initial file parsing template in response to a request to create a new file parsing template; the initial file parsing template includes initial segmentation conditions and initial field identifiers.
第二展示子模块,用于响应于所述分割条件和所述字段标识的输入操作,展示包含所述分割条件和所述字段标识的初始文件解析模板。The second display submodule is configured to display an initial file parsing template including the segmentation condition and the field identifier in response to the input operation of the segmentation condition and the field identifier.
在一示例性实施例中,确定模块801包括第一获取子模块和第一确定子模块。其中,第一确定子模块包括:In an exemplary embodiment, the determining module 801 includes a first obtaining sub-module and a first determining sub-module. Among them, the first determination sub-module includes:
第二确定子模块,用于根据所述待解析文件中的内容确定查询的关键词。The second determination sub-module is used to determine the query keyword according to the content in the file to be parsed.
第三确定子模块,用于基于所述关键词在所述文件解析模板集中确定包含所述关键词的初始文件解析模板集。The third determination sub-module is used to determine an initial file parsing template set containing the keyword in the file parsing template set based on the keyword.
第四确定子模块,用于根据初始文件解析模板集中各文件解析模板的模板标识确定所述待解析文件的格式对应的目标模板标识,并确定所述目标模板标识对应的目标文件解析模板。The fourth determination sub-module is used to determine the target template identification corresponding to the format of the file to be parsed based on the template identification of each file parsing template in the initial file parsing template set, and determine the target file parsing template corresponding to the target template identification.
在一示例性实施例中,解析模块802包括读取子模块和第一解析子模块。In an exemplary embodiment, the parsing module 802 includes a reading sub-module and a first parsing sub-module.
其中,第一解析子模块包括:Among them, the first parsing sub-module includes:
第一判断子模块,用于针对目标文件解析模板集中的每一分割条件,遍历所述用户的用户数据,判断所述用户数据是否满足所述分割条件。The first judgment sub-module is used to traverse the user data of the user for each segmentation condition in the target file parsing template set, and determine whether the user data satisfies the segmentation condition.
分割子模块,用于在所述用户数据满足所述分割条件的情况下,基于所述分割条件,分割所述用户数据,得到分割后的用户数据。A segmentation submodule, configured to segment the user data based on the segmentation condition to obtain segmented user data when the user data satisfies the segmentation condition.
第五确定子模块,用于根据所述分割条件对应的字段标识,确定分割后的用户数据对应的目标字段。The fifth determination sub-module is used to determine the target field corresponding to the divided user data according to the field identifier corresponding to the division condition.
在一示例性实施例中,解析后的所述用户数据包含所述用户的各目标字段的数据。维护模块803包括:In an exemplary embodiment, the parsed user data includes data of each target field of the user. Maintenance module 803 includes:
赋值子模块,用于根据用户实体类和所述用户的各目标字段的映射关系,将所述用户的各目标字段的数据赋值到所述用户实体类中,得到所述用户的用户实体类;所述用户实体类包含用户的全量字段。An assignment submodule, configured to assign the data of each target field of the user to the user entity class according to the mapping relationship between the user entity class and each target field of the user, to obtain the user entity class of the user; The user entity class contains all fields of the user.
传输子模块,用于将所述用户的用户实体类作为参数传输到用户信息维护微服务中。The transmission submodule is used to transmit the user entity class of the user as a parameter to the user information maintenance microservice.
维护子模块,用于通过所述用户信息维护微服务以及所述用户的用户实体类中的各字段和待维护数据之间的映射关系,维护所述待维护数据。A maintenance submodule, configured to maintain the data to be maintained through the user information maintenance microservice and the mapping relationship between each field in the user entity class of the user and the data to be maintained.
上述数据维护装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned data maintenance device can be implemented in whole or in part by software, hardware and combinations thereof. Each of the above modules may be embedded in or independent of the processor of the computer device in the form of hardware, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在一个示例性的实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图9所示。该计算机设备包括处理器、存储器、输入/输出接口、通信接口、显示单元和输入装置。其中,处理器、存储器和输入/输出接口通过系统总线连接,通信接口、显示单元和输入装置通过输入/输出接口连接到系统总线。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质和内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的输入/输出接口用于处理器与外部设备之间交换信息。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种数据维护方法。该计算机设备的显示单元用于形成视觉可见的画面,可以是显示屏、投影装置或虚拟现实成像装置。显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 9 . The computer device includes a processor, memory, input/output interface, communication interface, display unit and input device. Among them, the processor, memory and input/output interface are connected through the system bus, and the communication interface, display unit and input device are connected to the system bus through the input/output interface. Wherein, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile storage media and internal memory. The non-volatile storage medium stores operating systems and computer programs. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used for wired or wireless communication with external terminals. The wireless mode can be implemented through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies. The computer program, when executed by the processor, implements a data maintenance method. The display unit of the computer equipment is used to form a visually visible picture, and may be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display or an electronic ink display. The input device of the computer device can be a touch layer covered on the display screen, or it can be a button, trackball or touch pad provided on the computer device casing, or it can be External keyboard, trackpad or mouse, etc.
本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 9 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Specific computer equipment can May include more or fewer parts than shown, or combine certain parts, or have a different arrangement of parts.
在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。In one embodiment, a computer device is also provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, it implements the steps in the above method embodiments.
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiments are implemented.
在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。In one embodiment, a computer program product is provided, including a computer program that implements the steps in each of the above method embodiments when executed by a processor.
需要说明的是,本申请所涉及的用户信息(包括但不限于用户设备信息、用户个人信息等)和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据,且相关数据的收集、使用和处理需要符合相关规定。It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all It is information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant regulations.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-OnlyMemory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic RandomAccess Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage. In the media, when executed, the computer program may include the processes of the above method embodiments. Any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random) Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene memory, etc. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM). The databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include blockchain-based distributed databases, etc., but are not limited thereto. The processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to this.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined in any way. To simplify the description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, all possible combinations should be used. It is considered to be within the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。The above-described embodiments only express several implementation modes of the present application, and their descriptions are relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all fall within the protection scope of the present application. Therefore, the scope of protection of this application should be determined by the appended claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311396434.3A CN117370281A (en) | 2023-10-26 | 2023-10-26 | Data maintenance method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311396434.3A CN117370281A (en) | 2023-10-26 | 2023-10-26 | Data maintenance method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117370281A true CN117370281A (en) | 2024-01-09 |
Family
ID=89396176
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311396434.3A Pending CN117370281A (en) | 2023-10-26 | 2023-10-26 | Data maintenance method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117370281A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110688828A (en) * | 2019-09-20 | 2020-01-14 | 京东数字科技控股有限公司 | File processing method and device, file processing system and computer equipment |
CN112036144A (en) * | 2020-09-03 | 2020-12-04 | 广联达科技股份有限公司 | Data analysis method and device, computer equipment and readable storage medium |
CN113434674A (en) * | 2021-06-25 | 2021-09-24 | 平安国际智慧城市科技股份有限公司 | Data analysis method and device, electronic equipment and readable storage medium |
CN115080651A (en) * | 2022-07-12 | 2022-09-20 | 深圳壹账通智能科技有限公司 | Excel data import method, device, electronic device and storage medium |
-
2023
- 2023-10-26 CN CN202311396434.3A patent/CN117370281A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110688828A (en) * | 2019-09-20 | 2020-01-14 | 京东数字科技控股有限公司 | File processing method and device, file processing system and computer equipment |
CN112036144A (en) * | 2020-09-03 | 2020-12-04 | 广联达科技股份有限公司 | Data analysis method and device, computer equipment and readable storage medium |
CN113434674A (en) * | 2021-06-25 | 2021-09-24 | 平安国际智慧城市科技股份有限公司 | Data analysis method and device, electronic equipment and readable storage medium |
CN115080651A (en) * | 2022-07-12 | 2022-09-20 | 深圳壹账通智能科技有限公司 | Excel data import method, device, electronic device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105094707B (en) | A kind of data storage, read method and device | |
CN113420044A (en) | Data query method, device, equipment and storage medium | |
CN108388622B (en) | API interface dynamic generation method and device, computer equipment and storage medium | |
CN112433712B (en) | Report display method, report display device, computer equipment and storage medium | |
CN115544183B (en) | Data visualization method, device, computer equipment and storage medium | |
CN113254455A (en) | Dynamic configuration method and device of database, computer equipment and storage medium | |
CN109767098A (en) | Processing method, device, computer equipment and the storage medium of product attribute | |
CN114155921A (en) | Configuration method, apparatus, computer equipment and storage medium of medical form | |
CN116456021B (en) | Page data request method, device, electronic device and readable storage medium | |
CN117435651A (en) | Test data processing method, device, computer equipment and storage medium | |
CN118245699A (en) | Page acquisition method, device, equipment, storage medium and computer program product | |
CN117390011A (en) | Report data processing method, device, computer equipment and storage medium | |
CN116860576A (en) | Method, device, computer equipment and storage medium for recording operation log | |
CN117370281A (en) | Data maintenance method, device, computer equipment and storage medium | |
CN116258597A (en) | Document processing method, device, computer equipment and storage medium | |
CN116719892A (en) | Data display method, device, computer equipment and storage medium | |
CN115510130A (en) | Report generation method and device, computer equipment and storage medium | |
CN114895875A (en) | Zero-code visual information system metadata production application method and system | |
CN114092064A (en) | Power big data processing batch system and method, device, equipment and medium | |
CN116506540B (en) | Page data request method and device, electronic equipment and readable storage medium | |
US20060074936A1 (en) | Method and system for generating a report using an object-oriented approach | |
CN118964064A (en) | Data access method, device, equipment, readable storage medium and program product | |
CN119938670A (en) | Database table structure generation method, device, equipment, medium and program product | |
CN117707602A (en) | Data request processing method, device, server and storage medium | |
CN119167901A (en) | Table data processing method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |