CN109101503A - A kind of method and device creating institutional framework hierarchical relationship tree - Google Patents

A kind of method and device creating institutional framework hierarchical relationship tree Download PDF

Info

Publication number
CN109101503A
CN109101503A CN201710470334.9A CN201710470334A CN109101503A CN 109101503 A CN109101503 A CN 109101503A CN 201710470334 A CN201710470334 A CN 201710470334A CN 109101503 A CN109101503 A CN 109101503A
Authority
CN
China
Prior art keywords
institutional framework
level
character
character string
tissue
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
CN201710470334.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.)
Beijing Micro Shadow Era Technology Co Ltd
Original Assignee
Beijing Micro Shadow Era Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Micro Shadow Era Technology Co Ltd filed Critical Beijing Micro Shadow Era Technology Co Ltd
Priority to CN201710470334.9A priority Critical patent/CN109101503A/en
Publication of CN109101503A publication Critical patent/CN109101503A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application provides a kind of method and devices for creating institutional framework hierarchical relationship tree, and using specific institutional framework string representation institutional framework, which includes that the tissue currently to be indicated and its higher level institute are organized;Each tissue includes hierarchy characteristic character and organization name, and is isolated between two different tissues using level separator.All institutional framework character strings that current organization structure includes are obtained, each institutional framework character string is split according to level separator, obtains segmentation result;Then, the level according to belonging to level characteristic character in segmentation result determines the institutional framework that each level is included, finally obtains institutional framework hierarchical relationship.Because the institutional framework character string of the application is possibly stored in a table, thus memory space needed for reducing the institutional framework of a company;Furthermore, it is possible to which the rule according to the institutional framework character string arbitrarily increases the superior and the subordinate's tissue.

Description

