CN113821707A - Data pulling method, equipment and computer readable storage medium - Google Patents

Data pulling method, equipment and computer readable storage medium Download PDF

Info

Publication number
CN113821707A
CN113821707A CN202010563866.9A CN202010563866A CN113821707A CN 113821707 A CN113821707 A CN 113821707A CN 202010563866 A CN202010563866 A CN 202010563866A CN 113821707 A CN113821707 A CN 113821707A
Authority
CN
China
Prior art keywords
data
information record
pulling
imported
information
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
CN202010563866.9A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010563866.9A priority Critical patent/CN113821707A/en
Publication of CN113821707A publication Critical patent/CN113821707A/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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a data pulling method, equipment and a computer readable storage medium; the method comprises the following steps: receiving a data pulling request sent by a terminal; the data pulling request carries a current information identifier, and the current information identifier is an identifier of a current information record in the terminal; responding to a data pulling request, and acquiring a latest information identifier; the latest information identifier is the identifier of the latest information record; determining an updated object label from the latest information list by using the current information identifier and the latest information identifier; the updated object label represents the object label subjected to data updating and the newly added object label in the latest information record; extracting the updating data corresponding to the updating object label from the latest information record; and returning the updated data to the terminal. By the embodiment of the invention, the data pulling efficiency can be improved.

Description

