CN111949746A - Data processing method and device, electronic equipment and computer readable medium - Google Patents

Data processing method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN111949746A
CN111949746A CN202010833964.XA CN202010833964A CN111949746A CN 111949746 A CN111949746 A CN 111949746A CN 202010833964 A CN202010833964 A CN 202010833964A CN 111949746 A CN111949746 A CN 111949746A
Authority
CN
China
Prior art keywords
data
target
template
import
user
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
CN202010833964.XA
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010833964.XA priority Critical patent/CN111949746A/en
Publication of CN111949746A publication Critical patent/CN111949746A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The disclosure provides a data processing method, a data processing device, electronic equipment and a computer readable medium, and relates to the technical field of computers. The method comprises the following steps: receiving a data import request sent by a user side; acquiring user setting data set by the user side based on target data according to the data import request; generating a target import template according to the user setting data, and issuing the target import template to the user side; and receiving the target data imported by the user side based on the target import template. According to the target importing method and device, the target importing template used for writing the target data is generated based on the user setting data set by the user based on the target data, the complexity of inputting different types of data is reduced, and the convenience of writing the target data by the user is improved.

Description

Data processing method and device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a computer-readable medium.
Background
In software services, a database is often used to store information of an entity, and relationships between entities are constructed through the database, which generally requires adding some table structures and other auxiliary table structures when adding an entity. And the metadata stores the definition description information of the entity type by using a small amount of structures through generalization, and the definition and the storage are realized by adopting the same logic for different entities, so that the table structure is not required to be correspondingly added every time an entity is added. When defining different entities with metadata, some basic attributes and attribute types need to be defined for the entities. In the prior art, a service based on metadata defines some basic types, but description information required by different types is different, and when data is imported, the problems of higher input complexity and lower convenience of different users of the types exist.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In a first aspect of the present disclosure, a data processing method is provided, including: receiving a data import request sent by a user side; acquiring user setting data set based on target data according to the data import request; generating a target import template according to the user setting data, and issuing the target import template to the user side; and receiving the target data imported by the user side based on the target import template.
In a second aspect of the present disclosure, there is provided a data processing apparatus comprising: the receiving module is used for receiving a data import request sent by a user side; the acquisition module is used for acquiring user setting data set based on target data according to the data import request; the generating module is used for generating a target import template according to the user setting data and sending the target import template to the user side; and the import module is used for receiving the target data imported by the user side based on the target import template.
In a third aspect of the present disclosure, an electronic device is provided, which includes: a memory and a processor; the memory has a computer program stored therein; a processor for performing the method of the first aspect when executing the computer program.
In a fourth aspect of the disclosure, a computer-readable medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, is adapted to carry out the method of the first aspect.
The technical scheme provided by the disclosure has the following beneficial effects:
in the present disclosure, when a user sends a data import request to request data import, user setting data set by the user based on target data is obtained according to the data import request, a target import template is generated according to the user setting data, and after the target import template is issued to the user, the user imports the target data according to the target import template. The target import template used for writing in the target data is generated based on the user setting data set by the user according to the target data, namely, a mode is provided for the user to set and generate the user setting data required by the target import template according to the data which needs to be imported currently, the complexity of inputting different types of data is reduced, and the convenience of writing in the target data by the user is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a flowchart of a first data processing method provided by an embodiment of the present disclosure;
fig. 2 is a flowchart of a second data processing method provided by the embodiment of the present disclosure;
FIG. 3 is a flow chart of a third data processing method provided by the embodiments of the present disclosure;
fig. 4 is a schematic diagram illustrating an effect of setting a template by a user in a data processing method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing the devices, modules or units, and are not used for limiting the devices, modules or units to be different devices, modules or units, and also for limiting the sequence or interdependence relationship of the functions executed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The following describes the technical solutions of the present disclosure and how to solve the above technical problems in specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
Referring to fig. 1, the present disclosure provides a data processing method, including:
s101, receiving a data import request sent by a user side;
s102, acquiring user setting data set by the user side based on target data according to the data import request;
s103, generating a target import template according to the user setting data, and issuing the target import template to the user side;
s104, receiving the target data imported by the user side based on the target import template.
In the embodiments of the present disclosure, the description is given taking the execution subject as an example, but the execution subject is not limited thereto.
In step S101, the server receives a data import request sent by the user side, in an embodiment, the data processing method is applied in a system including the user side and the server, and after receiving the data import request sent by the user side, the server establishes a channel for data import with the user side.
In step S102, obtaining user setting data set by the user terminal based on target data according to the data import request, specifically, the target data is data currently requested to be imported by the user terminal; the user setting data is data set by the user side based on the target data, and if the target data comprises a field representing a name, the user setting data comprises a field with the type of the name. The user setting data is set by the user side, and the server acquires the user setting data through the data import request.
In step S103, a target import template is generated according to the user setting data, and the target import template is issued to the user side, specifically, the target import template is a template currently used for importing target data, and is generated according to the user setting data by the server, that is, generated according to a specific situation of target data to be imported currently. And after the server generates the target import template, the target import template is sent to the user side.
In step S104, the target data imported by the user based on the target import template is received, specifically, the user writes the target data in the target import template to complete the behavior of importing the target data by the user, and the server receives the target data imported by the user.
In the present disclosure, when a user sends a data import request to request data import, user setting data set by the user based on target data is obtained according to the data import request, a target import template is generated according to the user setting data, and after the target import template is issued to the user, the user imports the target data according to the target import template. The target import template used for writing in the target data is generated based on the user setting data set by the user according to the target data, namely, a mode is provided for the user to set and generate the user setting data required by the target import template according to the data which needs to be imported currently, the complexity of inputting different types of data is reduced, and the convenience of writing in the target data by the user is improved.
In an embodiment of the present disclosure, optionally, referring to fig. 2, the step S102, according to the data import request, acquiring user setting data set based on target data, including:
s201, issuing an original import template to the user side according to the data import request;
s202, receiving a user setting template fed back by the user side; the user setting template is formed by target fields and field sequences selected by a user in the original import template based on the target data;
s203 obtains the user setting data composed of the field sequence and the field type included in the target field in the user setting template.
In step S201, an original import template is issued to the user end according to the data import request, specifically, the original import template may be various templates pre-stored in the server, and the server may be adapted to issue a corresponding original import template to the user end according to the data import request, such as: and if the current data import request is a data request based on a specific research service scene, the server matches a corresponding original import template for the research service and issues the template to the user side.
In step S202, a user setting template fed back by the user side is received; specifically, the step defines a template for a user, that is, after the user receives the original import template, the template is displayed on a terminal interface, the user selects some fields to be imported and some data related to the selected fields based on the content displayed on the interface, and modifies the column sequence of different fields in the template by dragging the field sequence, and at this time, the target fields and the field sequence selected in the original import template are formed.
In step S203, the user setting data composed of the field sequence and the field type included in the target field is obtained in the user setting template, specifically, the user setting data is the field data and the self-defined field sequence selected by the user in the original import template according to the target data, and each field in the user setting data occupies a fixed column according to the type, please refer to fig. 4. In one embodiment, the number of cells corresponding to each field is variable, and a user can define the cells when defining the template; that is, one field may occupy multiple columns, the number of occupied columns is uncertain, and a user may configure the number of occupied columns of the field, that is, the user setting data may include the number of occupied columns of each field.
In an embodiment, the user sets the template to be stored in a storage medium of the system, and the stored content is not limited in form, for example, a plurality of fields form a field list field, a field section identifies a uniform id, and the description information of the field can be found in the system through the identifier, and the format of the column of the field, i.e. the number of columns occupied by the field, can be obtained through the description information and the attributes in the template.
In an embodiment of the present disclosure, optionally, referring to fig. 3, the step S103 of generating a target import template according to the user setting data includes:
s301, adjusting the original import template according to the user setting data and the field setting rule of the original import template;
s302, generating the target import template according to the adjusted original import template.
In step S301, adjusting the original import template according to the user setting data and the field setting rule of the original import template, specifically, the field setting rule of the original import template is a field setting rule of a system; in the embodiment of the present disclosure, optionally, the field setting rule includes a setting rule that the same field type corresponds to the same interface, that is, the fields of the same type will import data with the same interface. If each field type defines a type field dtype with the same interface, when three types of ABC are provided, the program has three types of field dtype-a, field dtype-B and field dtype-C, and for this, the template can be defined as a list of types, template is [ field dtype-a, field dtype-B, field dtype-C ]; by which rules are set that better correspond to the structure of the user-defined template.
In step S302, generating the target import template according to the adjusted original import template, specifically, in step S301, after adjusting the original import template according to the user setting data and the field setting rule, the server generates a new target import template; in one embodiment, the template can be imported for the target after the format is adjusted based on the original imported template without regeneration.
In this embodiment of the present disclosure, optionally, the step S301 adjusting the original import template according to the user setting data and the field setting rule of the original import template includes:
based on the field setting rule, adjusting the original import template according to the field type and the corresponding field sequence;
specifically, rules are set for dynamically combining user-set data with the fields of the original import template.
Step S302 is to generate the target import template according to the adjusted original import template, and includes:
traversing the adjusted original import template to determine a field header corresponding to each field type; specifically, traversing the adjusted original import template or the original import template before adjustment can determine the field header corresponding to each field type. Preferably, traversing the adjusted original import template can reduce the operation process of traversing the field types which do not need to be input currently.
And generating the target import template according to the field header and the field sequence.
In an embodiment, in the process of exporting the target import template, the server traverses the original import template to obtain header data of each field type, the number of columns occupied by the header is uncertain, and the generation process of the target import template can be completed only by splicing the headers by setting the field sequence in the data by a user and writing the spliced headers into an excel generation file.
In the embodiment of the present disclosure, the number of cells occupied by the field type of the template may be calculated according to the user setting data and the field setting rule, and specifically, the program is described as follows:
{
type, multilanguage "
"columns":3
}
In the embodiment of the disclosure, a data processing method based on a user-defined template is provided, a user can import target data according to needs, a target field is defined, the type of the imported data is not limited, and the flexible extensible data import based on a data table can be realized.
In an embodiment, after the data importing process is completed, the parsing of the data may be implemented, and optionally, after the step S104 receives the target data imported by the user side based on the target import template, the method includes:
receiving a data query request sent by the user side;
generating a target analysis template according to the data query request and the user setting data;
assembling the target data in the target analysis template based on the field type of the target analysis template to form target analysis data;
and sending the target analysis data to the user side.
Specifically, the data query request is data in a database queried through excel, and specifically is data imported by a user side. When the server finishes importing the target data, the user setting data are stored in the server, and when data analysis is realized, the server acquires the user setting data corresponding to the target data and combines the field setting rules of the system to generate a target analysis template, wherein the target analysis template corresponds to the target importing template and has the same field type and field sequence. In the analysis process of the target data, specifically, traversing a target analysis template, and removing a currently traversed field type such as FieldType-A from a first field type; and (d, e, f) is used as a new row data, and the data is repeatedly intercepted from the first field type (at the moment, the first field type is the next one of the FieldType-A) until the row data is intercepted and assembled. And taking the data analyzed in the target analysis template as target analysis data, and sending the target analysis data to the user side so as to reproduce the target data at the user side.
In an embodiment of the present disclosure, optionally, the step S104 of receiving the target data imported by the user based on the target import template includes:
receiving data to be verified imported by the user side based on the target import template;
and matching the field type and the field length of the data to be verified and the target import template, and taking the data matched with the field type and the field length of the target import template in the data to be verified as target data.
And matching the field type of the data to be verified and the field length of the target import template, wherein if the number of a field in the name of the name filled in Chinese is present, the field types do not accord, the verification result is unmatched, and the data is cleared and the data error is prompted.
The check object specifically includes a field type and a field length of the data to be checked, and further may include a data format, such as checking whether the format of the imported data meets the requirements. Data errors in the final import database in the data import process can be prevented through data verification, and the correctness of the corresponding import result in the data import process is improved.
Referring to fig. 5, a data processing apparatus 500 according to another embodiment of the present disclosure includes:
a receiving module 501, configured to receive a data import request sent by a user end;
an obtaining module 502, configured to obtain user setting data set based on target data according to the data import request;
a generating module 503, configured to generate a target import template according to the user setting data, and send the target import template to the user side;
an import module 504, configured to receive the target data imported by the user side based on the target import template.
Optionally, the obtaining module 502 includes:
the issuing unit is used for issuing the original import template to the user side according to the data import request;
the receiving unit is used for receiving the user setting template fed back by the user side; the user setting template is formed by target fields and field sequences selected by a user in the original import template based on the target data;
and the acquisition unit is used for acquiring the user setting data consisting of the field sequence and the field type included by the target field in the user setting template.
Optionally, the generating module 503 includes:
the adjusting unit is used for adjusting the original import template according to the user setting data and the field setting rule of the original import template;
and the generating unit is used for generating the target import template according to the adjusted original import template.
Optionally, the field setting rule includes setting rules that the same field type corresponds to the same interface.
Optionally, the adjusting unit includes:
an adjusting subunit, configured to adjust the original import template according to the field type and the corresponding field sequence based on the field setting rule;
the generation unit includes:
the traversal subunit is configured to traverse the adjusted original import template to determine a field header corresponding to each field type;
and the generating subunit is used for generating the target import template according to the field header and the field sequence.
Optionally, the data processing apparatus 500 further includes:
the analysis receiving module is used for receiving a data query request sent by the user side;
the analysis generation module is used for generating a target analysis template according to the data query request and the user setting data;
the assembling module is used for assembling the target data in the target analysis template based on the field type of the target analysis template to form target analysis data;
and the issuing module is used for issuing the target analysis data to the user side.
Optionally, the importing module 504 includes:
the import receiving unit is used for receiving the data to be verified imported by the user side based on the target import template;
and the matching unit is used for matching the data to be verified with the field type and the field length of the target import template, and taking the data matched with the field type and the field length of the target import template in the data to be verified as target data.
The data processing apparatus 500 is a modular description of the data processing apparatus method according to the embodiment of the present disclosure, and the specific content thereof is not described in detail in the apparatus.
Referring now to FIG. 6, a block diagram of an electronic device (e.g., server) 600 suitable for use in implementing embodiments of the present disclosure is shown. The devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
The electronic device includes: a memory and a processor, wherein the processor may be referred to as the processing device 601 hereinafter, and the memory may include at least one of a Read Only Memory (ROM)602, a Random Access Memory (RAM)603 and a storage device 608 hereinafter, which are specifically shown as follows:
as shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable medium or any combination of the two. A computer readable medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the steps of: receiving a data import request sent by a user side; acquiring user setting data set by the user side based on target data according to the data import request; generating a target import template according to the user setting data, and issuing the target import template to the user side; and receiving the target data imported by the user side based on the target import template.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units described in the embodiments of the present disclosure may be implemented by software or hardware. The name of a module or a unit does not in some cases form a limitation on the unit itself, and for example, a receiving module may also be described as a "module that receives a data import request sent by a user side".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a data processing method including:
receiving a data import request sent by a user side;
acquiring user setting data set by the user side based on target data according to the data import request;
generating a target import template according to the user setting data, and issuing the target import template to the user side;
and receiving the target data imported by the user side based on the target import template.
Optionally, the obtaining, according to the data import request, user setting data set based on target data includes:
issuing an original import template to the user side according to the data import request;
receiving a user setting template fed back by the user side; the user setting template is formed by target fields and field sequences selected by a user in the original import template based on the target data;
and acquiring the user setting data consisting of the field sequence and the field type included by the target field in the user setting template.
Optionally, the generating a target import template according to the user setting data includes:
adjusting the original import template according to the user setting data and the field setting rule of the original import template;
and generating the target import template according to the adjusted original import template.
Optionally, the field setting rule includes setting rules that the same field type corresponds to the same interface.
Optionally, the adjusting the original import template according to the user setting data and the field setting rule of the original import template includes:
based on the field setting rule, adjusting the original import template according to the field type and the corresponding field sequence;
the generating the target import template according to the adjusted original import template includes:
traversing the adjusted original import template to determine a field header corresponding to each field type;
and generating the target import template according to the field header and the field sequence.
Optionally, after receiving the target data imported by the user side based on the target import template, the method includes:
receiving a data query request sent by the user side;
generating a target analysis template according to the data query request and the user setting data;
assembling the target data in the target analysis template based on the field type of the target analysis template to form target analysis data;
and sending the target analysis data to the user side.
Optionally, the receiving the target data imported by the user side based on the target import template includes:
receiving data to be verified imported by the user side based on the target import template;
and matching the field type and the field length of the data to be verified and the target import template, and taking the data matched with the field type and the field length of the target import template in the data to be verified as target data.
According to one or more embodiments of the present disclosure, there is provided a data processing apparatus including:
the receiving module is used for receiving a data import request sent by a user side;
the acquisition module is used for acquiring user setting data set based on target data according to the data import request;
the generating module is used for generating a target import template according to the user setting data and sending the target import template to the user side;
and the import module is used for receiving the target data imported by the user side based on the target import template.
Optionally, the obtaining module includes:
the issuing unit is used for issuing the original import template to the user side according to the data import request;
the receiving unit is used for receiving the user setting template fed back by the user side; the user setting template is formed by target fields and field sequences selected by a user in the original import template based on the target data;
and the acquisition unit is used for acquiring the user setting data consisting of the field sequence and the field type included by the target field in the user setting template.
Optionally, the generating module includes:
the adjusting unit is used for adjusting the original import template according to the user setting data and the field setting rule of the original import template;
and the generating unit is used for generating the target import template according to the adjusted original import template.
Optionally, the field setting rule includes setting rules that the same field type corresponds to the same interface.
Optionally, the adjusting unit includes:
an adjusting subunit, configured to adjust the original import template according to the field type and the corresponding field sequence based on the field setting rule;
the generation unit includes:
the traversal subunit is configured to traverse the adjusted original import template to determine a field header corresponding to each field type;
and the generating subunit is used for generating the target import template according to the field header and the field sequence.
Optionally, the data processing apparatus further includes:
the analysis receiving module is used for receiving a data query request sent by the user side;
the analysis generation module is used for generating a target analysis template according to the data query request and the user setting data;
the assembling module is used for assembling the target data in the target analysis template based on the field type of the target analysis template to form target analysis data;
and the issuing module is used for issuing the target analysis data to the user side.
Optionally, the importing module includes:
the import receiving unit is used for receiving the data to be verified imported by the user side based on the target import template;
and the matching unit is used for matching the data to be verified with the field type and the field length of the target import template, and taking the data matched with the field type and the field length of the target import template in the data to be verified as target data.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A data processing method, comprising:
receiving a data import request sent by a user side;
acquiring user setting data set by the user side based on target data according to the data import request;
generating a target import template according to the user setting data, and issuing the target import template to the user side;
and receiving the target data imported by the user side based on the target import template.
2. The data processing method according to claim 1, wherein the obtaining user setting data set based on target data according to the data import request comprises:
issuing an original import template to the user side according to the data import request;
receiving a user setting template fed back by the user side; the user setting template is formed by target fields and field sequences selected by a user in the original import template based on the target data;
and acquiring the user setting data consisting of the field sequence and the field type included by the target field in the user setting template.
3. The data processing method of claim 2, wherein the generating a target import template from the user setting data comprises:
adjusting the original import template according to the user setting data and the field setting rule of the original import template;
and generating the target import template according to the adjusted original import template.
4. The data processing method of claim 3, wherein the field setting rule comprises setting rules for the same field type for the same interface.
5. The data processing method of claim 3, wherein the adjusting the original import template according to the user setting data and the field setting rule of the original import template comprises:
based on the field setting rule, adjusting the original import template according to the field type and the corresponding field sequence;
the generating the target import template according to the adjusted original import template includes:
traversing the adjusted original import template to determine a field header corresponding to each field type;
and generating the target import template according to the field header and the field sequence.
6. The data processing method according to claim 1, wherein after receiving the target data imported by the user side based on the target import template, the method comprises:
receiving a data query request sent by the user side;
generating a target analysis template according to the data query request and the user setting data;
assembling the target data in the target analysis template based on the field type of the target analysis template to form target analysis data;
and sending the target analysis data to the user side.
7. The data processing method according to claim 1, wherein the receiving the target data imported by the user side based on the target import template comprises:
receiving data to be verified imported by the user side based on the target import template;
and matching the field type and the field length of the data to be verified and the target import template, and taking the data matched with the field type and the field length of the target import template in the data to be verified as target data.
8. A data processing apparatus, comprising:
the receiving module is used for receiving a data import request sent by a user side;
the acquisition module is used for acquiring user setting data set based on target data according to the data import request;
the generating module is used for generating a target import template according to the user setting data and sending the target import template to the user side;
and the import module is used for receiving the target data imported by the user side based on the target import template.
9. An electronic device, comprising:
the electronic device comprises a memory and a processor;
the memory has stored therein a computer program;
the processor, when executing the computer program, is configured to perform the method of any of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN202010833964.XA 2020-08-18 2020-08-18 Data processing method and device, electronic equipment and computer readable medium Pending CN111949746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010833964.XA CN111949746A (en) 2020-08-18 2020-08-18 Data processing method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010833964.XA CN111949746A (en) 2020-08-18 2020-08-18 Data processing method and device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN111949746A true CN111949746A (en) 2020-11-17

