Business processing method, device, electronic device and storage medium
By establishing user ID mapping relationships between business systems in the intermediate system, the problem of storing a large number of IDs occupying resources in multi-system collaboration is solved, and data interoperability and performance improvement between business systems are achieved.
Patent Information
- Application Number
- CN202210830944.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-15
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-07-15
AI Technical Summary
In enterprise business processing, due to the independent operation of each system, a large number of identifiers of other systems need to be stored, thus occupying system resources and reducing system performance.
The intermediate system stores the user ID mapping relationship between various business systems to achieve a ring-shaped mapping relationship, allowing the intermediate system to receive business processing requests, convert and send them to the corresponding business system, and avoid each business system storing the identification of other systems.
It saves storage resources of business systems, improves system performance, simplifies system expansion, and reduces the cost and complexity of integrating new business systems with other systems.
Smart Images

Figure CN115277707B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a business processing method, device, electronic device and storage medium. Background Art
[0002] For enterprises, as the business middle-office capabilities are built and improved, the development of new business of the enterprise usually needs to be connected in series with other business middle-office systems in order to process business. Therefore, when processing business, it usually requires collaboration between multiple systems to complete. However, since the operation of each system is independent of each other, each system is configured with a unique identifier for the enterprise to use, and the identifiers between systems are not necessarily universal. Therefore, in order to facilitate collaboration between systems, each system needs to store the enterprise's identifiers in other systems so that data can be exchanged with other systems. As the number of systems gradually increases, each system needs to store a large number of identifiers in other systems, which leads to a large amount of system resources being occupied and reduces system performance. Summary of the invention
[0003] In view of this, an embodiment of the present invention provides a business processing method, device, electronic device and storage medium, which can solve the problem that each system stores a large number of identifiers in other systems, thereby causing a large amount of system resources to be occupied and reducing system performance.
[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a service processing method is provided.
[0005] A business processing method of an embodiment of the present invention includes: receiving a first business processing request sent by a first business system, obtaining a first user identifier and a business processing type in the first business processing request; querying a second business system associated with the business processing type to call a preset mapping relationship between user identifiers between systems, and determining a second user identifier in the second business system corresponding to the first user identifier, wherein the mapping relationship includes a ring mapping relationship between user identifiers of at least three business systems corresponding to each user; obtaining a request generation model of the second business system to generate a second business processing request based on the second user identifier; and sending the second business processing request to the second business system.
[0006] In one embodiment, after sending the second service processing request to the second service system, the method further includes:
[0007] receiving a business processing result sent by the second business system;
[0008] The second user identifier in the service processing result is updated to the first user identifier, so as to send the updated service processing result to the first service system.
[0009] In yet another embodiment, further comprising:
[0010] Receiving a registration request for a business system, the business system including the first business system and a second business system;
[0011] Acquire user information included in the registration request, and query a target mapping relationship of a corresponding inter-system user identifier based on the user information, wherein the target mapping relationship is a ring mapping relationship;
[0012] The user identifier and the system identifier in the registration request are obtained to update the user identifier and the system identifier to the target mapping relationship.
[0013] In yet another embodiment, updating the user identifier and the system identifier to the target mapping relationship includes:
[0014] In response to the target mapping relationship not existing, generating a corresponding mapping relationship between system user identifiers based on the user identifier and the system identifier;
[0015] In response to the target mapping relationship existing, the user identifier and the system identifier are updated to the target mapping relationship.
[0016] In yet another embodiment, further comprising:
[0017] Receiving a query request sent by the first business system, and acquiring a first user identifier and a second business system identifier in the query request;
[0018] Based on the first user identifier, calling a corresponding mapping relationship between system user identifiers to obtain a second user identifier corresponding to the first user identifier in the second business system;
[0019] Send the second user identifier to the first service system.
[0020] In yet another embodiment, obtaining the request generation model of the second business system to generate a second business processing request based on the second user identifier includes:
[0021] Acquire a service request template of the second service system to extract service parameters from the first service processing request;
[0022] The service parameter and the second user identifier are updated to the service request template to obtain a second service processing request.
[0023] In yet another embodiment, querying the second business system associated with the business processing type includes:
[0024] A business system set associated with the business processing type is queried to obtain a priority of each business system in the business system set, so as to determine a second business system from the business system set based on the priority.
[0025] To achieve the above objective, according to another aspect of an embodiment of the present invention, a service processing device is provided.
[0026] A business processing device according to an embodiment of the present invention includes: a receiving unit, used to receive a first business processing request sent by a first business system, and obtain a first user identifier and a business processing type in the first business processing request; a determining unit, used to query a second business system associated with the business processing type to call a preset mapping relationship between user identifiers between systems, and determine a second user identifier in the second business system corresponding to the first user identifier, wherein the mapping relationship includes a ring mapping relationship between user identifiers of at least three business systems corresponding to each user; a generating unit, used to obtain a request generation model of the second business system to generate a second business processing request based on the second user identifier; and a sending unit, used to send the second business processing request to the second business system.
[0027] In one embodiment, the receiving unit is further configured to receive a business processing result sent by the second business system;
[0028] The sending unit is further configured to update the second user identifier in the service processing result to the first user identifier, so as to send the updated service processing result to the first service system.
[0029] In yet another embodiment, the receiving unit is further configured to receive a registration request from a business system, wherein the business system includes the first business system and a second business system;
[0030] The device also includes:
[0031] A query unit, configured to obtain user information included in the registration request, and query a target mapping relationship of a corresponding inter-system user identifier based on the user information, wherein the target mapping relationship is a ring mapping relationship;
[0032] An updating unit is used to obtain the user identifier and the system identifier in the registration request to update the user identifier and the system identifier to the target mapping relationship.
[0033] In yet another embodiment, the updating unit is specifically configured to:
[0034] In response to the target mapping relationship not existing, generating a corresponding mapping relationship between system user identifiers based on the user identifier and the system identifier;
[0035] In response to the target mapping relationship existing, the user identifier and the system identifier are updated to the target mapping relationship.
[0036] In yet another embodiment, the receiving unit is further configured to receive a query request sent by the first business system, and obtain a first user identifier and a second business system identifier in the query request;
[0037] The device also includes:
[0038] an acquiring unit, configured to call a corresponding mapping relationship between system user identifiers based on the first user identifier to acquire a second user identifier corresponding to the first user identifier in the second business system;
[0039] The sending unit is further configured to send the second user identifier to the first service system.
[0040] In yet another embodiment, the generating unit is specifically configured to:
[0041] Acquire a service request template of the second service system to extract service parameters from the first service processing request;
[0042] The service parameter and the second user identifier are updated to the service request template to obtain a second service processing request.
[0043] In yet another embodiment, the determining unit is specifically configured to:
[0044] A business system set associated with the business processing type is queried to obtain a priority of each business system in the business system set, so as to determine a second business system from the business system set based on the priority.
[0045] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device is provided.
[0046] An electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the business processing method provided by the embodiment of the present invention.
[0047] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer readable medium is provided.
[0048] A computer-readable medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, the service processing method provided by the embodiment of the present invention is implemented.
[0049] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer program product is provided.
[0050] A computer program product according to an embodiment of the present invention includes a computer program, and when the program is executed by a processor, the service processing method provided by the embodiment of the present invention is implemented.
[0051] An embodiment of the above invention has the following advantages or beneficial effects: In the embodiment of the present invention, the intermediate system can receive the first business processing request sent by the first business system, and obtain the first user identifier and the business processing type therein to indicate which type of business processing is performed on which user, and then can query the second system that implements the business processing type, and determine the second user identifier corresponding to the first user identifier in the second business system through the mapping relationship between the user identifiers of the systems, and then can generate a second business processing request based on the second user identifier to send to the second business system for business processing. In the embodiment of the present invention, the mapping relationship between the user identifiers of the storage systems is stored in the intermediate system, and can interact with the data of each business system. When each business system needs to cooperate with other systems, it can send the business processing request to the intermediate system, so that the intermediate system can convert the business processing request of the business system, convert it into the business request of the business system it needs to cooperate with, and send it, so that the cooperative business system performs business processing and realizes data intercommunication between the systems. In this way, there is no need to store the identifiers of other systems in each business system, saving the storage resources of the business system and improving the performance of the business system. At the same time, in an embodiment of the present invention, when a new business system needs to collaborate in business processing, it is only necessary to update the user identifier of the new business system and store it in the mapping relationship. There is no need to re-customize the relationship data structure and parsing mapping code for the new business system, thereby improving the scalability of the system.
[0052] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0054] Figure 1 is a schematic diagram of a system architecture of an intermediate system according to an embodiment of the present invention;
[0055] Figure 2 is a schematic diagram of a mapping relationship according to an embodiment of the present invention;
[0056] Figure 3 is a schematic diagram of a main process of a service processing method according to an embodiment of the present invention;
[0057] Figure 4is a schematic diagram of a main process of a business system registration method according to an embodiment of the present invention;
[0058] Figure 5 is a structural schematic diagram of an intermediate system deployment according to an embodiment of the present invention;
[0059] Figure 6 is a schematic diagram of main units of a service processing device according to an embodiment of the present invention;
[0060] Figure 7 is another exemplary system architecture diagram to which the embodiments of the present invention can be applied;
[0061] Figure 8 It is a schematic diagram of the structure of a computer system suitable for implementing the embodiment of the present invention. DETAILED DESCRIPTION
[0062] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0063] It should be noted that the embodiments and features of the embodiments of the present invention can be combined with each other without conflict. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of national laws and regulations.
[0064] An embodiment of the present invention provides an intermediate system, which can be used in a scenario where multiple systems collaborate to perform business processing.
[0065] For example, a newly incubated business system A of an enterprise is used to provide product query business processing for the organization. As the business develops, system A needs to add the ability to publish articles. At this time, business system B in the business platform can provide this ability, so system A can collaborate with system B to perform business processing for publishing articles. However, since the identities registered by the organization in business system A and business system B are not the same, business system A needs to store the organization's identity in business system B, establish a relationship table between the organization's identity in business system A and the identity in business system B, so as to perform data conversion through the relationship table and communicate data with business system B. Similarly, business system B also needs to store the organization's identity in business system A in order to communicate data with business system A. In this way, each business system needs the identity of other systems, occupying system resources, and the coupling between each business system is becoming more and more serious, reducing system performance, and when new functions need to be expanded, the structure and parsing mapping code of the relational data need to be customized and developed again, which makes the system difficult to expand.
[0066] In the embodiment of the present invention, an intermediate system is established, and the mapping relationship between user identifiers of various business systems is stored in the intermediate system, that is, the circular mapping relationship between user identifiers of multiple (such as at least three) business systems corresponding to each user. In this way, various business systems can communicate data through the intermediate system. In this way, there is no need to store identifiers of other systems in the business system, thereby reducing the occupation of system resources and improving system performance. Taking the example that business system A, business system B and business system C need to collaborate to perform business processing, the intermediate system can store the circular mapping relationship between user identifiers of business system A, business system B and business system C, so that business system A, business system B and business system C can perform business collaboration through the intermediate system. Figure 1 FIG. 1 is a system architecture diagram of an intermediate system according to an embodiment of the present invention.
[0067] In the scenario where each business system stores the identifiers of other business systems, each business system can implement business collaboration processing by establishing mapping relationships between identifiers with other systems. Taking business system A as an example, it is necessary to establish mapping relationships between identifiers with business system B and business system C respectively. When a new business is expanded, business system D is added, and it is also necessary to increase the storage of mapping relationships between identifiers and business system D, that is, to store AB, AC, and AD. The mapping relationship can be as follows: Figure 2As shown in the ID relationship diagram on the left, aID represents the user ID in business system A, bID represents the user ID in business system B, cID represents the user ID in business system C, and dID represents the user ID in business system D. In the embodiment of the present invention, the intermediate system can abstract the circular mapping relationship of the underlying system on which it depends. The circular mapping relationship reflects the mapping of user IDs between each business system. In this way, the corresponding user ID in other systems can be directly queried through the user ID in any system to achieve access to business-related services between business systems. It clearly demonstrates the common capabilities of various business systems. When a new business is expanded, it is only necessary to add the user ID of the business system to the circular mapping relationship, thereby reducing the cost and threshold of the new system to reintegrate the capabilities of the underlying system, simplifying the complexity and coupling between business systems, and improving the delivery speed of the new business system. Figure 2 The ID relationship diagram on the right is a schematic diagram of the ring mapping relationship between the identifiers of various business systems stored in the intermediate system.
[0068] The embodiment of the present invention provides a service processing method, which can be Figure 1 The intermediate system execution in the system architecture shown is as follows Figure 3 As shown, the method includes:
[0069] S301: Receive a first service processing request sent by a first service system, and obtain a first user identifier and a service processing type in the first service processing request.
[0070] When the first business system needs the capabilities of other business systems to perform business processing, it can send a business processing request, i.e., a first business processing request, to the intermediate system. The first business processing request can include a first user identifier and a business processing type, wherein the first user identifier indicates a user who is to perform the first business processing, and the business processing type indicates the business processing to be performed on the user by the first business processing request.
[0071] For example, in Figure 1 In the system architecture shown, business system A has product query capability, business system B has article publishing capability, and business system C has employee query capability. A system is registered in business system A, business system B, and business system C. The user ID registered in business system A is aID, the user ID registered in business system B is bID, and the user ID registered in business system C is cID. The mapping relationship between the user IDs in business system A, business system B, and business system C is stored in the intermediate system, which can be specifically shown in Table 1.
[0072] Table 1
[0073] Business System A Business System B Business System C aID bID cID
[0074] When the business system A needs a business process for article publishing, it can send a first business process request to the intermediate system, which includes the first user identifier aID and the business process type for article publishing.
[0075] In some embodiments, the intermediate system can set a corresponding business type array for each business system, and the business type array includes business parameters that the business system needs to input when processing the business of the corresponding business type; thus, in this step, the business parameter set included in the first business processing request can be extracted, and then matched with the preset business type arrays. If the match is successful, the business type to be processed by the first business processing request can be determined, that is, the business type corresponding to the successfully matched business type array is determined as the business type of the first business processing request.
[0076] S302: Query the second business system associated with the business processing type to call the preset mapping relationship between the user identifiers of the systems and determine the second user identifier corresponding to the first user identifier in the second business system.
[0077] The mapping relationship includes a circular mapping relationship between user identifiers of at least three business systems corresponding to each user. The business processing capabilities of each business system, that is, the business processing type, can be stored in the intermediate system, so that the business system with the business capability can be determined when other systems need each business capability. Specifically, in the embodiment of the present invention, an association relationship between each business system and the business processing type can be established in advance, so in this step, the associated second business system can be queried based on the business processing type in the first business processing request, that is, the business processing requested by the first business processing request is implemented.
[0078] In some other embodiments, in some scenarios, there may be multiple business systems executing the same business processing capabilities. In this case, the multiple systems will correspond to one business processing type. In the embodiments of the present invention, a corresponding priority can be configured for each business system based on the processing capability, idleness and other characteristics of each business system, and then the second business system can be determined from the multiple business systems based on the priority.
[0079] Therefore, the step of querying the second business system in this step can be specifically performed as follows: querying the business system set associated with the business processing type, obtaining the priority of each business system in the business system set, and determining the second business system from the business system set based on the priority.
[0080] The business system set includes business systems with business processing capabilities corresponding to the business processing types. Then the priority of each business system in the business system set can be obtained, and then the second business system can be determined from the business system set based on the priority. Specifically, the business system with the highest priority in the business system set can be determined as the second business system.
[0081] It should be noted that, since the processing capacity, idleness and other characteristics of each business system may change over time, the intermediate system may update the priority of each business system based on a preset period.
[0082] After the second business system is determined, that is, the business system that executes the first business processing request is determined, the intermediate system can determine the user ID of the user with the first user ID registered in the second business system, that is, the second user ID, based on the pre-stored mapping relationship between the user IDs between the systems, so that the second business system can clearly identify which user to perform business processing on.
[0083] The mapping relationship between user identifiers of the systems may be as shown in Table 1. After calling the mapping relationship, the first user identifier may correspond to the second user identifier in the second service.
[0084] S303: Acquire a request generation model of the second business system to generate a second business processing request based on the second user identifier.
[0085] After the second user identifier is determined, in order for the second business system to perform business processing according to the requirements of the first business system, a business processing request matching the second business system, i.e., a second business processing request, can be generated. In the embodiment of the present invention, a corresponding request generation model can be configured for each business system to generate a business processing request matching each business system.
[0086] Specifically, the request generation model may include a business request template, and the business request template may be updated with personalized data such as business parameters and user identification required for business processing to generate the corresponding business processing request. Therefore, the generation of the second business processing request in this step may be performed as follows: obtaining the business request template of the second business system to extract business parameters from the first business processing request; updating the business parameters and the second user identification to the business request template to obtain the second business processing request. Business parameters may be parameters required for business processing. For example, in the scenario of executing an employee query service, business parameters may be specific query conditions, such as length of service.
[0087] S304: Send a second service processing request to the second service system.
[0088] After the intermediate system generates the second business processing request, it can send it to the second business system so that the second business system performs business processing.
[0089] After executing this step, the second business system can process the second business processing request and obtain a processing result, and then return the processing result to the intermediate system so that it can be transferred to the first business system through the intermediate system. Specifically, after step S304, the embodiment of the present invention may also include: receiving the business processing result sent by the second business system; updating the second user identifier in the business processing result to the first user identifier, so as to send the updated business processing result to the first business system.
[0090] After receiving the service processing result sent by the second service system, the intermediate system needs to update the second user identifier therein to the first user identifier so that the first service system can identify and process it.
[0091] In some embodiments, each business system may need user identifiers in other business systems during business processing to perform data parsing and other processing, so the user identifiers in other business systems can be obtained from the intermediate system. Taking the first business system obtaining user identifiers in other business systems as an example, the specific implementation can be as follows: receiving a query request sent by the first business system, obtaining the first user identifier and the second business system identifier in the query request; based on the first user identifier, calling the corresponding mapping relationship between system user identifiers to obtain the second user identifier in the second business system corresponding to the first user identifier; and sending the second user identifier to the first business system.
[0092] The query request sent by the first business system includes the first user identifier and the second business system identifier, so as to query the user identifier corresponding to the first user identifier in the second business system. After receiving the query request, the intermediate system can obtain the second user identifier corresponding to the first user identifier in the second business system based on the mapping relationship between the user identifiers of the systems, and then send it to the first business system.
[0093] In an embodiment of the present invention, the intermediate system stores the mapping relationship between user identifiers of the systems and can interact with data of each business system. When each business system needs to collaborate with other systems, it can send a business processing request to the intermediate system, so that the intermediate system can convert the business processing request of the business system into a business request of the business system it needs to collaborate with and send it, so that the collaborating business system can perform business processing and realize data intercommunication between the systems. In this way, there is no need to store the identifiers of other systems in each business system, which saves the storage resources of the business system and improves the performance of the business system.
[0094] In the embodiment of the present invention, each business system can establish a connection with the intermediate system by registering. The embodiment of the present invention provides a method for business system registration, such as Figure 4 As shown, the method includes:
[0095] S401: Receive a registration request from a business system.
[0096] The business system may include a first business system and a second business system. The registration request may include a system identifier of the business system, a business processing type, user information, and a user identifier corresponding to the user information in the business system.
[0097] S402: Acquire user information included in the registration request, and query the corresponding target mapping relationship of the user identifier between systems based on the user information.
[0098] The target mapping relationship may be a ring mapping relationship, and the user information may specifically be information that uniquely identifies the user identity, so as to indicate which user the user identifier in the registration request corresponds to. The intermediate system may query the target mapping relationship of the corresponding inter-system user identifier based on the user information, and the target mapping relationship stores the mapping relationship between the user identifiers registered by the user in different business systems.
[0099] S403: Acquire the user identifier and the system identifier in the registration request to update the user identifier and the system identifier to a target mapping relationship.
[0100] After the intermediate system has queried the target mapping relationship, it can update the user identifier and system identifier of the business system to the target mapping relationship to achieve expansion of the business system.
[0101] Specifically, the intermediate system may not have a target mapping relationship, so the target mapping relationship queried in step S402 does not exist. At this time, the intermediate system can generate a corresponding mapping relationship for the user information. Therefore, this step can be performed as follows: in response to the target mapping relationship not existing, a corresponding mapping relationship between system user identifiers is generated based on the user identifier and the system identifier; in response to the target mapping relationship existing, the user identifier and the system identifier are updated to the target mapping relationship.
[0102] It should be noted that, when each business system is registered, the intermediate system may allocate a corresponding port to each business system, so that each system can perform data transmission with the intermediate system through the corresponding port.
[0103] In an embodiment of the present invention, the intermediate system processes the registration of each business system, stores the mapping relationship between user identifiers of the systems, and can interact with data of each business system. When each business system needs to collaborate with other systems, it can send a business processing request to the intermediate system, so that the intermediate system can convert the business processing request of the business system into a business request of the business system it needs to collaborate with and send it, so that the collaborative business system can perform business processing and realize data intercommunication and business processing capability intercommunication between the systems. In this way, there is no need to store the identifiers of other systems in each business system, which saves the storage resources of the business system and improves the performance of the business system.
[0104] It should be noted that, in the embodiment of the present invention, the intermediate system can deploy the services provided by the intermediate system through a virtual machine (sure) and containerization (jdos). Figure 5 The figure shows a schematic diagram of the architecture of the deployment of the intermediate system. In the embodiment of the present invention, the computer room (such as computer room A and computer room B) where the intermediate system is deployed can be determined, and the application server (which can be a virtual server) for deployment can be determined in each computer room, and then deployed to the application server through virtual machines (sure) and containerization (jdos). By deploying the intermediate system in different computer rooms and deploying multiple containers (application servers) in the same computer room, high-availability deployment of the intermediate system is achieved. In this way, even if a container in the application crashes or the entire computer room is inaccessible, there are containers in other computer rooms to provide services. In addition, the CPU and memory usage alarms of the application can be configured in the intermediate system to adjust the number of containers in the intermediate system based on the alarms, and dynamically expand and shrink the capacity of the intermediate system. Each port in the intermediate system can be registered in JSF to provide services to the outside. The user calls the service by introducing a jar package. At the same time, JSF can also load balance the intermediate system. At the same time, multiple databases (such as mysql, etc.) are deployed for the intermediate system. Figure 5 DB1 and DB2 can adopt a master-slave mutual backup mode. The master database can write data and the slave database can read data. When a slave database fails, other slave databases can provide corresponding services. In the embodiment of the present invention, a data warehouse can also be configured for the intermediate system, such as Figure 5 In NOSQL, data in the database can be synchronized regularly through asynchronous replication to provide services such as data analysis as data assets, thereby ensuring data availability to the greatest extent possible.
[0105] In the embodiment of the present invention, in order to enable the intermediate system to perform high-performance mapping relationship query services, the key system can be configured with a multi-level cache structure. Specifically, the embodiment of the present invention takes a three-level cache structure as an example: the local cache (Guava) of the intermediate system corresponding to the caller is the first-level cache, the local cache (Redis) of the intermediate system server is the second-level cache, and the database cache of the intermediate system server is the third-level cache. In this way, through the three-level cache structure, data queries are performed in the order of the first-level cache, the second-level cache, and the third-level cache until the required data is queried. The intermediate system can maintain the data in the cache through scheduled tasks.
[0106] In order to solve the problems existing in the prior art, an embodiment of the present invention provides a service processing device 600, such as Figure 6 As shown, the device 600 includes:
[0107] The receiving unit 601 is configured to receive a first service processing request sent by a first service system, and obtain a first user identifier and a service processing type in the first service processing request;
[0108] A determination unit 602 is configured to query a second business system associated with the business processing type to call a preset mapping relationship between user identifiers between systems to determine a second user identifier in the second business system corresponding to the first user identifier, wherein the mapping relationship includes a ring mapping relationship between user identifiers of at least three business systems corresponding to each user;
[0109] A generating unit 603 is configured to obtain a request generation model of the second business system to generate a second business processing request based on the second user identifier;
[0110] The sending unit 604 is configured to send the second service processing request to the second service system.
[0111] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 3 The method of the illustrated embodiment is the same and will not be repeated here.
[0112] In one embodiment, the receiving unit 601 is further configured to receive a business processing result sent by the second business system;
[0113] The sending unit 604 is further configured to update the second user identifier in the service processing result to the first user identifier, so as to send the updated service processing result to the first service system.
[0114] In yet another embodiment, the receiving unit 601 is further configured to receive a registration request from a business system, where the business system includes the first business system and a second business system;
[0115] The device 600 further includes:
[0116] A query unit, configured to obtain user information included in the registration request, and query a target mapping relationship of a corresponding inter-system user identifier based on the user information, wherein the target mapping relationship is a ring mapping relationship;
[0117] An updating unit is used to obtain the user identifier and the system identifier in the registration request to update the user identifier and the system identifier to the target mapping relationship.
[0118] In yet another embodiment, the updating unit is specifically configured to:
[0119] In response to the target mapping relationship not existing, generating a corresponding mapping relationship between system user identifiers based on the user identifier and the system identifier;
[0120] In response to the target mapping relationship existing, the user identifier and the system identifier are updated to the target mapping relationship.
[0121] In yet another embodiment, the receiving unit 601 is further configured to receive a query request sent by the first business system, and obtain a first user identifier and a second business system identifier in the query request;
[0122] The device 600 further includes:
[0123] an acquiring unit, configured to call a corresponding mapping relationship between system user identifiers based on the first user identifier to acquire a second user identifier corresponding to the first user identifier in the second business system;
[0124] The sending unit 604 is further configured to send the second user identifier to the first service system.
[0125] In yet another embodiment, the generating unit 603 is specifically configured to:
[0126] Acquire a service request template of the second service system to extract service parameters from the first service processing request;
[0127] The service parameter and the second user identifier are updated to the service request template to obtain a second service processing request.
[0128] In yet another embodiment, the determining unit 602 is specifically configured to:
[0129] A business system set associated with the business processing type is queried to obtain a priority of each business system in the business system set, so as to determine a second business system from the business system set based on the priority.
[0130] It should be understood that the manner of implementing the embodiments of the present invention is different from the Figure 3 or Figure 4 The method of the illustrated embodiment is the same and will not be repeated here.
[0131] The intermediate system stores the mapping relationship between user identifiers of the systems and can interact with the data of each business system. When each business system needs to collaborate with other systems, it can send a business processing request to the intermediate system, which will convert the business processing request of the business system into a business request of the business system it needs to collaborate with and send it, so that the collaborating business system can perform business processing and realize data intercommunication between the systems. In this way, there is no need to store the identifiers of other systems in each business system, which saves the storage resources of the business system and improves the performance of the business system.
[0132] According to an embodiment of the present invention, the embodiment of the present invention further provides an electronic device and a readable storage medium.
[0133] The electronic device of an embodiment of the present invention comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the one processor, and the instructions are executed by the at least one processor so that the at least one processor executes the business processing method provided by the embodiment of the present invention.
[0134] Figure 7 An exemplary system architecture 700 is shown to which the service processing method or service processing device according to the embodiment of the present invention can be applied.
[0135] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, 703, network 704 and server 705. Network 704 is used to provide a medium for communication links between terminal devices 701, 702, 703 and server 705. Network 704 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0136] The user can use the terminal devices 701, 702, 703 to interact with the server 705 through the network 704 to receive or send messages, etc. Various client applications can be installed on the terminal devices 701, 702, 703.
[0137] The terminal devices 701 , 702 , and 703 may be, but are not limited to, smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0138] The server 705 may be a server that provides various services. The server may analyze and process the received data such as the business processing request, and feed back the processing result (such as the processing result - only an example) to the terminal device.
[0139] It should be noted that the service processing method provided in the embodiment of the present invention is generally executed by the server 705 , and accordingly, the service processing device is generally arranged in the server 705 .
[0140] It should be understood that Figure 7 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0141] Reference below Figure 8 , which shows a schematic diagram of the structure of a computer system 800 suitable for implementing an embodiment of the present invention. Figure 8 The computer system shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0142] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the system 800 are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0143] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage section 808 as needed.
[0144] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processing unit (CPU) 801, the above-mentioned functions defined in the system of the present invention are executed.
[0145] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0146] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a unit, a program segment, or a part of a code, and the above-mentioned unit, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0147] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes a receiving unit, a determining unit, a generating unit, and a sending unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the receiving unit may also be described as a "unit for receiving a business processing request function".
[0148] As another aspect, the present invention further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the service processing method provided by the present invention.
[0149] As another aspect, the present invention further provides a computer program product, including a computer program, which implements the service processing method provided by an embodiment of the present invention when the program is executed by a processor.
[0150] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A business processing method, characterized in that: For intermediate systems, including: Receiving a first service processing request sent by a first service system, and acquiring a first user identifier and a service processing type in the first service processing request; Querying a second business system associated with the business processing type to call a preset mapping relationship between user identifiers between systems, and determining a second user identifier in the second business system corresponding to the first user identifier, wherein the mapping relationship includes a ring mapping relationship between user identifiers of at least three business systems corresponding to each user, and corresponding user identifiers in other systems can be directly queried through the user identifier in any system; Acquire a request generation model of the second business system to generate a second business processing request based on the second user identifier; Send the second service processing request to the second service system.
2. The method according to claim 1, characterized in that After sending the second service processing request to the second service system, the method further includes: receiving a business processing result sent by the second business system; The second user identifier in the service processing result is updated to the first user identifier, so as to send the updated service processing result to the first service system.
3. The method according to claim 1, characterized in that Also includes: Receiving a registration request for a business system, the business system including the first business system and a second business system; Acquire user information included in the registration request, and query a target mapping relationship of a corresponding inter-system user identifier based on the user information, wherein the target mapping relationship is a ring mapping relationship; The user identifier and the system identifier in the registration request are obtained to update the user identifier and the system identifier to the target mapping relationship.
4. The method according to claim 3, characterized in that Updating the user identifier and the system identifier to the target mapping relationship includes: In response to the target mapping relationship not existing, generating a corresponding mapping relationship between system user identifiers based on the user identifier and the system identifier; In response to the target mapping relationship existing, the user identifier and the system identifier are updated to the target mapping relationship.
5. The method according to claim 1, characterized in that Also includes: Receiving a query request sent by the first business system, and acquiring a first user identifier and a second business system identifier in the query request; Based on the first user identifier, calling a corresponding mapping relationship between system user identifiers to obtain a second user identifier corresponding to the first user identifier in the second business system; Send the second user identifier to the first service system.
6. The method according to claim 1, characterized in that Acquiring a request generation model of the second business system to generate a second business processing request based on the second user identifier includes: Acquire a service request template of the second service system to extract service parameters from the first service processing request; The service parameter and the second user identifier are updated to the service request template to obtain a second service processing request.
7. The method according to claim 1, characterized in that Querying a second business system associated with the business processing type includes: A business system set associated with the business processing type is queried to obtain a priority of each business system in the business system set, so as to determine a second business system from the business system set based on the priority.
8. A service processing device, characterized in that: Set up in the intermediate system, including: A receiving unit, configured to receive a first service processing request sent by a first service system, and obtain a first user identifier and a service processing type in the first service processing request; a determination unit, configured to query a second business system associated with the business processing type, so as to call a preset mapping relationship between user identifiers between systems, and determine a second user identifier in the second business system corresponding to the first user identifier, wherein the mapping relationship includes a ring mapping relationship between user identifiers of at least three business systems corresponding to each user, and a corresponding user identifier in other systems can be directly queried through a user identifier in any system; A generating unit, configured to obtain a request generation model of the second business system to generate a second business processing request based on the second user identifier; A sending unit is used to send the second business processing request to the second business system.
9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
