Summary of the invention
The purpose of the present invention is intended at least can solve above-mentioned one of technological deficiency, especially synchrodata in the prior artScattered, the problem of need to rearranging corresponding data structure system, spy proposes following technical scheme:
In a first aspect, the present invention provides a kind of synchronous method of related information comprising following steps:
Business classification information is obtained from operation system according to business demand;
Corresponding the first tissue Schema information is obtained from personnel system according to the business classification information;
The first tissue Schema information is converted into the corresponding minor microstructure Schema information of operation system, by described secondOrganizational structure information is sent to the operation system;
The minor microstructure Schema information is obtained, original minor microstructure Schema information in the operation system is countedAccording to update.
In one of the embodiments, that the first tissue Schema information is converted to operation system is second group correspondingBefore the step of knitting Schema information, further includes:
According to the business classification information, obtains and the first tissue Schema information is converted into the minor microstructure frameworkThe list of matches of information;
The described the step of the first tissue Schema information is converted into operation system corresponding minor microstructure Schema informationFurther include:
According to the list of matches, the first tissue Schema information is converted into the minor microstructure Schema information.
It is described in one of the embodiments, that the first tissue Schema information is converted into operation system corresponding secondThe step of organizational structure information includes:
The first tissue Schema information is extracted, and library is fallen according to the first field information of the first tissue Schema informationTo the tables of data of personnel system;
According to the list of matches, the first field information in tables of data is converted into the minor microstructure Schema informationSecond field information;
Second field is obtained, the minor microstructure Schema information is obtained.
It is described in one of the embodiments, to obtain second field, obtain the step of the minor microstructure Schema informationSuddenly include:
The department in the minor microstructure Schema information is encoded according to second field information;
Described be encoded to carries out higher level's number to the same branch, department of the minor microstructure Schema information from top to bottomIt continues to use and to the polishing of higher level's number digit.
It is described in one of the embodiments, to obtain the minor microstructure Schema information, to the original in the operation systemHave minor microstructure Schema information carry out data update the step of before, further includes:
When detect the first tissue Schema information first updates data inputting, with the typing of the first more new dataTime identifies the described first more new data, and is extracted;
By the described first more new data transition of extraction and correspondence is updated to the minor microstructure Schema information.
It is described in one of the embodiments, to obtain the minor microstructure Schema information, to the original in the operation systemHave minor microstructure Schema information carry out data update the step of before, further includes:
The data for receiving the operation system update request, obtain the second more new data of the operation system;
And data inputting is updated to the first tissue Schema information by described second;
According to the list of matches, the described second more new data is extracted in the first tissue Schema information, by extractionDescribed second more new data transition and correspondence be updated to the minor microstructure Schema information.
The synchronous method of the related information in one of the embodiments, further include:
The active states of department or hierarchical information in the minor microstructure Schema information are carried out to play label, wherein the lifeEffect state includes coming into force and failing;
According to the active states, in the minor microstructure Schema information department or hierarchical information identify;
When detecting that the active states in corresponding department or hierarchical information change, the active states are becomeInformation more issues change request to the operation system;
It is requested according to the change, the active states in corresponding department or hierarchical information is changed.
Second aspect, the present invention also provides a kind of synchronizing devices of related information comprising:
First obtains module, for obtaining business classification information from operation system according to business demand;
Second obtains module, for obtaining corresponding the first tissue frame from personnel system according to the business classification informationStructure information;
Conversion module is believed for the first tissue Schema information to be converted to the corresponding minor microstructure framework of operation systemBreath, is sent to the operation system for the minor microstructure Schema information;
Update module, for obtaining the minor microstructure Schema information, to original minor microstructure in the operation systemSchema information carries out data update.
The third aspect, the present invention also provides a kind of servers comprising:
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and quiltIt is configured to be executed by one or more of processors, one or more of programs are configured to: execute according to first aspectAny one of related information described in embodiment synchronous method.
Fourth aspect, the present invention also provides a kind of computer readable storage medium, on the computer readable storage mediumIt is stored with computer program, pass described in any one of first aspect embodiment is realized when which is executed by processorJoin the synchronous method of information.
The synchronous method and device of a kind of related information provided by the invention, according to the synchronization request of the operation system,The corresponding minor microstructure frame for obtaining corresponding the first tissue Schema information, and being converted into operation system in personnel systemStructure information, and relevant update is carried out according to the update of the first tissue Schema information.The synchronous method and device are by systematicallyData are converted and are updated, eliminates in the synchronous method of original related information and obtains data and again whole from databaseThe step of managing corresponding data framework system simplifies the acquisition process of data and reduces the difficulty of data maintenance.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following descriptionObviously, or practice through the invention is recognized.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to endSame or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attachedThe embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " oneIt is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the inventionDiction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or additionOther one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim memberPart is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also beIntermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrangeDiction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology artLanguage and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should alsoUnderstand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior artThe consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as hereTo explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communicationThe equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardwareEquipment, have on both-way communication chain road, can execute both-way communication reception and emit hardware equipment.This equipmentIt may include: honeycomb or other communication apparatus, shown with single line display or multi-line display or without multi-lineThe honeycomb of device or other communication apparatus;PCS (PersonalCommunications Service, person communication system), canWith combine voice, data processing, fax and/or data communication capabilities;PDA (Personal Digital Assistant, it is personalDigital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, dayIt goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palmType computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or itsHis equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation,Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earthAnd/or any other position operation in space." terminal " used herein above, " terminal device " can also be communicating terminal, onNetwork termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile InternetEquipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
In order to solve the problems of current association information synchronous method, the present invention provides a kind of the same of related informationOne step process please refers to shown in Fig. 1, and Fig. 1 is the synchronous method of the related information of one embodiment, comprising the following steps:
S110, business classification information is obtained from operation system according to business demand.
The personnel of operation system issue the synchronization request of the related information of corresponding operation system to server, server according toThe request obtains the business classification information of corresponding operation system.The business classification information performance is sending related informationService attribute of the operation system of synchronization request in organizational structure.
If corresponding operation system is the operation system of insurance, business classification information is insurance.Server is asked from synchronizingIt is extracted as the business classification information " insured " in asking, and obtains the business classification information.
The business classification information can be to be further arranged to specific business channel information.Server passes through to business pointThe extraction of category information is arranged, and is such as extracted with the combination that " area "+" type of service " is formed and obtains the business classification information.WithBusiness channel information is by the insurance business in Guangdong for example, the association that server is issued according to the insurance business system in GuangdongSynchronizing information request obtains the business classification information that " Guangdong "+" insurance " is formed.
The business classification information is also possible to the number to correspond to operation system or business channel and classifies as businessInformation.
S120, corresponding the first tissue Schema information is obtained from personnel system according to the business classification information.
In this step, server is according to the group stretching frame of the classification information acquired in step S110 and the personnel systemStructure information is matched, and according to matching result, obtains corresponding the first tissue Schema information.
It is illustrated so that above-mentioned business classification information is " Guangdong "+" insurance " as an example.Server is classified according to the businessInformation is matched in the total tissue Schema information of personnel system.The matched mode can be the industry of " Guangdong "+" insurance "Business classification information splits into " Guangdong " and " insurance ", and the establishment form of the total tissue Schema information according to personnel system, from upperLevel framework is matched level framework down.The elder generation of such as vertical organizational structure information is classified with area, the matched modeIt is matched accordingly with area " Guangdong ", then based on this, is matched, obtained and the industry with business classification " insurance "The business matched the first tissue Schema information of classification information.Vice versa.
The first tissue Schema information can also be obtained by the corresponding operation system or the number of business channel.SpecificallyGround, by the corresponding number into the total tissue Schema information of corresponding number.If the number is according to total tissue Schema informationIf number composition rule may be split into stem portion, according to the number after fractionation from upper level framework down level framework carry outMatch.S130, the first tissue Schema information is converted to the corresponding minor microstructure Schema information of operation system, by described secondOrganizational structure information is sent to the operation system.
In this step, server is arranged according to conversion, is converted to the first tissue Schema information acquired in step S120The minor microstructure Schema information that operation system needs, and the minor microstructure Schema information is sent to operation system by serverAnd storage and data maintenance are carried out by operation system.Conversion setting may include to department's conversion between organizational structure informationSetting and level conversion setting.By conversion, after conversion, the title and level of department can bases for corresponding department or levelCorresponding variation occurs for the conversion setting.
For personal information, during conversion, corresponding level and/or department can be followed and accordingly shifted, Bu HuiyinThe conversion of corresponding level and/or department and be transferred under other levels or department.
S140, remove to update original minor microstructure framework letter in the operation system using the minor microstructure Schema informationBreath.
In this step, server obtains the data that personnel system is updated, and converts to the data of the update, obtainsThe minor microstructure Schema information, and go to update the operation system Central Plains according to the updated minor microstructure Schema informationSome minor microstructure Schema informations.
The synchronous method of a kind of related information provided by the invention, according to the synchronization request of the operation system, in occurrences in human lifeCorrespondence obtains corresponding the first tissue Schema information in system, and the minor microstructure framework letter being converted into operation systemBreath, and relevant update is carried out according to the update of the first tissue Schema information.The synchronous method is by systematically carrying out dataIt converts and updates, eliminate and obtain data from database in the synchronous method of original related information and rearrange corresponding numberThe step of according to structure system, simplifies the acquisition process of data and reduces the difficulty of data maintenance.
In step s 130 the first tissue Schema information is converted to the corresponding minor microstructure framework of operation systemBefore the step of information, further includes: according to the business classification information, obtain the first tissue Schema information being converted to instituteState the list of matches of minor microstructure Schema information.Accordingly, described that the first tissue Schema information is converted into operation systemThe step of corresponding minor microstructure Schema information further include: according to the list of matches, the first tissue Schema information is turnedIt is changed to the minor microstructure Schema information.
Wherein, the list of matches is obtained according to conversion setting.Include in the minor microstructure organization informationHierarchical information and department's information contrast described in list of matches, be converted to from the first tissue Schema information.
Such as it is originally to be the marketing center xxx in the first tissue Schema information of personnel system, second after conversionIt is xxx collection center in organizational structure information;Originally in the first tissue Schema information of personnel system company A subordinate's machineStructure is the affiliated institutions of B company now.
And the list of matches is the corresponding business classification information.The step guarantees between two organizational structure informationThe conversion business demand that is issued according to the operation system generate, there is correspondence.
After obtaining the list of matches, for the first tissue Schema information is converted to business in step S130The step of system corresponding minor microstructure Schema information further include:
S131, the first tissue Schema information is extracted, and is believed according to the first field of the first tissue Schema informationBreath falls the tables of data in library to personnel system;
S132, according to the list of matches, the first field information of the first tissue Schema information is converted to describedSecond field information of minor microstructure Schema information;
S133, second field is obtained, obtains the minor microstructure Schema information.
Belong to security properties since personnel system is related to many information, cannot be opened to other systems and directly acquire informationPermission.In the present embodiment, the mode for extracting the first tissue Schema information is isolated form using KETTLE.ServiceDevice is isolated to extracting the first tissue Schema information in total tissue Schema information using KETTLE according to the list of matches,And tables of data of the library into personnel system is fallen according to the first field information in the first tissue Schema information.
Then, the first field information of the tables of data in above-mentioned personnel system is converted to minor microstructure framework again by serverSecond field information of information.It can guarantee that the information access process of personnel system will not reveal other relevant informations in this way.
During conversion, first field information matches column with the foundation of the second field information converted to be describedTable, to guarantee that conversion of the information between two organizational structure information is corresponding.
For above-mentioned steps S133, comprising:
S1331, the department in the minor microstructure Schema information is encoded according to second field information;
S1332, described be encoded to carry out higher level to the same branch, department of the minor microstructure Schema information from top to bottomNumber is continued to use and to the polishing of higher level's number digit.
To be more particularly described the coding mode, Fig. 2 can refer to, Fig. 2 is second group obtained according to the coding modeKnit the level coding schematic diagram of Schema information.
The coding of level-one mechanism as above is 3, and the coding of next stage mechanism need to continue to use the 3 of the coding of level-one mechanism thereonThen position supplements 2 on this basis, i.e. the digit of the next stage mechanism is 5;So encode down step by step.
The coding need to supplement different characters according to different levels and accurately identify department will pass through the coding of departmentThe level at place.Such as: there are multiple branches at certain level-one mechanism A, there is branch A and branch B.For branchMechanism A, including at least secondary facility A1, the three layers of constitutions A2 and level Four mechanism A3 marked as 221.Wherein, tier-2 department A13 digits, specially 123 are encoded to, next stage department (i.e. tier-3 department A2) is 5 digits, and double figures 00 need to be mended to it, is hadBody is 00123;The next stage department (level Four department A3) of the tier-3 department is 7 digits, double figures qq need to be mended to it, speciallyqq00123.And so on.
Before carrying out data update to original minor microstructure Schema information in operation system for step S140, serverAccording to different situations, following processing can be done before updating to data.
The first situation: when detect the first tissue Schema information first updates data inputting, more with firstThe entry time of new data identifies the described first more new data, and is extracted;Number is updated by described the first of extractionThe minor microstructure Schema information is updated to according to conversion and correspondence.
When server detects in the total tissue Schema information corresponding the first tissue Schema information part typingOne more new data, since logging data has date of entry and entry time, server is just with the entry time of the first more new dataCarry out mark identification.According to the newest first more new data being marked, extracted in the set time period.In the present embodimentIn, the set period of time is one day, then the data that can extract that date of entry is the same day daily of isolating ensure that daily in this wayWhat is extracted is latest data, and the first tissue Schema information is then converted into the minor microstructure Schema information again.
In this way, the available more new data according to the first tissue Schema information, periodically to the minor microstructure frameStructure information is updated, and guarantees that the minor microstructure Schema information and the first tissue Schema information in operation system keep dataIt is synchronous.
Second situation: the data for receiving the operation system update request, and obtain the operation system second updatesData;And data inputting is updated to the first tissue Schema information by described second;The described second more new data is extracted, will be taken outThe the described second more new data transition and correspondence taken is updated to the minor microstructure Schema information.
If the demand that data update, from operation system, the data of server operation system based on the received updateRequest, obtains the second more new data about operation system, the conversion setting of the corresponding list of matches, and corresponding typing is to describedThe first tissue Schema information.
Server such as can carry out mark to its entry time, so as at first group to the described second more new data markWhen knitting the second more new data of extraction in Schema information, it is easier to identify the described second more new data, reduce the operation of search dataAmount.
After completing to extract and obtain the second more new data, according to the list of matches, converts and correspondence is updated toThe minor microstructure Schema information.It is can guarantee when issuing data to update request is operation system in this way, also can guarantee firstOrganizational structure information is synchronous with the holding of minor microstructure Schema information.
For the synchronous method of related information provided by the present invention, may also include that the minor microstructure Schema informationThe active states of middle department or hierarchical information carry out playing label, wherein the active states include coming into force and failing;
According to the active states, in the minor microstructure Schema information department or hierarchical information identify;
When detecting that the active states in corresponding department or hierarchical information change, the active states are becomeInformation more issues change request to the operation system;
It is requested according to the change, the active states in corresponding department or hierarchical information is changed.
The operation system needs to carry out corresponding department or level the change of active states according to the variation of its businessMore, active states include coming into force and failing.
In the present embodiment, server is according to the active states, in the minor microstructure Schema information department orHierarchical information mark is identified.
If having the active states to change in the minor microstructure Schema information, server can be according to corresponding lifeState tag is imitated, easily identifies the department set out change more and/or hierarchical information, and the business is want according to the modification informationSystem issues change request.
After operation system receives the change request, the active states in corresponding department or hierarchical information are becomeMore.
The change of the information that comes into force of operation system can also be issued from server to the maintenance personnel of operation system and come into forceOr the change mail of failure, notify maintenance personnel to handle.
Department or level for failure are notified that operation system maintenance personnel, maintenance personnel can incite somebody to action according to actual needsCounterpart personnel's information is assigned under other departments or level.
It is the implement scene of the synchronous method of related information of the invention with reference to Fig. 3, Fig. 3.For above-mentioned about the present inventionThe server mentioned in a kind of synchronous method of the related information provided can be a server and complete personnel system and industryThe data interaction of business system;It can also be as shown in figure 3, the server be respectively first handled personnel system dataServer 310 and the second server 320 handled operation system data, two systems data pass through respective serverInteraction data.Operation system issues the request for obtaining data by the second server 320 to personnel system, works as personnel systemIt after receiving request by first server 310, obtains the first tissue Schema information and is converted to minor microstructure Schema information, and willThe minor microstructure Schema information is sent to second server 320 by the first server 310, is formed in operation systemMinor microstructure Schema information.
Based on inventive concept identical with the synchronous method of above-mentioned related information, the embodiment of the invention also provides a kind of passesJoin the synchronizing device of information, as shown in Figure 4, comprising:
First obtains module 410, for obtaining business classification information from operation system according to business demand;
Second obtains module 420, for obtaining corresponding first group from personnel system according to the business classification informationKnit Schema information;
Conversion module 430, for the first tissue Schema information to be converted to the corresponding minor microstructure frame of operation systemThe minor microstructure Schema information is sent to the operation system by structure information;
Update module 440, for obtaining the minor microstructure Schema information, to original second group in the operation systemIt knits Schema information and carries out data update.
Referring to FIG. 5, Fig. 5 is the schematic diagram of internal structure of server in one embodiment.As shown in figure 5, the serverIncluding processor 510, storage medium 520, memory 530 and the network interface 540 connected by system bus.Wherein, the clothesThe storage medium 520 of business device is stored with operating system, database and computer-readable instruction, and control letter can be stored in databaseSequence is ceased, when which is executed by processor 510, processor 510 may make to realize a kind of live content isolationMethod, processor 510 are able to achieve the first acquisition module in the synchronizing device of one of embodiment illustrated in fig. 4 related information410, second module 420, the function of conversion module 430 and update module 440 are obtained.The processor 510 of the server is for mentioningFor calculating and control ability, the operation of entire server is supported.It can be stored in the memory 530 of the server computer-readableInstruction may make processor 510 to execute a kind of synchronization of related information when the computer-readable instruction is executed by processor 510Method.The network interface 540 of the server is used for and terminal connection communication.It will be understood by those skilled in the art that being shown in Fig. 5Structure, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to it to application schemeOn server restriction, specific server may include more certain than more or fewer components as shown in the figure, or combinationComponent, or with different component layouts.
In one embodiment, the invention also provides a kind of storage medium for being stored with computer-readable instruction, the metersWhen calculation machine readable instruction is executed by one or more processors, so that one or more processors execute following steps: according to industryBusiness demand obtains business classification information from operation system;It is obtained from personnel system accordingly according to the business classification informationThe first tissue Schema information;The first tissue Schema information is converted into the corresponding minor microstructure Schema information of operation system,The minor microstructure Schema information is sent to the operation system;The minor microstructure Schema information is obtained, to the businessOriginal minor microstructure Schema information in system carries out data update.
Based on the above embodiments it is found that the maximum beneficial effect of the present invention is:
The synchronous method and device of a kind of related information provided by the invention are by systematically convert to data and moreNewly, it eliminates and obtains data from database in the synchronous method of original related information and rearrange corresponding data framework bodyThe step of being simplifies the acquisition process of data and reduces the difficulty of data maintenance.
In order to further ensure the correspondence of data is obtained according to the business classification information by the first tissue frameStructure information is converted to the list of matches of the minor microstructure Schema information.
On the basis of the above, the first field information of the first tissue Schema information will be converted to the minor microstructureSecond field information of Schema information obtains the minor microstructure organization information, so that personnel system according to second fieldInformation just for user business classification information provide information, guarantee acquisition process will not reveal other relevant informations.
Further, the method and device further include being believed according to second field information the minor microstructure frameworkDepartment in breath is encoded, and is made to convert the data to operation system and is just completed coding to corresponding department and level, willThe first tissue Schema information is disposably disposably updated to minor microstructure Schema information.
Further, when the data of personnel system are updated, the first of reason the first the first tissue Schema information is moreThe entry time of new data is identified that ensure that the interior extraction of set period of time is latest data.
Further, server can according to corresponding active states label, easily identify the department set out change more and/orHierarchical information, and think that the operation system issues change request according to the modification information, execute change.
To sum up, the present invention is according to the synchronization request of the operation system, and correspondence obtains corresponding first in personnel systemOrganizational structure information, and the minor microstructure Schema information being converted into operation system, and according to the first tissue Schema informationUpdate carry out relevant update, solve in the prior art that synchrodata is scattered, corresponding data structure system need to be rearrangedThe problem of.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be withRelevant hardware is instructed to complete by computer program, which can be stored in a computer-readable storage and be situated betweenIn matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, storage medium above-mentioned can beStorage mediums or the random access memories such as magnetic disk, CD, read-only memory (Read-Only Memory, ROM)(Random Access Memory, RAM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned realityIt applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not depositedIn contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneouslyLimitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the artFor, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the inventionProtect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.