CN114118729A - Asset tree structure construction method and device - Google Patents

Asset tree structure construction method and device Download PDF

Info

Publication number
CN114118729A
CN114118729A CN202111324495.XA CN202111324495A CN114118729A CN 114118729 A CN114118729 A CN 114118729A CN 202111324495 A CN202111324495 A CN 202111324495A CN 114118729 A CN114118729 A CN 114118729A
Authority
CN
China
Prior art keywords
asset
tree
current
assets
parent
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
CN202111324495.XA
Other languages
Chinese (zh)
Inventor
张韬
魏忠法
马龙宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Genersoft Information Technology Co Ltd
Original Assignee
Shandong Inspur Genersoft Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN202111324495.XA priority Critical patent/CN114118729A/en
Publication of CN114118729A publication Critical patent/CN114118729A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Educational Administration (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method and a device for constructing an asset tree structure, wherein the device comprises the following steps: determining whether the current asset has a parent asset according to an asset card formed when the current asset is posted; if the parent asset exists, determining whether the parent asset has a corresponding tree identifier; if the parent asset is determined to have the corresponding tree identifier, taking the tree identifier corresponding to the parent asset as a target tree identifier; setting the tree identifications of the current asset and all the sub-assets of the current asset as the target tree identifications, and adding the asset information of the current asset and all the sub-assets of the current asset into the constructed tree structure to realize the improvement of the constructed tree structure. The tree structure constructed by the invention can quickly find complete tree structure data through the tree identification, thereby avoiding missing data and being quick.

Description

Asset tree structure construction method and device
Technical Field
One or more embodiments of the present disclosure relate to the field of asset management technologies, and in particular, to a method and an apparatus for constructing an asset tree structure.
Background
With the rapid development of economy, the number of assets of various modern enterprises is increased sharply, asset management is an important component in the management of the modern enterprises, the assets have the characteristics of large number, multiple types, high value, long service cycle, scattered use places and the like, and the management difficulty is very high. The traditional asset management mode is a mode depending on manual accounting, a large amount of manpower and material resources are occupied due to numerous management documents and heavy inventory work, the use history of the assets and other statistical work are very complicated, and the assets are easily lost or repeatedly purchased.
In recent years, some fixed asset management software is provided, and the problem of a manual accounting mode is solved to a great extent, but most systems adopt a manual mode to record data, so that the speed is low, errors are easy to generate, the serious problem that asset real objects and account information are disconnected in asset management exists, and the requirement of modern enterprise management is difficult to meet. Because the asset management has the characteristics of wide object related range, complex management affairs, multiple data types, strong guarantee property and complicated management among assets, the establishment of an efficient asset tree structure is very important for the management of assets.
Disclosure of Invention
One or more embodiments of the present specification describe a method and apparatus for building an asset tree structure.
According to a first aspect, there is provided a method for constructing an asset tree structure, including:
determining whether the current asset has a parent asset according to an asset card formed when the current asset is posted; the asset card comprises asset information of the current asset;
if the parent asset exists, determining whether the parent asset has a corresponding tree identifier; if the parent asset is determined to have the corresponding tree identifier, taking the tree identifier corresponding to the parent asset as a target tree identifier; the tree identification corresponding to the parent asset is the only identification of the constructed tree structure to which the parent asset belongs;
setting the tree identifications of the current asset and all the sub-assets of the current asset as the target tree identifications, and adding the asset information of the current asset and all the sub-assets of the current asset into the constructed tree structure to realize the improvement of the constructed tree structure.
According to a second aspect, there is provided an asset tree structure building apparatus, including:
the first determination module is used for determining whether the current asset has a parent asset according to an asset card formed when the current asset is posted; the asset card comprises asset information of the current asset;
the second determining module is used for determining whether the parent asset has a corresponding tree identifier if the parent asset exists; if the parent asset is determined to have the corresponding tree identifier, taking the tree identifier corresponding to the parent asset as a target tree identifier; the tree identification corresponding to the parent asset is the only identification of the constructed tree structure to which the parent asset belongs;
and the identification setting module is used for setting the tree identifications of the current asset and all the sub-assets of the current asset as the target tree identifications, and adding the asset information of the current asset and all the sub-assets of the current asset into the constructed tree structure to perfect the constructed tree structure.
In the method and the device for constructing the asset tree structure provided by the embodiment of the specification, if the parent asset exists in the current asset and the parent asset has the tree identifier, the tree structure is already created for the parent asset, and the tree structure is not required to be created again but only needs to be perfected. The improvement process is as follows: and taking the tree identifier of the parent asset as the tree identifiers of the current asset and all the child resources, and adding the asset information of the current asset and the asset information of all the child assets into the constructed tree structure to realize the perfection of the tree structure. And the tree structure is perfected or newly built when the assets are posted, and the tree structure can be perfected and newly built continuously along with the continuous posting of the assets. Under the condition that the parent asset and the parent asset have the tree identifications, the tree identifications of the parent asset, the current asset and the child asset are unified, the current asset and the child asset are added into the tree structure of the parent asset, and the reconstruction of the tree structure is realized. After the construction is completed, when a user needs to search the tree structure, the user can search data according to the tree identifier by inputting the corresponding tree identifier, and all the searched data is displayed on an interface in the form of the tree structure for the user to read and analyze, so that the tree structure information can be quickly searched and displayed. That is to say, a developer or an asset manager does not need to search the tree-like relationship constructed by the data layer by layer according to the complex upper-lower level relationship when acquiring the data, but can quickly lock the data in the same tree-like structure through the tree identifier, and further analyze the complete tree-like structure data. Complete tree structure data can be quickly searched through the tree identification, data omission is avoided, and the method is quick.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present specification, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart illustrating a method of constructing an asset tree structure according to an embodiment of the present disclosure.
Detailed Description
The scheme provided by the specification is described below with reference to the accompanying drawings.
In a first aspect, the present invention provides a method for constructing an asset tree structure, as shown in fig. 1, the method includes:
s110, determining whether the current asset has a parent asset according to an asset card formed when the current asset is posted; the asset card comprises asset information of the current asset;
it will be appreciated that the assets to which the invention is directed are physical assets.
When the assets are posted, corresponding asset cards are automatically generated, and various asset information of the current assets, such as basic information (e.g., asset identification and name) of the assets, asset value, asset running states and the like, are arranged on the asset cards.
In a specific implementation, the determining whether the parent asset exists in the current asset may include:
acquiring an asset identifier in the asset information, searching in a corresponding asset information table and/or an asset relationship table through the asset identifier, and determining whether the current asset has a parent asset according to a search result; the asset information table comprises asset identification items, tree identification items corresponding to the tree structures and corresponding parent asset identification items, and if the parent asset identification items comprise parent asset identifications, the current asset has a parent asset; the asset relationship table includes the identities of the assets having parent-child relationships.
The asset information table may be denoted as an AMCARD table, and the asset relationship table may be denoted as AMSUBS. The asset information table is shown in table 1 below, and the asset relationship table is shown in table 2 below:
TABLE 1 asset information Table
Figure BDA0003346481630000041
TABLE 2 asset relationship Table
Figure BDA0003346481630000042
As can be seen from table 1 above, if there is corresponding identification content in the asset identification item, then the current asset has a parent asset. As can be seen from table 2 above, if the asset identification of the current asset is consistent with the identification content corresponding to the child asset identification item, and the parent asset identification item in table 2 has the corresponding identification content, it indicates that the current asset has the parent asset. If the current asset is determined to have a parent asset according to either of the two tables, the current asset is considered to have a parent asset. If it is determined from both tables that the current asset does not have a parent asset, the current asset is considered to have no parent asset.
The two tables can record and manage tree structure information, namely the two tables record the important information of the assets and simultaneously record the tree structure information of the assets. Meanwhile, the double-table recording can ensure the correctness of data, the correctness of the data is verified when the tree structure is constructed, and meanwhile, under the condition of data loss, data recovery can be carried out through the other table, so that the robustness and the fault tolerance of the construction of the asset tree structure are enhanced.
S120, if the parent assets exist, determining whether the parent assets have corresponding tree identifications; if the parent asset is determined to have the corresponding tree identifier, taking the tree identifier corresponding to the parent asset as a target tree identifier; the tree identification corresponding to the parent asset is the only identification of the constructed tree structure to which the parent asset belongs;
it can be understood that, if the current asset has a parent asset, and the tree identifier corresponding to the parent asset is found in the related information or related table of the parent asset, it indicates that a tree structure has been built for the parent asset, and the tree identifier of the parent asset is the only identifier of the tree structure, and at this time, it is not necessary to build a new tree structure for the current asset, and it is sufficient to incorporate the current asset into the built tree structure.
S130, setting the tree identifications of the current asset and all the sub-assets of the current asset as the target tree identifications, and adding the asset information of the current asset and all the sub-assets of the current asset into the constructed tree structure to perfect the constructed tree structure.
Wherein the constructed tree structure is a tree structure of a parent asset.
If the parent asset exists and the parent asset has the corresponding tree identification, the tree identification corresponding to the parent asset is used as the tree identification of the current asset and the tree identifications of all subordinate assets, namely all child assets, of the current asset, then the asset information of the current asset and all child assets is added into the tree structure corresponding to the parent asset to form a new node, and further improvement and supplement of the constructed tree structure corresponding to the parent asset are realized on the basis of not changing the constructed tree structure.
Therefore, through the steps, under the condition that the parent asset and the parent asset have the tree identifications, the tree identifications of the parent asset, the current asset and the child asset are unified, the current asset and the child asset are added into the tree structure of the parent asset, and the reconstruction of the tree structure is realized.
In a specific implementation, S130 may specifically include:
according to the asset identification of the current asset, searching asset information of all sub-assets of the current asset; if the sub-assets of the current assets do not have the tree identifications, taking the target tree identifications as the tree identifications corresponding to the sub-assets of the current assets, and adding the asset information of the current assets and all the sub-assets into the constructed tree structure; if the sub-assets of the current assets have tree identifications, updating the tree identifications of the sub-assets of the current assets to the target tree identifications, adding the asset information of the current assets into the constructed tree structure, and adding the tree structure to which the sub-assets of the current assets belong to the constructed tree structure.
In some cases, the child asset of the current asset already has a corresponding tree structure, and therefore the child asset also has a corresponding tree identifier, but after determining that the current asset has a parent asset and the parent asset has a tree identifier, it is necessary to replace the tree identifier corresponding to the child asset with the tree identifier of the parent asset and add the tree structure of the child asset to the tree structure of the parent asset, so as to merge the tree structures.
Of course, if the child assets of the current asset do not have a tree structure, i.e. do not have corresponding tree identifications, the tree identification of the parent asset is also used as the tree identifications of all the child assets, so as to realize the setting of the tree identifications of the child assets. Asset information for the current asset and sub-assets is then added to the constructed tree structure.
In specific implementation, the method provided by the invention can further comprise:
s140, if no father asset exists, a tree structure is newly built, the current asset is used as a root node of the newly built tree structure, the asset identification of the current asset is used as the tree identification of the newly built tree structure, the asset information of all the sub assets of the current asset is searched, the asset information of all the sub assets of the current asset is added into the newly built tree structure, and the construction of the newly built tree structure is realized.
It can be understood that if the current asset is found to have no parent asset, the current asset may not have a corresponding tree structure and tree identifier, at this time, a tree structure needs to be newly built for the current asset, the current asset is used as a root node of the tree structure, then the asset identifier of the current asset is used as the tree identifier, whether the current asset has child assets is further found, and the asset information of all found child assets is added to the newly built tree structure to complete the construction of a new tree structure. Of course, if no child assets are found, there is only one root node in the tree structure for the moment. With the constant posting of various assets, the tree structure may be continually refined.
In specific implementation, the method provided by the invention can further comprise:
s150, if a parent asset exists and the parent asset does not have a corresponding tree identifier, searching a corresponding uppermost asset upwards from the parent asset, judging whether the uppermost asset has the tree identifier, if so, taking the tree identifier of the uppermost asset as the tree identifier of each layer of assets below the uppermost asset, and adding the asset information of each layer of assets below the uppermost asset into a constructed tree structure corresponding to the uppermost asset.
It can be understood that if there is a parent asset, but the parent asset does not have a corresponding tree identifier, it indicates that a tree structure is not constructed for the parent asset, at this time, the parent asset may be searched layer by layer from the upper layer asset of the parent asset according to asset information or a related table until the uppermost layer asset is found, if the uppermost layer asset has the tree identifier, it indicates that the tree structure has been established for the uppermost layer asset, at this time, the tree identifier of the uppermost layer asset may be used as the tree identifier of each layer asset (including each layer asset between the uppermost layer asset and the current asset, and each layer child asset of the current asset) below the uppermost layer asset, and then the asset information of each layer asset below the uppermost layer asset is added to the tree structure corresponding to the uppermost layer asset.
It can be understood that, in this case, the compatible processing of historical data is realized, that is, while the current asset is processed, the asset without adding the tree structure to the upper-layer asset of the current asset is realized, and the correctness and the consistency of the data are ensured.
Of course, there may be assets with tree identifications between the top asset and the parent asset, but because of different posting times of various assets, the tree identifications of some assets are not necessarily consistent with the tree identification of the top asset, in order to avoid this, the top asset is directly found while realizing unification of the assets of each layer, and all assets below the top asset are included in the tree structure of the top asset.
Of course, in another case, the asset at the uppermost layer does not have a tree identifier, at this time, a tree structure may be newly created, the asset at the uppermost layer is used as a root node of the tree structure, the asset identifier of the asset at the uppermost layer is used as the tree identifier of the tree structure, and then the asset at the uppermost layer and the asset information of each layer below the asset at the uppermost layer are added to the newly created tree structure, so as to implement the construction of the tree structure.
It is understood that the parent asset in the present invention is an asset of a layer above the current asset, and the child asset refers to an asset of a layer below the current asset. The invention can realize the processing of the front node (upper layer asset) and the rear node (lower layer asset) while processing the current asset, thereby realizing compatible processing.
The invention provides a dynamic construction method of a tree structure, which can continuously perfect and build the tree structure with continuous entry of assets. When a user needs to search the tree structure, data can be searched according to the tree identifier only by inputting the corresponding tree identifier, and all searched data is displayed on an interface in the form of the tree structure for the user to read and analyze, so that the tree structure information can be quickly searched and displayed. That is to say, the method for constructing the asset tree structure enables a developer or an asset manager not to need to search the tree structure constructed by data layer by layer according to the complex upper-lower level relation when acquiring the data, but to quickly lock the data in the same tree structure through the tree identification, so as to analyze the complete tree structure data. The user can know the relevant information of each asset node according to the tree structure, such as the parent-child relationship, the basic information, the running state, the value information and other important data of the assets, so that an asset manager can conveniently perform corresponding processing on the physical assets according to the information, for example, for the assets related to the production or manufacturing process and other processes in an enterprise, the maintenance, lubrication or maintenance and other operations can be performed according to the current state of the assets, the working efficiency of the asset manager is improved, and the management period is shortened.
The method and the device can realize the rapid construction or the perfection of the tree structure during the asset posting through the tree identification by determining the tree identification of the tree structure as the unique identification. Meanwhile, after the construction is completed, all eligible asset data can be acquired according to the tree identifications. Therefore, after construction is completed, when asset data is searched, corresponding asset reorganization data does not need to be obtained through upward or downward recursion of a certain node, complete tree-shaped structure data can be quickly searched through tree identification, data omission is avoided, and the method is quick.
The invention can be understood that the asset informatization is realized, so that the cost control is enhanced from the source, the engineering management is refined, the engineering cost is reduced, the economic operation management of the asset is enhanced, the operation maintenance cost is reduced, the asset scrapping supervision program is perfected, the processing process is standardized, the technical identification is enhanced, the asset retirement and scrapping management is enhanced, and the full life cycle management of the enterprise unit asset is realized; the asset manager can plan purchasing activity, updating, replacing and other changes judiciously in the life cycle of the asset according to the information of the superior-inferior relation of the asset, and make related budgets at the same time, thereby ensuring that the asset is effectively utilized.
In a second aspect, the present invention provides an asset tree structure constructing apparatus, including:
the first determination module is used for determining whether the current asset has a parent asset according to an asset card formed when the current asset is posted; the asset card comprises asset information of the current asset;
the second determining module is used for determining whether the parent asset has a corresponding tree identifier if the parent asset exists; if the parent asset is determined to have the corresponding tree identifier, taking the tree identifier corresponding to the parent asset as a target tree identifier; the tree identification corresponding to the parent asset is the only identification of the constructed tree structure to which the parent asset belongs;
and the identification setting module is used for setting the tree identifications of the current asset and all the sub-assets of the current asset as the target tree identifications, and adding the asset information of the current asset and all the sub-assets of the current asset into the constructed tree structure to perfect the constructed tree structure.
In some embodiments, the first determining means is for: acquiring an asset identifier in the asset information, searching in a corresponding asset information table and/or an asset relationship table through the asset identifier, and determining whether the current asset has a parent asset according to a search result; the asset information table comprises asset identification items, tree identification items corresponding to the tree structures and corresponding parent asset identification items, and if the parent asset identification items comprise parent asset identifications, the current asset has a parent asset; the asset relationship table includes the identities of the assets having parent-child relationships.
In some embodiments, the identifier setting module is specifically configured to: according to the asset identification of the current asset, searching asset information of all sub-assets of the current asset; if the sub-assets of the current assets do not have the tree identifications, taking the target tree identifications as the tree identifications corresponding to the sub-assets of the current assets, and adding the asset information of the current assets and all the sub-assets into the constructed tree structure; if the sub-assets of the current assets have tree identifications, updating the tree identifications of the sub-assets of the current assets to the target tree identifications, adding the asset information of the current assets into the constructed tree structure, and adding the tree structure to which the sub-assets of the current assets belong to the constructed tree structure.
In some embodiments, the apparatus further comprises:
and the structure building module is used for building a tree structure if no father asset exists, taking the current asset as a root node of the newly-built tree structure, taking the asset identification of the current asset as the tree identification of the newly-built tree structure, searching the asset information of all the sub assets of the current asset, and adding the asset information of all the sub assets of the current asset into the newly-built tree structure to realize the construction of the newly-built tree structure.
It is understood that, for the device provided in the embodiment of the present invention, for the explanation, examples, and beneficial effects of the related contents, reference may be made to the corresponding parts in the foregoing method, and details are not described here.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this disclosure may be implemented in hardware, software, hardware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for constructing an asset tree structure is characterized by comprising the following steps:
determining whether the current asset has a parent asset according to an asset card formed when the current asset is posted; the asset card comprises asset information of the current asset;
if the parent asset exists, determining whether the parent asset has a corresponding tree identifier; if the parent asset is determined to have the corresponding tree identifier, taking the tree identifier corresponding to the parent asset as a target tree identifier; the tree identification corresponding to the parent asset is the only identification of the constructed tree structure to which the parent asset belongs;
setting the tree identifications of the current asset and all the sub-assets of the current asset as the target tree identifications, and adding the asset information of the current asset and all the sub-assets of the current asset into the constructed tree structure to realize the improvement of the constructed tree structure.
2. The method of claim 1, wherein determining whether a parent asset exists for the current asset comprises:
acquiring an asset identifier in the asset information, searching in a corresponding asset information table and/or an asset relationship table through the asset identifier, and determining whether the current asset has a parent asset according to a search result; the asset information table comprises asset identification items, tree identification items corresponding to the tree structures and corresponding parent asset identification items, and if the parent asset identification items comprise parent asset identifications, the current asset has a parent asset; the asset relationship table includes the identities of the assets having parent-child relationships.
3. The method of claim 2, wherein setting the tree identifications of the current asset and all sub-assets of the current asset to the target tree identification and adding the asset information of the current asset and all sub-assets of the current asset to the constructed tree structure comprises:
according to the asset identification of the current asset, searching asset information of all sub-assets of the current asset; if the sub-assets of the current assets do not have the tree identifications, taking the target tree identifications as the tree identifications corresponding to the sub-assets of the current assets, and adding the asset information of the current assets and all the sub-assets into the constructed tree structure; if the sub-assets of the current assets have tree identifications, updating the tree identifications of the sub-assets of the current assets to the target tree identifications, adding the asset information of the current assets into the constructed tree structure, and adding the tree structure to which the sub-assets of the current assets belong to the constructed tree structure.
4. The method of claim 1, further comprising:
if the parent asset does not exist, a tree structure is newly built, the current asset is used as a root node of the newly built tree structure, the asset identification of the current asset is used as the tree identification of the newly built tree structure, the asset information of all the sub assets of the current asset is searched, the asset information of all the sub assets of the current asset is added into the newly built tree structure, and the construction of the newly built tree structure is realized.
5. The method of claim 1, further comprising:
if a parent asset exists and the parent asset does not have a corresponding tree identifier, searching a corresponding uppermost asset upwards from the parent asset, judging whether the uppermost asset has the tree identifier, if so, taking the tree identifier of the uppermost asset as the tree identifier of each layer of assets below the uppermost asset, and adding asset information of each layer of assets below the uppermost asset into a constructed tree structure corresponding to the uppermost asset.
6. The method of claim 5, further comprising:
and if the top asset does not have the tree identification, taking the top asset as a root node, taking the asset identification of the top asset as a tree identification corresponding to a newly-built tree structure, and adding the top asset and asset information of each layer of assets below the top asset into the newly-built tree structure corresponding to the top asset.
7. An apparatus for constructing an asset tree structure, comprising:
the first determination module is used for determining whether the current asset has a parent asset according to an asset card formed when the current asset is posted; the asset card comprises asset information of the current asset;
the second determining module is used for determining whether the parent asset has a corresponding tree identifier if the parent asset exists; if the parent asset is determined to have the corresponding tree identifier, taking the tree identifier corresponding to the parent asset as a target tree identifier; the tree identification corresponding to the parent asset is the only identification of the constructed tree structure to which the parent asset belongs;
and the identification setting module is used for setting the tree identifications of the current asset and all the sub-assets of the current asset as the target tree identifications, and adding the asset information of the current asset and all the sub-assets of the current asset into the constructed tree structure to perfect the constructed tree structure.
8. The apparatus of claim 7,
the first determination module is used for: acquiring an asset identifier in the asset information, searching in a corresponding asset information table and/or an asset relationship table through the asset identifier, and determining whether the current asset has a parent asset according to a search result; the asset information table comprises asset identification items, tree identification items corresponding to the tree structures and corresponding parent asset identification items, and if the parent asset identification items comprise parent asset identifications, the current asset has a parent asset; the asset relationship table includes the identities of the assets having parent-child relationships.
9. The apparatus of claim 8,
the identification setting module is specifically configured to: according to the asset identification of the current asset, searching asset information of all sub-assets of the current asset; if the sub-assets of the current assets do not have the tree identifications, taking the target tree identifications as the tree identifications corresponding to the sub-assets of the current assets, and adding the asset information of the current assets and all the sub-assets into the constructed tree structure; if the sub-assets of the current assets have tree identifications, updating the tree identifications of the sub-assets of the current assets to the target tree identifications, adding the asset information of the current assets into the constructed tree structure, and adding the tree structure to which the sub-assets of the current assets belong to the constructed tree structure.
10. The apparatus of claim 7, further comprising:
and the structure building module is used for building a tree structure if no father asset exists, taking the current asset as a root node of the newly-built tree structure, taking the asset identification of the current asset as the tree identification of the newly-built tree structure, searching the asset information of all the sub assets of the current asset, and adding the asset information of all the sub assets of the current asset into the newly-built tree structure to realize the construction of the newly-built tree structure.
CN202111324495.XA 2021-11-10 2021-11-10 Asset tree structure construction method and device Pending CN114118729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111324495.XA CN114118729A (en) 2021-11-10 2021-11-10 Asset tree structure construction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111324495.XA CN114118729A (en) 2021-11-10 2021-11-10 Asset tree structure construction method and device

Publications (1)

Publication Number Publication Date
CN114118729A true CN114118729A (en) 2022-03-01

Family

ID=80377860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111324495.XA Pending CN114118729A (en) 2021-11-10 2021-11-10 Asset tree structure construction method and device

Country Status (1)

Country Link
CN (1) CN114118729A (en)

Similar Documents

Publication Publication Date Title
CN101739292B (en) Based on isomeric group operation self-adapting dispatching method and the system of application characteristic
CN101651576A (en) Alarm information processing method and system
CN116171453A (en) Method and apparatus for generating and utilizing knowledge patterns for manufacturing simulation models
CN103678583A (en) Method and system for comparing structural data
CN112204543A (en) Frequent pattern analysis for distributed systems
CN115905630A (en) Graph database query method, device, equipment and storage medium
CN116521956A (en) Graph database query method and device, electronic equipment and storage medium
CN111444309B (en) System for learning graph
CN105824279A (en) Method for establishing flexible and effective CMDB (Configuration Management Database) of machine room monitoring system
CN107678856B (en) Method and device for processing incremental information in business entity
US20210357427A1 (en) Reverse classification
CN110991803B (en) Enterprise actual controller supporting distributed computing and control path computing method
CN114118729A (en) Asset tree structure construction method and device
CN104750849A (en) Method and system for maintaining tree structure-based directory relationship
CN110287459B (en) Form batch processing method, system, device and storage medium
CN112148713A (en) Data migration method and device between heterogeneous databases
CN106095511A (en) A kind of server updating method and apparatus
CN116842092A (en) Method and system for database construction and collection management
CN108108444B (en) Enterprise business unit self-adaptive system and implementation method thereof
CN115914387A (en) Resource sharing and data query method, device and server
CN105354671A (en) Universal configuration management system and enterprise-level information system comprising same
CN114117077B (en) Operation and maintenance knowledge map construction and operation and maintenance method and device, computer equipment and storage medium
CN111159311B (en) Method, device, equipment and storage medium for integrating data mapping
CN108268662B (en) Social graph generation method based on H5 page, electronic device and storage medium
CN107992556B (en) Site management method and device, electronic equipment and storage medium

Legal Events

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