A kind of method and device creating institutional framework hierarchical relationship tree
Technical field
The invention belongs to field of computer technology more particularly to a kind of methods and dress for creating institutional framework hierarchical relationship tree It sets.
Background technique
In actual life, the institutional framework of company would generally be related to many subordinate organizations, then, each layer of subordinate organization There are subordinate units and different product lines again below, so that complicated tree is formed, for example, the tree in china administration region Shape structure etc..
The storage format of each section relationship of Company Organization's management platform is the form of a string of codes in the database, But such code form is not used to operation and specific management of each section on management platform, and therefore, it is necessary to turn code string It is changed to the form that the front end of management platform can be shown.Currently, one level of the institutional framework of other companies establishes a table, account for Storage resource is more, moreover, needing accordingly to modify associated level corresponding when needing to update expansion institutional framework Table, when more comprising data volume in the level for needing to modify, modification amount can increase at multiple, is complicated for operation.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of method and device for creating institutional framework hierarchical relationship tree, It is more with the traditional institutional framework occupancy storage resource for solving above-mentioned, and update and expand problem complicated for operation.The skill of the application Art scheme is as follows:
In a first aspect, the application provides a kind of method for creating institutional framework hierarchical relationship tree, comprising:
All institutional framework character strings that current organization structure includes are obtained, the institutional framework character string includes current group It knits and all parent organizations of the current organization, is isolated between two different tissues using level separator, each The tissue includes hierarchy characteristic character and organization name, and the hierarchy characteristic character is for indicating layer belonging to the tissue Grade;
According to the level separator, each institutional framework character string is split, segmentation result is obtained, it is described Each character string in segmentation result only include a hierarchy characteristic character and with corresponding group of one hierarchy characteristic character Knit title;
According to level belonging to hierarchy characteristic character described in the segmentation result, the group that each level is included is determined It knits, obtains the institutional framework hierarchical relationship of the current organization structure.
Optionally, the method also includes:
According to level belonging to the hierarchy characteristic character predetermined, create that the current organization structure includes is each A to organize corresponding institutional framework character string, each character in the institutional framework character string carries out from high to low according to level Sequence, and the character of different levels is isolated using the level separator.
Optionally, the method also includes:
Storage format needed for the institutional framework relationship is converted to display front end;
The institutional framework relationship after conversion is sent to the display front end, so that described in the display front end shows The institutional framework relationship of current organization structure.
Optionally, level belonging to the hierarchy characteristic character according to the segmentation result, determines each level The institutional framework for being included obtains institutional framework relationship, comprising:
It is passed to recursive function using the segmentation result as parameter, obtaining using the recursive function has hierarchical relationship The institutional framework relationship.
Optionally, described according to the level separator, each institutional framework character string is split, is divided Cut result, comprising:
Search for the level separator that the institutional framework character string includes;
The character string extracted between two adjacent level separators obtains the segmentation result.
Second aspect, the application provide a kind of device for creating institutional framework hierarchical relationship tree, comprising:
Acquiring unit, all institutional framework character strings for including for obtaining current organization structure, the institutional framework word Symbol string includes all parent organizations of current organization and the current organization, utilizes level separator between two different tissues It is isolated, each tissue includes hierarchy characteristic character and organization name, and the hierarchy characteristic character is for indicating described Level belonging to tissue;
Cutting unit, for each institutional framework character string being split, is obtained according to the level separator Segmentation result, each character string in the segmentation result only include a hierarchy characteristic character and with one hierarchy characteristic The corresponding organization name of character;
Determination unit determines each layer for level belonging to the hierarchy characteristic character according to the segmentation result The tissue that grade is included, obtains the institutional framework hierarchical relationship of the current organization structure.
Optionally, described device further include:
Creating unit creates described current group for the level according to belonging to the hierarchy characteristic character predetermined The corresponding institutional framework character string of each tissue that structure includes is knitted, each character in the institutional framework character string is according to layer Grade is ranked up from high to low, and the character of different levels is isolated using the level separator.
Optionally, described device further include:
Converting unit, for storage format needed for the institutional framework relationship is converted to display front end;
Transmission unit, for the institutional framework relationship after conversion to be sent to the display front end, so that described aobvious Show that front end shows the institutional framework relationship of the current organization structure.
Optionally, the determination unit is specifically used for:
It is passed to recursive function using the segmentation result as parameter, obtaining using the recursive function has hierarchical relationship The institutional framework relationship.
Optionally, the cutting unit includes:
Search for subelement, the level separator for including for searching for the institutional framework character string;
Extract subelement, for extract the character string between two adjacent level separators obtain one described in point Cut result.
The method of creation institutional framework hierarchical relationship tree provided in this embodiment, utilizes specific institutional framework string table Show institutional framework, wherein institutional framework character string includes current organization and all parent organizations of the current organization, each tissue It is isolated including hierarchy characteristic character and organization name, and between two different tissues using level separator.Obtain current organization All institutional framework character strings that structure includes are split each institutional framework character string according to level separator, obtain Segmentation result;Then, the level according to belonging to level characteristic character in segmentation result determines the knot of tissue that each level is included Structure finally obtains the corresponding institutional framework hierarchical relationship of entire current organization structure.Because of the institutional framework character in the application The tissue currently to be indicated is generally comprised in string and its higher level institute is organized, so, the institutional framework of a company completely can be with It stores into a table, thus memory space needed for reducing the institutional framework of a company;Furthermore, it is possible to according to the tissue The rule of structure character string arbitrarily increases the superior and the subordinate's tissue.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 shows a kind of flow chart for the method for creating institutional framework hierarchical relationship tree of the embodiment of the present application;
Fig. 2 shows the schematic diagrames of the final result stored in a kind of tree_list of the embodiment of the present application;
Fig. 3 shows the schematic diagram of institutional framework hierarchical relationship shown by a kind of display front end of the embodiment of the present application;
Fig. 4 shows the method flow diagram of the embodiment of the present application another kind creation institutional framework hierarchical relationship tree;
Fig. 5 shows a kind of device block diagram for creating institutional framework hierarchical relationship tree of the embodiment of the present application;
Fig. 6 shows a kind of block diagram of cutting unit of the embodiment of the present application;
Fig. 7 shows the device block diagram of the embodiment of the present application another kind creation institutional framework hierarchical relationship tree;
Fig. 8 shows the device block diagram of another creation institutional framework hierarchical relationship tree of the embodiment of the present application.
Specific embodiment
One level of institutional framework of other companies establishes a table, and the storage resource occupied in this way is more, moreover, when needing When updating expansion institutional framework, need accordingly to modify table corresponding to associated level, if the level phase of required update When associated table is more, updating workload can increase at multiple, operate very complicated.This application provides a kind of creation institutional frameworks The method of hierarchical relationship tree utilizes specific institutional framework string representation institutional framework, wherein institutional framework character string includes The tissue of different levels, each tissue includes hierarchy characteristic character and organization name, and level is utilized between two different tissues Separator isolation.All institutional framework character strings that current organization structure includes are obtained, according to level separator to each tissue Structure character string is split, and obtains segmentation result;Then, the level according to belonging to level characteristic character in segmentation result, really The institutional framework that fixed each level is included, finally obtains the corresponding institutional framework hierarchical relationship of entire current organization structure.It should Method indicates institutional framework relationship using specific institutional framework character string, works as because generally comprising in institutional framework character string Before to indicate that the tissue indicated and its higher level institute are organized, so, the institutional framework of a company is possibly stored to one completely In table, thus memory space needed for reducing the institutional framework of a company;Furthermore, it is possible to according to the institutional framework character string Rule arbitrarily increase the superior and the subordinate tissue.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Referring to Figure 1, a kind of flow chart for the method for creating institutional framework hierarchical relationship tree of the embodiment of the present application is shown, This method is applied in server, and this method may include:
S110 obtains all institutional framework character strings that current organization structure includes.
The institutional framework character string includes the tissue of at least two levels, utilizes layer between two different tissues Fire resisting division symbol is isolated, and each tissue includes hierarchy characteristic character and organization name, and the hierarchy characteristic character is used for Indicate level belonging to the tissue.
In one embodiment of the application, the current organization structure refers to that the institute of some to be managed companies is organized Department.For example, the institutional framework character string of some tissue is " cop.yupiao_owt.SRE_pdl.mongodb_ service.ERP”。
Above-mentioned institutional framework character string is described as follows:
Underscore " _ " expression layer fire resisting division symbol can be replaced with other symbols;
Character representation hierarchy characteristic character before " ", for example, " cop ";
The title of each tissue of " " subsequent character representation, for example, " yupiao ";
Wherein, cop indicates company, and yupiao indicates Business Name, and the unified resource that cop.yupiao represents yupiao is fixed Position symbol (Uniform Resource Locator, URL);
Owt indicates unit, and SRE indicates organization, and cop.yupiao_owt.SRE represents the URL of SRE;
Pdl indicates that product line, mongodb indicate product line title, cop.yupiao_owt.SRE_pdl.mongodb generation The URL of table mongodb;
Service indicates service, and ERP indicates service name, cop.yupiao_owt.SRE_pdl.mongodb_ Service.ERP represents the URL of ERP;
Above-mentioned string representation company, unit, product line, service level Four hierarchical relationship.
According to the corresponding institutional framework character string of tissue each in the entire institutional framework of above-mentioned rule creation, and store to number According in library, these institutional framework character strings are stored in the database in a table, in table each data include ID and Data item, wherein ID is the mark of data item, the content in data item, that is, institutional framework character string.When needing to create knot of tissue When structure hierarchical relationship tree, all institutional framework character strings are read from database.All institutional framework character strings read (that is, tag) is placed in cyclic variable tag_list, the parameter as principal function GetTag_Tree.
Each institutional framework character string is split by S120 according to the level separator, obtains segmentation knot Fruit.
Each character string in the segmentation result only includes a hierarchy characteristic character and special with one level Levy the corresponding organization name of character.
In one embodiment of the application, defined variable tree_dict is empty dictionary, utilizes cyclic variable tag_list Each tag is split according to level separator, obtains segmentation result, and using segmentation result and variable tree_dict as Parameter is transmitted to recursive function GetTagTreeDict_ByDiGui.
For example, being carried out to institutional framework character string " cop.yupiao_owt.SRE_pdl.mongodb_service.ERP " Segmentation, obtained segmentation result is: " cop.yupiao ", " owt.SRE ", " pdl.mongodb " and " service.ERP ".
S130 determines that each level is included according to level belonging to hierarchy characteristic character described in the segmentation result Tissue, obtain the institutional framework hierarchical relationship of the current organization structure.
Relationship between superior and subordinate between the prespecified each level of this method, for example, above-mentioned institutional framework character string is real In example, hierarchical relationship is successively " cop " → " owt " → " pdl " → " service " from high to low.
According to the segmentation result of the corresponding whole institutional framework character strings of current organization structure, the available current organization The corresponding institutional framework hierarchical relationship of structure.
In one embodiment of the application, parameter is regenerated using recursive function GetTagTreeDict_ByDiGui Tree_dict, the tree_dict regenerated are the big dictionaries for having hierarchical relationship, such as: ' cop.yupiao':{ ' owt.SRE':{'pdl.mongodb':{'service.ERP':{}}}}}。
Optionally, as shown in Figure 1, this method further includes S140 and S150;
S140, storage format needed for institutional framework relationship is converted to display front end.
Display front end be with implement this method server corresponding to web client, user can be in the display front end Check the hierarchical relationship of current organization structure.
In one embodiment of the application, defined variable tree_list is empty list, for storing final result; By variable tree_list, by the processed tree_dict of function GetTagTreeDict_ByDiGui, and, null character string It is transmitted to function GetTagTreeList_ByDiGui as parameter, is become by function GetTagTreeList_ByDiGui Recursion process The tree_dict that receives is measured, and format needed for being assembled into web, is saved in variable tree_list.
Null character string is the corresponding URL of tissue of each level needed for showing front end, is defaulted as null character string.
Fig. 2 is referred to, the schematic diagram of the final result stored in a kind of tree_list of the embodiment of the present application is shown.
As shown in Fig. 2, the subsequent character string of URL is the corresponding institutional framework character string of current hierarchical organization, behind text Character string be current level organization name;Nodes indicates list type, for storing the subordinate organization of current organization, often A tissue has a corresponding nodes.
Institutional framework relationship after conversion is sent to display front end by S150, so that display front end shows described current group Knit the institutional framework relationship of structure.
Then final result tree_list is sent to display front end, so that display front end shows the institutional framework level Relationship.
Fig. 3 is referred to, showing for institutional framework hierarchical relationship shown by a kind of display front end of the embodiment of the present application is shown It is intended to;
In Fig. 3, " yupiao " is level-one tissue, under include second level tissue include " hand Q user research and development ", " be commercialized Research and development ", " SRE ";Wherein, the next stage tissue of second level tissue " hand Q user research and development " is " front end hand Q ", is somebody's turn to do " front end hand Q " and includes Two parts are respectively: " moudule " and " mqq-index ".The next stage tissue of second level tissue " SRE " is " mongodb ", In, " mongodb " includes " booksystem ", " pricewatercourse " and " ERP " this three parts.
The method of creation institutional framework hierarchical relationship tree provided in this embodiment, utilizes specific institutional framework string table Show institutional framework, wherein institutional framework character string includes the tissue of different levels, and each tissue includes hierarchy characteristic character and group Title is knitted, and is isolated between two different tissues using level separator.Obtain all knot of tissue that current organization structure includes Structure character string is split each institutional framework character string according to level separator, obtains segmentation result;Then, according to point Level belonging to level characteristic character in result is cut, determines the institutional framework that each level is included, is finally obtained entire current The corresponding institutional framework hierarchical relationship of institutional framework.This method indicates that institutional framework is closed using specific institutional framework character string System, because generally comprising the tissue currently to be indicated and its higher level institute in institutional framework character string in a organized way, a company Institutional framework be possibly stored in a table completely, thus memory space needed for reducing the institutional framework of a company; Furthermore, it is possible to which the rule according to the institutional framework character string arbitrarily increases the superior and the subordinate's tissue.
Fig. 4 is referred to, the method flow diagram of the embodiment of the present application another kind creation institutional framework hierarchical relationship tree is shown, It is further comprising the steps of on the basis of this method embodiment shown in Fig. 1:
It further include step S210 before S110;
S210 creates the current organization structure packet according to level belonging to the hierarchy characteristic character predetermined The corresponding institutional framework character string of each tissue contained.
Each character in the institutional framework character string is ranked up from high to low according to level, and the word of different levels Symbol is isolated using the level separator.For example, " cop.yupiao_owt.SRE_pdl.mongodb_service.ERP ".
The method of creation institutional framework hierarchical relationship tree provided in this embodiment, is carrying out pipe to institutional framework hierarchical relationship Before reason, need to knit creation institutional framework character string for each of institutional framework, so as to subsequent according to the institutional framework word Symbol string is managed institutional framework.
For the various method embodiments described above, for simple description, therefore, it is stated as a series of action combinations, but Be those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because according to the present invention, certain A little steps can be performed in other orders or simultaneously.Secondly, those skilled in the art should also know that, it is retouched in specification The embodiment stated belongs to preferred embodiment, and related actions and modules are not necessarily necessary for the present invention.
Corresponding to above-mentioned embodiment of the method, present invention also provides the device implementations of creation institutional framework hierarchical relationship tree Example.
Fig. 5 is referred to, a kind of device block diagram for creating institutional framework hierarchical relationship tree of the embodiment of the present application, the dress are shown Set be applied to organization management server in, as shown in figure 5, the device include: acquiring unit 110, cutting unit 120 and really Order member 130.
Acquiring unit 110, all institutional framework character strings for including for obtaining current organization structure.
The institutional framework character string includes the tissue of at least two levels, utilizes layer between two different tissues Fire resisting division symbol is isolated, and each tissue includes hierarchy characteristic character and organization name, and the hierarchy characteristic character is used for Indicate level belonging to the tissue.
Institutional framework character string is stored in the database in a table, and each data include an ID and data in table , wherein ID is the mark of data item, the content in data item, that is, institutional framework character string.When needing to create institutional framework layer When grade relational tree, all institutional framework character strings are read from database.Read all institutional framework character strings (that is, Tag it) is placed in cyclic variable tag_list, the parameter as principal function GetTag_Tree.
Cutting unit 120, for according to the level separator, each institutional framework character string to be split, Obtain segmentation result.
Each character string in the segmentation result only include a hierarchy characteristic character and with one hierarchy characteristic The corresponding organization name of character.
In one embodiment of the application, as shown in fig. 6, the cutting unit 120 includes: search 121 He of subelement Extract subelement 122.
Search for subelement 121, the level separator for including for searching for the institutional framework character string.
Subelement 122 is extracted, obtains an institute for extracting the character string between two adjacent level separators State segmentation result.
For example, for institutional framework character string " cop.yupiao_owt.SRE_pdl.mongodb_service.ERP ", Wherein, level separator is " _ ", then is split according to level separator to institutional framework character string, obtained segmentation result It is: " cop.yupiao ", " owt.SRE ", " pdl.mongodb " and " service.ERP ".
Determination unit 130 determines each for level belonging to the hierarchy characteristic character according to the segmentation result The tissue that level is included obtains the institutional framework hierarchical relationship of the current organization structure.
In one embodiment of the application, determination unit is specifically passed to recurrence letter for the segmentation result as parameter Number obtains the institutional framework relationship with hierarchical relationship using the recursive function.For example, utilizing recursive function GetTagTreeDict_ByDiGui regenerates parameter tree_dict, and the tree_dict regenerated, which is one, level pass The big dictionary of system, such as: ' cop.yupiao':{ ' owt.SRE':{ ' pdl.mongodb':{ ' service.ERP': {}}}}}。
The device of creation institutional framework hierarchical relationship tree provided in this embodiment, utilizes specific institutional framework string table Show institutional framework, wherein institutional framework character string includes the tissue of different levels, and each tissue includes hierarchy characteristic character and group Title is knitted, and is isolated between two different tissues using level separator.Obtain all knot of tissue that current organization structure includes Structure character string is split each institutional framework character string according to level separator, obtains segmentation result;Then, according to point Level belonging to level characteristic character in result is cut, determines the institutional framework that each level is included, is finally obtained entire current The corresponding institutional framework hierarchical relationship of institutional framework.The device indicates that institutional framework is closed using specific institutional framework character string System, because generally comprising the tissue currently to be indicated and its higher level institute in institutional framework character string in a organized way, a company Institutional framework be possibly stored in a table completely, thus memory space needed for reducing the institutional framework of a company; Furthermore, it is possible to which the rule according to the institutional framework character string arbitrarily increases the superior and the subordinate's tissue.
Fig. 7 is referred to, the device block diagram of another creation institutional framework hierarchical relationship tree of the embodiment of the present application is shown, On the basis of device embodiment shown in Fig. 5 further include: creating unit 210.
Creating unit 210 creates described current for the level according to belonging to the hierarchy characteristic character predetermined The corresponding institutional framework character string of each tissue that institutional framework includes.
Each character in the institutional framework character string is ranked up from high to low according to level, and the word of different levels Symbol is isolated using the level separator.
Each character in the institutional framework character string is ranked up from high to low according to level, and the word of different levels Symbol is isolated using the level separator.For example, " cop.yupiao_owt.SRE_pdl.mongodb_service.ERP ".
The device of creation institutional framework hierarchical relationship tree provided in this embodiment, is carrying out pipe to institutional framework hierarchical relationship Before reason, need to knit creation institutional framework character string for each of institutional framework, so as to subsequent according to the institutional framework word Symbol string is managed institutional framework.
Fig. 8 is referred to, the device block diagram of the embodiment of the present application another kind creation institutional framework hierarchical relationship tree is shown, it should It further include converting unit 310 and transmission unit 320 on the basis of device embodiment shown in Fig. 5.
Converting unit 310, for storage format needed for the institutional framework relationship is converted to display front end.
Display front end be with implement this method server corresponding to web client, user can be in the display front end Check the hierarchical relationship of current organization structure.
In one embodiment of the application, defined variable tree_list is empty list, for storing final result; By variable tree_list, by the processed tree_dict of function GetTagTreeDict_ByDiGui, and, null character string It is transmitted to function GetTagTreeList_ByDiGui as parameter, is become by function GetTagTreeList_ByDiGui Recursion process The tree_dict that receives is measured, and format needed for being assembled into web, is saved in variable tree_list.
Null character string is the corresponding URL of tissue of each level needed for showing front end, is defaulted as null character string.
Transmission unit 320, for the institutional framework relationship after conversion to be sent to the display front end, so that described Display front end shows the institutional framework relationship of the current organization structure.
Then final result tree_list is sent to display front end, so that display front end shows the institutional framework level Relationship.It is the display renderings for showing front end as shown in Figure 3 in one embodiment of the application.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest Range.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of method for creating institutional framework hierarchical relationship tree characterized by comprising
Obtain current organization structure all institutional framework character strings for including, the institutional framework character string include current organization and All parent organizations of the current organization are isolated between two different tissues by level separator, each described Tissue includes hierarchy characteristic character and organization name, and the hierarchy characteristic character is for indicating level belonging to the tissue;
According to the level separator, each institutional framework character string is split, segmentation result, the segmentation are obtained As a result each character string in only includes a hierarchy characteristic character and organization name corresponding with one hierarchy characteristic character Claim;
According to level belonging to hierarchy characteristic character described in the segmentation result, determines the tissue that each level is included, obtain To the institutional framework hierarchical relationship of the current organization structure.
2. the method according to claim 1, wherein the method also includes:
According to level belonging to the hierarchy characteristic character predetermined, each group that the current organization structure includes is created Corresponding institutional framework character string is knitted, each character in the institutional framework character string is arranged from high to low according to level Sequence, and the character of different levels is isolated using the level separator.
3. the method according to claim 1, wherein the method also includes:
Storage format needed for the institutional framework relationship is converted to display front end;
The institutional framework relationship after conversion is sent to the display front end so that the display front end show it is described current The institutional framework relationship of institutional framework.
4. method according to claim 1-3, which is characterized in that the layer according to the segmentation result Level belonging to grade characteristic character, determines the institutional framework that each level is included, obtains institutional framework relationship, comprising:
It is passed to recursive function using the segmentation result as parameter, being obtained using the recursive function is had described in hierarchical relationship Institutional framework relationship.
5. method according to claim 1-3, which is characterized in that it is described according to the level separator, it will be every A institutional framework character string is split, and obtains segmentation result, comprising:
Search for the level separator that the institutional framework character string includes;
The character string extracted between two adjacent level separators obtains the segmentation result.
6. a kind of device for creating institutional framework hierarchical relationship tree characterized by comprising
Acquiring unit, all institutional framework character strings for including for obtaining current organization structure, the institutional framework character string All parent organizations including current organization and the current organization utilize level separator to carry out between two different tissues Isolation, each tissue includes hierarchy characteristic character and organization name, and the hierarchy characteristic character is for indicating the tissue Affiliated level;
Cutting unit, for each institutional framework character string being split, is divided according to the level separator As a result, each character string in the segmentation result only include a hierarchy characteristic character and with one hierarchy characteristic character Corresponding organization name;
Determination unit determines each level institute for level belonging to the hierarchy characteristic character according to the segmentation result The tissue for including obtains the institutional framework hierarchical relationship of the current organization structure.
7. the device stated according to claim 6, which is characterized in that described device further include:
Creating unit creates the current organization knot for the level according to belonging to the hierarchy characteristic character predetermined The corresponding institutional framework character string of each tissue that structure includes, each character in the institutional framework character string according to level by It is high to Low to be ranked up, and the character of different levels is isolated using the level separator.
8. device according to claim 6, which is characterized in that described device further include:
Converting unit, for storage format needed for the institutional framework relationship is converted to display front end;
Transmission unit, for the institutional framework relationship after conversion to be sent to the display front end, so that before the display End shows the institutional framework relationship of the current organization structure.
9. according to the described in any item devices of claim 6-8, which is characterized in that the determination unit is specifically used for:
It is passed to recursive function using the segmentation result as parameter, being obtained using the recursive function is had described in hierarchical relationship Institutional framework relationship.
10. according to the described in any item devices of claim 6-8, which is characterized in that the cutting unit includes:
Search for subelement, the level separator for including for searching for the institutional framework character string;
Subelement is extracted, obtains the segmentation knot for extracting the character string between two adjacent level separators Fruit.
CN201710470334.9A 2017-06-20 2017-06-20 A kind of method and device creating institutional framework hierarchical relationship tree Pending CN109101503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710470334.9A CN109101503A (en) 2017-06-20 2017-06-20 A kind of method and device creating institutional framework hierarchical relationship tree

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710470334.9A CN109101503A (en) 2017-06-20 2017-06-20 A kind of method and device creating institutional framework hierarchical relationship tree

