CN112579228B - Data transfer method and device, storage medium and electronic device - Google Patents

Data transfer method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112579228B
CN112579228B CN202011300273.XA CN202011300273A CN112579228B CN 112579228 B CN112579228 B CN 112579228B CN 202011300273 A CN202011300273 A CN 202011300273A CN 112579228 B CN112579228 B CN 112579228B
Authority
CN
China
Prior art keywords
data
target
version
version number
target version
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.)
Active
Application number
CN202011300273.XA
Other languages
Chinese (zh)
Other versions
CN112579228A (en
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011300273.XA priority Critical patent/CN112579228B/en
Publication of CN112579228A publication Critical patent/CN112579228A/en
Application granted granted Critical
Publication of CN112579228B publication Critical patent/CN112579228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/21Design, administration or maintenance of databases
    • G06F16/214Database migration support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data transfer method and device, a storage medium and an electronic device, wherein the method comprises the following steps: receiving a first operation of a target object through a target display interface, wherein one or more version numbers of a client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and a target version number is displayed in a third area of the target display interface, wherein the target version number is greater than the one or more version numbers; responding to a first operation, selecting part or all of version numbers in one or more version numbers, and selecting part or all of data corresponding to part or all of version numbers in the selected part or all of version numbers; and transferring part or all of the data to a target version corresponding to the target version number.

Description

Data transfer method and device, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a data transfer method and apparatus, a storage medium, and an electronic apparatus.
Background
Version iteration is indispensable to the mobile internet product APP perfecting process, and as a background system supporting APP operation maintenance, operators need to timely input information of each module in the new version along with the iteration of the APP version, and batch processing, such as batch import, batch deletion and the like, is performed on data.
In the related art, aiming at the problem of multi-data import, data is generally written into excel, and then the excel is uploaded to realize a batch import function; for the problem of the batch deletion of useless data, the method of repeated choosing and deleting is usually adopted, but aiming at huge and hierarchically nested data, the hierarchical relationship cannot be intuitively seen, and the data screening is difficult. Taking data import as an example, data is required to be exported to excel, manually edited one by one and then conducted in, and repeated data is difficult to be completely examined.
Aiming at the problems that in the related technology, batch input is needed for data of a new version manually, so that the data importing process is complex, the labor cost is increased and the like, no effective solution is proposed yet.
Disclosure of Invention
The embodiment of the invention provides a data transfer method and device, a storage medium and an electronic device, which at least solve the problems that in the related technology, batch input is needed for data of a new version manually, the data importing process is complex, the labor cost is increased and the like.
According to an embodiment of the present invention, there is provided a data transfer method including: receiving a first operation of a target object through a target display interface, wherein one or more version numbers of a client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and a target version number is displayed in a third area of the target display interface, wherein the target version number is larger than the one or more version numbers; selecting a part or all of version numbers in the one or more version numbers in response to the first operation, and selecting part or all of data corresponding to the part or all of version numbers in the selected part or all of version numbers; and transferring the part or all of the data to a target version corresponding to the target version number.
In an exemplary embodiment, transferring part or all of the data corresponding to the part version number or part of the data corresponding to the whole version number to the target version corresponding to the target version number includes: recombining partial or all data corresponding to the partial version numbers or partial data corresponding to the all version numbers to obtain recombined data; determining whether data exists in the third area corresponding to the target version number; and if not, transferring the recombined data to a target version corresponding to the target version number.
In an exemplary embodiment, after determining whether the third area corresponding to the target version number has data, the method further includes: determining if, if any, duplicate items exist between the reorganized data and the data present in the third region; if the target version number exists, the recombined data is forbidden to be transferred to the target version corresponding to the target version number; and if the data does not exist, transferring the recombined data to a target version corresponding to the target version number.
In an exemplary embodiment, transferring all data corresponding to the all version numbers to the target version corresponding to the target version number includes: determining whether data exists in the third area corresponding to the target version number; and if not, transferring all the data corresponding to all the version numbers to the target version corresponding to the target version number.
In an exemplary embodiment, after determining whether the third area corresponding to the target version number has data, the method further includes: if so, determining whether repeated items exist between all data corresponding to all version numbers and the data existing in the third area; if so, all data corresponding to all version numbers are forbidden to be transferred to the target version corresponding to the target version number; and if not, transferring all the data corresponding to all the version numbers to the target version corresponding to the target version number.
In an exemplary embodiment, in a case where the third area is further used to display data of the target version number, after transferring some or all of the data corresponding to the some or all of the versions into the target version corresponding to the target version number, the method further includes: receiving a second operation of a target object, wherein the second operation is used for selecting partial data from the data of the target version number; and in response to the second operation, removing the partial data from the third area, and re-rendering and displaying unselected data in the data of the target version number in the third area.
In an exemplary embodiment, after transferring part or all of the data corresponding to the part or all of the versions to the target version corresponding to the target version number, the method further includes: receiving a third operation of a target object, wherein the third operation is used for selecting all data in the data of the target version number; and in response to the third operation, removing the entire data from the third region.
According to another embodiment of the present invention, there is also provided a data transfer apparatus including: the receiving module is used for receiving a first operation of a target object through a target display interface, wherein one or more version numbers of a client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and a target version number is displayed in a third area of the target display interface, wherein the target version number is larger than the one or more version numbers; a selecting module, configured to select a part or all of version numbers in the one or more version numbers in response to the first operation, and select part or all of data corresponding to the part or all of version numbers in the selected part or all of version numbers; and the transfer module is used for transferring the part or all of the data to a target version corresponding to the target version number.
According to a further embodiment of the invention, there is also provided a computer-readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device, a first operation of a target object is received through a target display interface, wherein one or more version numbers of a client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and the target version number is displayed in a third area of the target display interface, wherein the target version number is larger than the one or more version numbers; responding to a first operation, selecting part or all of version numbers in one or more version numbers, and selecting part or all of data corresponding to part or all of version numbers in the selected part or all of version numbers; and transferring part or all of the data to the target version corresponding to the target version number, namely selecting part or all of the data corresponding to the target version number and then transferring to the target version corresponding to the target version number, so that the problems that in the related art, the process of importing the data is complex, the labor cost is increased and the like are solved, the working efficiency is improved, and the data loss caused by manual operation is reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a block diagram of a hardware structure of a computer terminal of a data transfer method according to an embodiment of the present application;
FIG. 2 is a flow chart of a data transfer method according to an embodiment of the application;
FIG. 3 is a user interface diagram of a data transfer method according to an alternative embodiment of the application;
FIG. 4 is a timing diagram of a data transfer method according to an alternative embodiment of the present application;
FIG. 5 is a flow chart of a data transfer method according to an alternative embodiment of the application;
FIG. 6 is a flow chart (II) of a data transfer method according to an alternative embodiment of the application;
fig. 7 is a block diagram illustrating a data transfer apparatus according to an embodiment of the present application.
Detailed Description
The application will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided by the embodiments of the present application may be executed in a computer terminal, or similar computing device. Taking a computer terminal as an example, fig. 1 is a block diagram of a hardware structure of a computer terminal of a data transfer method according to an embodiment of the present application. As shown in fig. 1, the computer terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and in one exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the computer terminal described above. For example, a computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than the equivalent functions shown in FIG. 1 or more than the functions shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a data transfer method of a computer terminal in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, to implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the computer terminal via 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 transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a data transfer method is provided and applied to the computer terminal, and fig. 2 is a flowchart of the data transfer method according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, receiving a first operation of a target object through a target display interface, wherein one or more version numbers of a client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and a target version number is displayed in a third area of the target display interface, wherein the target version number is larger than the one or more version numbers;
Step S204, in response to the first operation, selecting a part or all of the version numbers from the one or more version numbers, and selecting a part or all of the data corresponding to the part or all of the version numbers from the selected part or all of the version numbers;
step S206, transferring the part or all of the data to the target version corresponding to the target version number.
According to the technical scheme, the first operation of the target object is received through the target display interface, wherein one or more version numbers of the client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and the target version number is displayed in a third area of the target display interface, wherein the target version number is larger than the one or more version numbers; responding to a first operation, selecting part or all of version numbers in one or more version numbers, and selecting part or all of data corresponding to part or all of version numbers in the selected part or all of version numbers; and transferring part or all of the data to the target version corresponding to the target version number, namely selecting part or all of the data corresponding to the target version number and then transferring to the target version corresponding to the target version number, so that the problems that in the related art, the process of importing the data is complex, the labor cost is increased and the like are solved, the working efficiency is improved, and the data loss caused by manual operation is reduced.
In step S202, it may be also understood that one or more version numbers of the client are displayed in the first area, data corresponding to the version numbers are displayed in the second area, data corresponding to the target version number and the target version number are displayed in the third area, and different version numbers of the client can be selected through the first area, so as to select different data corresponding to different version numbers. It should be noted that, the data corresponding to the version number has a hierarchical relationship.
The data transfer method provided by the embodiment of the invention can realize the following functions:
1) Transferring partial or all data corresponding to the partial version number or partial data corresponding to all the version number to a target version corresponding to the target version number;
in the embodiment of the invention, partial or all data corresponding to the partial version number or partial data corresponding to the all version number are recombined to obtain recombined data; determining whether data exists in the third area corresponding to the target version number; and if not, transferring the recombined data to a target version corresponding to the target version number.
That is, after selecting part or all of the data corresponding to the part version number or part of the data corresponding to the whole version number, the part or all of the data corresponding to the part version number or part of the data corresponding to the whole version number is required to be recombined, the unselected data is filtered to obtain the recombined data, that is, the data required to be transferred, and then whether the data exists in the third area is required to be judged, if not, the data can be directly transferred. It should be noted that the transferred data still maintains the original hierarchical relationship.
After determining that the third area corresponding to the target version number has data, specifically, whether a repeated item exists between the reorganized data and the data existing in the third area is also required to be determined; if the target version number exists, the recombined data is forbidden to be transferred to the target version corresponding to the target version number; and if the data does not exist, transferring the recombined data to a target version corresponding to the target version number.
That is, if there is data in the third area corresponding to the target version number, it is necessary to determine whether there is duplication between the reorganized data and the data in the third area, if there is duplication, the data is not transferred in, and if there is no duplication, the data is transferred. When it is determined that the reorganized data and the data existing in the third area are duplicated, the target object may be prompted to have duplicated data, for example, a prompt box may be displayed on a display screen or a prompt sound may be sent out, which is not limited in the embodiment of the present invention.
2) Transferring all data corresponding to all version numbers to a target version corresponding to the target version number;
in the embodiment of the invention, whether the data exists in the third area corresponding to the target version number is determined; and if not, transferring all the data corresponding to all the version numbers to the target version corresponding to the target version number.
It will be appreciated that in the case where no data exists in the third area corresponding to the target version number, all data may be transferred.
Specifically, in the case that the third area corresponding to the target version number has data, determining whether all data corresponding to all version numbers and the data existing in the third area have duplicate entries; if so, all data corresponding to all version numbers are forbidden to be transferred to the target version corresponding to the target version number; and if not, transferring all the data corresponding to all the version numbers to the target version corresponding to the target version number.
That is, if there is data in the third area corresponding to the target version number, it is necessary to determine whether all selected data and the data in the third area are duplicated, if there is duplication, the data is not transferred in, and if there is no duplication, the data is transferred. When it is determined that all the selected data and the data existing in the third area overlap, the target object may be prompted to have the repeated data, for example, a prompt box may be displayed on a display screen or a prompt sound may be sent.
3) Removing selected portions of the data of the target version number from the third region;
in the embodiment of the present invention, when the third area is further used for displaying the data of the target version number, after transferring part or all of the data corresponding to the part or all of the versions to the target version corresponding to the target version number, a second operation of the target object is received, where the second operation is used for selecting part of the data in the data of the target version number; and in response to the second operation, removing the partial data from the third area, and re-rendering and displaying unselected data in the data of the target version number in the third area.
And after removing selected partial data in the data of the target version number from the third area, reorganizing unselected data, and displaying the reorganized data in the third area. Before removing the selected part of the data of the target version number from the third area, a confirmation message is sent to the target object, and after the target object confirms, the selected part of the data of the target version number is removed from the third area.
4) All data selected from the data of the target version number is removed from the third area.
In the embodiment of the invention, after transferring part or all of the data corresponding to the part or all of the versions to the target version corresponding to the target version number, a third operation of the target object is received, wherein the third operation is used for selecting all of the data in the data of the target version number; and in response to the third operation, removing the entire data from the third region.
Namely, the third target area is emptied, specifically, the whole data is removed from the third area, before the target object is required to confirm whether the whole data is removed, after the target object is confirmed, the data of the third target area is emptied, and if the target object denies the whole data to be removed, the data of the third target area is not modified.
In order to better understand the process of the data transfer method, the following description is provided with reference to an optional embodiment, but is not limited to the technical solution of the embodiment of the present invention.
FIG. 3 is a user interface diagram of a data transfer method according to an alternative embodiment of the present invention, wherein the left portion is an existing version of a page layout, as shown in FIG. 3, and is a multi-option, expandable and collapsible tree structure. Different versions of data may be switchably viewed and moved in. The right side is the version of the data to be moved in corresponds to the existing module, and the existing data can be selected, expanded and supported to be moved out. The four buttons in the middle part represent "move right into checked data", "move right into all data", "move right out of checked data in the right version", "move out of all data in the right version", respectively. Wherein the first and third buttons are deactivated by clicking when the first and third buttons are not checked.
FIG. 4 is a timing diagram of a data transfer method according to an alternative embodiment of the invention, as shown in FIG. 4, comprising the following steps:
step S401: opening a tree structure interaction page;
step S402: calling an interface to acquire data;
step S403: page rendering, updating an existing version module;
step S404: the user operation module moves in and out;
step S405: performing a logical operation, comprising: all in, part out, all out;
step S406: and re-rendering the page and updating the module data.
It should be noted that the specific implementation steps of step S402 are as follows:
step S4021: acquiring an existing version list;
step S4022: inquiring module data according to the version to be moved in;
step S4023: acquiring a version number to be modified;
step S4024: and querying a version module to be modified.
It should be noted that the specific implementation steps of step S403 are as follows:
step S4031: traversing step by step, and filtering illegal and empty data;
step S4032: and splicing and inserting the data into the assembly and rendering the module.
Fig. 5 is a flow chart (a) of a data transfer method according to an alternative embodiment of the present invention, as shown in fig. 5, a process of the data transfer method may be implemented by:
1) Realize the right shift of the left data part (which is equivalent to the partial or total data corresponding to the partial version number or the transfer of the partial data corresponding to the total version number to the target version corresponding to the target version number in the above embodiment):
step S501: recording the coordinates of the left selected object;
step S502: generating a selected object array according to the coordinates;
step S503: filtering the new array of hollow objects;
step S504: judging whether data exists on the right side;
step S505: the right side has data, and all KEY of the data on the right side is taken out;
step S506: comparing whether the data keys on the left side and the right side are repeated;
step S507: the data key on the left side and the right side is repeated, the data is not moved in, and the existence of repeated data is prompted;
step S508: the data keys on the left side and the right side are not repeated, and the left side check array and the right side array are combined and recombined;
step S509: the merged data replaces the original right data;
step S510: clearing the left side for hooking;
step S511: the right side has no data, and whether the data is shifted in or not is confirmed;
step S512: confirming the shift-in, and directly shifting in the left data;
step S513: step S510 is performed;
step S514: the acknowledgment does not move in and the right data is not modified.
2) All the left data is shifted to the right (corresponding to shifting all the data corresponding to all the version numbers to the target version corresponding to the target version number in the above embodiment):
Step S515: taking all KEY of left data;
step S516: steps S504 to S514 are performed.
Fig. 6 is a schematic flow chart (two) of a data transfer method according to an alternative embodiment of the present invention, and as shown in fig. 6, the process of the data transfer method may be implemented by the following steps:
1) The right-side data is shifted out entirely (equivalent to removing all data selected from the data of the target version number from the third area in the above-described embodiment):
step S601: confirming whether all are taken out;
step S602: confirming all the data to be taken out and emptying the data on the right side;
step S603: all fetches were not confirmed, and the right data was not modified.
2) Right side data partial shift out (equivalent to removing a portion of data selected from the data of the target version number from the third area in the above embodiment):
step S604: recording coordinates of the right selected object;
step S605: generating a selected object array according to the coordinates;
step S606: filtering the new array of hollow objects;
step S607: confirming whether to move out;
step S608: confirming the moving out, reconstructing the right array, and filtering out the hook data;
step S609: clearing the right side for hooking;
step S610: the removal is not confirmed, and step S603 is performed.
Through the steps, under the condition that the left data part moves to the right, firstly, checked data are required to be extracted for reorganization, on the premise of keeping the hierarchical structure, invalid data which are empty and data which are not checked are filtered, secondly, whether data exist on the right side or not is required to be judged, if the data can not move in directly, otherwise, whether repeated items exist between the checked data and the right side data or not is required to be compared. If there is a duplicate entry, the hint is not to allow the move-in, if there is no duplicate entry, the left data is inserted to the right and the move-in is complete. When all the left data is shifted right, it is necessary to check and compare all the left data with the right data, and then merge and shift in. And under the condition of removing the right data part, extracting the uncounted data reorganization, and re-rendering the data on the page. In the case where all the right-side data is removed, all the right-side data is directly emptied.
According to the embodiment of the invention, the data is imported from a plurality of data sources and subjected to check and duplication processing by utilizing an interactive mode of importing and exporting data in batches, so that the data is more visualized by clearly showing the hierarchical relationship among the data through a tree structure, the imported data is still ensured to keep the hierarchical relationship, the importing of repeated data is effectively avoided, the simultaneous importing of multiple versions of data is also supported, and the data importing and exporting visualization is simplified.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiment also provides a data transfer device, which is used for implementing the above embodiment and the preferred implementation manner, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 7 is a block diagram illustrating a data transfer device according to an embodiment of the present invention; as shown in fig. 7, includes:
a receiving module 70, configured to receive a first operation of a target object through a target display interface, where one or more version numbers of a client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and a target version number is displayed in a third area of the target display interface, where the target version number is greater than the one or more version numbers;
a selecting module 72, configured to select a part or all of version numbers in the one or more version numbers in response to the first operation, and select part or all of data corresponding to the part or all of version numbers in the selected part or all of version numbers;
And a transferring module 74, configured to transfer the part or all of the data to a target version corresponding to the target version number.
According to the technical scheme, the first operation of the target object is received through the target display interface, wherein one or more version numbers of the client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and the target version number is displayed in a third area of the target display interface, wherein the target version number is larger than the one or more version numbers; responding to a first operation, selecting part or all of version numbers in one or more version numbers, and selecting part or all of data corresponding to part or all of version numbers in the selected part or all of version numbers; and transferring part or all of the data to the target version corresponding to the target version number, namely selecting part or all of the data corresponding to the target version number and then transferring to the target version corresponding to the target version number, so that the problems that in the related art, the process of importing the data is complex, the labor cost is increased and the like are solved, the working efficiency is improved, and the data loss caused by manual operation is reduced.
In an exemplary embodiment, the above transfer module is further configured to implement the following functions:
1) Transferring partial or all data corresponding to the partial version number or partial data corresponding to all the version number to a target version corresponding to the target version number;
in the embodiment of the invention, partial or all data corresponding to the partial version number or partial data corresponding to the all version number are recombined to obtain recombined data; determining whether data exists in the third area corresponding to the target version number; and if not, transferring the recombined data to a target version corresponding to the target version number.
That is, after selecting part or all of the data corresponding to the part version number or part of the data corresponding to the whole version number, the part or all of the data corresponding to the part version number or part of the data corresponding to the whole version number is required to be recombined, the unselected data is filtered to obtain the recombined data, that is, the data required to be transferred, and then whether the data exists in the third area is required to be judged, if not, the data can be directly transferred. It should be noted that the transferred data still maintains the original hierarchical relationship.
After determining that the third area corresponding to the target version number has data, specifically, whether a repeated item exists between the reorganized data and the data existing in the third area is also required to be determined; if the target version number exists, the recombined data is forbidden to be transferred to the target version corresponding to the target version number; and if the data does not exist, transferring the recombined data to a target version corresponding to the target version number.
That is, if there is data in the third area corresponding to the target version number, it is necessary to determine whether there is duplication between the reorganized data and the data in the third area, if there is duplication, the data is not transferred in, and if there is no duplication, the data is transferred. When it is determined that the reorganized data and the data existing in the third area are duplicated, the target object may be prompted to have duplicated data, for example, a prompt box may be displayed on a display screen or a prompt sound may be sent out, which is not limited in the embodiment of the present invention.
2) Transferring all data corresponding to all version numbers to a target version corresponding to the target version number;
in the embodiment of the invention, whether the data exists in the third area corresponding to the target version number is determined; and if not, transferring all the data corresponding to all the version numbers to the target version corresponding to the target version number.
It will be appreciated that in the case where no data exists in the third area corresponding to the target version number, all data may be transferred.
Specifically, in the case that the third area corresponding to the target version number has data, determining whether all data corresponding to all version numbers and the data existing in the third area have duplicate entries; if so, all data corresponding to all version numbers are forbidden to be transferred to the target version corresponding to the target version number; and if not, transferring all the data corresponding to all the version numbers to the target version corresponding to the target version number.
That is, if there is data in the third area corresponding to the target version number, it is necessary to determine whether all selected data and the data in the third area are duplicated, if there is duplication, the data is not transferred in, and if there is no duplication, the data is transferred. When it is determined that all the selected data and the data existing in the third area overlap, the target object may be prompted to have the repeated data, for example, a prompt box may be displayed on a display screen or a prompt sound may be sent.
3) Removing selected portions of the data of the target version number from the third region;
in the embodiment of the present invention, when the third area is further used for displaying the data of the target version number, after transferring part or all of the data corresponding to the part or all of the versions to the target version corresponding to the target version number, a second operation of the target object is received, where the second operation is used for selecting part of the data in the data of the target version number; and in response to the second operation, removing the partial data from the third area, and re-rendering and displaying unselected data in the data of the target version number in the third area.
And after removing selected partial data in the data of the target version number from the third area, reorganizing unselected data, and displaying the reorganized data in the third area. Before removing the selected part of the data of the target version number from the third area, a confirmation message is sent to the target object, and after the target object confirms, the selected part of the data of the target version number is removed from the third area.
4) All data selected from the data of the target version number is removed from the third area.
In the embodiment of the invention, after transferring part or all of the data corresponding to the part or all of the versions to the target version corresponding to the target version number, a third operation of the target object is received, wherein the third operation is used for selecting all of the data in the data of the target version number; and in response to the third operation, removing the entire data from the third region.
Namely, the third target area is emptied, specifically, the whole data is removed from the third area, before the target object is required to confirm whether the whole data is removed, after the target object is confirmed, the data of the third target area is emptied, and if the target object denies the whole data to be removed, the data of the third target area is not modified.
An embodiment of the present invention also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
In an exemplary embodiment, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
S1, receiving a first operation of a target object through a target display interface, wherein one or more version numbers of a client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and a target version number is displayed in a third area of the target display interface, wherein the target version number is larger than the one or more version numbers;
s2, responding to the first operation, selecting part or all of version numbers in the one or more version numbers, and selecting part or all of data corresponding to the part or all of version numbers in the part or all of version numbers which are selected;
s3, transferring the part or all of the data to a target version corresponding to the target version number.
In an exemplary embodiment, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
In an exemplary embodiment, in this embodiment, the above-mentioned processor may be configured to execute the following steps by a computer program:
s1, receiving a first operation of a target object through a target display interface, wherein one or more version numbers of a client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and a target version number is displayed in a third area of the target display interface, wherein the target version number is larger than the one or more version numbers;
s2, responding to the first operation, selecting part or all of version numbers in the one or more version numbers, and selecting part or all of data corresponding to the part or all of version numbers in the part or all of version numbers which are selected;
s3, transferring the part or all of the data to a target version corresponding to the target version number.
In an exemplary embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementations, and this embodiment is not repeated herein.
It will be apparent to those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, and in one exemplary embodiment they may be implemented in program code executable by a computing device, so that they may be stored in a memory device for execution by a computing device, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method of transferring data, comprising:
receiving a first operation of a target object through a target display interface, wherein one or more version numbers of a client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and a target version number is displayed in a third area of the target display interface, wherein the target version number is larger than the one or more version numbers;
selecting a part or all of version numbers in the one or more version numbers in response to the first operation, and selecting part or all of data corresponding to the part or all of version numbers in the selected part or all of version numbers;
transferring the part or all of the data to a target version corresponding to the target version number, wherein transferring the part or all of the data corresponding to the part version number or the part of the data corresponding to the all of the version number to the target version corresponding to the target version number includes:
recombining partial or all data corresponding to the partial version numbers or partial data corresponding to the all version numbers to obtain recombined data;
Determining whether data exists in the third area corresponding to the target version number;
and if not, transferring the recombined data to a target version corresponding to the target version number.
2. The method of claim 1, wherein after determining whether the third region corresponding to the target version number has data, the method further comprises:
determining if, if any, duplicate items exist between the reorganized data and the data present in the third region;
if the target version number exists, the recombined data is forbidden to be transferred to the target version corresponding to the target version number;
and if the data does not exist, transferring the recombined data to a target version corresponding to the target version number.
3. The method of claim 1, wherein transferring all data corresponding to the all version numbers to the target version corresponding to the target version number comprises:
determining whether data exists in the third area corresponding to the target version number;
and if not, transferring all the data corresponding to all the version numbers to the target version corresponding to the target version number.
4. The method of claim 3, wherein after determining whether the third region corresponding to the target version number has data, the method further comprises:
if so, determining whether repeated items exist between all data corresponding to all version numbers and the data existing in the third area;
if so, all data corresponding to all version numbers are forbidden to be transferred to the target version corresponding to the target version number;
and if not, transferring all the data corresponding to all the version numbers to the target version corresponding to the target version number.
5. A method according to claim 3, wherein, in case the third area is further used for displaying the data of the target version number, after transferring part or all of the data corresponding to the part or all of the versions into the target version corresponding to the target version number, the method further comprises:
receiving a second operation of a target object, wherein the second operation is used for selecting partial data from the data of the target version number;
and in response to the second operation, removing the partial data from the third area, and re-rendering and displaying unselected data in the data of the target version number in the third area.
6. The method of claim 1, wherein after transferring the part or all of the data corresponding to the part or all of the versions to the target version corresponding to the target version number, the method further comprises:
receiving a third operation of a target object, wherein the third operation is used for selecting all data in the data of the target version number;
and in response to the third operation, removing the entire data from the third region.
7. A data transfer method apparatus, comprising:
the receiving module is used for receiving a first operation of a target object through a target display interface, wherein one or more version numbers of a client are displayed in a first area of the target display interface, data corresponding to the one or more version numbers are displayed in a second area of the target display interface, and a target version number is displayed in a third area of the target display interface, wherein the target version number is larger than the one or more version numbers;
a selecting module, configured to select a part or all of version numbers in the one or more version numbers in response to the first operation, and select part or all of data corresponding to the part or all of version numbers in the selected part or all of version numbers;
A transfer module, configured to transfer the part or all of the data to a target version corresponding to the target version number, where the transfer module is further configured to
Recombining partial or all data corresponding to the partial version numbers or partial data corresponding to the all version numbers to obtain recombined data; determining whether data exists in the third area corresponding to the target version number; and if not, transferring the recombined data to a target version corresponding to the target version number.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored program, wherein the program when run performs the method of any of the preceding claims 1 to 6.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 6 by means of the computer program.
CN202011300273.XA 2020-11-18 2020-11-18 Data transfer method and device, storage medium and electronic device Active CN112579228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011300273.XA CN112579228B (en) 2020-11-18 2020-11-18 Data transfer method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011300273.XA CN112579228B (en) 2020-11-18 2020-11-18 Data transfer method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112579228A CN112579228A (en) 2021-03-30
CN112579228B true CN112579228B (en) 2023-08-18

