Data processing method, system, medium, and electronic device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method, system, medium, and electronic device.
Background
Currently, in an enterprise, each team has a requirement for asset inventory so as to observe whether the personnel proportion of different departments, different functions and different regions is reasonable. However, in the actual operation process, a large amount of data is generally processed and presented in a multi-table manner, so that the data arrangement is long and the counting result presentation is not intuitive.
Therefore, in long-term research and development, the inventor has conducted a great deal of research on the asset inventory problem and proposed an asset inventory method to solve one of the above technical problems.
Disclosure of Invention
An object of the present invention is to provide a data processing method, system, medium, and electronic device, which can solve at least one of the above-mentioned technical problems. The specific scheme is as follows:
according to a specific implementation manner of the present invention, in a first aspect, the present invention provides a data processing method, including: acquiring node data, wherein the node data comprises various attributes of assets to be inventoried; determining various node expansion dimensions according to various attributes of the assets to be inventoried; and expanding the node data step by step according to the node expansion dimensionality of each selected level of node to generate N levels of sub-node data.
According to a second aspect, the present invention provides a data processing system comprising: the data acquisition module is used for acquiring node data, and the node data comprises various attributes of assets to be inventoried; the dimension determining module is used for determining the expansion dimensions of various nodes according to various attributes of the assets to be inventoried; and the node expansion module is used for expanding the node data step by step according to the node expansion dimensionality of each selected level of node to generate N levels of sub-node data.
According to a third aspect, the invention provides a computer readable storage medium, on which a computer program is stored, which program, when executed by a processor, implements a data processing method as defined in any one of the above.
According to a fourth aspect of the present invention, there is provided an electronic apparatus including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a data processing method as claimed in any one of the preceding claims.
Compared with the prior art, the scheme of the embodiment of the invention adopts a mental mode to inventory the assets, particularly can be used for expanding personnel in an enterprise leader or human resource management range layer by layer and presenting statistical information such as the number of people and the like in each layer, thereby being capable of conveniently conducting inventory of the assets and observing the allocation condition of the assets in a visual mode, and being convenient and fast to operate.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a flow chart illustrating an implementation of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for expanding the node data step by step according to the node expansion dimension of each selected level of nodes according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a method for progressively expanding the node data according to the node expansion dimension of each level of selected nodes according to another embodiment of the present invention;
FIG. 4 shows a block diagram of a data processing system according to an embodiment of the present invention;
fig. 5 shows a schematic diagram of an electronic device connection structure according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and "a plurality" typically includes at least two.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe … … in embodiments of the present invention, these … … should not be limited to these terms. These terms are used only to distinguish … …. For example, the first … … can also be referred to as the second … … and similarly the second … … can also be referred to as the first … … without departing from the scope of embodiments of the present invention.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It is also noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that an article or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such article or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in the article or device in which the element is included.
Alternative embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Example 1
As shown in fig. 1, the data processing method provided by the present invention is an implementation flowchart, and the data processing method spreads assets layer by layer in a mental manner and presents statistical information such as people number at each level.
Specifically, the present invention provides a data processing method, which includes the following steps:
s100, acquiring node data, wherein the node data comprises various attributes of assets to be inventoried;
specifically, the form of the asset is not limited, and the asset may be an article, an enterprise employee, or the like. In the embodiment of the invention, the assets to be checked are enterprise employees, specifically all employees of an enterprise, and also all employees of a certain department in the enterprise.
The attributes differ for different assets. In the embodiment of the present invention, the attributes include, but are not limited to: function, direction, sequence job level, location, product line, department, on-line, etc. The node data is basic data for asset inventory, and the larger the node data volume is, the more detailed the final inventory result is. In this embodiment, the node data includes the total number of people of the current node and the attributes of each employee.
S110, determining various node expansion dimensions according to various attributes of the assets to be inventoried;
in this step, each attribute corresponds to a node expansion dimension, and the node expansion dimension refers to an expansion mode of a node. In the embodiment of the invention, various attributes on the staff can be expanded into node expansion dimensions including departments, places, functions, product lines, on-line staff and the like. Specifically, more than two node expansion dimensions may be selected from the plurality of attributes according to the actual requirements of the enterprise managers.
The plurality of node expansion dimensions may all be displayed at the current node location for selection by a user. Preferably, the determining, according to the multiple attributes of the asset to be inventoried, the multiple node expansion dimensions further includes:
generating a selection button on each level of nodes, the selection button for hiding the plurality of node expansion dimensions.
Further, the determining various node expansion dimensions according to the various attributes of the assets to be inventoried further comprises:
and if the assets to be checked of the current node carry the same attribute, the node expansion dimension corresponding to the attribute of the current node is in a selection prohibition state. Specifically, when the products are unfolded according to different dimensions, the dimensions are linked, for example, when a certain product is unfolded, if all the people under the product belong to the same place, the products cannot be unfolded according to the place.
The selection prohibition state comprises that no response is made after the control to which the node expansion dimension belongs receives the touch instruction. In this embodiment, a selection prohibition flag may be further set around the position of the node expansion dimension, or the color of the control of the node expansion dimension is changed to gray, and the control does not respond to any operation of the user.
And S120, expanding the node data step by step according to the node expansion dimensionality of each selected level of node to generate N levels of sub-node data.
After step S110 is performed, for each node, one of the multiple node expansion dimensions may be selected and the node may be expanded, and the node expansion dimension of each level of nodes is different. In this embodiment, referring to fig. 2, the expanding the node data step by step according to the node expansion dimension of each selected level of nodes includes:
s121, when the click signal is detected by the selection button, a plurality of controls are expanded, and each control corresponds to one node expansion dimension;
and S122, after receiving a touch instruction of a user to one control, expanding the current node data according to the node expansion dimension corresponding to the control. For example, when a user views people of a product a, the user can choose to expand by location (location) to observe that the proportion of people of the product a in different countries and regions meets strategic needs; and the product A can be expanded according to functions so as to observe whether the proportion of personnel such as products, technologies, operation and the like of the product A is reasonable.
Further, the expanding the node data step by step according to the node expansion dimension of each selected level of node, further includes:
and respectively displaying the node expansion dimension of the current node at each level of node position. That is, at each expanded node, the user can see in what manner the current node is expanded, so that the team situation can be intuitively understood. Preferably, the node expansion dimension of the current node is displayed at each level of node position in different colors, characters or icons. For example, the background or font of the node expansion dimension is marked with the same color when the node expansion dimension is expanded.
In step S120, all the attributes on each asset can be presented and expanded in a tree structure. Specifically, the acquired node data is a primary node, and the primary node is expanded to generate a plurality of secondary child nodes; displaying the multiple node expansion dimensions on each secondary child node, selecting a node expansion mode for each secondary child node to expand to generate a plurality of three-level child nodes, … …, and sequentially expanding step by step to generate N-level child nodes. And the node which is expanded to which level is the end node can be normally expanded to the personal node to end according to actual needs. In this implementation, each node may include statistical information such as the number of people, the number of full-time staff, the number of trainees, and may be specifically customized.
Specifically, when the node data is expanded step by step according to the node expansion dimension of each selected level of nodes, the node expansion dimensions may be spaced. For example, product a and product b are located below product a, and both products have personnel in both china and the united states, and can be deployed in a variety of ways to meet different needs:
firstly, the product line A is unfolded according to the place and then the product, so that whether the personnel distribution proportion condition of two products in different countries meets the requirement of an enterprise strategy can be seen.
Secondly, the product line A is unfolded according to the product and then according to the place, so that the strategic importance of the two products in different regions can be visually seen.
Further, in another embodiment, referring to fig. 3, the expanding the node data step by step according to the node expansion dimension of each selected level of nodes includes:
s123, expanding the current node data according to the node expansion dimension to generate next-level node data;
and S124, performing cascade expansion on the next-level node data according to the attribute of the node expansion dimension, wherein the attribute of the node expansion dimension comprises various classifications of the node expansion dimension. Specifically, because the node expansion dimensions, such as products, sites, functions, departments, and the like, are also tree-like structures, it means that the distribution of technical employees in each country can be checked first, and then how many people are in the front end, the back end, and the algorithm of the U.S. region can be checked, and whether the personnel level distribution of different cities is consistent among the U.S. algorithm engineers can be further checked.
Finally, the data processing method displays the multi-level node data to a user in a brain graph form, the displayed brain graph is different from a common brain graph, in the embodiment of the invention, when each node is unfolded, different dimensionality unfolding modes can be selected, for example, when an organization architecture graph is watched, each layer can be unfolded according to departments; the equipment can be unfolded according to a product line, so that the assets can be conveniently checked, the asset allocation condition can be observed in a visual mode, and the operation is convenient and fast.
Example 2
Referring to fig. 4, an embodiment of the invention provides a data processing system 400, where the data processing system 400 includes: a data acquisition module 410, a dimension determination module 420, and a node expansion module 430.
The data acquisition module 410 is configured to acquire node data, where the node data includes multiple attributes of assets to be inventoried;
specifically, the form of the asset is not limited, and the asset may be an article, an enterprise employee, or the like. In the embodiment of the invention, the assets to be checked can be all employees of an enterprise, and can also be all employees of a certain department in the enterprise.
The attributes differ for different assets. In the embodiment of the present invention, the attributes include, but are not limited to: function, direction, sequence job level, location, product line, department, on-line, etc. The node data is basic data for asset inventory, and the larger the node data volume is, the more detailed the final inventory result is. In this embodiment, the node data includes the total number of people of the current node and the attributes of each employee.
The dimension determining module 420 is configured to determine a plurality of node expansion dimensions according to the plurality of attributes of the asset to be inventoried.
Each attribute corresponds to a node expansion dimension, and the node expansion dimension refers to an expansion mode of a node. In the embodiment of the invention, various attributes on the staff can be expanded into node expansion dimensions including departments, places, functions, product lines, on-line staff and the like. Specifically, more than two node expansion dimensions may be selected from the plurality of attributes according to the actual requirements of the enterprise managers.
The plurality of node expansion dimensions may all be displayed at the current node location for selection by a user. Preferably, the dimension determination module 420 can generate a selection button on each level of nodes, the selection button being used to hide the plurality of node expansion dimensions.
Further, if the assets to be inventoried of the current node carry the same attribute, the dimension determining module 420 may enable the node expansion dimension corresponding to the attribute of the current node to be in a selection prohibition state. Specifically, when the products are unfolded according to different dimensions, the dimensions are linked, for example, when a certain product is unfolded, if all the people under the product belong to the same place, the products cannot be unfolded according to the place.
The selection prohibition state comprises that no response is made after the control to which the node expansion dimension belongs receives the touch instruction. In this embodiment, the dimension determining module 420 may further set a selection prohibition flag around the position of the node expansion dimension, or change the color of the control in which the node expansion dimension is located into gray without responding to any operation of the user.
The node expansion module 430 is configured to expand the node data step by step according to the node expansion dimension of each selected level of node, and generate N-level sub-node data.
After the dimension determining module 420 determines a plurality of node expansion dimensions, for each node, the node expansion module 430 may select one of the plurality of node expansion dimensions to expand the node. Preferably, the node expansion dimensions of each level of nodes are different.
In this embodiment, the node expansion module 430 may expand a plurality of controls when the selection button detects a click signal, where each control corresponds to one of the node expansion dimensions; the node expansion module 430 may further receive a touch instruction of a user for one control, and then expand the current node data according to the node expansion dimension corresponding to the control. For example, when a user views people of a product a, a control representing a location (location) can be selected to be expanded so as to observe that the proportion of people of the product a in different countries and regions meets strategic needs; and a control representing a function can be selected to be expanded so as to observe whether the personnel proportion of the product A, the technology, the operation and the like is reasonable.
Further, the node expansion module 430 may also display the node expansion dimension of the current node at each level of node position. That is, at each expanded node, the user can see in what manner the current node is expanded, so that the team situation can be intuitively understood. Preferably, the node expansion dimension of the current node is displayed at each level of node position in different colors, characters or icons. For example, the background or the font of the node expansion dimension is marked with the same color when the node expansion dimension is expanded.
Further, the node expansion module 430 can present and expand all attributes on each asset in a tree structure. Specifically, the acquired node data is a primary node, and the primary node is expanded to generate a plurality of secondary child nodes; displaying the multiple node expansion dimensions on each secondary child node, selecting a node expansion mode for each secondary child node to expand to generate a plurality of three-level child nodes, … …, and sequentially expanding step by step to generate N-level child nodes. And for the node which is expanded to which level is the end node, the node is expanded to the employee node which is the end node under the normal condition according to the actual requirement. In the embodiment of the invention, each child node can comprise statistical information such as the number of people, the number of full-time personnel, the number of trainees and the like of the node, and can be customized.
In addition, when the node data is expanded step by step according to the node expansion dimension of each selected level of nodes, the node expansion dimensions may be spaced. For example, a product a and a product b are arranged below a product A line, and both products are provided with personnel in China and America; the deployment can be done in a number of ways to meet different needs:
first, the node expansion module 430 expands the product line a according to location and then product, so that it can be seen whether the personnel distribution ratio of two products in different countries meets the strategic needs of the enterprise.
Secondly, the node deployment module 430 deploys the product line a according to the product and then according to the location, so that the strategic importance of the two products in different regions can be visually seen.
Further, after the node expansion module 430 expands the current node data according to the node expansion dimension to generate the next-level node data, the node expansion module 430 may further perform cascade expansion on the next-level node data according to the attribute of the node expansion dimension, where the attribute of the node expansion dimension includes various classifications in the node expansion dimension. Specifically, because the node expansion dimensions, such as products, sites, functions, departments, and the like, are also tree-like structures, it means that the distribution of technical employees in each country can be checked first, and then how many people are in the front end, the back end, and the algorithm of the U.S. region can be checked, and whether the personnel level distribution of different cities is consistent among the U.S. algorithm engineers can be further checked.
Finally, the data processing system displays the multi-level node information to a user in a brain graph form, and the brain graph displayed by the invention is different from a common brain graph; the equipment can be unfolded according to a product line, so that the assets can be conveniently checked, the asset allocation condition can be observed in a visual mode, and the operation is convenient and fast.
Example 3
The disclosed embodiments provide a non-volatile computer storage medium having stored thereon computer-executable instructions that can perform the data processing method of any of the above method embodiments.
Example 4
This embodiment provides an electronic device, this device is used for data processing, electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the one processor to cause the at least one processor to:
acquiring node data, wherein the node data comprises various attributes of assets to be inventoried;
determining various node expansion dimensions according to various attributes of the assets to be inventoried;
and expanding the node data step by step according to the node expansion dimensionality of each selected level of node to generate N levels of sub-node data.
Example 5
Referring now to FIG. 5, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".