Data pulling method, equipment and computer readable storage medium
Technical Field
The present invention relates to big data technologies in the internet field, and in particular, to a data pulling method, device, and computer-readable storage medium.
Background
Data pulling is an important part in data control, and data in the information book can be inquired in batches through data pulling, so that convenience is brought to data inquiry under big data. For example, the information of the staff is exported in batch from the enterprise address book, so that the information is convenient to view, modify and the like.
As data scales are continuously enlarged, data storage capacity is increased, for example, data of some large enterprises can reach tens of thousands or even millions. At this time, a huge data volume may bring a huge pressure to data pulling, so that the data pulling takes a long time and fails frequently, and finally, the data pulling efficiency is low.
Disclosure of Invention
The embodiment of the invention provides a data pulling method, data pulling equipment and a computer readable storage medium, which can improve the data pulling efficiency.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a data pulling method, which comprises the following steps:
receiving a data pulling request sent by a terminal; the data pulling request carries a current information identifier, and the current information identifier is an identifier of a current information record in the terminal;
responding to the data pulling request, and acquiring a latest information identifier; the latest information identifier is an identifier of the latest information record;
determining an updated object label from the latest information record by using the current information identifier and the latest information identifier; the updated object label represents an object label subjected to data updating and a newly added object label in the latest information record;
extracting the updating data corresponding to the updating object label from the latest information record;
and returning the updated data to the terminal.
In some embodiments of the present invention, the determining, by using the current information identifier and the latest information identifier, an update object tag from the latest information record includes:
comparing the difference between the latest information identifier and the current information identifier to obtain information identifier difference;
and selecting the updated object label from the latest information record according to the information identification difference.
In some embodiments of the present invention, the determining, by using the historical inverted index and the inverted index, whether the data to be imported and the historical import data conflict with each other includes:
when the historical reverse index and the reverse index have conflicts, determining that the data to be imported and the historical imported data have conflicts;
and when the historical reverse index and the reverse index do not have conflict, determining that the data to be imported and the historical imported data do not conflict.
The embodiment of the invention provides a data pulling method, which comprises the following steps:
when a data loading instruction acting on a data pulling trigger control of a display interface is received, responding to the data loading instruction, and generating a data pulling request; the data loading trigger area is positioned in a first control area of the display interface;
acquiring a current information identifier corresponding to a current information record, carrying the current information identifier in a data pulling request, and sending the current information identifier to a server; the current information record is an information record in the terminal;
receiving the updated data returned by the server aiming at the data pulling request;
integrating the updated data and the data in the current information record to obtain integrated data, and displaying the integrated data in a data display area popped up on the display interface to realize data pulling; the data display area is located in a first preset area of the display interface.
An embodiment of the present invention provides a data pulling apparatus, including:
the first receiving module is used for receiving a data pulling request sent by a terminal; the data pulling request carries a current information identifier, and the current information identifier is an identifier of a current information record in the terminal;
the identification acquisition module is used for responding to the data pulling request and acquiring the latest information identification; the latest information identifier is an identifier of the latest information record;
the object determining module is used for determining an updated object label from the latest information list by using the current information identifier and the latest information identifier; the updated object label represents an object label subjected to data updating and a newly added object label in the latest information record;
the data extraction module is used for extracting the updating data corresponding to the updating object label from the latest information record;
and the first sending module is used for returning the updating data to the terminal.
An embodiment of the present invention provides a data display device, including:
the request generation module is used for responding to a data loading instruction and generating a data pulling request when the data loading instruction acting on a data pulling trigger control of a display interface is received; the data loading trigger area is positioned in a first control area of the display interface;
the second sending module is used for acquiring a current information identifier corresponding to the current information record, carrying the current information identifier in the data pulling request and sending the current information identifier to the server; the current information record is an information record in the terminal;
a second receiving module, configured to receive update data returned by the server for the data pull request;
the data integration module is used for integrating the updated data and the data in the current information book to obtain integrated data;
the data display module is used for displaying the integrated data in a data display area popped up on the display interface to realize data pulling; the data display area is located in a first preset area of the display interface.
An embodiment of the present invention provides a server, including:
a first memory to store an executable data pull instruction;
the first processor is configured to implement the data pulling method provided by the server side in the embodiment of the present invention when the executable data pulling instruction stored in the first memory is executed.
An embodiment of the present invention provides a terminal, including:
a second memory for storing executable data pull instructions;
and the second processor is used for realizing the data pulling method provided by the terminal side in the embodiment of the invention when the executable data pulling instruction stored in the second memory is executed.
The embodiment of the invention provides a computer-readable storage medium, which stores an executable data pulling instruction and is used for causing a first processor to execute so as to realize a data pulling method provided by a server side in the embodiment of the invention; or is used for causing the second processor to execute, so as to implement the data pulling method provided by the terminal side in the embodiment of the present invention.
The embodiment of the invention has the following beneficial effects:
when data is pulled, only the current information identification of the current information record in the terminal and the latest information identification of the latest information record in the server need to be compared, and an object label with data update and a newly added object label in the latest information record are determined, so that only the data corresponding to the object labels with changes are pulled, the whole amount of data does not need to be pulled in each data pulling, and the time consumption of data pulling is reduced; meanwhile, only the data corresponding to the object label with the change is pulled, so that the data amount required to be pulled is reduced, the failure rate of data pulling is reduced, and the efficiency of data pulling is finally improved.
Drawings
Fig. 1 is an alternative architecture diagram of a data pulling system 100 according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of the server 200 in fig. 1 according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of the terminal 400 in fig. 1 according to an embodiment of the present invention;
fig. 4 is a first alternative flow chart of a data pulling method according to an embodiment of the present invention;
FIG. 5 is a diagram of a data pull trigger control according to an embodiment of the present invention;
FIG. 6 is a first schematic diagram of a data display area according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of data pull of a business transaction object provided by an embodiment of the present invention;
fig. 8 is a schematic diagram of data pulling of a business object according to another embodiment of the present invention;
fig. 9 is a schematic flow chart of an alternative data pulling method according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of an architecture display area provided by an embodiment of the present invention;
FIG. 11 is a block diagram of an embodiment of a directory architecture image;
FIG. 12 is a second schematic diagram of a data display area provided by an embodiment of the present invention;
fig. 13 is a schematic flow chart diagram three illustrating an alternative data pulling method according to an embodiment of the present invention;
FIG. 14 is a schematic diagram of a writing process of forward recording and backward indexing according to an embodiment of the present invention;
FIG. 15 is a schematic illustration of incremental updates provided by an embodiment of the present invention;
fig. 16 is a schematic diagram of an enterprise address book displayed by a management end in a tax mode according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third \ fourth" are only to distinguish similar objects and do not denote a particular order or importance to the objects, and it is to be understood that "first \ second \ third \ fourth" may be interchanged with a particular order or sequence as appropriate to enable the embodiments of the invention described herein to be practiced in an order other than that shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
Before further detailed description of the embodiments of the present invention, terms and expressions mentioned in the embodiments of the present invention are explained, and the terms and expressions mentioned in the embodiments of the present invention are applied to the following explanations.
1) The object label is a label corresponding to each object in the information record. Since in an enterprise architecture, an object may belong to multiple departments simultaneously, the object tag can uniquely represent an object. The object tag may be the identity id of the object.
2) The department is an important component of the organization structure, and the hierarchical structure of the organization structure can be constructed through the department. Each department includes zero to many members, each department has its unique tag information, so that the identification tag can be used to distinguish different departments.
3) And the information book is used for storing detailed information of all objects in the enterprise institution. The information record comprises an information record framework and information record data. The information book architecture describes the hierarchical structure of each department in the enterprise architecture, and the information book data stores the detailed information of each object. The detailed information of each object may include a user name, a mobile phone number, a name, and the like of the object.
4) A forward mapping refers to a mapping from the object tag to the detailed information, for example, a mapping from an identity id to a mobile phone number, etc.
5) Inverted index refers to the mapping from detailed data to object tags. In some cases, the reverse indexing requirement is a mapping of information fields in the detailed information that are unique to the object tag, e.g., a mapping of a cell phone number to a name, etc.
Data control refers to unified storage and management of data corresponding to each member object in an enterprise, school, or other organization. Data pulling is an important part in data control. Data in the information book can be inquired in batches through data pulling, and convenience is brought to data inquiry under big data. For example, information of employees is exported in batches from the enterprise address book, so that the information is convenient to view, modify and the like.
However, as the size of data is increased, the amount of data storage is also increased, for example, the data of some large enterprises may reach tens of thousands or even millions. At this time, a huge data volume may bring a huge pressure to data pulling, so that the data pulling takes a long time and fails frequently, and finally, the data control efficiency is low. Meanwhile, the huge data volume also causes the flow overhead of data pulling to be large.
Data import is a prerequisite for data pulling. The data import can import scattered data of each member object in batch, so that the scattered data is uniformly stored and uniformly managed, and a foundation is brought to data pulling. For example, the information of the enterprise employees is imported into the enterprise address book, so that batch modification, batch export and the like of the information of the employees are facilitated.
When data is imported into the information record in batch, collision detection needs to be carried out on newly added data, namely whether the newly added data conflicts with the imported data is detected, and the newly added data can be imported when the newly added data does not conflict with the imported data. For example, if the mobile phone number of the account a in the imported data is the same as the mobile phone number of the account B in the newly added data, the account B in the newly added data cannot be imported into the enterprise address book, so that the enterprise address book is prevented from being recorded by mistake. Thus, each time data is imported, the new data and the imported data need to be examined for unique fields.
However, when the data storage amount is too large, the data amount of the imported data that needs to be subjected to collision detection increases every time data is imported, so that the time consumed for data import collision detection becomes long, and thus the data consumption time becomes long.
The embodiment of the invention provides a data pulling method, data pulling equipment and a computer readable storage medium, which can improve the data pulling efficiency. An exemplary application of the data pulling device provided in the embodiment of the present invention is described below, and the data pulling device provided in the embodiment of the present invention may be implemented as a user terminal or a server. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud computing service; the terminal may be, but is not limited to, a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and the like. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the present invention is not limited thereto. Next, an exemplary application when the data pulling apparatus is implemented as a terminal and a server will be explained.
Referring to fig. 1, fig. 1 is an alternative architecture diagram of a data pulling system 100 according to an embodiment of the present invention, in order to support a data control application, a terminal 400 is connected to a server 200 through a network 300, where the network 300 may be a wide area network or a local area network, or a combination of the two.
When the terminal 400 receives a data loading instruction acting on the data pull trigger control, it will respond to the data loading instruction and generate a data pull request. The data loading trigger control is located in a first control area of the display interface. Next, the terminal 400 acquires a current information identifier corresponding to the current information book, carries the current information identifier in the data pull request, and sends the current information identifier to the server 200 through the network 300; wherein the current directory is a directory in the terminal 400. After receiving the data pull request sent by the terminal 400, the server 200 obtains the latest information identifier in response to the data pull request, where the latest information identifier is an identifier of the latest information record. Then, the server 200 determines the update target tag from the latest information record by using the current information identifier and the latest information identifier. The updated object label represents the object label subjected to data updating and the newly added object label in the latest information record. Then, the server 200 extracts the update data corresponding to the update target tag from the latest information record, and returns the update data to the terminal 400. After receiving the update data returned by the server 200 in response to the data pull request, the terminal 400 integrates the update data with the data in the current information book to obtain integrated data, and displays the integrated data in the data display area of the display interface to implement data control. The data display area is located in a first preset area of the display interface.
Referring to fig. 2, fig. 2 is a schematic structural diagram of the server 200 in fig. 1 according to an embodiment of the present invention, where the server 200 shown in fig. 2 includes: at least one first processor 210, a first memory 250, at least one first network interface 220, and a first user interface 230. The various components in server 200 are coupled together by a first bus system 240. It is understood that the first bus system 240 is used to enable communications for connections between these components. The first bus system 240 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as a first bus system 240 in fig. 2.
The first Processor 210 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc., wherein the general purpose Processor may be a microprocessor or any conventional Processor, etc.
The first user interface 230 includes one or more first output devices 231, including one or more speakers and/or one or more visual display screens, that enable presentation of media content. The first user interface 230 also includes one or more first input devices 232, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The first memory 250 includes volatile memory or nonvolatile memory and may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The first memory 250 described in embodiments of the invention is intended to comprise any suitable type of memory. The first memory 250 optionally includes one or more storage devices physically located remotely from the first processor 210.
In some embodiments, the first memory 250 is capable of storing data to support various operations, examples of which include programs, modules, and data structures, or subsets or supersets thereof, as exemplified below.
A first operating system 251 including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
a first network communication module 252 for communicating to other computing devices via one or more (wired or wireless) first network interfaces 220, an exemplary first network interface 220 comprising: bluetooth, wireless-compatibility authentication (Wi-Fi), and Universal Serial Bus (USB), etc.;
a first display module 253 to enable presentation of information (e.g., a user interface for operating peripherals and displaying content and information) via one or more first output devices 231 (e.g., a display screen, speakers, etc.) associated with the first user interface 230;
a first input processing module 254 for detecting one or more user inputs or interactions from one of the one or more first input devices 222 and translating the detected inputs or interactions.
In some embodiments, the data pulling apparatus provided by the embodiments of the present invention may be implemented in software, and fig. 2 illustrates the data pulling apparatus 255 stored in the first storage 250, which may be software in the form of programs and plug-ins, and includes the following software modules: the first receiving module 2551, the identification obtaining module 2552, the object determining module 2553, the data extracting module 2554, the first transmitting module 2555, the mirror image generating module 2556 and the data importing module 2557, functions of which will be described below.
In other embodiments, the data pulling apparatus provided in the embodiments of the present invention may be implemented in hardware, and for example, the data pulling apparatus provided in the embodiments of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to execute the data pulling method provided in the embodiments of the present invention, for example, the processor in the form of the hardware decoding processor may employ one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), or other electronic components.
Illustratively, an embodiment of the present invention provides a server, including
A first memory to store an executable data pull instruction;
the first processor is used for realizing the data pulling method provided by the server side in the embodiment of the invention when the executable data pulling instruction stored in the first memory is executed.
Referring to fig. 3, fig. 3 is a schematic structural diagram of the terminal 400 in fig. 1 according to an embodiment of the present invention, where the terminal 400 shown in fig. 3 includes: at least one second processor 410, a second memory 450, at least one second network interface 420, and a second user interface 430. The various components in the management side 400 are coupled together by a second bus system 440. It is understood that the second bus system 440 is used to enable connection communication between these components. The second bus system 440 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as the second bus system 440 in fig. 3.
The second Processor 410 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor, or the like.
The second user interface 430 includes one or more second output devices 431, including one or more speakers and/or one or more visual displays, that enable the presentation of media content. The second user interface 430 also includes one or more second input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The second memory 450 includes either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read Only Memory (ROM), and the volatile Memory may be a Random Access Memory (RAM). The second memory 450 described in the embodiments of the present invention is intended to comprise any suitable type of memory. The second memory 450 optionally includes one or more storage devices physically located remote from the second processor 410.
In some embodiments, the second memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures, or subsets or supersets thereof, as exemplified below.
A second operating system 451 including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
a second network communication module 452 for communicating to other computing devices via one or more (wired or wireless) second network interfaces 420, the example second network interfaces 420 including: bluetooth, wireless-compatibility authentication (Wi-Fi), and Universal Serial Bus (USB), etc.;
a second display module 453 for enabling presentation of information (e.g., user interfaces for operating peripherals and displaying content and information) via one or more second output devices 431 (e.g., display screens, speakers, etc.) associated with the second user interface 430;
a second input processing module 454 for detecting one or more user inputs or interactions from one of the one or more second input devices 432 and translating the detected inputs or interactions.
In some embodiments, the data presentation apparatus provided by the embodiments of the present invention may be implemented in software, and fig. 3 illustrates the data presentation apparatus 455 stored in the second memory 450, which may be software in the form of programs and plug-ins, and includes the following software modules: a request generating module 4551, a second transmitting module 4552, a second receiving module 4553, a data integrating module 4554, a data presentation module 4555, a tag checking module 4556, and a tag generating module 4557, the functions of which will be described below.
In other embodiments, the data presentation apparatus provided in the embodiments of the present invention may be implemented in hardware, and for example, the data presentation apparatus provided in the embodiments of the present invention may be a processor in the form of a hardware decoding processor, which is programmed to execute the data pulling method provided in the embodiments of the present invention, for example, the processor in the form of the hardware decoding processor may employ one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), or other electronic components.
Illustratively, an embodiment of the present invention provides a terminal, including:
a second memory for storing executable data pull instructions;
and the second processor is used for realizing the data pulling method provided by the terminal side in the embodiment of the invention when executing the executable data pulling instruction stored in the second memory.
In the following, the data pulling method provided by the embodiment of the present invention will be described in conjunction with exemplary applications and implementations of the server and the terminal provided by the embodiment of the present invention.
Referring to fig. 4, fig. 4 is a first alternative flowchart of a data pulling method according to an embodiment of the present invention, which will be described with reference to the steps shown in fig. 4.
S101, when the terminal receives a data loading instruction acting on a data pulling trigger control of a display interface, responding to the data loading instruction and generating a data pulling request.
The embodiment of the invention is realized in the scene of drawing data from the information record. When the data pulling starts, the terminal monitors the operation on the data loading triggering control of the display interface, when a data loading instruction triggered by the operation object on the data loading triggering control is received, the terminal can determine that the operation object of the terminal has the requirement for checking the data in the information record, and at the moment, the terminal can generate a data pulling request so as to trigger the server to send the data by utilizing the data pulling request subsequently.
It should be noted that, in the embodiment of the present invention, the data pull trigger control is located in the first control area of the display interface. The size and the position of the first control area can be set according to actual requirements.
The data loading triggering control can be set as an address book searching key, and when the operation object clicks the key, the terminal can receive a data loading instruction. In other embodiments of the present invention, the data loading triggering control may also be configured as a voice instruction button, and when the operation object triggers the button, the terminal may receive the data loading instruction triggered by the operation object through hardware devices such as a microphone, for example, when the operation object clicks the voice instruction button and sends a voice instruction of "view address book" to the terminal, the terminal may receive the data loading instruction.
For example, an embodiment of the present invention provides a schematic diagram of a data pull trigger control, and referring to fig. 5, a data pull trigger control, that is, a key of a data pull 5-2, is arranged in a display interface 5-1. The button is located in a first control area 5-3, and the first control area 5-3 is arranged in the upper right part of the display interface 5-1. When the operation object triggers a data pulling 5-2 key on the display interface, a data loading instruction is triggered.
It can be understood that, in the embodiment of the present invention, a terminal may be a user side, that is, a terminal that only performs data pulling and does not participate in data importing; the terminal can also be a control terminal, that is, a terminal capable of not only pulling data but also importing data. For example, in an enterprise, an "administrator" terminal, which is responsible for summarizing employee data, importing the employee data into an enterprise address book in batches, and simultaneously querying data of all employees, is a control terminal.
In addition, the control terminal is a terminal capable of generating an object tag for an object waiting for import. For example, when importing detailed information of a certain enterprise member, an "administrator" terminal that can generate a job number and other labels for the member is required, and the "administrator" terminal is a control end. The user side cannot generate object tags for objects waiting to be imported.
In other embodiments of the present invention, the user may modify data in the information record, for example, an operation object modifies its own mobile phone number in the information record by using the user. However, the user side does not have an operation right for the object tag.
S102, the terminal obtains a current information identifier corresponding to the current information book, carries the current information identifier in a data pulling request and sends the current information identifier to the server.
Wherein the current information record is an information record in the terminal. After the terminal generates the data pulling request, the terminal acquires an information record in the terminal, that is, a current information identifier corresponding to the current information record, and then carries the acquired current information identifier in the data pulling request and sends the data pulling request to the server through the network. The server receives a data pulling request sent by the terminal, wherein the data pulling request carries a current information identifier, so that the server can determine the identifier of the current information record in the terminal, and the information condition of the information record in the terminal is determined.
It can be understood that the current information identifier and the latest information identifier are used to describe the information condition of the information book.
It should be noted that the terminal may pull data from the server for the first time. When the terminal pulls data from the server for the first time, the terminal does not originally have the information record, that is, the current information record is empty. At this time, the current information identifier acquired by the terminal is an empty information identifier. When the server analyzes the empty information identifier from the data pulling request, it is determined that the terminal pulls the data for the first time. At this time, the server performs incremental pulling based on the empty information identifier, where the increment is the full data of the information record.
When the terminal does not pull the information record from the server for the first time, the terminal originally has the information record corresponding to the current version identifier, that is, the current information record is not empty, and correspondingly, the current information identifier is not an empty information identifier, but an information identifier corresponding to the current information record. At this time, the server starts incremental pulling on the terminal based on the current information identifier, wherein the increment is the difference between the latest information record in the server and the current information record in the terminal.
It can be understood that, when the terminal does not pull the information record from the server for the first time, the terminal extracts the largest information identifier from the information identifiers corresponding to each object tag in the current information record, and the largest information identifier is used as the current information identifier.
It should be noted that, in the embodiment of the present invention, when the object tag and the detailed information of the object are imported into the information book, the server generates a corresponding information identifier for the object tag. Thus, each object tag in the information record has its corresponding information identifier.
In the embodiment of the invention, the information identification describes the sequence of the object label importing and information recording. The information identification can be an import timestamp of each object tag, and can also be an import order of each object tag; the information identifier may also be an identifier in other forms, and the embodiment of the present invention is not limited herein.
Illustratively, when the import order of a certain object tag is 1, the information identifier of the object tag is 1, and when the import order of a certain object tag is 100, the information identifier of the object tag is 100.
In some embodiments of the present invention, when the server imports data into the directory, a hash node (HashNode) is generated for each department and object. The HashNode records the label of each department and the object label of each object, and also records the information identification corresponding to each object label. Therefore, the terminal can find out the information identifier corresponding to each object label from the HashNode, so as to extract the current information identifier.
S103, the server responds to the data pulling request and obtains the latest information identification.
The server responds to the data pulling request, selects the largest information identifier from the information identifiers corresponding to each object tag in the latest information record of the server, and takes the largest information identifier as the latest information identifier. Thus, the server can acquire the latest information identifier.
It should be noted that, because the information identifier describes the order in which the object tag is imported into the information record, the largest information identifier can indicate the last imported object tag in the latest information record, and thus the change condition of the latest information record is described. Thus, the latest information identification is the identification of the latest information record.
It can be understood that, in the embodiment of the present invention, the latest information identifier is irrelevant to whether the terminal first pulls data, that is, the latest information identifier is not affected by the current information record in the terminal.
And S104, the server determines the updated object tag from the latest information list by using the current information identifier and the latest information identifier.
After obtaining the current information identifier and the latest information identifier, the server compares the current information identifier with the latest information identifier. The current information identifier is the largest information identifier in the information identifiers corresponding to the object tags in the current information record of the terminal and corresponds to the last object tag in the current information record, and the latest information identifier is the largest information identifier in the information identifiers corresponding to the object tags in the latest information record and corresponds to the last object tag in the latest information record. Therefore, the server compares the current information identifier with the latest information identifier, and can determine the object tag with the change in the latest information record, i.e. determine the updated object tag in the information record.
The changed object tag may be an object tag newly added to the latest information record, or may be an object tag in which data corresponding to the object tag is updated. Therefore, the updated object tag represents the object tag subjected to data updating and the newly added object tag in the latest information record.
Further, the object tag subjected to data update means that the object tag itself has not changed but the detailed information corresponding to the object tag has changed. When data is updated, the object tag for updating data is also required to be reintroduced into the latest information record, and at this time, the server generates an information identifier for the object tag for updating data again.
It should be noted that, when the current information identifier is a null information identifier, the updated object tag will naturally be the full object tag in the latest information record. That is, when the terminal first pulls the latest information record from the server, all the object tags in the latest information record are all update object tags.
And S105, the server acquires the updating data corresponding to the updating object label from the latest information record.
Since the object tag and the detailed information are stored correspondingly in the latest information book, there is a corresponding relationship. Therefore, when the update target tag is clarified, the server extracts the detailed information corresponding to the update target tag from the latest information record using the update target tag and the correspondence between the object tag and the detailed information, and uses the extracted detailed information as the update data. Thus, the server can extract the update data.
It should be noted that, in some embodiments of the present invention, the latest directory includes a directory framework and directory data, where the directory data is specifically used for storing detailed information corresponding to each object tag. The server may extract the update data corresponding to the update object tag from the directory data.
It is understood that information such as name, age, department of the company, job title, and contact address may be included in the update data. In addition, other information may be included in the update data, and the invention is not limited herein.
And S106, the server returns the updated data to the terminal.
After the server obtains the update data, the server transmits the update data to the terminal through the network. For the terminal, the update data is sent by the server in response to the data pull request, that is, the terminal receives the update data returned by the server for the data pull request, so as to display the update data subsequently.
And S107, integrating the updated data and the data in the current information record by the terminal to obtain integrated data, and displaying the integrated data in a data display area of a display interface to realize data pulling.
After the terminal obtains the updated data, the terminal finds the object tag corresponding to the object tag subjected to data updating in the updated data from the current information record, then covers the original data of the object tag subjected to data updating in the current information record by using the data corresponding to the object tag subjected to data updating in the updated data, and then combines the covered data and the data corresponding to the object tag newly added in the updated data to form integrated data. And then, the server displays the integrated data in a data display area of a display interface of the terminal, so that data pulling based on incremental updating is realized.
It can be understood that, when the terminal pulls data from the server for the first time, the updated data is the detailed information corresponding to the full-size object tag of the latest information record, and at this time, the terminal displays the detailed information corresponding to the full-size object tag in the data display area.
It should be noted that the data display area is located in a first preset area of a display interface of the terminal. In the embodiment of the present invention, both the position and the size of the first preset region may be set according to actual situations, for example, the first preset region is set in a right half portion of the display interface, and the size of the first preset region is set to be a half of the size of the display interface, and the like.
In some embodiments of the present invention, the first control area and the first preset area are not overlapped, so that the data in the data display area can be clearly and completely displayed.
For example, an embodiment of the present invention provides a first schematic diagram of a data display area, and referring to fig. 6, a data pull trigger control 6-2 and a data display area 6-3 are arranged in a display interface 6-1, where integrated data, that is, an object label 6-31 and detailed information thereof, an object label 6-32 and detailed information thereof, and the like are displayed in the data display area 6-3. As can be seen from FIG. 6, the first control area 6-4 where the data pull trigger control 6-2 is located does not overlap with the first preset area 6-5 where the data display area 6-3 is located.
In the embodiment of the invention, when data is pulled, only the current information identifier of the current information record in the terminal and the latest information identifier of the latest information record in the server need to be compared to determine the object tag which is updated by data and the newly added object tag in the latest information record, so that only the data corresponding to the object tags which are changed are pulled, the whole amount of data does not need to be pulled in each data pulling process, and the time consumption of data pulling is reduced; meanwhile, only the data corresponding to the object label with the change is pulled, so that the data amount required to be pulled is reduced, the failure rate of data pulling is reduced, and the efficiency of data pulling is finally improved.
In some embodiments of the present invention, after the server determines the update target tag from the latest information record by using the current information identifier and the latest information identifier, the terminal may further integrate the update data with the data in the current information record before obtaining the integrated data, that is, after S104 and before S107, the method may further include: S108-S111, as follows:
and S108, the server returns the updated object label to the terminal.
And S109, the terminal checks the updated object tag with each object tag in the current information record to determine the actual pulled object tag.
In order to further confirm whether each object tag in the updated object tags needs to be subjected to data pulling, the server sends the updated object tags to the terminal through the network, and the terminal receives the updated object tags returned by the server according to the data pulling request. And then, the terminal compares the updated object tag with all object tags in the current information record in the terminal to determine whether the updated object tag is the object tag really needing to pull the data, and the object tag really needing to pull the data in the updated object tag is used as the actual pulled object tag.
And S110, the terminal carries the actual pull object tag in the data sending request and sends the data sending request to the server.
After the terminal obtains the actual pull object tag, the terminal can generate a data issuing request, and packages the actual pull object tag into the data issuing request to be sent to the server. And the server receives a data issuing request returned by the terminal aiming at the updated object label. The data issuing request carries an actual pull object tag.
It will be appreciated that the number of actual pulled object tags is less than or equal to the number of updated object tags. That is, the actual pulled object tag may be all object tags in the updated object tag, or may be a part of all object tags of the updated object identifier.
And S111, the server responds to the data issuing request, obtains actual pulling data corresponding to the actual pulling object tag from the latest information record, and sends the actual pulling data to the terminal.
The server analyzes the actual pull object label from the data issuing request, and then extracts the detailed information corresponding to the actual pull object label from the latest information record, so as to obtain the actual pull data. And then, the server sends the actual pull data to the terminal through the network. And the terminal receives the actual pull data returned by the server based on the data issuing request. At this time, the data in the terminal is no longer the update data, but is actually pulled, so the process of integrating the update data and the current directory data by the terminal to obtain the integrated data, that is, S107, is changed to S1071: and the terminal integrates the actual pull data and the data of the current information record to obtain integrated data.
In the embodiment of the invention, after the server obtains the updated object label, the server can also send the updated object label to the terminal, so that the terminal can locally check the updated object label, thereby determining the actual pulled object label really needing to pull the data, and only performing data pulling on the actual pulled object label really needing to pull the data, thereby further improving the data pulling efficiency.
In some embodiments of the present invention, the determining, by the server, the updated object tag from the latest information record by using the current information identifier and the latest information identifier, that is, a specific implementation process of S104 may include: S1041-S1042, as follows:
s1041, the server compares the difference between the latest information identification and the current information identification to obtain information identification difference.
S1042, the server picks out the updated object label from the latest information record according to the information identification difference.
And the server makes a difference between the latest information identifier and the current information identifier to obtain an information identifier difference between the latest information identifier and the current information identifier. Since each object tag has an information identifier, what is actually included in the information identifier difference is the information identifier that is not included in the current information record of the terminal but is included in the latest information record of the server. Therefore, the server can sort out the updated object label from all the object labels in the latest information record according to each information identifier in the information identifier difference.
Illustratively, when the latest version id is 10 and the current version id is 8, the information id delta has an information id 9 and an information id 10. In this case, the server may find an object tag from the latest information record according to the information identifier 9, and find an object tag from the latest information record according to the information identifier 10, where the two found object tags are the updated object tags.
In the embodiment of the invention, the server can calculate the information identifier difference between the latest information identifier and the current information identifier, and then select the object label corresponding to each information identifier in the information identifier difference to obtain the updated object label, so that the subsequent client can realize incremental pulling of data according to the updated object label, and the data pulling efficiency is improved.
In some embodiments of the present invention, the latest information record includes data of each department; the data pulling request is a current department pulling request which carries a label of a current department; after the server determines the update object identifier from the information record by using the current information identifier and the latest information identifier, before the terminal integrates the update data with the data in the current information record to obtain the integrated data, that is, after S104 and before S107, the method may further include: S112-S113, as follows:
s112, the server screens out the current update object tag corresponding to the current department from the update object tags by using the tags of the current department; the current department is any one of the departments.
And S113, extracting the current updating data corresponding to the current updating object label from the latest information list, and returning the current updating data to the terminal.
Because the latest information record includes data of each department, when the data pull request is a current department pull request for the current department, the server can analyze the tag of the current department from the current department pull request, and then screen the update object tag by using the tag of the current department to obtain the current update object tag corresponding to the current department. And then, the server extracts the current updating data corresponding to the current updating object label from the latest information list and sends the current updating data to the terminal. And the terminal receives the current updating data returned by the server aiming at the current department pulling request. Then, the terminal integrates the updated data and the current directory data to obtain integrated data, that is, the process of S107 is changed to S1072: and the terminal integrates the current updating data and the data of the current department in the current information book to obtain integrated data, so that the integrated data are displayed. Therefore, the terminal can only realize data pulling aiming at the current department, and the data volume of the data pulling is further reduced.
It can be understood that, in the information record, each object tag can be regarded as a child node, each department tag can be regarded as a parent node, and when the server imports the object tag into the information record, the server can be regarded as adding the object tag under the department tag, that is, adding the child node to the parent node, thereby forming an information record framework with a tree structure. Accordingly, the server can extract the object tag of which the parent node is the tag of the current department from the update object tags as the current update object tag.
In the embodiment of the invention, the server can extract the current updated data by using the label of the current department in the current department pull request, thereby realizing the incremental pull aiming at the current department only, further reducing the data amount of the data pull and improving the data control efficiency.
In some embodiments of the present invention, the terminal is a user side, and the user side represents a terminal that only performs data pulling; the data pulling trigger control comprises a service handling control or a service control, and the data loading instruction is a service handling loading instruction or a service loading instruction; the data pulling request is a service handling object pulling request or a service object pulling request; after the server determines the update object tag from the information book by using the current information identifier and the latest information identifier, that is, after S104, the method may further include: S114-S116, as follows:
s114, the server screens out the target object labels from the updated object labels according to preset filtering information.
And when the data pulling request is a service handling object pulling request, the server screens out a service handling object label from the updated object labels according to preset service handling filtering information, and returns the service handling object label to the user side. And when the data pulling request is a service object pulling request, the server screens out a service object label from the updated object labels according to preset service filtering information, and returns the service object label to the user side.
It should be noted that, because each object tag is a tag of a department as a parent node, i.e., a prefix, and all the business handling objects may correspond to a department, e.g., a business handling department, at this time, the tag of the business handling department may be used as preset business handling filtering information.
Illustratively, when the tag of the service handling department is a partyid, the server directly takes the partyid as the preset service handling filtering information, so as to screen out the object tag with the prefix of the partyid from the updated object tag, and obtain the service handling object tag.
And S115, the server extracts target data corresponding to the target object tag from the latest information book and returns the target data to the user side.
Wherein the data pull request comprises: a service handling object pull request or a service object pull request; when the data pulling request is a service handling object pulling request, presetting filtering information as the preset service handling filtering information, wherein the target object label is a service handling object label, and the target data is service handling data; when the data pulling request is a service object pulling request, the preset filtering information is preset service filtering information, the target object label is a service object label, and the target data is service data.
And S116, the user side displays the target data in a target data display area popped up on the display interface.
After the server obtains the target object tag, the target data is extracted from the latest information record and is sent to the user side through the network. And the user side receives target data returned by the server aiming at the data pulling request, wherein the target data is data corresponding to a target object label screened out according to the data pulling request. And finally, the user side pops up a target data display area on the display interface, and then displays the target data in the target data display area. And the target data display area is positioned in a second preset area of the display interface.
When the data pulling trigger control is a service handling control, the data loading instruction is a service handling loading instruction, the data pulling request is a service handling object pulling request, the target object tag is a service handling object tag, and the target data is service handling object data; when the data pulling trigger control is a business control, the data loading instruction is a business loading instruction, the data pulling request is a business object pulling request, the target object label is a business object label, and the target data is business object data.
In an actual use scenario, the user terminal may be used by a business handling object, such as a tax handling person, or may be used by a business object, such as a tax payer. However, different operation objects use the user terminal, and the data pulled should be different. For example, when a certain business transaction object uses a user side, the detailed information of other business transaction objects and the detailed information of the business transaction object handled by the certain business transaction object can be pulled; when a certain business object uses a user end, the detailed information of the business object can be pulled only, and the detailed information of the business transaction object and other business objects cannot be pulled. Therefore, the server needs to perform different data pulling work for different operation objects.
When the user side is used by the service handling object, the triggered data loading instruction should be a service handling loading instruction, i.e. the user side is instructed to load the detailed information of the service handling object. At this time, the data pull request generated by the user side should be a service transaction object pull request. When the user side is used by the business object, the triggered data loading instruction should be a business loading instruction, i.e. the user side is instructed to record the detailed information of the business object. At this time, the data pull request generated by the user terminal should be a service pull request.
It can be understood that when any operation object uses the user side to pull data, it is necessary to log in its own account on the user side first. When the user logs in the account of the service handling object, the data loading triggering control is the service handling control, and the user receives a data loading instruction triggered on the service handling control and then the data loading instruction is a service handling loading instruction; when the user terminal logs in the account of the service object, the data loading triggering control is the service control, and the user terminal receives a data loading instruction triggered on the service control, namely the service loading instruction.
Illustratively, the embodiment of the present invention provides a data pull diagram of a business transaction object. Referring to fig. 7, when the user logs in the account of the service handling object, the data pulling triggering control on the display interface 7-1 pulls the control 7-2 for the service handling object, and after the service handling object triggers the control, the user pulls the service handling data corresponding to the service handling object label from the server. Then, the user terminal pops up a target data display area 7-3 on the display interface 7-1 to display the business handling data, for example, displaying the tax handling personnel XX7-31 and the detailed information thereof, the tax handling personnel XXX7-32 and the detailed information thereof, and the like. The embodiment of the present invention further provides a data pull schematic diagram of the service object, referring to fig. 8, when the account of the service object is logged on the user side, the data pull trigger control on the display interface 8-1 is the service object pull control 8-2; when the business object triggers the control, the user end pulls the business data corresponding to the business object label from the server, and then the user end pops up the target data display area 8-3 on the display interface 8-1 to display the business data, such as displaying taxpayer XXX8-31 and detailed information thereof.
As can be seen from comparing fig. 7 and fig. 8, in the embodiment of the present invention, when the user side is used by a service transaction object, the pulled data may be the detailed information of a plurality of service transaction objects, and when the user side is used by a service object, the pulled data may only be the detailed information of the service object.
In the embodiment of the invention, the server can also pull data for different operation objects according to the use condition of the user side, and at the moment, the server can adopt different filtering information to screen out different specific object tags from the updated object identification, so that the object tags in a specified range are pulled and displayed according to the actual use condition of the user side, the time overhead of the user side in data pulling is further reduced, and the data pulling is more efficient.
Referring to fig. 9, fig. 9 is a schematic diagram of an optional flow chart of a data pulling method according to an embodiment of the present invention. In some embodiments of the present invention, before the terminal receives a data loading instruction acting on a data pull trigger control of the display interface, and in response to the data loading instruction, generating a data pull request, that is, before S101, the method may further include: S201-S207, as follows:
s201, the server acquires the latest information record.
It should be noted that the latest information record includes an information record framework and information record data, where the information record framework represents the organization structures of the tags of each department and the tags of the full-volume objects in the latest information record, and the information record data is composed of the full-volume data corresponding to the full-volume objects.
S202, the server generates an information record framework mirror image according to the information record framework and generates an information record data mirror image according to the information record data.
S203, the server integrates the information record framework mirror image and the information record data mirror image to obtain an information record mirror image file.
After the server imports the object tags and the detailed information corresponding to the object tags into the latest information book, the server constructs an information book framework by using the tags of all the imported objects, namely, the full-volume object tags, and the tags of all departments, and composes information book data by using the detailed information of all the imported objects, namely, the full-volume data. At this time, in order to facilitate the terminal to directly load the latest information record and reduce the time consumption for pulling the latest information record, the server may directly perform mirroring on the information record framework to obtain an information record framework mirror image, and perform mirroring on the information record data to obtain an information record data mirror image. And then, the server integrates the information architecture mirror image and the information record mirror image to obtain an information record mirror image file.
It can be understood that, when the server generates the information record architecture image by using the information record architecture, the server may copy the information record architecture image only by using the organizational structures between the tags of each department, or copy all the organizational structures between the tags of each department and the tags of the full objects into the information record architecture image. Thus, the directory architecture image may describe at least the organizational hierarchy between various departments.
It should be noted that the image file may be understood as a copy of the original file, or a cache of the original file. Thus, the directory image file, i.e. the copy of the directory, or the cache of the directory. In the information record image file, there is all the information in the information record.
In some embodiments of the present invention, after the server generates the information record image file, the management end continues to import the new object tag and the detailed information corresponding to the new object tag into the information record, at this time, the server may generate a new information record image file according to the information record imported with the new object tag and the detailed information corresponding to the information object tag, so as to send the new information record image file to the terminal, thereby overwriting the old information record image file in the terminal.
And S204, the server sends the information record mirror image file to the terminal.
After obtaining the information record image file, the server sends the information record image to the terminal. The terminal receives an information record image file sent by the server, wherein the information record image file is generated by the server according to the latest information record. Therefore, when the terminal pulls the data, the data can be directly pulled from the information record mirror image file instead of the server, so that the time consumption and failure rate of pulling the data by the terminal are reduced, and the data control efficiency is improved.
S205, the terminal analyzes the information record framework mirror image from the information record mirror image file and displays the information record framework mirror image in a framework display area popped up on a display interface.
After receiving the information record mirror image file, the terminal analyzes the information record mirror image file to obtain an information record architecture mirror image and an information record data mirror image. And then, the terminal displays the information record framework mirror image in a framework display area of a display interface of the management terminal. It should be noted that the information record architecture mirror image describes the hierarchical structure between each department in the latest information record, and the information record architecture mirror image is displayed on the display interface of the management end, so that the hierarchical relationship of each department can be conveniently determined by an operation object, and data pulling is performed for a certain department.
It should be noted that the architecture display area is located in a third preset area of the display interface of the control end. In this embodiment of the present invention, both the position and the size of the third preset area may be set according to actual situations, for example, the third preset area is set in a left half portion of the display interface, and the size of the third preset area is set to be half of the size of the display interface, and the like.
Illustratively, referring to fig. 10, an embodiment of the invention provides a schematic diagram of an architecture exposure area. And a framework display area 10-2 is arranged on the left half part of the display interface 10-1 of the control end. In the architecture exposure area 10-2, an information record architecture image 10-3 is exposed. The information record architecture image 10-3 is provided with a pull-down menu of an organization architecture 10-31, and when the organization architecture 10-31 is clicked, three departments 10-311, 10-312 and 10-313 appear. The terminal sets a department viewing control for all three departments, for example, the characters of the departments 10 to 311 are set with the department viewing control, so that the first viewing instruction can be triggered as long as the operation object clicks the character of any one department.
And S206, when the terminal receives a first viewing instruction acting on the current department viewing control of the framework display area, responding to the first viewing instruction, and analyzing the current department object label included by the current department from the information book framework mirror image.
After the terminal receives a first viewing instruction of an operation object for any one of the identifications of each department, namely the label of the current department, in the framework display area of the display interface of the terminal, the terminal clearly has the requirement of viewing the detailed information of the object in the current department. At this time, the terminal will respond to the first viewing instruction, extract the object tags of all objects in the current department from the information book architecture image, and use the extracted object tags as the current department object tags.
It should be noted that the current department viewing control is used for triggering and pulling data corresponding to the current department, and the current department is any one of the departments; the current department view control is located in a second control region of the architecture display region. And the position and the size of the second control area can be set according to actual conditions.
It can be understood that, in the information record architecture, each object tag may be regarded as a child node, each department tag may be regarded as a parent node, and when the server imports the object tag into the information record, it may be regarded as adding the object tag to the department tag, that is, adding the child node to the parent node, thereby forming the information record architecture with the tree structure. Thus, the directory architecture image may also be a tree structure.
Illustratively, an embodiment of the present invention provides a schematic diagram of an information record architecture image, see fig. 11, in which an information record architecture image has a parent department tag 11-1. Under the parent department tag 11-1, there are a department tag 11-2, a department tag 11-3, and a department tag 11-4. In the department label 11-2, there are an object label 11-21 and a sub-department label 11-22, wherein, under the sub-department label 11-22, there are an object label 11-23 and an object label 11-24; under the department tag 11-3, there are an object tag 11-31, an object tag 11-32 and an object tag 11-34; under the department tag 11-4, there are again an object tag 11-41, an object tag 11-42 and an object tag 11-43. The label of the current department in the embodiment of the invention can be any one of a parent department label 11-1, a department label 11-2, a department label 11-3, a department label 11-4 and a sub-department label 11-22.
And S207, the terminal extracts the current department data corresponding to the current department object label from the information record data mirror image and displays the current department data in a data display area of the display interface.
After the current department object label is determined, the terminal continues to analyze the information record data mirror image, then searches the data corresponding to each object label in the current department object label in the analyzed information record data mirror image, gathers the data corresponding to each searched object label as the current department data, and extracts the current department data. And then, the terminal displays the data corresponding to each object label in the current data in the data display area so that the operation object can conveniently acquire the detailed information of the object in the current department on a display interface of the terminal.
It should be noted that, when the terminal loads the data in the information record for the first time, if the terminal directly pulls the entire data of the information record from the server, the time consumption is likely to be large, and the data pulling of the large data volume is likely to fail, so that the data control efficiency is low. When the data of the information record is loaded for the first time, the terminal directly extracts the data from the image file of the information record, and the terminal does not need to pull the whole data from the server, so that the time consumption of the first data loading can be greatly reduced, the failure rate of the first data loading is reduced, and the efficiency of data control is improved. Furthermore, in the embodiment of the invention, the terminal can also extract data only for the current department to be checked by the operation object, so that the time consumption of first data loading is further reduced, and the data control efficiency is further improved.
Exemplarily, referring to fig. 12, a second schematic diagram of a data display area is provided in the embodiment of the present invention. In the right half of the display interface 12-1 of the terminal, a data presentation area 12-2 is provided. In the data display area 12-2, data corresponding to three object tags are displayed, which are respectively data corresponding to the object tags 12-21: name XXX, job product manager, XXX department; data corresponding to object tags 12-22: name XX, job engineer, XXX department; data corresponding to object tags 12-23: name XX, job senior product manager, XXX department. Therefore, the operator can acquire the data of the current department from the display interface of the management end.
In the embodiment of the invention, the server can generate the information record mirror image file for the terminal and send the information record mirror image file to the terminal, so that the terminal can directly extract from the information record mirror image file when the information record is loaded for the first time, and the time consumption of the terminal when the information record is loaded for the first time is reduced. Meanwhile, when receiving a first viewing instruction for the current department, the terminal can only extract the current data corresponding to the current department from the information record image file, so that the time consumption for loading the information record for the first time is further reduced.
Referring to fig. 13, fig. 13 is a third alternative flowchart of the data pulling method according to the embodiment of the present invention. In some embodiments of the present invention, the terminal is a control end, and the control end represents a terminal for data import and data pull; before the control end receives the information record image file sent by the server, the server obtains the latest information record, that is, the specific implementation process in S201 may include:
and S2011, the control terminal generates a label of the object to be imported for the object to be imported, and acquires the data to be imported of the object to be imported when receiving a data acquisition instruction acting on a data acquisition control of the display interface.
The server acquires the latest information record and essentially performs data import on the latest information record. When data is imported, the control end needs to target the object tag to be imported into the object to be imported, so that the object tag to be imported is used for distinguishing the object to be imported. Meanwhile, the control end can obtain the data to be imported corresponding to the object to be imported.
It should be noted that, the control end allocates a to-be-imported object label to the to-be-imported object, which can be understood as allocating a label capable of uniquely identifying the identity of the to-be-imported object, for example, allocating a job number, a serial number, and the like. The data to be imported may be the object to be imported and provided to the control end, for example, the object to be imported is sent to the control end after being filled with the detailed information by the personal terminal corresponding to the object to be imported, and the control end saves the detailed information.
In the embodiment of the invention, a data acquisition control is arranged on the display interface. When the operation object of the control end clicks the data acquisition control, the control end starts to acquire the detailed information of the object to be imported, namely the data to be imported, which is obtained in advance.
It is understood that the data to be imported may have unique information fields, such as a mailbox address, a mobile phone number, and the like, and may also have non-unique information fields, such as a name, an age, a gender, and the like.
For example, when the control end is an administrator terminal in the enterprise, which is responsible for managing employee information, when a new employee enters into the role, the control end needs to import detailed information of the new employee into the information book of the enterprise. At this time, the new employee is the object to be imported, the control end assigns a job number to the new employee, and acquires personal information such as a mobile phone number, a name, an age and the like sent by the new employee through the personal terminal of the new employee as data to be imported.
It is understood that the data acquisition control is located in a third control area of the display interface; the position and size of the third control area can be set according to actual conditions.
And S2012, when the control end receives a data import instruction acted on the data import trigger control of the display interface, sending the object label to be imported and the data to be imported to the server, so that the server imports the object label to be imported and the data to be imported into the latest information book.
It should be noted that, on the display interface, a data import trigger control is provided. When the operation object of the control end triggers the data import triggering control, a data import instruction is generated, and at the moment, the control end sends the object label to be imported and the data to be imported to the server through the network. And the server receives the object label to be imported and the data to be imported which are sent by the control end. Therefore, the server can import the data to be imported and the data to be imported into the information book together in the subsequent process, so that the data of the object to be imported is imported, and the latest information book is obtained.
It can be understood that the data import trigger control is arranged in a fourth control area of the display interface; the position and the size of the fourth control area can be set according to actual conditions.
S2013, the server obtains the historical reverse index corresponding to the historical object label.
After receiving the object to be imported label and the data to be imported corresponding to the object to be imported, the server performs conflict detection on the data to be imported to judge whether the data to be imported conflicts with the imported historical import data, so that information errors in the latest information book are avoided. At this time, the server may first obtain the history reverse index corresponding to the history object tag from the index set, so as to facilitate subsequent determination of whether the data to be imported and the history imported data conflict with each other by using the history reverse index.
It is understood that the history object refers to an object that has undergone data import, that is, an object that has stored detailed information in an information book. The history object tag is a unique tag of the history object, and the history import data is import data corresponding to the history object, namely detailed information of the history object.
It should be noted that the history inverted index represents a mapping from history import data corresponding to a history object tag. For example, when the history object is a certain employee in an enterprise, the history reverse index refers to the mapping from the mobile phone number of the employee or the personal mailbox address of the employee to the employee's job number.
Further, the history inverted index may be in the form of a key-value pair. For example, the key-value pair relationship obtained by using the history import data as a key and the history object tag as a value is the history inverted index. Of course, the history reverse index may also exist in the form of a data table, and the embodiment of the present invention is not limited herein.
S2014, the server generates a reverse index for the data to be imported and the object tag to be imported.
After the server obtains the historical reverse index, a mapping relation is generated for the data to be imported and the object label to be imported, and therefore the reverse index is obtained. That is, the inverted index characterizes the mapping from the data to be imported to the object tag to be imported.
It will be appreciated that, similar to the historical inverted index, the inverted index may also be in the form of key-value pairs. At this time, the server generates a key-value pair by using a character string composed of all information fields in the data to be imported as a key and using the object tag to be imported as a value, and thereby uses the generated key-value pair as a reverse index. In order to further reduce the data amount required to be pulled during collision detection, the server may further generate a key value pair by using only the unique information field in the data to be imported as a key and the tag of the import object as a value, so as to obtain the reverse index. Of course, the inverted index may also be in the form of a data table, and the embodiment of the present invention is not limited herein.
For example, when the label of the object to be imported is the job number 0123 of a new employee, the data to be imported has the last name of the new employee: xxx and the personal mailbox xxx @ qq.com of the new employee, the server uses a character string consisting of xxx and xxx @ qq.com as a key, and 0123 as a value to generate a key-value pair, thereby obtaining a reverse index. The server can also generate a key value pair by only using the personal mailbox xxx @ qq.com as a key and using the job number 0123 as a value, thereby obtaining the reverse index.
In some embodiments of the invention, the historical inverted index and the inverted index may both be in the form of key-value pairs, or may both be in the form of data tables. In other embodiments of the present invention, one of the historical inverted index and the inverted index may also be in a key-value pair form, and the other is in a data table form.
It should be noted that, since whether the history reverse index is obtained first or the reverse index is generated first does not have an influence on the final data collision detection, in some embodiments of the present invention, the server may also generate the reverse index first and then obtain the history reverse index, that is, first perform S2014 and then perform S2013. Specifically, whether the reverse index is generated first or the historical reverse index is obtained first may be set according to actual conditions, and the embodiment of the present invention is not limited herein.
S2015, the server determines whether the data to be imported and the historical import data conflict or not by using the historical reverse index and the reverse index.
After obtaining the reverse index and the historical reverse index, the server performs conflict detection on the historical reverse index and the reverse index. The server judges whether the data to be imported and the historical imported data conflict or not by utilizing the historical reverse index and the reverse index, and substantially judges whether a part of conflict exists between the data to be imported and the historical imported data or not. When there is a contradiction between the data to be imported and the historical import data, if the data to be imported is directly imported into the information book, the accuracy of the information book is inevitably affected, and subsequent data pulling and data query are affected.
For example, the mobile phone numbers, the personal mailboxes, and the like of different objects should be different, and if the server detects that the mobile phone numbers of the historical object and the object to be imported are the same through the reverse index and the historical reverse index when the server detects a conflict, the server determines that a conflict exists between the data to be imported and the historical import data.
And S2016, when the data to be imported and the historical import data do not conflict, the server imports the object tag to be imported and the data to be imported into the latest information book.
In order to ensure the accuracy of the information record, the server only needs to complete conflict detection on the data to be imported and the historical import data and definitely does not conflict with the historical import data, and then the server imports the object label to be imported and the data to be imported into the information record, so that the data import aiming at the object to be imported is realized. Thus, the server can acquire the information record.
It should be noted that the directory has a directory structure and directory data. The information record framework describes the relationship between each department and the full-scale objects in the information record, namely, the information record framework indicates which department each object in the full-scale objects belongs to. The information record framework is constructed by the labels of all departments and the labels of all objects in the information record. The directory data is used for storing the detailed information of the full-scale object, namely the directory data is composed of the full-scale data corresponding to the full-scale object. At this time, when the server imports the object tag to be imported into the information book, the object tag to be imported is imported into the information book framework, that is, the object tag to be imported serves as a child node of a tag of a certain department. In other words, when the server imports the object to be imported tag into the directory framework, it is determined to which department the object to be imported belongs. When the server imports the data to be imported into the information record, the data to be imported is added into the data of the information record.
In other embodiments of the invention, there is a potential for conflicts to exist between the data to be imported and the historical import data. When there is a conflict between the data to be imported and the history import data, a part in which there is a conflict between the detailed information provided for the object to be imported and the detailed information provided for the history object is described. At this time, in order to ensure the accuracy of the data in the information record, the server may return a conflict prompt to the control end to prompt the control end to check the data to be imported to see whether the imported data is incorrect. When the control end checks and corrects the data to be imported, the control end can send the data to be imported and the object label to be imported to the server again so as to restart data import.
In the embodiment of the invention, the server can judge whether the conflict exists between the history import data and the data to be imported only by using the history reverse index corresponding to the history import data and the reverse index corresponding to the data to be imported, and import the data to be imported and the object label to be imported when the conflict does not exist. Therefore, the server does not need to compare and check the historical import data and the data to be imported one by one, the data size pulled by conflict detection is reduced, the time consumption of data import is reduced, and the data control efficiency is improved.
In some embodiments of the present invention, the server determines whether the data to be imported and the historical import data conflict with each other by using the historical reverse index and the reverse index, that is, a specific implementation process of S2015 may include: s2015a or S2015b, as follows:
s2015a, when the history reverse index and the reverse index have a conflict, the server determines that the data to be imported and the history import data conflict.
When the server judges whether the data to be imported and the historical imported data conflict or not by using the historical reverse index and the reverse index, the server substantially judges whether the conflict exists between the historical reverse index and the reverse index or not. Under normal conditions, the server uses one piece of unique data, the indexed object tag is one, and if a plurality of object tags indexed by the same piece of unique data exist, the data conflict between the objects is necessarily shown. Based on this, the server indexes with keys in the inverted index to determine whether the history object tag can be indexed with the data to be imported. If the history object tag is indexed out, the fact that the history reverse index and the reverse index conflict is indicated, and therefore the fact that the same information data as the data to be imported already exists in the history import data is indicated, at this time, the server can determine that the data to be imported and the history import data conflict.
Illustratively, when the label of the object to be imported is the job number 0123, and the key composed of all information fields of the data to be imported is "xxx, xxx @ qq.com, 155 xxxxxxxxxx", if a job number 003 can be found by using the key, the information of the job number 003 and the information of the object to be imported are repeated, and at this time, the data to be imported corresponding to the object to be imported needs to be checked.
S2015b, when the history reverse index and the reverse index do not have a conflict, the server determines that the data to be imported and the history import data do not conflict.
When the server uses a character string formed by each information field in the data to be imported as a key and the index does not reach the history object tag, the history reverse index and the reverse index are not conflicted, that is, the data to be imported and the history import data are not repeated, and the data to be imported can be imported into the information record. Therefore, when the history reverse index and the reverse index do not have a conflict, the server may determine that the data to be imported and the history import data do not conflict.
In the embodiment of the invention, the server can determine whether the data to be imported and the historical imported data conflict or not by judging whether the historical reverse index conflicts or not, so that the conflict detection is finished only by utilizing the reverse index and the historical reverse index, the data volume pulled by the conflict detection is reduced, the time consumption and the failure rate of data import are reduced, and the data control efficiency is improved.
In some embodiments of the present invention, after the server imports the tag of the object to be imported and the data to be imported into the latest information record, that is, after S2016, the method further includes: S2017-S2018, as follows:
s2017, the server generates forward mapping for the object label to be imported; the forward mapping characterizes the mapping from the object tag to be imported to the data to be imported.
After the object tag to be imported and the data to be imported are successfully imported into the information book by the server, in order to facilitate subsequent quick search of the data to be imported passing through the object to be imported in the information book, the server additionally establishes mapping from the object tag to be imported to the data to be imported, that is, generates forward mapping for the object representation to be imported.
It should be noted that, because the object tag has uniqueness, the server may directly use the object tag to be imported as a key and the data to be imported as a value to generate a forward mapping in the form of a key-value pair. Of course, in other embodiments of the present invention, the server may further establish a mapping from the object to be imported to the data to be imported in the form of a data table, which is not limited herein.
S2018, writing the reverse index into the index set and writing the forward mapping into the mapping set by the server; the index set comprises historical reverse indexes corresponding to the historical object labels, and the mapping set comprises historical forward mappings corresponding to the historical object labels.
After the forward mapping is obtained, the server writes the forward mapping into the mapping set. The server generates a forward mapping for the object tag to be imported so as to directly search the data to be imported by using the object tag to be imported, and also needs to store the mapping between the data to be imported and the object tag to be imported so as to perform collision detection on the data to be imported that has been successfully imported and new data to be imported in the next round of data import when the control end performs the next round of data import. Thus, the server writes the forward map to the map set and also writes the reverse index to the index set.
It should be noted that the history reverse index corresponding to the history object tag is originally stored in the index set, and after the server writes the reverse index into the index set, the index set includes the history reverse index and the reverse index. Similarly, the history forward mapping corresponding to the history object tag is originally stored in the mapping set, so that after the forward mapping is written, the mapping set includes the history forward mapping and the forward mapping. The history forward mapping is generated by the server after the history import data and the history object label are imported into the information book.
It will be appreciated that in some embodiments of the present invention, the index set and the mapping set may be included in the directory, i.e., the directory may be composed of a directory architecture, directory data, the index set and the mapping set. In other embodiments of the present invention, the index set and the mapping set may also be stored separately, that is, the server stores three contents of the information record, the index set and the mapping set.
In the embodiment of the invention, the server can also generate the forward mapping from the object tag to be imported to the data to be imported, and the forward mapping is stored in the mapping set, so that the data to be imported can be conveniently found directly from the object tag to be imported. Meanwhile, the server also stores the reverse index in the index set so as to judge whether new data waiting for import conflicts with the imported data to be imported in the next data import process, so that the server can complete conflict detection with less time consumption in the data import process of each round, and the data control efficiency is improved.
In some embodiments of the present invention, the server writes the reverse index into the index set and writes the forward map into the map set, that is, the specific implementation process at S2018 may include: s2018a-S2018c as follows:
s2018a, when the server obtains the write-in failure prompt, the write-in failure information is found out from the reverse index and the forward mapping through the account checking service.
In practical situations, when the server writes the forward mapping into the mapping set and writes the reverse index into the index set, writing failures may occur, and when any one of the forward mapping and the reverse index fails to write, a writing failure prompt is generated. When the forward mapping is successfully written, it is described that the data to be imported has already been imported into the information record, and at this time, if the reverse index writing fails, when the server performs the next round of data import, it is impossible to detect whether a conflict exists between the data to be imported and the new data waiting for import in the next round, that is, it is impossible to detect a conflict, and at this time, a conflict record exists in the information record. When the forward mapping writing fails, it indicates that the data to be imported may not be successfully imported into the information record, at this time, if the backward index writing succeeds, the server detects a conflict when performing the next round of data import, but actually there is no conflict data, so that new data that should be imported into the information record in the next round of data import cannot be imported into the information record. Therefore, the server must guarantee that the forward mapping and the backward index of the object tag to be imported, all successful writes, or all failed writes. Based on this, when the server obtains the write-in failure prompt, the account checking service in the server is called, and then the write-in failure information is found out from the reverse index and the forward mapping through the object server.
It is to be understood that the write failure hint is used to hint that there is write failure information in the reverse index and the forward map, that is, when any one of the reverse index and the forward map fails to write, the write failure hint is triggered. In some embodiments of the invention, the write failure hint simply indicates information with a write failure, but does not specify which of the reverse index and forward map information write failed. Therefore, the server needs to invoke the reconciliation service to determine which of the reverse index and the forward map is the write failure information, that is, determine the write failure information.
It should be noted that when determining write failure information through the reconciliation service, the server finds whether there is an object tag to be imported and data to be imported in the index set and the mapping set. When the index set has the object tag to be imported and the data to be imported, the backward index is successfully written; and when the object label to be imported and the data to be imported exist in the mapping set, the forward mapping is successfully written. Otherwise, when the object tag to be imported and/or the data to be imported do not exist in the index set, the writing failure of the reverse index is indicated, that is, the reverse index is the writing failure information; when the object tag to be imported and/or the data to be imported do not exist in the mapping set, it is indicated that the forward mapping fails to write, that is, the forward mapping is write failure information.
S2018b, when the write failure information is the reverse index, the server continues to write the reverse index into the index set.
S2018c, when the writing failure information is the forward mapping, the server continuously writes the forward mapping into the mapping set.
When the server determines that the write failure information is the reverse index, the server will continue to try to write the reverse index into the index set, and when the write failure information is the forward map, the server will continue to write the forward map into the map set until the write of the reverse index and the forward map is successful. In this way, the server can ensure that all writes to the reverse index and forward map succeed or all writes fail.
It should be noted that, in some embodiments of the present invention, before writing the backward index and the forward map, the server also registers the writing operation of the backward index and the writing operation of the forward map in the reconciliation service, so that the server can start writing the forward map and the backward index.
In the embodiment of the invention, when the server obtains the write-in failure prompt, the write-in failure information can be searched from the forward mapping and the reverse index through the account checking service, so that the write-in failure information is continuously written into the corresponding set, the consistency of the forward mapping and the reverse index is ensured, and the accuracy of the collision detection in the next round of data import is ensured.
In the following, an exemplary application of the embodiments of the present invention in a practical application scenario will be described.
The embodiment of the invention is realized in the scene of data control of the enterprise address book. In the data control scenario, there are a server, a management side, and a client. The server is used for issuing data to the management terminal and the client terminal when the data is pulled; the management end is used for importing data to the server and pulling the data from the server; the client user pulls data from the server.
In an enterprise address book (information book), the organization relation between departments and members of an enterprise is stored through a tree structure (information book architecture), and the detailed information of each member is separately stored through a member information table (information book data). Wherein each department has a unique id, namely, a part id (label of each department) and a parent department id, namely, a part id; each member has a unique id, vid (object tag), and a member can be located in multiple departments simultaneously, each department containing zero to multiple members. The member information userinfo (detailed information of the object) includes a user name, a mobile phone number, a name, and the like. Meanwhile, the enterprise address book additionally stores a mapping from vid to userinfo, namely a forward record (forward mapping), and a mapping from an information field of userinfo to vid, namely a reverse index.
When importing data into the enterprise address book, the enterprise address book provides an import interface. When the management end imports data into the enterprise address book, whether conflict exists between newly added data (to-be-imported data) and existing data (historical import data) in the enterprise address book can be judged by detecting whether conflict exists between reverse index writing operation. And when the data are not conflicted, the newly added data can be written into the enterprise address book. Therefore, whether newly-added data conflicts with existing data in the address book can be quickly judged only by detecting whether the reverse index writing operation conflicts, so that the time consumed for importing the data into the address book of the enterprise is greatly reduced, for example, the time consumed for importing the data of a single batch of 2w people is reduced from 25min to 2 min.
When the management end writes data into the enterprise address book, the management end can also write forward records and reverse indexes of member information at the same time. However, forward recording and writing of multiple backward indexes must guarantee total success or total failure, and if partial success, the following problems may occur:
1) the reverse index write was successful, but the forward record write failed: leading to conflict of write operation of the reverse index, but no conflict member information exists actually, so that the newly added data cannot be imported;
2) forward record write was successful, but reverse index write failed: the conflict of the write operation of the reverse index cannot be detected, so that the conflict record appears in the address list of the enterprise.
In order to avoid the problem of collision detection caused by successful writing of the forward recording part and the reverse index part, a transaction center (reconciliation service) can be accessed in the writing process of the forward recording part and the reverse index part, so that the writing of the credit investigation recording part and the reverse index part is always successful or fails.
Fig. 14 is a schematic diagram illustrating a writing process of forward recording and backward indexing according to an embodiment of the present invention. Referring to fig. 14, the writing process of the forward recording and the backward index includes:
s301, the account number newly-added service registers the writing tasks of forward records and reverse indexes in the transaction center.
The account adding service, the account storing service and the transaction center are software services in the server.
S302, the account newly-added service writes a forward record into the account storage service.
And S303, writing the reverse index into the account storage service by the account newly-added service.
And S304, when the account number newly-added service receives a prompt that the writing process fails, initiating a reconciliation request to the transaction center.
The indication of the failure in the writing process means that the failure in the writing process is unknown, specifically, the writing failure in the forward recording or the writing failure in the reverse index.
S305, after receiving the reconciliation request, the transaction center invokes the reconciliation logic to find out whether the write-in failure is a forward record or a reverse index (find out write-in failure information).
And S306, the account newly-added service writes the failed information into the account storage service again.
When a client pulls data from an enterprise address book, in order to save the overhead of pulling and updating the enterprise address book by the client, a server generally performs incremental pulling based on change flow for the client. Since the server generates a Hashode node for each department and member, the type, id information and import order (information identification) of the node are recorded in the Hashode node, and the change pipeline (information identification delta) is stored in a data table in the form of a Hashode (with updated object tags in it) list. The composition of Has hnode is as follows:
Figure BDA0002547007540000371
the enterprise address book separates member information and version when updating, namely Hashnode is used for recording the vid changed in the enterprise address book. The client stores the version number (current information identifier) of the enterprise address book (current information book) in the client. When the enterprise address book in the client performs incremental updating, the server can calculate the architecture differential flow to send to the client according to the received client version number and the current architecture version number (latest information identifier) of the enterprise address book (latest information book) in the server, and the client requests specific data content (updating data) of the differential flow after local comparison (checking the object tag to be pulled and each object tag of the information book in the client), thereby completing the incremental updating.
As shown in FIG. 15, an embodiment of the present invention provides a schematic diagram of incremental updates. The version of the local enterprise address book of the client (the user side) is a client local framework 15-1, the version of the enterprise address book in the server is changed into a background organization framework 15-2 along with the increment of a time axis, the server calculates difference flow 15-3 between the version of the business address book in the server and the version of the local enterprise address book of the client, and sends data corresponding to the difference flow 15-3 to the client to realize incremental updating.
When the client pulls the enterprise address book from the server for the first time, the differential flow is full data. At this time, the server may set the visibility rule in conjunction with the actual use of the client.
In the following, the visible rule when the client first pulls the address book from the server will be described by taking the tax mode as an example.
When the client is used in the tax mode, the number of tax office tax handling personnel (business handling objects) is small, and the tax handling personnel are used as an enterprise group and need to search and communicate with each other through an enterprise address book; moreover, the organizational structure of the tax clerk cannot be viewed by the tax clerk (business object). The taxpayers generally comprise all taxpayers at enterprises and even provincial and municipal levels, the member size is large, and the member information is sensitive and cannot be viewed by other people. Therefore, the server can centralize all tax payers in one taxpayer department (business department) and tax office transactants in one tax office department (business transacting department).
When tax office tax clerks use the client to pull the enterprise address book, the server can expand the root department part of the tax office, obtain the full sub-department lists { subpartyid1, subpartyid2, … } of the root department, and form a set for filtering tax clerks (preset service processing filtering information). Meanwhile, the server can also obtain a parent department path list { parentid1, parentid2, … } of the taxpayer, so as to directly provide the Hashnode node of the taxpayer. When the tax clerks pull the total amount, the nodes which are equal to the partyid in the hash.
When the taxpayer pulls, only the Hashonde of the taxpayer and the path where the taxpayer is located needs to be obtained, at this time, the server obtains a path list { parentid1, parentid2, … } of the father department of the taxpayer, and the vid and the path list form a filtering list (preset service filtering information). And when the taxpayer pulls, screening out the nodes which are equal to the vid in the Hashnode in the full hash and returning (business object label).
It should be noted that the above method may be used in other scenarios besides the tax mode, for example, in a scenario of examination result management for a class.
The management end (control end) generally needs to display the full view of the enterprise address book, and in order to avoid failure of the management end in reading the enterprise address book, the server can make an address book mirror image (information book mirror image file) for the management end and reside the address book mirror image in the management end. The management end can extract the detailed information of each member from the address book mirror image when the enterprise address book is displayed for the first time. Specifically, when the management terminal displays the enterprise address book, two levels of list display can be performed. When an operator clicks a certain department on the management end, the data of the sub-department of the object is actually pulled and displayed.
Referring to fig. 16, fig. 16 is a schematic view of an enterprise address book displayed by a management end in a tax mode according to an embodiment of the present invention. The organization structure 16-1 of the enterprise address book comprises a tax bureau member 16-11, a taxpayer member 16-12 and other members 16-13, and when an operator clicks the taxpayer member 16-12, detailed information of the name 16-2, the duty 16-3, the department 16-4 and the like of the taxpayer is displayed in a display area (data display area). The departments of the taxpayers are all tax payers members.
After the enterprise address book is changed, the management end can adopt an incremental updating strategy similar to the client end, and only the updated data part in the enterprise address book is pulled, so that the enterprise address book is updated quickly.
Through the process, when data is imported into the enterprise address book, whether newly-added data conflicts with existing data in the enterprise address book or not can be quickly judged through whether reverse index write operation conflicts or not, so that the time consumed by importing the data is reduced, and the data control efficiency is improved; when data is pulled, increment pulling can be achieved based on difference running water, time consumption of data pulling is reduced, and data control efficiency is improved.
Continuing with the exemplary structure of the data pulling device 255 provided by the embodiment of the present invention implemented as software modules, in some embodiments, as shown in fig. 2, the software modules stored in the data pulling device 255 of the first memory 250 may include:
a first receiving module 2551, configured to receive a data pull request sent by a terminal; the data pulling request carries a current information identifier, and the current information identifier is an identifier of a current information record in the terminal;
an identifier obtaining module 2552, configured to, in response to the data pulling request, obtain an identifier of the latest information; the latest information identifier is an identifier of the latest information record;
an object determining module 2553, configured to determine, by using the current information identifier and the latest information identifier, an updated object tag from the latest information record; the updated object label represents an object label subjected to data updating and a newly added object label in the latest information record;
a data extraction module 2554, configured to extract, from the latest information record, update data corresponding to the update object tag;
a first sending module 2555, configured to return the update data to the terminal.
In some embodiments of the present invention, the first sending module 2555 is further configured to return the updated object tag to the terminal;
the first receiving module 2551 is further configured to receive a data issuing request returned by the terminal for the updated object tag; the data issuing request carries an actual pull object label;
the data extracting module 2554 is further configured to, in response to the data issuing request, obtain actual pull data corresponding to the actual pull object tag from the latest information record, and send the actual pull data to the terminal.
In some embodiments of the present invention, the object determining module 2553 is specifically configured to perform difference comparison between the latest information identifier and the current information identifier to obtain an information identifier difference; and selecting the updated object label from the latest information record according to the information identification difference.
In some embodiments of the present invention, the latest information record includes data of each department; the data pulling request is a current department pulling request which carries a label of a current department;
the object determining module 2553 is further configured to filter out, from the updated object tags, a current updated object tag corresponding to the current department by using the tags of the current department; the current department is any one of the departments;
the data extracting module 2554 is further configured to extract current update data corresponding to the current update object tag from the latest information record;
the first sending module 2555 is further configured to return the current update data to the terminal.
In some embodiments of the present invention, the terminal is a user side, and the user side represents a terminal that only performs data pulling;
the object determining module 2553 is further configured to screen out a target object tag from the updated object tags according to the preset filtering information;
the data extraction module 2554 is further configured to extract target data corresponding to the target object tag from the latest information record;
the first sending module 2555 is further configured to return the target data to the user side;
wherein the data pull request comprises: a service handling object pull request or a service object pull request; when the data pulling request is the service handling object pulling request, the preset filtering information is preset service handling filtering information, the target object tag is a service handling object tag, and the target data is service handling data; when the data pulling request is the service object pulling request, the preset filtering information is preset service filtering information, the target object tag is a service object tag, and the target data is service data.
In some embodiments of the present invention, the data control device 255 further comprises: a mirror generation module 2556 and a data import module 2557;
the data import module 2557 is configured to obtain the latest information record; the latest information record comprises an information record framework and information record data, wherein the information record framework represents the organization structures of labels of all departments and labels of full-volume objects in the latest information record, and the information record data consists of full-volume data corresponding to the full-volume objects;
the mirror image generating module 2556 is configured to generate an information record architecture mirror image according to the information record architecture, and generate an information record data mirror image according to the information record data; integrating the information record architecture mirror image and the information record data mirror image to obtain an information record mirror image file;
the first sending module 2555 is further configured to send the information record image file to the terminal.
In some embodiments of the present invention, the terminal is a control end, and the control end represents a terminal for data import and data pull;
the first receiving module 2551 is further configured to receive an object tag to be imported and data to be imported, where the object tag to be imported and the data to be imported are sent by the control end;
the data import module 2557 is configured to obtain a history reverse index corresponding to the history object tag; the historical reverse index represents mapping from historical import data corresponding to a historical object to the historical object label; generating a reverse index for the data to be imported and the object tag to be imported; the reverse index represents the mapping from the data to be imported to the object label to be imported; determining whether the data to be imported and the historical imported data conflict or not by using the historical reverse index and the reverse index; and when the data to be imported and the historical import data do not conflict, importing the object label to be imported and the data to be imported into the latest information book.
In some embodiments of the present invention, the data importing module 2557 is specifically configured to determine that the data to be imported and the historical imported data conflict when the historical reverse index and the reverse index conflict; and when the historical reverse index and the reverse index do not have conflict, determining that the data to be imported and the historical imported data do not conflict.
In some embodiments of the present invention, the data import module 2557 is further configured to generate a forward mapping for the object to be imported; the forward mapping represents the mapping from the object label to be imported to the data to be imported; writing the reverse index to an index set and writing the forward map to a map set; wherein the index set comprises a history reverse index corresponding to the history object tag, and the mapping set comprises a history forward mapping corresponding to the history object tag.
In some embodiments of the present invention, the data importing module 2557 is further configured to, when a write failure prompt is obtained, find out write failure information from the reverse index and the forward mapping through an account checking service; the write failure prompt is used for prompting that write failure information exists in the reverse index and the forward mapping; when the writing failure information is the reverse index, continuing to write the reverse index into the index set; when the writing failure information is the forward mapping, continuing to write the forward mapping into the mapping set.
Continuing with the exemplary structure of the data presentation device 455 provided by the embodiments of the present invention implemented as software modules, in some embodiments, as shown in fig. 3, the software modules stored in the data presentation device 455 of the second memory 450 may include:
the request generation module 4551 is configured to, when a data loading instruction acting on a data pull trigger control of a display interface is received, generate a data pull request in response to the data loading instruction; the data pulling trigger control is positioned in a first control area of the display interface;
a second sending module 4552, configured to obtain a current information identifier corresponding to a current information record, carry the current information identifier in a data pull request, and send the data pull request to a server; the current information record is an information record in the terminal;
a second receiving module 4553, configured to receive update data returned by the server for the data pull request;
a data integration module 4554, configured to integrate the updated data with the data in the current information record to obtain integrated data;
the data display module 4555 is configured to display the integrated data in a data display area of the display interface, so as to implement data pulling; the data display area is located in a first preset area of the display interface.
In some embodiments of the present invention, the data display device 455 may further include: a tag checking module 4556;
the second sending module 4552 is further configured to receive an update object tag returned by the server for the data pull request;
the tag checking module 4556 is configured to check the updated object tag with each object tag in the current information record, and determine an actual pulled object tag;
the second sending module 4552 is further configured to carry the actual pull object tag in a data issuing request, and send the actual pull object tag to the server;
the second receiving module 4553 is further configured to receive actual pull data returned by the server based on the data issuing request;
correspondingly, the data integration module 4554 is further configured to integrate the actual pull data and the data in the current information book to obtain the integrated data.
In some embodiments of the present invention, the terminal is a user side, and the user side represents a terminal that only performs data pulling; the data pulling trigger control comprises a service handling control or a service control, and the data loading instruction is a service handling loading instruction or a service loading instruction; the data pulling request is a service handling object pulling request or a service object pulling request;
the second receiving module 4553 is further configured to receive target data returned by the server for the data pull request; the target data is the data corresponding to the target object label screened out according to the data pulling request;
the data presentation module 4555 is further configured to present the target data in a target data presentation area popped up on the display interface; the target data display area is located in a second preset area of the display interface;
when the data pulling trigger control is the service handling control, the data loading instruction is the service handling loading instruction, the data pulling request is the service handling object pulling request, the target object label is a service handling object label, and the target data is service handling object data; when the data pulling trigger control is the service control, the data loading instruction is the service loading instruction, the data pulling request is the service object pulling request, the target object tag is a service object tag, and the target data is service object data.
In some embodiments of the present invention, the second receiving module 4553 is further configured to receive an information record image file sent by the server; the information record mirror image file is generated by the server according to the latest information record;
the data integration module 4554 is further configured to parse an information record architecture image from the information record image file, and present the information record architecture image in an architecture display area popped up on the display interface; the information record framework mirror image describes a hierarchical structure among all departments in the information record, and the framework display area is located in a third preset area of a display interface of the terminal; when a first viewing instruction acting on a current department viewing control of the framework display area is received, responding to the first viewing instruction, and analyzing a current department object label included by the current department from the information record framework mirror image; the current department viewing control is used for triggering and pulling data corresponding to the current department, and the current department is any one of the departments; the current department viewing control is located in a first control area of the architecture display area; extracting current department data corresponding to the current department object tag from the information book data mirror image;
the data display module 4555 is further configured to display the data of the current department in a data display area of the display interface.
In some embodiments of the present invention, the terminal is a control end, and the control end represents a terminal for data import and data pull; also included in the data presentation device 455 are: a tag generation module 4557;
the label generating module 4557 is configured to generate an object label to be imported for an object to be imported, and when a data acquisition instruction acting on a data acquisition control of the display interface is received, acquire data to be imported of the object to be imported;
the second sending module 4552 is further configured to send the object to be imported label and the data to be imported to a server when a data import instruction acting on a data import trigger control of the display interface is received, so that the server imports the object to be imported label and the data to be imported into a latest information record;
the data acquisition control is located in a third control area of the display interface, and the data import trigger control is arranged in a fourth control area of the display interface.
Embodiments of the present invention provide a computer-readable storage medium having stored therein executable instructions, which when executed by a first processor or a second processor, will cause the processor to perform a data control method provided by embodiments of the present invention, for example, the method as shown in fig. 4, 9 and 13.
In some embodiments, the computer-readable storage medium may be memory such as FRAM, ROM, PROM, EP ROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
In some embodiments, the executable data pulling instructions may be written in any form of programming language (including compiled or interpreted languages), in the form of a program, software module, script, or code, and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
By way of example, the executable data pull instructions may, but need not, correspond to a file in a file system, may be stored in a portion of a file that holds other programs or data, such as in one or more scripts in a hypertext Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code).
By way of example, the executable data pull instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or distributed across multiple sites and interconnected by a communication network.
The above description is only an example of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present invention are included in the protection scope of the present invention.