Family

ID=75123349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011300273.XA Active CN112579228B (en) 2020-11-18 2020-11-18 Data transfer method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112579228B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702810A (en) * 2009-11-06 2010-05-05 深圳华为通信技术有限公司 Method and device of self-adaptive background interface
CN103970536A (en) * 2014-04-28 2014-08-06 广州杰赛科技股份有限公司 Method and device for generating APP installation program
US9003365B1 (en) * 2012-07-19 2015-04-07 Google Inc. Rapid presentations of versions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101702810A (en) * 2009-11-06 2010-05-05 深圳华为通信技术有限公司 Method and device of self-adaptive background interface
US9003365B1 (en) * 2012-07-19 2015-04-07 Google Inc. Rapid presentations of versions
CN103970536A (en) * 2014-04-28 2014-08-06 广州杰赛科技股份有限公司 Method and device for generating APP installation program

Also Published As

Publication number Publication date
CN112579228A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN103678494B (en) Client synchronization services the method and device of end data
CN110413282B (en) Redundant resource processing method, device, equipment and storage medium
KR19980076632A (en) Version control method of portable information terminal
CN107092652B (en) Navigation method and device for target page
CN110989891B (en) Component deployment method in chart editor, chart editor and related equipment
CN109960538A (en) A kind of configuration interface management method, configuration interface managing device and electronic equipment
CN114386934A (en) Method and device for generating business process, server and storage medium
CN111984248B (en) Page editing method and device, storage medium and electronic device
CN113434796B (en) Page cache operation method and device, storage medium and electronic device
CN103218425B (en) The disposal route of browser extension item and device
CN112579228B (en) Data transfer method and device, storage medium and electronic device
US10303808B2 (en) Product configuration
CN110895498A (en) Data storage method and device
CN112182115A (en) Relationship display method and device, storage medium and electronic device
CN107977221A (en) A kind of mobile terminal software update method and system
CN108009053A (en) The management of smart mobile phone core data and cloning process
CN106375551A (en) Information interaction method and device, and terminal
CN107562842A (en) The guard method of resource data and equipment
CN110442821A (en) Renewal of the page device during a kind of webpage development
CN106933643A (en) A kind of code compiling method, equipment and system
CN114996272A (en) Method, electronic device and readable storage medium for generating organization structure tree
CN111459484B (en) Method for simulating back-end data during separate development of front end and back end of webpage
CN111026739B (en) Batch data cleaning method and device, computer equipment and storage medium
CN113946394A (en) Method and device for displaying task flow running result in real time and electronic equipment
CN113448980A (en) Method and device for generating SQL (structured query language) statement 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
GR01 Patent grant
GR01 Patent grant