CN109460901B - Seat information synchronization method and device, computer equipment and storage medium - Google Patents

Seat information synchronization method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109460901B
CN109460901B CN201811210074.2A CN201811210074A CN109460901B CN 109460901 B CN109460901 B CN 109460901B CN 201811210074 A CN201811210074 A CN 201811210074A CN 109460901 B CN109460901 B CN 109460901B
Authority
CN
China
Prior art keywords
service system
seat
information
agent
update
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.)
Active
Application number
CN201811210074.2A
Other languages
Chinese (zh)
Other versions
CN109460901A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811210074.2A priority Critical patent/CN109460901B/en
Publication of CN109460901A publication Critical patent/CN109460901A/en
Application granted granted Critical
Publication of CN109460901B publication Critical patent/CN109460901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/03Credit; Loans; Processing thereof

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Technology Law (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides an agent information synchronization method, an agent information synchronization device, computer equipment and a storage medium, wherein whether an agent information update occurs in a current service system is detected through a set detection triggering condition, when the detection result is that the agent information update occurs in the current service system, a target agent number in which the agent information update occurs and pre-update agent information and post-update agent information corresponding to each target agent number are obtained, an external service system needing to be synchronously updated is determined, the content of each external service system needing to be updated is determined, corresponding first messages are respectively constructed according to the determined content of each external service system needing to be updated, and the constructed first messages are analyzed and sent to the corresponding external service system through an enterprise service bus. The invention can automatically synchronize the content updated by the agent information to other service systems, thereby ensuring the consistency of the stored information aiming at the same agent in different service systems.

Description

Seat information synchronization method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a seat information synchronization method, apparatus, computer device, and storage medium.
Background
In the face-sign process of the automobile finance loan industry, a face-sign service is provided for clients by a seat service system. In the face-tagging process, there may be a problem that the same agent uses different service systems. And different service systems respectively maintain seat information in the corresponding systems by different responsible persons. Because different business systems are maintained by different responsible persons, the situation that the information of the same seat in different business systems is inconsistent can be caused.
Disclosure of Invention
The invention aims to provide a seat information synchronization method, a seat information synchronization device, computer equipment and a storage medium, which are used for solving the problems existing in the prior art.
In order to achieve the above object, the present invention provides a seat information synchronization method, comprising the following steps:
Detecting whether seat information update occurs in the current service system according to preset detection triggering conditions, and obtaining a detection result;
When the detection result is that the seat information is updated in the current service system, acquiring a target seat number with the seat information updated, and the seat information before update and the seat information after update corresponding to each target seat number;
according to each acquired target seat number, determining an external service system which needs to be synchronously updated;
Determining the content to be updated of each external service system according to the acquired pre-update agent information and post-update agent information corresponding to each target agent number;
Respectively constructing corresponding first messages according to the content which is determined to be updated by each external service system;
And sending the constructed first message to a corresponding external service system through an enterprise service bus, so that the external service system updates information in the service system according to the received first message.
Preferably, the method comprises the steps of,
The detecting whether the seat information update occurs in the current service system comprises the following steps: acquiring a system log corresponding to the current service system, detecting whether the system log has operations of modifying, adding and/or deleting the seat information in a target time period, if so, determining that the seat information is updated in the current service system, and if not, determining that the seat information is not updated in the current service system;
Further comprises: recording the time point of each detection; the target time period is a time period from a last detection time point to a current detection time point.
Preferably, the determining the external service system that needs to be synchronously updated according to the acquired target agent number includes:
Acquiring a first corresponding relation between a pre-configured seat number and a service system number used by the seat number, determining the service system number used by a target seat number according to the first corresponding relation, removing the number of the current service system from the service system number used by the determined target seat number, and determining the number of an external service system needing synchronous updating.
Preferably, the determining, according to the acquired pre-update agent information and post-update agent information corresponding to each target agent number, content that needs to be updated by each external service system includes:
For the current external first service system, the content which needs to be updated is determined by the following steps: and determining the acquired target seat numbers, wherein the target seat first numbers of the external first service systems are used, and the pre-update seat information and the post-update seat information corresponding to the determined target seat first numbers are determined to be the content which needs to be updated by the external first service systems.
Preferably, the method comprises the steps of,
Further comprises: presetting a target format of a constructed message;
and when the corresponding first message is respectively constructed according to the determined content which needs to be updated of each external service system, constructing by further utilizing the target format.
Preferably, the method comprises the steps of,
Further comprises: a second corresponding relation between the external service system number and the destination address is prestored;
Before the first message is sent to the corresponding external service system through the enterprise service bus, the method further comprises: and determining the destination address of each external service system according to the second corresponding relation.
Preferably, the method further comprises: when a second message sent by an external service system is received, analyzing the content of the second message to obtain a first seat number with seat information updated, pre-update seat information and post-update seat information corresponding to the first seat number, searching the pre-update seat information corresponding to the first seat number stored in the current service system, and modifying the pre-update seat information corresponding to the first seat number stored in the current service system into post-update seat information corresponding to the first seat number.
In order to achieve the above object, the present invention further provides an agent information synchronization device, including:
the detection module is used for detecting whether seat information update occurs in the current service system according to preset detection triggering conditions, and obtaining a detection result;
the acquisition module is used for acquiring target seat numbers updated by the seat information, and the seat information before update and the seat information after update corresponding to each target seat number when the detection result is that the seat information is updated in the current service system;
The first determining module is used for determining an external service system which needs to be synchronously updated according to the acquired target seat numbers;
The second determining module is used for determining the content to be updated of each external service system according to the acquired pre-update agent information and post-update agent information corresponding to each target agent number;
the message construction module is used for respectively constructing corresponding first messages according to the content which is determined to be updated by each external service system;
And the sending module is used for sending the constructed first message to a corresponding external service system through the enterprise service bus so that the external service system updates the information in the service system according to the received first message.
To achieve the above object, the present invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
To achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the above method.
The seat information synchronization method, the device, the computer equipment and the storage medium provided by the invention are used for detecting whether the seat information update occurs in the current service system or not through the set detection triggering condition, acquiring the target seat number with the seat information update and the seat information before update and the seat information after update corresponding to each target seat number when the seat information update occurs in the current service system as a detection result, determining the external service system needing to be synchronously updated, further determining the content needing to be updated of each external service system, respectively constructing corresponding first messages according to the determined content needing to be updated of each external service system, and analyzing and sending each constructed first message to the corresponding external service system through an enterprise service bus. The invention can automatically synchronize the content updated by the agent information to other service systems, thereby ensuring the consistency of the stored information aiming at the same agent in different service systems.
Drawings
FIG. 1 is a flowchart of a seat information synchronization method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a program module of a seat information synchronization apparatus according to an embodiment of the present invention;
fig. 3 is a schematic hardware structure of a seat information synchronization device according to a first embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The seat information synchronization method, the seat information synchronization device, the computer equipment and the storage medium provided by the invention are suitable for the technical field of data processing, and are capable of automatically synchronizing the updated contents of the seat information into other service systems. The invention detects whether the seat information is updated in the current service system through the set detection triggering condition, when the detection result is that the seat information is updated in the current service system, the target seat number of the seat information update, the seat information before update and the seat information after update corresponding to each target seat number are obtained, the external service system which needs to be synchronously updated is determined, the content which needs to be updated of each external service system is further determined, corresponding first messages are respectively constructed according to the determined content which needs to be updated of each external service system, and the constructed first messages are analyzed and sent to the corresponding external service system through an enterprise service bus. The invention can automatically synchronize the content updated by the agent information to other service systems, thereby ensuring the consistency of the stored information aiming at the same agent in different service systems.
Example 1
Referring to fig. 1, in an information synchronization method of the present embodiment, the method includes the following steps:
And step 01, detecting whether seat information update occurs in the current service system according to a preset detection triggering condition, and obtaining a detection result.
In this embodiment, in order to realize agent information synchronization, the update condition of the agent information in the current service system may be monitored in real time, or whether the update of the agent information occurs in the current service system may be detected by setting a detection trigger condition, where the detection trigger condition that is satisfied may at least include the following:
(1) It is determined that the set detection time point is reached.
The detection time point may be one time point per day, several time points per day, or every other set detection time period.
For example, 21 o 'clock per day is set as the detection time point, that is, every time it is determined that 21 o' clock is reached according to a timer in the current service system, it is determined that the detection trigger condition is satisfied.
(2) And determining that the current service system is executing a shutdown instruction.
In general, when the service system is in a shutdown state, the service system does not update the service system by an administrator, so that the seat information update occurring in the startup state can be detected, and when the current service system is determined to be executing a shutdown instruction, it is determined that the detection triggering condition is met.
(3) And determining that the current service system is executing a starting instruction.
Similarly, when the current service system executes the start-up instruction, the seat information update before the start-up can be detected, so that when the current service system is determined to be executing the start-up instruction, the detection triggering condition is determined to be met.
In this embodiment, in order to determine whether an update of the agent information occurs in the current service system, one way is: the agent information at a certain time point can be stored in advance, and the detected current agent information is compared with the stored agent information during detection, so that whether the information is updated or not can be known, and at the moment, the current detection time point and the current agent information are stored for comparison of next detection.
Another way is: because the system log can monitor events occurring in the service system, whether the seat information is updated in the current service system can be determined through the system log, specifically, the system log corresponding to the current service system is obtained, whether the operation of modifying, adding and/or deleting the seat information exists in the system log within a target time period is detected, if so, the seat information is determined to be updated in the current service system, and if not, the seat information is determined to not be updated in the current service system.
In order to ensure the detection efficiency and avoid repeated synchronization of already synchronized content, the method may further include: recording the time point of each detection; the target time period is a time period from a last detection time point to a current detection time point.
For example, the last detected time point is 21:00 in 2018 1 month 1 day, and the current detected time point is 21:00 in 2018 1 month 2 day, and after the system log is acquired, the system log can be directly located to the start detection point of the system log according to the last detected time point, that is, log information which occurs first after 21:00 in 2018 1 month 1 day.
And step 02, when the detection result is that the seat information is updated in the current service system, acquiring the target seat numbers updated by the seat information, and the seat information before update and the seat information after update corresponding to each target seat number.
Regardless of the manner in which the update of the seat information is detected in the current system in step 01, the updated seat information can be obtained.
In this embodiment, one agent may use one or more service systems, and a service system may store a plurality of agent information.
For example, the current service system stores the agent information with the agent number A, B, C, and takes the detection system log as an example to determine that the agent information is updated, the system log includes that the mobile phone number of the agent number A is modified by 'XX' to 'YY', the 'XXX' information corresponding to the agent number B is deleted, the information of the agent number D is newly added, and the newly added information is 'XXXX'.
Then, according to the detection result, the target seat numbers with the updated seat information are determined to be the seat number A, the seat number B and the seat number D. The seat information before update corresponding to the seat number A is determined to be 'mobile phone number XX', and the seat information after update corresponding to the seat number A is determined to be 'mobile phone number YY'; the seat information before update corresponding to the seat number B is XXX information, and the seat information after update corresponding to the seat number B is seat information without the seat number B; the before-update agent information corresponding to the agent number D is agent information without the agent number D, and the after-update agent information corresponding to the agent number D is "XXXX information".
And step 03, determining an external service system which needs to be synchronously updated according to the acquired target seat numbers.
Since the same agent may use a plurality of service systems at the same time, when the agent information of the agent using a plurality of service systems in the current service system is updated, other external service systems storing the agent information need to be updated synchronously. Therefore, it is necessary to know the service system number used by each agent.
In this embodiment, the first correspondence between the agent number and the service system number used by the agent number may be preconfigured, for example, taking four service systems as an example, where the three service systems are service system 1, service system 2, service system 3, and service system 4, respectively, where "1, 2, 3, and 4" are numbers of service systems, and assuming that the current service system is service system 1, the configured first correspondence may be as shown in table 1 below.
Table 1:
Seat numbering System numbering of seat service system
A 1,2,3
B 1,2
C 1,4
D 1,2
E 2,3
According to the known target agent numbers being the agent number a, the agent number B and the agent number D, respectively, it can be known according to the first correspondence that the service system used by the agent number a is the service system 1, the service system 2 and the service system 3, the service system used by the agent number B is the service system 1 and the service system 2, the service system used by the agent number D is the service system 1 and the service system 2, and since the current service system is the service system 1, it can be determined that the external service systems needing to be synchronously updated are the service system 2 and the service system 3.
And step 04, determining the content to be updated of each external service system according to the acquired pre-update agent information and post-update agent information corresponding to each target agent number.
According to step 03, the external service systems that need to be synchronously updated are service system 2 and service system 3, and the target agent numbers that have been updated with the agent information are agent number a, agent number B, and agent number D, and according to table 1, the following can be obtained:
For the service system 2, the first number of the target agent using the service system 2 in the target agent numbers is: the agent number a, the agent number B, and the agent number D, so that the pre-update agent information and the post-update agent information corresponding to the agent number a, the pre-update agent information and the post-update agent information corresponding to the agent number B, and the pre-update agent information and the post-update agent information corresponding to the agent number D are determined as the content that the service system 2 needs to update;
For the service system 3, the first number of the target agent using the service system 3 in the target agent numbers is: seat number a; therefore, the pre-update agent information and the post-update agent information corresponding to the agent number a are determined as the content that the service system 2 needs to update.
And step 05, respectively constructing corresponding first messages according to the content which is determined to be updated by each external service system.
In this embodiment, when the synchronization update is performed, different messages need to be sent to different service systems, so that corresponding first messages need to be respectively constructed.
In one embodiment of the present invention, there may be situations in which the agent information storage formats in different service systems are different, for example, the information storage format used by the service system 1 is1, the information storage format used by the service system 2 is 2, the information storage format used by the service system 3 is 3, if the information storage format in the service system is directly utilized to construct a message, after the external service system receives the message, the information storage format in the service system sending the message and the correspondence relationship between the external service system and the service system sending the message need to be known, so that the content of the message can be analyzed, and further synchronous update can be performed, and therefore, in order to ensure that the content can be normally and quickly synchronized to other service systems, the method may further include: the target format of the constructed message is preset, so that the transmitted message is constructed according to the target format.
For example, the information storage format for a certain agent in the current service system 1 is shown in table 2:
Table 2:
For example, the preset target format of the build message may be as shown in table 3:
Table 3:
The message content of the first message sent to the service system 2 is: the before-update agent information corresponding to the agent number a is "um_acct_no=a, mobile=xx", and the after-update agent information corresponding to the agent number a is "um_acct_no=a, mobile=yy"; the pre-update agent information corresponding to the agent number B is "um_act_no=b, start_time=2017.10.10, user_array=001, log_name= zuoxiA, user_name=Zhang three, mobile=130, email= [email protected], and employ_form=2", wherein when employ_form=1, the recruitment FORM is indicated as a line, when employ_form=2, the outsource is indicated, and the post-update agent information corresponding to the agent number B is "#" wherein "#" is used for the contract to be none; the pre-update agent information corresponding to the agent number D is "#", the post-update agent information corresponding to the agent number D is "um_acct_no=d, start_time=2018.1.1, user_array=001, log_name= zuoxiD, user_name=li four, mobile=130, email= [email protected], and employ_form=1.
The message content of the first message sent to the service system 3 is: the before-update agent information corresponding to the agent number a is "um_acct_no=a, mobile=xx", and the after-update agent information corresponding to the agent number a is "um_acct_no=a, mobile=yy".
And step 06, transmitting the constructed first message to a corresponding external service system through an enterprise service bus, so that the external service system updates the information in the service system according to the received first message.
In this embodiment, in order to achieve synchronization of agent information update, the destination address of each service system that needs to perform synchronization update needs to be known. The second correspondence relationship between the external service system number and the destination address may be stored in advance.
For example, in the current service system 1, there is a second correspondence relationship as follows:
service system 2-destination address 2;
Service system 3-destination address 3;
service system 4-destination address 4:
……
In this embodiment, if it is required to synchronize all the content updated with the seat information in the current service system 1 to all the other service systems, the destination address 2 corresponding to the service system 2 and the destination address 3 corresponding to the service system 3 may be determined according to the second correspondence, and then the first message constructed for the service system 2 may be sent to the service system 2 according to the destination address 2, and the first message constructed for the service system 3 may be sent to the service system 3 according to the destination address 3.
In this embodiment, the service systems may be connected through an enterprise service bus, and when a message is sent, the message may be transferred through the connected enterprise service bus.
Further, when the other service systems update the content of the agent information, the process when the service system with the updated agent information and the other service systems synchronize is the same as the process described above, in this embodiment, when the current service system receives a second message sent by the external service system, the content of the second message is parsed to obtain a first agent number with the updated agent information, and before-update agent information and after-update agent information corresponding to the first agent number, the before-update agent information corresponding to the first agent number stored in the current service system is searched, and before-update agent information corresponding to the first agent number stored in the current service system is modified to after-update agent information corresponding to the first agent number.
For example, the content of the second message is that the first agent number is an agent number a, the agent information before update corresponding to the agent number a is "um_acct_no=a, and the agent information after update corresponding to the agent number a is" ema= [email protected] ", so that the" um_acct_no "of the target format corresponds to" um_cde "in the current service system and the" EMAIL "of the target format corresponds to" usr_email "in the current service system according to the chinese name of the information storage format of the target format and the current service system of the setup construction message. According to the content of the second message, the content of "um_cde=a and usr_email= [email protected]" can be found in the current service system, and the content is modified to "um_cde=a and usr_email= [email protected]".
In this embodiment, whether the current service system is updated with the seat information is detected by using the set detection triggering condition, when the detection result is that the seat information is updated in the current service system, the target seat number with the seat information updated and the pre-update seat information and the post-update seat information corresponding to each target seat number are obtained, the external service system needing to be synchronously updated is determined, the content of each external service system needing to be updated is further determined, corresponding first messages are respectively constructed according to the determined content of each external service system needing to be updated, and each constructed first message is analyzed and sent to the corresponding external service system through the enterprise service bus. The invention can automatically synchronize the content updated by the agent information to other service systems, thereby ensuring the consistency of the stored information aiming at the same agent in different service systems.
With continued reference to fig. 2, an agent information synchronization device is shown, in this embodiment, the agent information synchronization device 10 may include or be divided into one or more program modules, where one or more program modules are stored in a storage medium and executed by one or more processors to complete the present invention and implement the above-mentioned information synchronization method. Program modules in the present invention refer to a series of computer program instruction segments capable of performing a specific function, and are more suitable than the program itself for describing the execution of the seat information synchronization apparatus 10 in a storage medium. The following description will specifically describe functions of each program module of the present embodiment:
The detection module 11 is configured to detect whether seat information update occurs in the current service system according to a preset detection trigger condition, and obtain a detection result;
An obtaining module 12, configured to obtain, when the detection result is that an agent information update occurs in the current service system, a target agent number in which the agent information update occurs, and pre-update agent information and post-update agent information corresponding to each target agent number;
the first determining module 13 is configured to determine, according to each acquired target agent number, an external service system that needs to be updated synchronously;
The second determining module 14 is configured to determine, according to the acquired pre-update agent information and post-update agent information corresponding to each target agent number, content that needs to be updated by each external service system;
The message construction module 15 is configured to construct corresponding first messages according to the determined content that needs to be updated by each external service system;
and the sending module 16 is configured to send the constructed first message to a corresponding external service system through the enterprise service bus, so that the external service system updates information in the service system according to the received first message.
The present embodiment also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack-mounted server, a blade server, a tower server, or a rack-mounted server (including an independent server or a server cluster formed by a plurality of servers) that can execute a program. The computer device 20 of the present embodiment includes at least, but is not limited to: a memory 21, a processor 22, which may be communicatively coupled to each other via a system bus, as shown in fig. 3. It should be noted that fig. 3 only shows a computer device 20 having components 21-22, but it should be understood that not all of the illustrated components are required to be implemented, and that more or fewer components may be implemented instead.
In the present embodiment, the memory 21 (i.e., readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the memory 21 may be an internal storage unit of the computer device 20, such as a hard disk or memory of the computer device 20. In other embodiments, the memory 21 may also be an external storage device of the computer device 20, such as a plug-in hard disk provided on the computer device 20, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASHCARD), or the like. Of course, the memory 21 may also include both internal storage units of the computer device 20 and external storage devices. In this embodiment, the memory 21 is generally used to store an operating system and various types of application software installed in the computer device 20, for example, program codes of the agent information synchronizer 10 of the first embodiment. Further, the memory 21 may be used to temporarily store various types of data that have been output or are to be output.
Processor 22 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 22 is generally used to control the overall operation of the computer device 20. In this embodiment, the processor 22 is configured to execute the program code or the processing data stored in the memory 21, for example, execute the agent information synchronization device 10, so as to implement the agent information synchronization method of the first embodiment.
The present embodiment also provides a computer-readable storage medium such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by a processor, performs the corresponding functions. The computer readable storage medium of the present embodiment is used for storing the agent information synchronization device 10, and when executed by a processor, implements the agent information synchronization method of the first embodiment.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The seat information synchronization method is characterized by comprising the following steps of:
Detecting whether seat information update occurs in the current service system according to preset detection triggering conditions, and obtaining a detection result;
when the detection result is that the seat information is updated in the current service system, acquiring a target seat number with the seat information updated, and the seat information before update and the seat information after update corresponding to each target seat number; one of the agents uses one or more service systems, one service system stores the agent information of a plurality of agents, and one agent corresponds to one agent number;
according to each acquired target seat number, determining an external service system which needs to be synchronously updated;
Determining the content to be updated of each external service system according to the acquired pre-update agent information and post-update agent information corresponding to each target agent number;
Respectively constructing corresponding first messages according to the content which is determined to be updated by each external service system;
the constructed first message is sent to a corresponding external service system through an enterprise service bus, so that the external service system updates information in the service system according to the received first message; the updated agent information of the same agent in each service system is consistent;
the determining the external service system needing to be synchronously updated according to the acquired target seat numbers comprises the following steps:
acquiring a first corresponding relation between a pre-configured seat number and a service system number used by the seat number, determining the service system number used by a target seat number according to the first corresponding relation, removing the number of the current service system from the service system number used by the determined target seat number, and determining the number of an external service system needing synchronous updating;
The determining the content to be updated of each external service system according to the acquired pre-update agent information and post-update agent information corresponding to each target agent number includes:
For the current external first service system, the content which needs to be updated is determined by the following steps: and determining the acquired target seat numbers, wherein the target seat first numbers of the external first service systems are used, and the pre-update seat information and the post-update seat information corresponding to the determined target seat first numbers are determined to be the content which needs to be updated by the external first service systems.
2. The agent information synchronization method according to claim 1, wherein,
The detecting whether the seat information update occurs in the current service system comprises the following steps: acquiring a system log corresponding to the current service system, detecting whether the system log has operations of modifying, adding and/or deleting the seat information in a target time period, if so, determining that the seat information is updated in the current service system, and if not, determining that the seat information is not updated in the current service system;
Further comprises: recording the time point of each detection; the target time period is a time period from a last detection time point to a current detection time point.
3. The agent information synchronization method according to claim 1, wherein,
Further comprises: presetting a target format of a constructed message;
and when the corresponding first message is respectively constructed according to the determined content which needs to be updated of each external service system, constructing by further utilizing the target format.
4. The agent information synchronization method according to claim 1, wherein,
Further comprises: a second corresponding relation between the external service system number and the destination address is prestored;
Before the first message is sent to the corresponding external service system through the enterprise service bus, the method further comprises: and determining the destination address of each external service system according to the second corresponding relation.
5. The agent information synchronization method according to any one of claims 1 to 4, characterized by further comprising: when a second message sent by an external service system is received, analyzing the content of the second message to obtain a first seat number with seat information updated, pre-update seat information and post-update seat information corresponding to the first seat number, searching the pre-update seat information corresponding to the first seat number stored in the current service system, and modifying the pre-update seat information corresponding to the first seat number stored in the current service system into post-update seat information corresponding to the first seat number.
6. An agent information synchronizing device, comprising:
the detection module is used for detecting whether seat information update occurs in the current service system according to preset detection triggering conditions, and obtaining a detection result;
The acquisition module is used for acquiring target seat numbers updated by the seat information, and the seat information before update and the seat information after update corresponding to each target seat number when the detection result is that the seat information is updated in the current service system; one of the agents uses one or more service systems, one service system stores the agent information of a plurality of agents, and one agent corresponds to one agent number;
The first determining module is used for determining an external service system which needs to be synchronously updated according to the acquired target seat numbers;
The second determining module is used for determining the content to be updated of each external service system according to the acquired pre-update agent information and post-update agent information corresponding to each target agent number;
the message construction module is used for respectively constructing corresponding first messages according to the content which is determined to be updated by each external service system;
The sending module is used for sending the constructed first message to a corresponding external service system through the enterprise service bus so that the external service system updates the information in the service system according to the received first message; the updated agent information of the same agent in each service system is consistent;
wherein, the first determining module is used for:
acquiring a first corresponding relation between a pre-configured seat number and a service system number used by the seat number, determining the service system number used by a target seat number according to the first corresponding relation, removing the number of the current service system from the service system number used by the determined target seat number, and determining the number of an external service system needing synchronous updating;
the second determining module is configured to:
For the current external first service system, the content which needs to be updated is determined by the following steps: and determining the acquired target seat numbers, wherein the target seat first numbers of the external first service systems are used, and the pre-update seat information and the post-update seat information corresponding to the determined target seat first numbers are determined to be the content which needs to be updated by the external first service systems.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of any one of claims 1 to 5 when the computer program is executed.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 5.
CN201811210074.2A 2018-10-17 2018-10-17 Seat information synchronization method and device, computer equipment and storage medium Active CN109460901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811210074.2A CN109460901B (en) 2018-10-17 2018-10-17 Seat information synchronization method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811210074.2A CN109460901B (en) 2018-10-17 2018-10-17 Seat information synchronization method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109460901A CN109460901A (en) 2019-03-12
CN109460901B true CN109460901B (en) 2024-05-31

Family

ID=65607816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811210074.2A Active CN109460901B (en) 2018-10-17 2018-10-17 Seat information synchronization method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109460901B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710929A (en) * 2009-11-20 2010-05-19 北京北纬通信科技股份有限公司 Method and system for supporting mobile terminals in visualization customer service
CN101883190A (en) * 2009-05-06 2010-11-10 华为技术有限公司 Seat processing method, switch and call center
CN101931713A (en) * 2010-08-06 2010-12-29 中兴通讯股份有限公司 Virtual seating system and method
CN104267974A (en) * 2014-10-22 2015-01-07 新华瑞德(北京)网络科技有限公司 Method and device for calling business interface
CN108536356A (en) * 2018-04-18 2018-09-14 平安科技(深圳)有限公司 Agent information processing method and device and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883190A (en) * 2009-05-06 2010-11-10 华为技术有限公司 Seat processing method, switch and call center
CN101710929A (en) * 2009-11-20 2010-05-19 北京北纬通信科技股份有限公司 Method and system for supporting mobile terminals in visualization customer service
CN101931713A (en) * 2010-08-06 2010-12-29 中兴通讯股份有限公司 Virtual seating system and method
CN104267974A (en) * 2014-10-22 2015-01-07 新华瑞德(北京)网络科技有限公司 Method and device for calling business interface
CN108536356A (en) * 2018-04-18 2018-09-14 平安科技(深圳)有限公司 Agent information processing method and device and computer readable storage medium

Also Published As

Publication number Publication date
CN109460901A (en) 2019-03-12

Similar Documents

Publication Publication Date Title
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN111555963B (en) Message pushing method and device, electronic equipment and storage medium
CN110224854B (en) Block chain node deployment method and device and storage medium
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN111835467B (en) Message sending method, device, computer equipment and storage medium
CN110602165B (en) Government affair data synchronization method, device, system, computer equipment and storage medium
CN110619226A (en) Platform-based data processing method, system, equipment and storage medium
CN112367345B (en) Data processing method, server device and computer readable storage medium
CN110737719B (en) Data synchronization method, device, equipment and computer readable storage medium
CN111338656B (en) Method and device for installing software package to target host and computer equipment
CN113448862B (en) Software version testing method and device and computer equipment
CN110968478A (en) Log collection method, server and computer storage medium
CN112506702A (en) Data center disaster tolerance method, device, equipment and storage medium
CN108170551B (en) Crawler system based front-end and back-end error processing method, server and storage medium
CN108255735B (en) Associated environment testing method, electronic device and computer readable storage medium
CN109460901B (en) Seat information synchronization method and device, computer equipment and storage medium
CN112969198A (en) Data transmission method, terminal and storage medium
CN112463304A (en) Rollback method and apparatus for container mirror image, computer device, and storage medium
CN111385613B (en) Television system repairing method, storage medium and application server
CN116450176A (en) Version updating method and device, electronic equipment and storage medium
CN111654398B (en) Configuration updating method and device, computer equipment and readable storage medium
CN109669867B (en) Test apparatus, automated test method, and computer-readable storage medium
CN110059071B (en) Data comparison monitoring method, system, equipment and medium based on storage process
CN112948020A (en) Configuration file processing method and device
CN112422682A (en) Data transmission method and device, storage medium, and electronic device

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
GR01 Patent grant
GR01 Patent grant