Claims (15)

1. A method for pulling data, comprising:
receiving a data pulling request sent by a terminal; the data pulling request carries a current information identifier, and the current information identifier is an identifier of a current information record in the terminal;
responding to the data pulling request, and acquiring a latest information identifier; the latest information identifier is an identifier of the latest information record;
determining an updated object label from the latest information record by using the current information identifier and the latest information identifier; the updated object label represents an object label subjected to data updating and a newly added object label in the latest information record;
extracting the updating data corresponding to the updating object label from the latest information record;
and returning the updated data to the terminal.
2. The method of claim 1, wherein after said determining an updated object tag from said updated information record using said current information tag and said updated information tag, said method further comprises:
returning the updated object tag to the terminal;
receiving a data issuing request returned by the terminal aiming at the updated object label; the data issuing request carries an actual pull object label;
and responding to the data issuing request, acquiring actual pulling data corresponding to the actual pulling object label identification from the latest information record, and sending the actual pulling data to the terminal.
3. The method according to claim 1 or 2, wherein the latest information record includes data of each department; the data pulling request is a current department pulling request which carries a label of a current department;
after the determining, by using the current information identifier and the latest information identifier, an update object tag from the latest information record, the method further includes:
screening out a current update object label corresponding to the current department from the update object labels by using the labels of the current department; the current department is any one of the departments;
extracting current updating data corresponding to the current updating object label from the latest information record; and returning the current updating data to the terminal.
4. The method of claim 1, wherein the terminal is a user side, and the user side represents a terminal that performs only data pulling;
after the determining, by using the current information identifier and the latest information identifier, an update object tag from the latest information record, the method further includes:
screening target object labels from the updated object labels according to the preset filtering information;
extracting target data corresponding to the target object tag from the latest information book, and returning the target data to the user side;
wherein the data pull request comprises: a service handling object pull request or a service object pull request; when the data pulling request is the service handling object pulling request, the preset filtering information is preset service handling filtering information, the target object tag is a service handling object tag, and the target data is service handling data; when the data pulling request is the service object pulling request, the preset filtering information is preset service filtering information, the target object tag is a service object tag, and the target data is service data.
5. The method according to claim 1 or 2, wherein before receiving the data pull request sent by the terminal, the method further comprises:
acquiring the latest information record; the latest information record comprises an information record framework and information record data, wherein the information record framework represents the organization structures of labels of all departments and labels of full-volume objects in the latest information record, and the information record data consists of full-volume data corresponding to the full-volume objects;
generating an information record framework mirror image according to the information record framework, and generating an information record data mirror image according to the information record data;
integrating the information record architecture mirror image and the information record data mirror image to obtain an information record mirror image file;
and sending the information record mirror image file to the terminal.
6. The method according to claim 5, wherein the terminal is a control terminal, and the control terminal represents a terminal for data import and data pull; the acquiring the latest information record comprises:
receiving the object label to be imported and the data to be imported which are sent by the control end;
acquiring a history reverse index corresponding to a history object label; the historical reverse index represents mapping from historical import data corresponding to a historical object to the historical object label;
generating a reverse index for the data to be imported and the object tag to be imported; the reverse index represents the mapping from the data to be imported to the object label to be imported;
determining whether the data to be imported and the historical imported data conflict or not by using the historical reverse index and the reverse index;
and when the data to be imported and the historical import data do not conflict, importing the object label to be imported and the data to be imported into the latest information book.
7. The method according to claim 6, wherein after the importing the object to be imported tag and the data to be imported into the latest information record, the method further comprises:
generating a forward mapping for the object label to be imported; the forward mapping represents the mapping from the object label to be imported to the data to be imported;
writing the reverse index to an index set and writing the forward map to a map set; wherein the index set comprises historical reverse indexes corresponding to the historical object tags, and the mapping set comprises historical forward mappings corresponding to the historical object tags;
the writing the reverse index to an index set and the writing the forward map to a map set includes:
when a write-in failure prompt is obtained, searching write-in failure information from the reverse index and the forward mapping through account checking service; the write failure prompt is used for prompting that write failure information exists in the reverse index and the forward mapping;
when the writing failure information is the reverse index, continuing to write the reverse index into the index set;
when the writing failure information is the forward mapping, continuing to write the forward mapping into the mapping set.
8. A method for pulling data, comprising:
when a data loading instruction acting on a data pulling trigger control of a display interface is received, responding to the data loading instruction and generating a data pulling request; the data pulling trigger control is positioned in a first control area of the display interface;
acquiring a current information identifier corresponding to a current information record, carrying the current information identifier in a data pulling request, and sending the current information identifier to a server; the current information record is an information record in the terminal;
receiving the updated data returned by the server aiming at the data pulling request;
integrating the updated data and the data in the current information record to obtain integrated data, and displaying the integrated data in a data display area of the display interface to realize data pulling; the data display area is located in a first preset area of the display interface.
9. The method according to claim 8, wherein after the obtaining of the current information identifier corresponding to the current information record, carrying the current information identifier in a data pull request, and sending the current information identifier to a server, before the integrating of the update data and the data in the current information record to obtain integrated data, the method further comprises:
receiving an update object tag returned by the server for the data pulling request;
checking the updated object label with each object label in the current information record to determine an actual pulled object label;
carrying the actual pulling object label in a data sending request and sending the actual pulling object label to the server;
receiving actual pull data returned by the server based on the data issuing request;
correspondingly, the integrating the updated data and the data in the current information record to obtain integrated data includes:
and integrating the actual pull data and the data in the current information record to obtain the integrated data.
10. The method of claim 8, wherein the terminal is a user side, and the user side represents a terminal that performs data pulling only; the data pulling trigger control comprises a service handling control or a service control, and the data loading instruction is a service handling loading instruction or a service loading instruction; the data pulling request is a service handling object pulling request or a service object pulling request;
after the current information identifier corresponding to the current information book is obtained and the current information identifier is carried in a data pulling request and sent to a server, the method further comprises the following steps:
receiving target data returned by the server aiming at the data pulling request; the target data is data corresponding to a target object label screened by the server according to the data pulling request;
displaying the target data in a target data display area popped up on the display interface; the target data display area is located in a second preset area of the display interface;
when the data pulling trigger control is the service handling control, the data loading instruction is the service handling loading instruction, the data pulling request is the service handling object pulling request, the target object label is a service handling object label, and the target data is service handling object data; when the data pulling trigger control is the service control, the data loading instruction is the service loading instruction, the data pulling request is the service object pulling request, the target object tag is a service object tag, and the target data is service object data.
11. The method according to claim 8 or 9, wherein before the data load instruction acting on a data pull trigger control of a display interface is received, and a data pull request is generated in response to the data load instruction, the method further comprises:
receiving an information record mirror image file sent by the server; the information record mirror image file is generated by the server according to the latest information record;
analyzing an information record architecture mirror image from the information record mirror image file, and displaying the information record architecture mirror image in an architecture display area popped up on the display interface; the information record framework mirror image describes a hierarchical structure among all departments in the latest information record, and the framework display area is located in a third preset area of a display interface of the terminal;
when a first viewing instruction acting on a current department viewing control of the framework display area is received, responding to the first viewing instruction, and analyzing a current department object label included by the current department from the information record framework mirror image; the current department viewing control is used for triggering and pulling data corresponding to the current department, and the current department is any one of the departments; the current department viewing control is located in a second control area of the architecture display area;
and extracting current department data corresponding to the current department object tag from the information book data mirror image, and displaying the current department data in the data display area of the display interface.
12. The method according to claim 11, wherein the terminal is a control terminal, and the control terminal represents a terminal for data import and data pull; before the receiving the information record image file sent by the server, the method further comprises:
generating an object label to be imported aiming at an object to be imported, and acquiring data to be imported of the object to be imported when receiving a data acquisition instruction acting on a data acquisition control of the display interface;
when a data import instruction acting on a data import trigger control of the display interface is received, sending the object label to be imported and the data to be imported to a server, so that the server imports the object label to be imported and the data to be imported into a latest information book;
the data acquisition control is located in a third control area of the display interface, and the data import trigger control is arranged in a fourth control area of the display interface.
13. A server, comprising:
a first memory to store an executable data pull instruction;
a first processor, configured to implement the data pulling method according to any one of claims 1 to 7 when executing the executable data pulling instruction stored in the first memory.
14. A terminal, comprising:
a second memory for storing executable data pull instructions;
a second processor, configured to implement the data pulling method according to any one of claims 8 to 12 when executing the executable data pulling instruction stored in the second memory.
15. A computer-readable storage medium having stored thereon executable data pulling instructions for causing a first processor to execute a data pulling method according to any one of claims 1 to 7; or for causing a second processor to execute, implementing a data pulling method as claimed in any one of claims 8 to 12.
CN202010563866.9A 2020-06-19 2020-06-19 Data pulling method, equipment and computer readable storage medium Pending CN113821707A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010563866.9A CN113821707A (en) 2020-06-19 2020-06-19 Data pulling method, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010563866.9A CN113821707A (en) 2020-06-19 2020-06-19 Data pulling method, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN113821707A true CN113821707A (en) 2021-12-21

