CN111985188A - Data conversion method, device, terminal and storage medium - Google Patents

Data conversion method, device, terminal and storage medium Download PDF

Info

Publication number
CN111985188A
CN111985188A CN202010710786.1A CN202010710786A CN111985188A CN 111985188 A CN111985188 A CN 111985188A CN 202010710786 A CN202010710786 A CN 202010710786A CN 111985188 A CN111985188 A CN 111985188A
Authority
CN
China
Prior art keywords
data
attribute
operation instruction
conversion method
acquiring
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
CN202010710786.1A
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.)
Yonyou Network Technology Co Ltd
Original Assignee
Yonyou Network Technology Co Ltd
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 Yonyou Network Technology Co Ltd filed Critical Yonyou Network Technology Co Ltd
Priority to CN202010710786.1A priority Critical patent/CN111985188A/en
Publication of CN111985188A publication Critical patent/CN111985188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Abstract

The invention relates to a data conversion method, a device, a terminal and a storage medium, wherein the method comprises the following steps: acquiring an attribute identifier of the first data, and acquiring a corresponding attribute according to the attribute identifier; generating a corresponding relation script according to the attribute identification of the first data and the attribute of the second data, and performing conversion processing on the second data; responding to a trigger event of the first data action, calling the corresponding relation script, displaying a preset interaction interface for converting data, and converting the data into converted second data; when an operation instruction acting on a preset interactive interface is received, operating target data corresponding to the operation instruction, and displaying an operation effect of generating the target data; the template can be converted in batches, the manpower in the initial stage of node development is greatly reduced, the accuracy of data is improved, the problems of writing missing and error due to human negligence and the like are avoided, and the special attributes can be manually adjusted according to the result report.

Description