Publications (1)

Publication Number Publication Date
CN109101503A true CN109101503A (en) 2018-12-28

Family

ID=64795591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710470334.9A Pending CN109101503A (en) 2017-06-20 2017-06-20 A kind of method and device creating institutional framework hierarchical relationship tree

Country Status (1)

Country Link
CN (1) CN109101503A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918443A (en) * 2019-01-28 2019-06-21 平安科技(深圳)有限公司 The synchronous method and device of related information
CN113821572A (en) * 2021-07-19 2021-12-21 中共四川省委组织部 Method and equipment for generating organization structure tree based on organization structure coding

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101501688A (en) * 2006-06-12 2009-08-05 沙力股份有限公司 Methods and apparatuses for searching content
EP2293186A1 (en) * 2009-09-02 2011-03-09 Siemens Aktiengesellschaft Method and system for creating a tree structure
CN102597993A (en) * 2009-09-25 2012-07-18 国际商业机器公司 Managing application state information by means of a uniform resource identifier (uri)
CN103324763A (en) * 2013-07-18 2013-09-25 北京金和软件股份有限公司 Presenting method for tree-form data structure of mobile phone terminal
CN104407868A (en) * 2014-11-28 2015-03-11 国家电网公司 Method and device for achieving organization chart
US20150135162A1 (en) * 2013-11-11 2015-05-14 Renesas Electronics Corporation Data processing system, input support method, and input support program
US20150134670A1 (en) * 2013-11-08 2015-05-14 Oracle International Corporation Generic Indexing for Efficiently Supporting Ad-Hoc Query Over Hierarchically Marked-Up Data
CN105426389A (en) * 2015-10-26 2016-03-23 武汉微创光电股份有限公司 Fuzzy retrieval locating method based on UI directory tree view
CN105630985A (en) * 2015-12-25 2016-06-01 浪潮软件股份有限公司 Implementation method and device of organization mechanism view

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101501688A (en) * 2006-06-12 2009-08-05 沙力股份有限公司 Methods and apparatuses for searching content
EP2293186A1 (en) * 2009-09-02 2011-03-09 Siemens Aktiengesellschaft Method and system for creating a tree structure
CN102597993A (en) * 2009-09-25 2012-07-18 国际商业机器公司 Managing application state information by means of a uniform resource identifier (uri)
CN103324763A (en) * 2013-07-18 2013-09-25 北京金和软件股份有限公司 Presenting method for tree-form data structure of mobile phone terminal
US20150134670A1 (en) * 2013-11-08 2015-05-14 Oracle International Corporation Generic Indexing for Efficiently Supporting Ad-Hoc Query Over Hierarchically Marked-Up Data
US20150135162A1 (en) * 2013-11-11 2015-05-14 Renesas Electronics Corporation Data processing system, input support method, and input support program
CN104407868A (en) * 2014-11-28 2015-03-11 国家电网公司 Method and device for achieving organization chart
CN105426389A (en) * 2015-10-26 2016-03-23 武汉微创光电股份有限公司 Fuzzy retrieval locating method based on UI directory tree view
CN105630985A (en) * 2015-12-25 2016-06-01 浪潮软件股份有限公司 Implementation method and device of organization mechanism view

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
权鑫: "基于D3.js的数据可视化系统框架设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918443A (en) * 2019-01-28 2019-06-21 平安科技(深圳)有限公司 The synchronous method and device of related information
CN109918443B (en) * 2019-01-28 2023-07-21 平安科技(深圳)有限公司 Method and device for synchronizing associated information
CN113821572A (en) * 2021-07-19 2021-12-21 中共四川省委组织部 Method and equipment for generating organization structure tree based on organization structure coding