Family

ID=78911944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010563866.9A Pending CN113821707A (en) 2020-06-19 2020-06-19 Data pulling method, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113821707A (en)

Similar Documents

Publication Publication Date Title
US9047346B2 (en) Reporting language filtering and mapping to dimensional concepts
US10504047B2 (en) Metadata-driven audit reporting system with dynamically created display names
US9582594B2 (en) Method and system for centralized issue tracking
US9626368B2 (en) Document merge based on knowledge of document schema
US8108360B2 (en) Database object update order determination
AU2017200895B2 (en) Software integration testing with unstructured database
JP6614756B2 (en) Transaction system error detection method, apparatus, storage medium, and computer device
CN115357590A (en) Recording method and device for data change, electronic device and storage medium
CN113792274A (en) Information management method, management system and storage medium
US20090183175A1 (en) Systems and methods for receiving and sending messages about changes to data attributes
CN108694172B (en) Information output method and device
US9104573B1 (en) Providing relevant diagnostic information using ontology rules
US10289531B2 (en) Software integration testing with unstructured database
CN111045660A (en) Method, device and storage medium for verifying tax declaration data on network
CN116127154A (en) Knowledge tag recommendation method and device, electronic equipment and storage medium
CN113821707A (en) Data pulling method, equipment and computer readable storage medium
CN115544050A (en) Operation log recording method, device, equipment and storage medium
CN113434585B (en) Resource preservation method and equipment
US11176022B2 (en) Health diagnostics and analytics for object repositories
WO2017072872A1 (en) Business program generation assistance system and business program generation assistance method
CN115774793B (en) Mechanism timeliness detection method, system, electronic equipment and storage medium
CN116339717B (en) Data execution method, device, equipment and medium
CN116243961A (en) Version file processing method and device, electronic equipment and storage medium
CN114911877A (en) Data processing method and related device
CN115168371A (en) Data processing method and device, computer equipment and storage medium

Legal Events

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