Data conversion method, device, terminal and storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a data conversion method, a data conversion device, a terminal and a storage medium.
Background
In the prior art, the data conversion and replacement process is mechanical and time-consuming, the data is involved in the setting and conversion of the area, the metadata, the data type and the display form, and the like, and the manual replacement is not only tedious, but also easy to make mistakes.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a data conversion method, an apparatus, a terminal, and a storage medium, so as to solve the problems of complexity and error rate in the data conversion process.
The technical scheme adopted by the invention for solving the technical problems is as follows:
in a first aspect, an embodiment of the present invention provides a data conversion method, applied to a terminal device, including:
acquiring an attribute identifier of first data, and acquiring a corresponding attribute according to the attribute identifier, wherein the attribute is an attribute of second data;
generating a corresponding relation script according to the attribute identification of the first data and the attribute of the second data, and performing conversion processing on the second data;
responding to a trigger event of the first data action, calling the corresponding relation script, and displaying a preset interaction interface of conversion data, wherein the conversion data is the converted second data;
and when an operation instruction acting on the preset interactive interface is received, operating target data corresponding to the operation instruction, and displaying an operation effect of generating the target data, wherein the target data is at least part of the second data.
Further, the process of obtaining the attribute identifier of the first data operates according to a preset format.
Further, caching is further performed after the attribute of the second data is acquired.
Further, the preset interactive interface comprises a selection and/or new data processing process.
Further, in the process of receiving an operation instruction acting on the preset interactive interface, the operation instruction comprises selection and/or new data processing.
Further, still include: and expanding the corresponding relation script according to the operation effect and/or responding to subsequent operation instruction processing.
In a second aspect, an embodiment of the present invention further provides a data conversion apparatus, configured in a terminal device, and including:
the data extraction module is used for acquiring an attribute identifier of the first data and acquiring a corresponding attribute according to the attribute identifier, wherein the attribute is an attribute of the second data;
the data conversion module is used for generating a corresponding relation script according to the attribute identification of the first data and the attribute of the second data and converting the second data;
the data output module is used for responding to a trigger event of the first data action, calling the corresponding relation script and displaying a preset interactive interface for converting data, wherein the converted data is the converted second data; and
and the data generation module is used for operating target data corresponding to the operation instruction and displaying an operation effect of generating the target data when the operation instruction acting on the preset interactive interface is received, wherein the target data is at least part of the second data.
In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the above-described data conversion method.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the data conversion method described above.
Compared with the prior art, the invention has the beneficial effects that:
the template can be converted in batches, the manpower in the initial stage of node development is greatly reduced, the accuracy of data is improved, the problems of writing missing and error due to human negligence and the like are avoided, and the special attributes can be manually adjusted according to the result report.
The construction of the present application and other objects and advantages thereof will be more apparent from the following description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
FIG. 1 is a schematic flow chart of data conversion according to an embodiment of the present invention;
FIG. 2 is a functional block diagram of a data conversion device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal in an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the technical solution of one or more embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only examples or embodiments of the present description, and that for a person skilled in the art, one or more embodiments of the present description can also be applied to other similar scenarios according to these drawings without inventive effort. Unless otherwise apparent from the context, or otherwise indicated, like reference numbers in the figures refer to the same structure or operation.
It should be understood that "system," "unit," and/or "module" as used herein is a method for distinguishing different components, elements, components, parts, or assemblies at different levels. However, other words may be substituted by other expressions if they accomplish the same purpose.
As used in one or more embodiments of the present specification and in the claims, the terms "a," "an," and/or "the" are not intended to be inclusive of the plural form as long as the context clearly indicates the exception. In general, the terms "comprises" and "comprising" merely indicate that steps and elements are included which are explicitly identified, that the steps and elements do not form an exclusive list, and that a method or apparatus may include other steps or elements.
Furthermore, the terms "first", "second", "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", "third" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, "a plurality" or the like means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Flow diagrams are used in one or more embodiments of the specification to illustrate the operations performed by a system in accordance with one or more embodiments of the specification. It should be understood that the preceding or following operations are not necessarily performed in the exact order in which they are performed. Rather, the various steps may be processed in reverse order or simultaneously. Meanwhile, other operations may be added to the processes, or a certain step or several steps of operations may be removed from the processes.
Example one
Fig. 1 is a flowchart of a data conversion method according to an embodiment of the present invention. The embodiment of the invention can be suitable for the condition that network communication is carried out on the terminal equipment and the target server so as to operate the target data. The method can be applied to terminal equipment and can be executed by a data operation device provided by the embodiment of the invention, the device can be realized by software and/or hardware, and the device can be integrated on various terminal equipment.
In the data conversion process, when the data is in the template state, the template replacement process is mechanical and time-consuming, and template areas, metadata, data types, display form setting conversion and the like are involved. If the manual operation is performed, the operation is not only complicated, but also easy to be wrong.
Thus, as shown in fig. 1, an embodiment of the present invention provides a data conversion method, which specifically includes the following steps:
s1, acquiring the attribute identification of the first data, and acquiring the corresponding attribute according to the attribute identification, wherein the attribute is the attribute of the second data.
And the process of acquiring the attribute identifier of the first data is operated according to a preset format. In this step, the template data source is found and extracted according to a certain format for subsequent program processing, the data source is the old template data, i.e. the second data, and the first data is the trigger operation of the user. The problem that the user clicks and checks one by one manually, and the problem is complex and easy to mistake can be solved. On this basis, more specifically, the caching process is further included after the attribute of the second data is acquired.
And S2, generating a corresponding relation script according to the attribute identification of the first data and the attribute of the second data, and converting the second data.
In an exemplary embodiment, the old template attribute and the new template attribute are manually compared, the corresponding relation script is compiled for conversion, data conversion can be performed according to the extracted template data, manual corresponding of metadata, reference, display or not, input of necessary items and the like are avoided, and the initialization efficiency of the new template is improved.
S3, responding to the trigger event of the first data action, calling the corresponding relation script, and displaying a preset interactive interface of conversion data, wherein the conversion data is the converted second data.
Illustratively, the preset interactive interface comprises a selection and/or new data processing process. In the process, more specifically, the converted data queries the corresponding relation script according to the attribute of the new template, the data is processed and put in storage, and the process of selecting and/or adding new data processing can be exemplarily set to provide page selection or filling in a data source, so that the problem of automatic new template initialization work is solved.
And S4, when receiving an operation instruction acting on the preset interactive interface, operating target data corresponding to the operation instruction, and displaying an operation effect of generating the target data, wherein the target data is at least part of the second data.
In the process of receiving the operation instruction acting on the preset interactive interface, the operation instruction may include selection and/or new data processing. Meanwhile, more specifically, the corresponding relation script is expanded according to the operation effect and/or is responded to subsequent operation instruction processing. In other words, in this process, it can be understood that, when a result report is generated according to the conversion result, most of the attributes are extracted into the conversion script, and if the attributes are not extracted, the attribute initialization may fail, and if the attributes fail, the attributes are noted in the generated result report. The conversion script can be further expanded to perfect the whole conversion power, and the conversion failure item can be manually processed. The problem of correspondence failure of an automatic template conversion part is solved, and manual quick adjustment can be performed according to a result report.
In the embodiment, the implementation steps are extracted and divided based on the rules of manual replacement, automatic replacement is performed, and programmed batch processing is realized. Further, it realizes: 1. automatically converting the template to generate a lightweight template; 2. automatically generating a template by newly adding functional metadata; 3. if the special attribute conversion fails, a result report is generated and can be manually adjusted.
Example two
As shown in fig. 2, an embodiment of the present invention further provides a data conversion apparatus, configured in a terminal device, and including:
the data extraction module 21 is configured to obtain an attribute identifier of the first data, and obtain a corresponding attribute according to the attribute identifier, where the attribute is an attribute of the second data;
the data conversion module 22 is configured to generate a corresponding relation script according to the attribute identifier of the first data and the attribute of the second data, and perform conversion processing on the second data;
the data output module 23 is configured to respond to a trigger event of the first data action, invoke the corresponding relation script, and display a preset interaction interface for converting data, where the converted data is the converted second data; and
and the data generating module 24 is configured to, when receiving an operation instruction acting on the preset interactive interface, operate target data corresponding to the operation instruction and display an operation effect of generating the target data, where the target data is at least part of the second data.
The data operation device provided by the embodiment of the invention can execute the data conversion method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. It should be noted that, in the embodiment of the data operation device, the included units and modules are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
EXAMPLE III
The embodiment of the present invention further provides a schematic structural diagram of a terminal, as shown in fig. 3, the terminal includes a memory 31, a processor 32, an input device 33, and an output device 34. The number of the processors 32 in the terminal may be one or more, and one processor 32 is taken as an example in fig. 3; the memory 31, processor 32, input device 33 and output device 34 in the terminal may be connected by a bus or other means, as exemplified by bus 35 in fig. 3.
The memory 31 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the data operation method in the embodiment of the present invention (for example, the data extraction module 21, the data conversion module 22, the data output module 23, and the data generation module 24 in the data conversion apparatus). The processor 32 executes various functional applications of the terminal and data processing, i.e., implements a data manipulation method, by executing software programs, instructions, and modules stored in the memory 31.
The memory 31 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 31 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 31 may further include memory located remotely from the processor 32, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 33 may be used to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the device. The output device 34 may include a display device such as a display screen.
Example four
A fourth embodiment of the present invention provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a data conversion method, including:
acquiring an attribute identifier of first data, and acquiring a corresponding attribute according to the attribute identifier, wherein the attribute is an attribute of second data;
generating a corresponding relation script according to the attribute identification of the first data and the attribute of the second data, and performing conversion processing on the second data;
responding to a trigger event of the first data action, calling the corresponding relation script, and displaying a preset interaction interface of conversion data, wherein the conversion data is the converted second data;
and when an operation instruction acting on the preset interactive interface is received, operating target data corresponding to the operation instruction, and displaying an operation effect of generating the target data, wherein the target data is at least part of the second data.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the data operation method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. With this understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A data conversion method is applied to terminal equipment and is characterized by comprising the following steps:
acquiring an attribute identifier of first data, and acquiring a corresponding attribute according to the attribute identifier, wherein the attribute is an attribute of second data;
generating a corresponding relation script according to the attribute identification of the first data and the attribute of the second data, and performing conversion processing on the second data;
responding to a trigger event of the first data action, calling the corresponding relation script, and displaying a preset interaction interface of conversion data, wherein the conversion data is the converted second data;
and when an operation instruction acting on the preset interactive interface is received, operating target data corresponding to the operation instruction, and displaying an operation effect of generating the target data, wherein the target data is at least part of the second data.
2. A data conversion method according to claim 1, characterized in that: and the process of acquiring the attribute identifier of the first data is operated according to a preset format.
3. A data conversion method according to claim 1, characterized in that: and caching the second data after the attribute of the second data is acquired.
4. A data conversion method according to claim 1, characterized in that: the preset interactive interface comprises a selection and/or new data processing process.
5. A data conversion method according to claim 1, characterized in that: and in the process of receiving an operation instruction acting on the preset interactive interface, the operation instruction comprises selection and/or new data processing.
6. A data conversion method according to claim 1, further comprising: and expanding the corresponding relation script according to the operation effect and/or responding to subsequent operation instruction processing.
7. A data conversion apparatus, which is provided in a terminal device, comprising:
the data extraction module is used for acquiring an attribute identifier of the first data and acquiring a corresponding attribute according to the attribute identifier, wherein the attribute is an attribute of the second data;
the data conversion module is used for generating a corresponding relation script according to the attribute identification of the first data and the attribute of the second data and converting the second data;
the data output module is used for responding to a trigger event of the first data action, calling the corresponding relation script and displaying a preset interactive interface for converting data, wherein the converted data is the converted second data; and
and the data generation module is used for operating target data corresponding to the operation instruction and displaying an operation effect of generating the target data when the operation instruction acting on the preset interactive interface is received, wherein the target data is at least part of the second data.
8. A terminal, characterized in that the terminal comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a data conversion method as claimed in any one of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the data conversion method according to any one of claims 1 to 6.
CN202010710786.1A 2020-07-22 2020-07-22 Data conversion method, device, terminal and storage medium Pending CN111985188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010710786.1A CN111985188A (en) 2020-07-22 2020-07-22 Data conversion method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010710786.1A CN111985188A (en) 2020-07-22 2020-07-22 Data conversion method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111985188A true CN111985188A (en) 2020-11-24