Family

ID=73343597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010833964.XA Pending CN111949746A (en) 2020-08-18 2020-08-18 Data processing method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN111949746A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742774A (en) * 2021-09-03 2021-12-03 北京字跳网络技术有限公司 Data processing method and device, readable medium and electronic equipment
CN115905269A (en) * 2023-01-06 2023-04-04 深圳市明源云科技有限公司 Data import method, system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046334A (en) * 2019-03-21 2019-07-23 平安国际智慧城市科技股份有限公司 Data lead-in method, device, computer equipment and storage medium
CN110502482A (en) * 2019-07-05 2019-11-26 中国平安财产保险股份有限公司 User interface configuration method, system and data manipulation method
CN111222070A (en) * 2019-12-30 2020-06-02 深圳市五谷网络科技有限公司 Data processing method, device, equipment and storage medium
CN111460773A (en) * 2020-03-30 2020-07-28 京东数字科技控股有限公司 Data processing method, device and system, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110046334A (en) * 2019-03-21 2019-07-23 平安国际智慧城市科技股份有限公司 Data lead-in method, device, computer equipment and storage medium
CN110502482A (en) * 2019-07-05 2019-11-26 中国平安财产保险股份有限公司 User interface configuration method, system and data manipulation method
CN111222070A (en) * 2019-12-30 2020-06-02 深圳市五谷网络科技有限公司 Data processing method, device, equipment and storage medium
CN111460773A (en) * 2020-03-30 2020-07-28 京东数字科技控股有限公司 Data processing method, device and system, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113742774A (en) * 2021-09-03 2021-12-03 北京字跳网络技术有限公司 Data processing method and device, readable medium and electronic equipment
CN113742774B (en) * 2021-09-03 2024-02-09 北京字跳网络技术有限公司 Data processing method and device, readable medium and electronic equipment
CN115905269A (en) * 2023-01-06 2023-04-04 深圳市明源云科技有限公司 Data import method, system, device and storage medium

