CN115756898A - Cross-system information transmission method, device, equipment, medium and program product - Google Patents

Cross-system information transmission method, device, equipment, medium and program product Download PDF

Info

Publication number
CN115756898A
CN115756898A CN202211514930.XA CN202211514930A CN115756898A CN 115756898 A CN115756898 A CN 115756898A CN 202211514930 A CN202211514930 A CN 202211514930A CN 115756898 A CN115756898 A CN 115756898A
Authority
CN
China
Prior art keywords
information
downstream system
address
downstream
system information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211514930.XA
Other languages
Chinese (zh)
Inventor
吴长斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
ICBC Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC, ICBC Technology Co Ltd filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202211514930.XA priority Critical patent/CN115756898A/en
Publication of CN115756898A publication Critical patent/CN115756898A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The disclosure provides a cross-system information transmission method, which can be applied to data transmission of the upstream system information to obtain a field structure; calculating the field structure to obtain matching information; matching a preset matching value based on the matching information to obtain a preset conversion rule and a downstream system address; converting the upstream system information based on the preset conversion rule to obtain downstream system information; and transmitting the downstream system information to a target downstream system based on the downstream system address. The disclosure also provides a cross-system information transmission apparatus, a device, a storage medium, and a program product.

Description

Cross-system information transmission method, device, equipment, medium and program product
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, a medium, and a program product for cross-system information transmission.
Background
Due to the requirements of supervision, unification and standardization, the system as the middle layer needs to be connected with an upstream system and a downstream system in an opposite way at present, receives data transmitted by the upstream system in an interface form, completes conversion according to the requirement of a standardized format, and then calls the interface of the downstream system to transmit the data. In general, the system requirements for data in upstream and downstream systems are not consistent, and therefore, corresponding data normalization operations need to be performed in the middle layer system.
In the prior art, after a development interface receives formatted data transmitted by an upstream system, the formatted data is instantiated after being analyzed, and then the instantiated data is instantiated according to a normalization requirement. That is, the scheme is to implement cross-system transmission of data by instantiating and corresponding the upstream and downstream system interfaces one to one.
However, when any party needs to change the content of the transmitted data, the intermediate layer system needs to re-encode, and the data parsing and data transmission are implemented in a hard-coded form. This has the disadvantages of large development workload, high error probability, and low flexibility.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a cross-system information transmission method, apparatus, device, medium, and program product that improve flexibility and correctness of cross-system information transmission.
According to a first aspect of the present disclosure, there is provided a cross-system information transmission method, including: receiving upstream system information; analyzing the upstream system information to obtain a field structure; calculating the field structure to obtain matching information; matching a preset matching value based on the matching information to obtain a preset conversion rule and a downstream system address; converting the upstream system information based on the preset conversion rule to obtain downstream system information; and transmitting the downstream system information to a target downstream system based on the downstream system address.
According to an embodiment of the present disclosure, the analyzing the upstream system information to obtain a field structure includes: segmenting based on preset characters in the upstream system information to obtain a plurality of fields; and forming the field structure based on the plurality of fields.
According to an embodiment of the present disclosure, the calculating the field structure to obtain matching information includes: and calculating the field structure based on a hash algorithm to obtain the hash code value of the upstream system.
According to an embodiment of the present disclosure, the preset matching value is a pre-stored hash code, and the matching the preset matching value based on the matching information to obtain a preset conversion rule and a downstream system address includes: matching the pre-stored hash code value based on the hash code value of the upstream system to obtain an address mapping table, wherein the address mapping table comprises a mapping relation between an upstream system address and a downstream system address; and looking up the downstream system address based on the address mapping table.
According to an embodiment of the present disclosure, wherein the mapping relationship between the upstream system address and the downstream system address is many-to-many, the method further comprises: receiving a new downstream system address reported by the downstream system under the condition that the downstream system address changes; and adjusting the address mapping table based on the new downstream system address.
According to an embodiment of the present disclosure, the transmitting the downstream system information to a target downstream system based on the downstream system address includes: and splicing the downstream system address and the downstream system information to transmit the downstream system information to a target downstream system.
According to an embodiment of the present disclosure, the upstream system information at least includes a header field, and the obtaining a field structure based on parsing the upstream system information includes: and analyzing the header field to obtain a field structure.
In a second aspect of the present disclosure, there is provided a cross-system information transmission apparatus, including: the information receiving module is used for receiving the upstream system information; the information analysis module is used for analyzing the upstream system information to obtain a field structure; the field calculation module is used for calculating the field structure to obtain matching information; the matching module is used for matching a preset matching value based on the matching information to obtain a preset conversion rule and a downstream system address; the information conversion module is used for converting the upstream system information based on the preset conversion rule to obtain downstream system information; and the information transmission module is used for transmitting the downstream system information to a target downstream system based on the downstream system address.
According to the embodiment of the present disclosure, the information parsing module is further configured to segment based on preset characters in the upstream system information to obtain a plurality of fields; and forming the field structure based on the plurality of fields.
According to the embodiment of the present disclosure, the field calculation module is further configured to calculate the field structure based on a hash algorithm, so as to obtain an upstream system hash code value.
According to an embodiment of the present disclosure, the matching module is further configured to match the pre-stored hash code value based on the upstream system hash code value to obtain an address mapping table, where the address mapping table includes a mapping relationship between an upstream system address and a downstream system address; and searching the downstream system address based on the address mapping table.
According to an embodiment of the present disclosure, wherein a mapping relationship between the upstream system address and the downstream system address is many-to-many, the apparatus further includes: the registration center is used for receiving a new downstream system address reported by the downstream system under the condition that the downstream system address changes; and adjusting the address mapping table based on the new downstream system address.
According to the embodiment of the present disclosure, the information transmission module is further configured to splice the downstream system address and the downstream system information to transmit the downstream system information to a target downstream system.
According to the embodiment of the present disclosure, the information parsing module is further configured to parse the header field to obtain a field structure.
In a third aspect of the present disclosure, there is provided an electronic device including: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the cross-system information transfer method described above.
In a fourth aspect of the present disclosure, a computer-readable storage medium is further provided, which has executable instructions stored thereon, and when executed by a processor, causes the processor to execute the above cross-system information transmission method.
In a fifth aspect of the present disclosure, a computer program product is also provided, which includes a computer program, and when being executed by a processor, the computer program realizes the above cross-system information transmission method.
In the embodiment of the disclosure, the conversion rule and the address preset by the rule of a plurality of different downstream interfaces are integrated in the middle layer, and the configuration can be realized only in the middle layer system without the configuration in the upstream and downstream systems. The preset conversion rules and the addresses are matched through the field structure, the preset conversion rules of all downstream system interfaces can be accurately matched, and high-efficiency conversion of data is achieved. In addition, the whole processing method reduces the use of a hard coding mode and reduces the error rate.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario diagram of a cross-system information transmission method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a cross-system information transfer method according to an embodiment of the disclosure;
FIG. 3 schematically shows a diagram of a field structure according to an embodiment of the disclosure;
FIG. 4 schematically illustrates a full flow diagram of a cross-system information transfer method according to an embodiment of the disclosure;
fig. 5 schematically shows a block diagram of a cross-system information transmission apparatus according to an embodiment of the present disclosure;
fig. 6 schematically shows a block diagram of an electronic device adapted to implement a cross-system information transfer method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that these descriptions are illustrative only and are not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
In those instances where a convention analogous to "at least one of A, B, and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B, and C" would include but not be limited to systems that have A alone, B alone, C alone, A and B together, A and C together, B and C together, and/or A, B, and C together, etc.).
The embodiment of the disclosure provides a cross-system information transmission method, which includes: receiving upstream system information; analyzing the upstream system information to obtain a field structure; calculating the field structure to obtain matching information; matching a preset matching value based on the matching information to obtain a preset conversion rule and a downstream system address; converting the upstream system information based on the preset conversion rule to obtain downstream system information; and transmitting the downstream system information to a target downstream system based on the downstream system address.
In the embodiment of the disclosure, the conversion rule and the address preset by the rule of a plurality of different downstream interfaces are integrated in the middle layer, and the configuration can be realized only in the middle layer system without the configuration in the upstream and downstream systems. The preset conversion rules and the addresses are matched through the field structure, the preset conversion rules of all downstream system interfaces can be accurately matched, and high-efficiency conversion of data is achieved. In addition, the whole processing method reduces the use of a hard coding mode and reduces the error rate.
Fig. 1 schematically illustrates an application scenario diagram of a cross-system information transmission method according to an embodiment of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. Network 104 is the medium used to provide communication links between terminal devices 101, 102, 103 and server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the cross-system information transmission method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the cross-system information transmission apparatus provided by the embodiment of the present disclosure may be generally disposed in the server 105. The cross-system information transmission method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the cross-system information transmission apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The cross-system information transmission method of the disclosed embodiment will be described in detail below with fig. 2 to 4 based on the scenario described in fig. 1.
Fig. 2 schematically shows a flow chart of a cross-system information transmission method according to an embodiment of the present disclosure.
Fig. 3 schematically shows a schematic diagram of a field structure according to an embodiment of the present disclosure.
As shown in fig. 2, the cross-system information transmission method of this embodiment includes operations S210 to S260, and the cross-system information transmission method may be performed by the server 105.
In operation S210, upstream system information is received.
In operation S220, the upstream system information is parsed to obtain a field structure.
The upstream system is a sender of information, the downstream system is a receiver of information, the format requirements of the upstream system and the downstream system for the information are specified, and in order to enable the downstream system to be directly available for the information sent by the upstream system, the format of the information sent by the upstream system needs to be modified on the side of the intermediate layer system, so that the format requirements of the downstream system for the information can be met. The method in the embodiment of the disclosure is applied to an intermediate layer system and is used for carrying out format transformation and information forwarding on information.
In an embodiment of the present disclosure, the middle layer system hosts a plurality of different upstream systems upward through a plurality of different interfaces, while the middle layer system accesses a plurality of different downstream systems downward through a plurality of different interfaces. Generally, the format requirement of the same upstream system for transmitting information is consistent, and the format requirement of different upstream systems for information is inconsistent. The format requirements for such information are typically embodied in the field structure. The field structure generally includes a specific field, a field number, a field length, and the like.
As shown in fig. 3, a piece of information generally includes multiple fields, where the fields may be, for example, a field "S1", a field "S2", a field "S3", and a field "S4", and different fields have different field lengths, and of course, in a specific service, information carried by different fields is different, for example, the field "S1" may be a user name, the field "S1" may also be an identification number, and the field "S1" may also be a date.
When the field structure is obtained, some specific fields may be obtained as the field structure. For example, when the field "S1" is an address identification, only the field "S1" is acquired as a field structure. For example, several specific fields, i.e., the field "S1", the field "S2" and the field "S3" are selected, and the contents of the field "S1", the field "S2" and the field "S3" (for example, the contents are address identifiers, dates and service data) are respectively used as the field structure. The field lengths of the field "S1", the field "S2", and the field "S3" may be used as field structures, for example, the field structures may include a field "S1" =3, a field "S2" =4, and a field "S3" = 2. And will not be described in detail herein.
According to an embodiment of the present disclosure, the analyzing the upstream system information to obtain a field structure includes: segmenting based on preset characters in the upstream system information to obtain a plurality of fields; and forming the field structure based on the plurality of fields.
As shown in fig. 3, different fields need some special characters as separate identifiers, that is, the preset characters, and the specific preset characters may be characters used for identifying different fields, such as spaces and/or line breaks. The field "S1", the field "S2", the field "S3", the field "S4", and the like can be distinguished by these characters.
According to an embodiment of the present disclosure, the upstream system information at least includes a header field, and the obtaining a field structure based on parsing the upstream system information includes: and analyzing the header field to obtain a field structure.
Specifically, the upstream system information may be propagated in a form based on XML and/or JSON, and similarly, the downstream system information may also be propagated in a form based on XML and/or JSON. For JSON, which includes Key values (i.e., header fields) and Value values, the above parsing method is only applied to Key values in JSON to extract field structures, so that the number of fields and the length of individual fields can be reduced to a certain extent, and parsing efficiency is improved.
In operation S230, the field structure is calculated, resulting in matching information.
The matching information can be directly formed through a field structure, can also be directly formed through combining the field structure with other information related to the field, and can also be directly formed through combining the field structure with other information related to an upstream system interface. Or the matching information can be calculated through a specific algorithm according to the field structure, can be calculated by combining the field structure with other information related to the field, and can be calculated through a specific algorithm according to the field structure and other information related to the upstream system interface.
It is understood that the matching information is information for retrieving a corresponding preset conversion rule prestored in the middle tier system.
According to an embodiment of the present disclosure, the calculating the field structure to obtain matching information includes: and calculating the field structure based on a hash algorithm to obtain an upstream system hash code value.
Specifically, the specific algorithm may adopt a hash algorithm, and the hash code value is calculated by a field structure. The characteristics of encrypting the upstream information and ensuring the uniqueness of the upstream information can be achieved. The uniqueness of the matching information can be greatly ensured.
In operation S240, a preset matching value is matched based on the matching information, so as to obtain a preset conversion rule and a downstream system address.
The preset conversion rule refers to a conversion in format to meet, for example, the preset conversion rule includes adding or subtracting contents in a field, splicing a plurality of fields to form a field, and the like. It is understood that the preset conversion rule and the downstream system address are configured in the middle layer system in advance by the developer and/or the operation and maintenance personnel.
According to an embodiment of the present disclosure, the preset matching value is a pre-stored hash code, and the matching the preset matching value based on the matching information to obtain a preset conversion rule and a downstream system address includes: matching the pre-stored hash code value based on the upstream system hash code value to obtain an address mapping table, wherein the address mapping table comprises a mapping relation between an upstream system address and a downstream system address; and looking up the downstream system address based on the address mapping table.
Specifically, the matching information adopts a hash code value, and the preset matching value also adopts the hash code value to perform direct matching. It can be understood that the format requirements of different downstream systems for information are unified, and therefore, the preset conversion rule and the address are in a one-to-one correspondence relationship. That is to say, the corresponding preset conversion rule can be successfully obtained by matching the downstream system address, or the corresponding downstream address can be successfully obtained by matching the preset conversion rule, which is not described herein again.
In operation S250, the upstream system information is converted based on the preset conversion rule to obtain downstream system information.
In operation S260, the downstream system information is transmitted to a target downstream system based on the downstream system address.
According to an embodiment of the present disclosure, the transmitting the downstream system information to a target downstream system based on the downstream system address includes: and splicing the downstream system address and the downstream system information to transmit the downstream system information to a target downstream system.
For example, when the downstream system address exists in the form of a URL, the transmission of data is realized by concatenating the URL and the downstream system information.
In the embodiment of the disclosure, the conversion rules and addresses preset by the rules of a plurality of different downstream interfaces are integrated in the middle layer, so that the configuration can be realized only in the middle layer system, and the configuration is not required to be performed in upstream and downstream systems. The preset conversion rules and the addresses are matched through the field structure, the preset conversion rules of all downstream system interfaces can be accurately matched, and high-efficiency conversion of data is achieved. In addition, the whole processing method reduces the use of a hard coding mode and reduces the error rate.
According to an embodiment of the present disclosure, wherein the mapping relationship between the upstream system address and the downstream system address is many-to-many, the method further comprises: receiving a new downstream system address reported by the downstream system under the condition that the downstream system address changes; and adjusting the address mapping table based on the new downstream system address.
For example, when the intermediate layer system is a financial monitoring system, the user inputs relevant data of the user through the upstream system to handle some specific financial services, and the monitoring system side receives the relevant data. Generally, at this time, the supervisory system calls a three-party downstream system to query whether the user meets the relevant service handling conditions, and at this time, the information system input by the user through the upstream system is not necessarily directly used by the downstream system, so that the intermediate-layer system side needs to perform relevant format conversion operation. Moreover, for some specific upstream systems corresponding to services, it may be necessary to query downstream systems corresponding to multiple related departments, and for some specific upstream systems corresponding to services, due to its simple service complexity, only a few downstream systems corresponding to related departments need to be called, so that the mapping relationship between the upstream system and the downstream system is often many-to-many.
Setting an address change registration mechanism, setting a registration center in the intermediate system, putting an address mapping table into the registration center, and when the address of the downstream system is changed, registering a new address of the downstream system by the intermediate system so as to correspondingly change the address mapping table. By the mapping relation of the integrated form, the mapping relation of many-to-many addresses is effectively dealt with, and the quick response of changing the addresses can be realized.
Fig. 4 schematically shows a full flow diagram of a cross-system information transmission method according to an embodiment of the present disclosure.
As shown in fig. 4, the cross-system information transmission process of this embodiment includes operations S401 to S412, and the cross-system information transmission method may be performed by the server 105.
In operation S401, a lookup table is newly added and modified.
Wherein, the comparison relation table refers to the comparison relation of the conversion rule.
In operation S402, the interface number is newly added, modified, and the number and the interface address are received.
Specifically, operation and maintenance personnel define the calling party interface and maintain the interface parameters on an interface configuration interface. And removing the blank and line feed character from the interface parameter information, converting the information into a hash code value, matching the template and storing the hash code value into a database.
It is understood that the operations S401 to S402 are used to reflect the process of configuring the relevant rules by the operation and maintenance staff, and configure the corresponding address mapping relationships and the conversion rules in a centralized manner.
In operation S403, service data is received through the external interface.
And the calling party calls the service to provide an interface externally, and the upstream system information is in a JSON form and comprises a receiving party interface id and corresponding service information. For example, the received Key of JSON is: { "AccID": "111123", "YWH": "a100121", "DIZHI": "XX cell", in which 3 fields are included.
In operation S404, the character string is parsed, and the key is converted into the hash code.
In operation S405, a corresponding configuration is queried through hash encoding.
In operation S406, the corresponding configuration is returned.
And after receiving the calling information, the service converts the JSON string, extracts format information of the JSON string, removes special characters such as line feed and the like, and converts the special characters into a Hash code value. A particular field may be employed as a field structure to retrieve the corresponding downstream system address and translation rules. For example, the first field, i.e., "AccID": "111123", delete the corresponding special character, get "AccID111123", as the field structure.
In operation S407, an information converter is called.
In operation S408, traffic data is transmitted.
In operation S409, the converted data is returned.
And the service calls a database query function, and queries the interface contrast relationship information (namely the preset conversion relationship) configured by the operation and maintenance personnel through the Hash code value. For example, the conversion rule is: { "YWH" - > "ywbm", "DIZHI" - > "jtzz" }.
And the service calls a service data conversion function, and the converter converts the JSON format information at the upstream. For example, the converted downstream system information is: { "ywbm": "A100121", "jtzz", "XX cell" }
In operation S410, a transmission interface address is acquired.
In operation S411, the recipient number is queried through the interface number.
In operation S412, the receiver number is queried through the interface number.
And the service call database transmits the parameter AccID, and inquires the corresponding receiver URL and the interface request type. Of course, the URL of the receiving party may be queried after the "AccID111123" is converted into the hash code value.
And sending the calling information to a corresponding receiver and an interface request type to realize the forwarding of the information. And the service receives the return information of the receiver, converts the return information through the steps of S403-S412, and returns the converted return information to the caller to complete the whole interface calling process.
It can be understood that the cross-system information transmission flow of "downstream system- > upstream system" is basically consistent with the cross-system information transmission flow of "upstream system- > downstream system", and will not be described herein again.
In the embodiment of the disclosure, the conversion rules and addresses preset by the rules of a plurality of different downstream interfaces are integrated in the middle layer, so that the configuration can be realized only in the middle layer system, and the configuration is not required to be performed in upstream and downstream systems. The preset conversion rules and the addresses are matched through the field structure, the preset conversion rules of all downstream system interfaces can be accurately matched, and high-efficiency conversion of data is achieved. In addition, the whole processing method reduces the use of a hard coding mode and reduces the error rate.
Based on the cross-system information transmission method, the disclosure also provides a cross-system information transmission device. The apparatus will be described in detail below with reference to fig. 5.
Fig. 5 schematically shows a block diagram of a cross-system information transmission apparatus according to an embodiment of the present disclosure.
As shown in fig. 5, the cross-system information transmission apparatus 500 of this embodiment includes an information receiving module 510, an information parsing module 520, a field calculating module 530, a matching module 540, an information converting module 550, and an information transmitting module 560.
The information receiving module 510 is used for receiving upstream system information. In an embodiment, the information receiving module 510 may be configured to perform the operation S210 described above, which is not described herein again.
The information parsing module 520 is configured to parse the upstream system information to obtain a field structure. In an embodiment, the information parsing module 520 may be configured to perform the operation S220 described above, which is not described herein again.
The field calculation module 530 is configured to calculate the field structure to obtain matching information. In an embodiment, the field calculating module 530 may be configured to perform the operation S230 described above, which is not described herein again.
The matching module 540 is configured to match a preset matching value based on the matching information to obtain a preset conversion rule and a downstream system address. In an embodiment, the matching module 540 may be configured to perform the operation S240 described above, which is not described herein again.
The information transformation module 550 is configured to transform the upstream system information based on the preset transformation rule to obtain downstream system information. In an embodiment, the information transforming module 550 may be configured to perform the operation S250 described above, which is not described herein again.
The information transmission module 560 is configured to transmit the downstream system information to a target downstream system based on the downstream system address. In an embodiment, the information transmission module 560 may be configured to perform the operation S260 described above, which is not described herein again.
According to an embodiment of the present disclosure, the information parsing module 520 is further configured to segment based on preset characters in the upstream system information to obtain a plurality of fields; and forming the field structure based on the plurality of fields.
According to an embodiment of the present disclosure, the field calculating module 530 is further configured to calculate the field structure based on a hash algorithm, so as to obtain an upstream system hash code value.
According to an embodiment of the present disclosure, the matching module 540 is further configured to match the pre-stored hash code value based on the upstream system hash code value to obtain an address mapping table, where the address mapping table includes a mapping relationship between an upstream system address and a downstream system address; and searching the downstream system address based on the address mapping table.
According to an embodiment of the present disclosure, wherein the mapping relationship between the upstream system address and the downstream system address is many-to-many, the apparatus further includes: the registration center is used for receiving a new downstream system address reported by the downstream system under the condition that the downstream system address changes; and adjusting the address mapping table based on the new downstream system address.
According to an embodiment of the present disclosure, the information transmission module 560 is further configured to concatenate the downstream system address and the downstream system information to transmit the downstream system information to a target downstream system.
According to an embodiment of the present disclosure, the information parsing module 520 is further configured to parse the header field to obtain a field structure.
In the embodiment of the disclosure, the conversion rules and addresses preset by the rules of a plurality of different downstream interfaces are integrated in the middle layer, so that the configuration can be realized only in the middle layer system, and the configuration is not required to be performed in upstream and downstream systems. The preset conversion rules and the addresses are matched through the field structure, the preset conversion rules of all downstream system interfaces can be accurately matched, and high-efficiency conversion of data is achieved. In addition, the whole processing method reduces the use of a hard coding mode and reduces the error rate.
According to the embodiment of the present disclosure, any plurality of the information receiving module 510, the information parsing module 520, the field calculating module 530, the matching module 540, the information converting module 550, and the information transmitting module 560 may be combined into one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the information receiving module 510, the information parsing module 520, the field calculation module 530, the matching module 540, the information conversion module 550, and the information transmission module 560 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or by any other reasonable manner of integrating or packaging a circuit, or by any one of three implementations of software, hardware, and firmware, or by any suitable combination of any several of them. Alternatively, at least one of the information receiving module 510, the information parsing module 520, the field calculation module 530, the matching module 540, the information translation module 550, and the information transmission module 560 may be at least partially implemented as a computer program module that, when executed, may perform a corresponding function.
Fig. 6 schematically illustrates a block diagram of an electronic device adapted to implement a cross-system information transfer method according to an embodiment of the present disclosure.
As shown in fig. 6, an electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. Processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 601 may also include onboard memory for caching purposes. The processor 601 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 602 and/or RAM 603. It is to be noted that the programs may also be stored in one or more memories other than the ROM 602 and RAM 603. The processor 601 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 600 may also include input/output (I/O) interface 605, input/output (I/O) interface 605 also connected to bus 604, according to an embodiment of the disclosure. The electronic device 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. A driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 602 and/or RAM 603 described above and/or one or more memories other than the ROM 602 and RAM 603.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated by the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 601. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 609, and/or installed from the removable medium 611. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program, when executed by the processor 601, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing devices may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to external computing devices (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It will be appreciated by a person skilled in the art that various combinations or/and combinations of features recited in the various embodiments of the disclosure and/or in the claims may be made, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the disclosure, and these alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (11)

1. A cross-system information transmission method comprises the following steps:
receiving upstream system information;
analyzing the upstream system information to obtain a field structure;
calculating the field structure to obtain matching information;
matching a preset matching value based on the matching information to obtain a preset conversion rule and a downstream system address;
converting the upstream system information based on the preset conversion rule to obtain downstream system information; and
and transmitting the downstream system information to a target downstream system based on the downstream system address.
2. The method of claim 1, wherein the parsing the upstream system information to obtain a field structure comprises:
segmenting based on preset characters in the upstream system information to obtain a plurality of fields; and
forming the field structure based on the plurality of fields.
3. The method of claim 1 or 2, wherein the calculating the field structure to obtain matching information comprises:
and calculating the field structure based on a hash algorithm to obtain the hash code value of the upstream system.
4. The method of claim 3, wherein the preset match value is a pre-stored hash code,
the matching of the preset matching value based on the matching information to obtain a preset conversion rule and a downstream system address comprises the following steps:
matching the pre-stored hash code value based on the upstream system hash code value to obtain an address mapping table, wherein the address mapping table comprises a mapping relation between an upstream system address and a downstream system address;
and looking up the downstream system address based on the address mapping table.
5. The method of claim 4, wherein the mapping of upstream and downstream system addresses is many-to-many,
the method further comprises the following steps:
receiving a new downstream system address reported by the downstream system under the condition that the downstream system address changes; and
adjusting the address mapping table based on the new downstream system address.
6. The method of claim 1, wherein said transmitting the downstream system information to a target downstream system based on the downstream system address comprises:
and splicing the downstream system address and the downstream system information to transmit the downstream system information to a target downstream system.
7. The method of any of claims 1, 2, 4, 5, or 6, wherein the upstream system information comprises at least a header field,
the obtaining a field structure based on analyzing the upstream system information includes:
and analyzing the header field to obtain a field structure.
8. An inter-system information transmission apparatus comprising:
the information receiving module is used for receiving the upstream system information;
the information analysis module is used for analyzing the upstream system information to obtain a field structure;
the field calculation module is used for calculating the field structure to obtain matching information;
the matching module is used for matching a preset matching value based on the matching information to obtain a preset conversion rule and a downstream system address;
the information conversion module is used for converting the upstream system information based on the preset conversion rule to obtain downstream system information; and
and the information transmission module is used for transmitting the downstream system information to a target downstream system based on the downstream system address.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 7.
11. A computer program product comprising a computer program which, when executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202211514930.XA 2022-11-28 2022-11-28 Cross-system information transmission method, device, equipment, medium and program product Pending CN115756898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211514930.XA CN115756898A (en) 2022-11-28 2022-11-28 Cross-system information transmission method, device, equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211514930.XA CN115756898A (en) 2022-11-28 2022-11-28 Cross-system information transmission method, device, equipment, medium and program product

Publications (1)

Publication Number Publication Date
CN115756898A true CN115756898A (en) 2023-03-07

Family

ID=85340634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211514930.XA Pending CN115756898A (en) 2022-11-28 2022-11-28 Cross-system information transmission method, device, equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN115756898A (en)

Similar Documents

Publication Publication Date Title
CN111447257B (en) Message conversion method and device
CN110471848B (en) Method and device for dynamically returning message
CN110858202A (en) Method and device for generating where clause in database query statement
CN111427701A (en) Workflow engine system and business processing method
CN110704200A (en) Method and device for converting call interface
CN112445868A (en) Service message processing method and device
CN110109983B (en) Method and device for operating Redis database
CN115587575A (en) Data table creation method, target data query method, device and equipment
CN115357761A (en) Link tracking method and device, electronic equipment and storage medium
CN115550141A (en) Event processing method and device, electronic equipment and readable storage medium
CN114237765B (en) Functional component processing method, device, electronic equipment and medium
CN115756898A (en) Cross-system information transmission method, device, equipment, medium and program product
CN115801764A (en) File transmission method, device, equipment and storage medium
CN113779018A (en) Data processing method and device
CN112988857A (en) Service data processing method and device
CN113326060A (en) Service request processing method, device and system and service configuration method and device
CN112214500A (en) Data comparison method and device, electronic equipment and storage medium
CN114969059B (en) Method and device for generating order information, electronic equipment and storage medium
CN114285743B (en) Method, device, electronic equipment and storage medium for updating configuration information
CN113778504B (en) Publishing method, publishing system and routing device
CN114844957B (en) Link message conversion method, device, equipment, storage medium and program product
CN116450465B (en) Data processing method, device, equipment and medium
CN116737813A (en) Service processing method, device, electronic equipment and storage medium
CN117395314A (en) Request processing method, request processing device, electronic equipment and storage medium
US20240193249A1 (en) Method of processing cross-domain authorization and method of processing cross-domain call

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