Family

ID=73438745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010710786.1A Pending CN111985188A (en) 2020-07-22 2020-07-22 Data conversion method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111985188A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968455A (en) * 2022-04-29 2022-08-30 北京百度网讯科技有限公司 Report generation method and device of application interface and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114968455A (en) * 2022-04-29 2022-08-30 北京百度网讯科技有限公司 Report generation method and device of application interface and electronic equipment
CN114968455B (en) * 2022-04-29 2024-02-27 北京百度网讯科技有限公司 Report generation method and device of application interface and electronic equipment

Similar Documents

Publication Publication Date Title
US8839107B2 (en) Context based script generation
CN110334021B (en) Interface test case generation method, device, equipment and storage medium
CN111488394A (en) Data import method and device, computer equipment and storage medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN110502558B (en) Data export method, device, computer equipment and storage medium
CN111985188A (en) Data conversion method, device, terminal and storage medium
CN111047434A (en) Operation record generation method and device, computer equipment and storage medium
CN112269588B (en) Algorithm upgrading method, device, terminal and computer readable storage medium
CN112416936B (en) DCS background multi-node cooperative configuration mark name verification method
CN113535262A (en) Method, device, equipment and storage medium for controlling starting of proxy node
CN113157904A (en) Sensitive word filtering method and system based on DFA algorithm
JP2019101889A (en) Test execution device and program
TWI756867B (en) Method and system for labeling object and generating security policy in operating system
CN115113870A (en) Webpage form generation method and device, electronic equipment and readable storage medium
CN114116712A (en) Extended field processing method and device, electronic equipment and storage medium
CN110928672B (en) Task arranging method, device and equipment and storage medium
CN109871214B (en) Program code generation method, program code generation device, computer device, and storage medium
CN111078671A (en) Method, device, equipment and medium for modifying data table field
CN113157672B (en) Batch modification method and device for SQLServer database fields
CN104808985B (en) The management method and device of object in application program
CN116304399B (en) Visual processing method, device and system for test cases
CN111124923B (en) Running state query method and device, server equipment and storage medium
CN115587021A (en) Simulation test message generation method and device
CN116737582A (en) Test data determining method and device, computer equipment and storage medium
CN116450400A (en) Application program abnormality analysis method and device, electronic 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