Similar Documents

Publication Publication Date Title
CN111368519B (en) Method, device, equipment and storage medium for editing online form
CN110909521B (en) Online document information synchronous processing method and device and electronic equipment
CN111930534A (en) Data calling method and device and electronic equipment
CN111459364B (en) Icon updating method and device and electronic equipment
CN112684968A (en) Page display method and device, electronic equipment and computer readable medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN111949746A (en) Data processing method and device, electronic equipment and computer readable medium
CN111597107A (en) Information output method and device and electronic equipment
CN110852720A (en) Document processing method, device, equipment and storage medium
CN111756953A (en) Video processing method, device, equipment and computer readable medium
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN111262907A (en) Service instance access method and device and electronic equipment
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN111414161B (en) Method, device, medium and electronic equipment for generating IDL file
CN112688793B (en) Data packet obtaining method and device and electronic equipment
CN113204557A (en) Electronic form importing method, device, equipment and medium
CN111753238A (en) Data mapping method and device and electronic equipment
CN112417276A (en) Paging data acquisition method and device, electronic equipment and computer readable storage medium
CN111338827A (en) Method and device for pasting table data and electronic equipment
CN111240657A (en) Method and device for generating SDK and electronic equipment
CN111399730A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN110780898A (en) Page data upgrading method and device and electronic equipment
CN115374320B (en) Text matching method and device, electronic equipment and computer medium
CN112688863B (en) Gateway data processing method and device and electronic equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.