Similar Documents

Publication Publication Date Title
CN102419778B (en) Information searching method for discovering and clustering sub-topics of query statement
JP5092165B2 (en) Data construction method and system
CN102467521B (en) Easily-extensible multi-level classification search method and system
CN104021198B (en) The relational database information search method and device indexed based on Ontology
CN103023714B (en) The liveness of topic Network Based and cluster topology analytical system and method
CN105808696B (en) It is a kind of based on global and local feature across line social network user matching process
CN102346747B (en) Method for searching parameters in data model
CN107346325A (en) Information query method and device
CN106599104A (en) Mass data association method based on redis cluster
CN103825918B (en) Method of data synchronization, terminal device, server and system
CN107729481A (en) The Text Information Extraction result screening technique and device of a kind of custom rule
CN103150409B (en) Method and system for recommending user search word
CN104346382B (en) Use the text analysis system and method for language inquiry
CN109101503A (en) A kind of method and device creating institutional framework hierarchical relationship tree
CN110807038A (en) CMDB information full-text retrieval method based on elastic search
CN101937455B (en) Method for establishing multi-dimensional classification cluster based on infinite hierarchy and heredity information
EP2662781A2 (en) Entity name variant generator
EP2972970B1 (en) Locale-based sorting on mobile devices
CN109741034B (en) Grid tree organization management method and device
CN101917282B (en) Method, device and system for processing alarm shielding rules
CN109408704B (en) Fund data association method, system, computer device and storage medium
CN106033470B (en) A kind of tree construction method for building up and device
CN102868746A (en) Method for realizing mobile informationization
JP2012059212A (en) Extraction apparatus, extraction method and extraction program
CN104239314A (en) Search word expanding method and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181228

RJ01 Rejection of invention patent application after publication