Data conversion method and related device

By analyzing and filling interbank messages, the conversion between CIPS and SWIFT messages is realized, which solves the problem of information transmission blockage caused by different formats and improves data transmission efficiency.

CN114692572BActive Publication Date: 2025-01-10AGRICULTURAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210323139.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-30
Publication Date
2025-01-10
Estimated Expiration
2042-03-30

AI Technical Summary

Technical Problem

In RMB cross-border payment and clearing service, due to the different formats of CIPS messages and SWIFT messages, interbank information transmission is blocked.

Method used

By analyzing the first message, the domain name and domain information of each domain are obtained, and the information is filled in the corresponding domain of the blank message according to the domain name, and a second message that conforms to the CIPS or SWIFT format is generated, thereby realizing different Conversion between message formats.

Benefits of technology

It effectively avoids information transmission blockage caused by different message formats and improves data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114692572B_ABST
    Figure CN114692572B_ABST
Patent Text Reader

Abstract

The present invention discloses a data conversion method and a related device, which can parse a first message in a first message format to obtain the domain name and corresponding domain information of each domain of the first message; for any of the domain information, fill the domain information of each domain of the first message into the domain corresponding to the blank message in the second message format according to the domain name; and generate a second message in the second message format according to the blank message filled with the domain information of each domain of the first message. It can be seen from this that the present invention can convert messages of different message formats, avoid information transmission congestion caused by different message formats, and has high efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a data conversion method and related devices. Background Art

[0002] With the rapid development of CIPS, a wholesale payment system for cross-border RMB payment and clearing business, the internationalization of RMB has been further accelerated, and the coverage of financial markets in all time zones around the world has been quickly achieved, meeting the RMB business needs of global users. As a new system, CIPS has its own set of information transmission standards - CIPS messages, while SWIFT, as the Society for Worldwide Interbank Financial Telecommunication, has also had a complete set of information transmission standards - SWIFT messages in its development over the years. Therefore, when some banks, as CIPS participating banks, communicate with their original SWIFT participating banks, they may not be able to transmit information to each other due to different message formats, and the sent messages cannot be parsed by each other, resulting in information transmission congestion. Summary of the invention

[0003] In view of the above problems, the present invention provides a data conversion method and related devices that overcome the above problems or at least partially solve the above problems.

[0004] In a first aspect, a data conversion method comprises:

[0005] Parsing a first message in a first message format to obtain a domain name and corresponding domain information of each domain of the first message;

[0006] For any of the domain information, each of the domain information of the first message is filled into the field corresponding to the blank message of the second message format according to the domain name;

[0007] A second message in the second message format is generated according to the blank message filled with the field information of the first message.

[0008] In conjunction with the first aspect, in certain optional implementations, the first message is a SWIFT message in fin format, and the blank message is a CIPS message in xml format;

[0009] For any of the domain information, filling each domain information of the first message into a field corresponding to a blank message of the second message format according to the domain name includes:

[0010] Determine whether the domain information of the 56 field of the first message and the 57 field of the first message are both not empty;

[0011] If the domain information of the 56th field and the 57th field are not empty, then determine whether the domain information of the 56th field includes the bank number of the CIPS direct participating bank, wherein the domain information of the 57th field that is not empty at least includes the bank number of the payee's account opening bank;

[0012] If the domain information of the 56th domain includes the row number of the CIPS direct reference line, then fill in the row number of the CIPS direct reference line of the 56th domain in the direct reference line node domain of the blank message, and determine whether the domain information of the 57th domain includes the row number of the CIPS indirect reference line;

[0013] If the domain information of the 57 field includes the bank number of the CIPS intermediary bank, then the bank number of the CIPS intermediary bank in the 57 field is filled in the intermediary bank node field of the blank message, and the bank number of the beneficiary's account is filled in the account opening bank number node field of the blank message;

[0014] If the domain information of the 57 domain does not include the bank number of the CIPS intermediary bank, the bank number of the payee's account opening bank is filled in the account opening bank number node domain, and the intermediary bank node domain remains empty.

[0015] In combination with the previous embodiment, in some optional embodiments, after determining whether the domain information of the 56 field of the first message and the 57 field of the first message are both not empty, the method further includes:

[0016] If the domain information of the 56th domain and the 57th domain are not empty, then determine whether the domain information of the 56th domain includes the row number of the CIPS reference row;

[0017] If the domain information of the 56 domain includes the bank number of the CIPS intermediary bank, then query the bank number of the first CIPS direct participating bank corresponding to the bank number of the CIPS intermediary bank, and fill in the bank number of the first CIPS direct participating bank in the direct participating bank node domain, and fill in the bank number of the CIPS intermediary bank in the 56 domain in the intermediary bank node domain, and fill in the beneficiary's account opening bank number in the account opening bank number node domain;

[0018] If the domain information of the 56 domain does not include the row number of the CIPS indirect reference line, the first CIPS intermediary agency information and the second CIPS intermediary agency information are obtained according to the domain information of the 56 domain, and the first CIPS intermediary agency information and the second CIPS intermediary agency information are filled in the direct reference line node domain and the indirect reference line node domain respectively.

[0019] In combination with the second embodiment, in some optional embodiments, after determining whether the domain information of the 56 field of the first message and the 57 field of the first message are both not empty, the method further includes:

[0020] If the domain information of the 56th domain is empty and the domain information of the 57th domain is not empty, then determine whether the domain information of the 57th domain includes the row number of the CIPS direct reference row;

[0021] If the domain information of the 57 domain includes the row number of the CIPS direct reference row, then fill in the row number of the CIPS direct reference row of the 57 domain in the direct reference row node domain, and keep the indirect reference row node domain empty;

[0022] If the domain information of the 57 domain does not include the row number of the CIPS direct reference line, determine whether the domain information of the 57 domain includes the row number of the CIPS indirect reference line;

[0023] If the domain information of the 57 domain includes the bank number of the CIPS intermediary bank, then query the bank number of the second CIPS direct bank corresponding to the bank number of the CIPS intermediary bank, and fill in the bank number of the second CIPS direct bank in the direct bank node domain, and fill in the bank number of the CIPS intermediary bank in the 57 domain in the intermediary bank node domain, and fill in the beneficiary's account opening bank number in the account opening bank number node domain;

[0024] If the domain information of the 57th domain does not include the bank number of the CIPS inter-reference bank, then the corresponding agent bank information is obtained by querying the domain information of the 57th domain;

[0025] Determine whether the agent bank information includes the bank number of the CIPS direct participating bank or the bank number of the CIPS indirect participating bank;

[0026] If the agent bank information includes the bank number of the CIPS direct participating bank, then fill in the bank number of the CIPS direct participating bank in the direct participating bank node field of the blank message, fill in the bank number of the payee's account opening bank in the account opening bank number node field, and keep the indirect participating bank node field blank;

[0027] If the agent bank information includes the bank number of the CIPS intermediary bank, then query the bank number of the third CIPS direct bank corresponding to the bank number of the CIPS intermediary bank, and fill in the bank number of the third CIPS direct bank in the direct bank node field, and fill in the bank number of the CIPS intermediary bank in the intermediary bank node field, and fill in the bank number of the beneficiary's account opening in the account opening bank number node field;

[0028] If the agent bank information does not include the bank number of the CIPS direct participating bank or the bank number of the CIPS indirect participating bank, the third CIPS intermediary institution information and the fourth CIPS intermediary institution information are obtained by querying the agent bank information, and the third CIPS intermediary institution information and the fourth CIPS intermediary institution information are filled in the direct participating bank node field and the indirect participating bank node field respectively.

[0029] Optionally, in some optional implementations, for any of the domain information, each domain information of the first message is filled into a field corresponding to a blank message of the second message format according to the domain name, further comprising:

[0030] For the domain information of other domains except the 56 domain and the 57 domain, the following steps are performed: according to the pre-established domain name comparison relationship, the domain information of each other domain in the first message is filled into the node domain corresponding to the blank message.

[0031] In conjunction with the first aspect, in some optional implementations, the first message is the CIPS message in the xml format, and the blank message is the SWIFT message in the fin format;

[0032] For any of the domain information, filling each domain information of the first message into a field corresponding to a blank message of the second message format according to the domain name includes:

[0033] Determine whether the inter-reference row node field of the first message stores the row number of the CIPS inter-reference row;

[0034] If the indirect reference line node field does not store the line number of the CIPS indirect reference line, determining whether the intermediary agency node field of the first message stores CIPS intermediary agency information;

[0035] If the intermediary agency node domain stores the CIPS intermediary agency information, then fill in the CIPS intermediary agency information in the 56 field of the blank message;

[0036] If the intermediary agency node domain stores two pieces of CIPS intermediary agency information, the two pieces of CIPS intermediary agency information are filled into field 56 of the blank message and field 57 of the blank message respectively;

[0037] If the intermediary institution node domain does not store the CIPS intermediary institution information, the beneficiary's bank account number is obtained from the bank account node domain of the first message, and the obtained beneficiary's bank account number is filled into the receiving bank domain of the blank message, and the 56 field of the blank message and the 57 field of the blank message are kept empty.

[0038] In combination with the previous embodiment, in some optional embodiments, after determining whether the reference row node field of the first message stores the row number of the CIPS reference row, the method further includes:

[0039] If the intermediary line node field of the first message stores the line number of the CIPS intermediary line, then determining whether the intermediary agency node field stores the CIPS intermediary agency information;

[0040] If the intermediary agency node domain stores the CIPS intermediary agency information, then fill in the CIPS intermediary agency information in the 56 field of the blank message;

[0041] If the intermediary agency node domain stores two pieces of CIPS intermediary agency information, the two pieces of CIPS intermediary agency information are filled into field 56 of the blank message and field 57 of the blank message respectively;

[0042] If the intermediary agency node domain does not store the CIPS intermediary agency information, the row number of the CIPS intermediary line is obtained from the intermediary line node domain of the first message, and the row number of the CIPS intermediary line is filled into the receiving message line domain, and the 56 field of the blank message and the 57 field of the blank message are kept blank.

[0043] In a second aspect, a data conversion device includes: a parsing unit, a filling unit and a message generating unit;

[0044] The parsing unit is used to parse the first message in the first message format, so as to obtain the domain name and corresponding domain information of each domain of the first message;

[0045] The filling unit is used to fill in the domain information of each of the first message into the field corresponding to the blank message of the second message format according to the domain name for any of the domain information;

[0046] The message generating unit is used to generate a second message in the second message format according to the blank message filled with the field information of each of the first messages.

[0047] In a third aspect, a computer-readable storage medium stores a program, which implements any of the above-mentioned data conversion methods when executed by a processor.

[0048] In a fourth aspect, an electronic device comprises at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute any of the data conversion methods described above.

[0049] By means of the above technical solution, the data conversion method and related device provided by the present invention can parse the first message of the first message format, thereby obtaining the domain name and corresponding domain information of each domain of the first message; for any of the domain information, fill the domain information of each domain of the first message into the domain corresponding to the blank message of the second message format according to the domain name; and generate the second message of the second message format according to the blank message filled with the domain information of each domain of the first message. It can be seen from this that the present invention can convert messages of different message formats, avoid information transmission congestion caused by different message formats, and has high efficiency.

[0050] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0052] Figure 1 A flow chart of a data conversion method provided by the present invention is shown;

[0053] Figure 2 A schematic diagram of the structure of a data conversion device provided by the present invention is shown;

[0054] Figure 3 A structural schematic diagram of an electronic device provided by the present invention is shown. DETAILED DESCRIPTION

[0055] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0056] like Figure 1 As shown, the present invention provides a data conversion method, including: S100, S200 and S300;

[0057] S100, parsing a first message in a first message format, thereby obtaining a domain name and corresponding domain information of each domain of the first message;

[0058] Optionally, messages in different message formats have different settings for domain names and domain information, and messages in different message formats have different corresponding parsing methods, which is not limited in the present invention.

[0059] It should be noted that the present invention can parse a first message in a first message format, and subsequently generate a second message in a second message format based on the information obtained by the parse, thereby realizing the conversion between messages in different message formats. To this end, the present invention can parse the first message to obtain the domain name and corresponding domain information of each domain of the first message, and the present invention is not limited to this.

[0060] S200, for any of the domain information, fill the domain information of the first message into the field corresponding to the blank message of the second message format according to the domain name;

[0061] Optionally, as mentioned above, messages of different message formats have different settings for different domain names, so according to the correspondence between the domain names of messages of different message formats, the domain information of each domain of the first message is filled into the domain corresponding to the blank message. It should be noted that the blank message referred to in the present invention refers to a message in which no information is filled in the domain information, but the domain name has been set according to the requirements of the corresponding message format, and the present invention does not limit this.

[0062] For example, combined with Figure 1 In the embodiment shown, in certain optional embodiments, the first message is a SWIFT message in fin format, and the blank message is a CIPS message in xml format;

[0063] Optionally, a SWIFT message refers to a standard format message for inter-bank communications provided by the Society for Worldwide Interbank Financial Telecommunications SWIFT (Society for Worldwide Interbank Financial Telecommunications), and a corresponding message is generally constructed in the fin format.

[0064] Optionally, CIPS message refers to the inter-bank transmission message provided by the RMB cross-border payment system CIPS (Cross-border Interbank Payment System), and the corresponding message is generally constructed in XML format.

[0065] Optionally, the SWIFT message mentioned in the present invention may include an MT103 message and an MT202 message, wherein the MT103 message and the MT202 message are both known messages in the art, and please refer to the relevant descriptions in the art for details. It should be noted that: the MT103 message and the MT202 message can be divided into different domains, for example, divided into a Tag20 domain, a 32A domain, a 33B domain, a 36 domain, a 50K domain, a 50F domain, a 52A domain, a 52D domain, a receiving line domain (Sender domain), a 56 domain, a 57 domain, a 59 domain, a 70 domain, a 71A domain, a 71F domain and a 72 domain, etc., and the present invention does not limit this.

[0066] Optionally, the CIPS message mentioned in the present invention may include a CIPS111 message and a CIPS112 message, wherein the CIPS111 message and the CIPS112 message are both well-known messages in the art, and please refer to the relevant descriptions in the art for details. It should be noted that: the CIPS111 message and the CIPS112 message are both composed of different node domains, and different node domains can be understood as different xml node paths, and different xml node paths correspond to storing different domain information. For example, the CIPS111 message and the CIPS112 message mentioned in the present invention may include a direct participating bank node domain, an indirect participating bank node domain, and an account opening bank number node domain, which are respectively used to store different domain information.

[0067] Optionally, the present invention may convert the MT103 message into a CIPS111 message, and the correspondence between different fields of the MT103 message and the CIPS111 message may be as shown in Table 1.

[0068] Table 1

[0069]

[0070] The present invention can also convert the MT202 message into a CIPS112 message. The corresponding relationship between different fields of the MT202 message and the CIPS112 message can be shown in Table 2 and Table 3.

[0071] Table 2

[0072]

[0073] Table 3

[0074]

[0075] Optionally, in the present invention, on the premise that the first message is a SWIFT message in fin format and the blank message is a CIPS message in xml format, S200 includes: step 1.1, step 1.2, step 1.3, step 1.4 and step 1.5;

[0076] Step 1.1, determine whether the domain information of the 56 field of the first message and the 57 field of the first message are both not empty;

[0077] If the domain information of the 56th domain and the 57th domain is not empty, execute step 1.2;

[0078] Optionally, the present invention does not limit the method for judging whether the domain information of domain 56 and domain 57 is not empty. For example, the execution subject of the present invention can read the domain information of domain 56 and domain 57 respectively. If the corresponding field is successfully read, it means that the domain information of the corresponding domain is not empty, otherwise it means that the domain information of the corresponding domain is empty, and the present invention does not limit this.

[0079] Optionally, if the domain information of the 56th domain and the 57th domain are not empty, it means that the domain information of the 56th domain and the 57th domain needs to be parsed to facilitate subsequent filling into the blank message.

[0080] Step 1.2: Determine whether the domain information of the 56 domain includes the bank number of the CIPS direct participating bank, wherein the domain information of the 57 domain that is not empty at least includes the bank number of the payee's account opening bank; if the domain information of the 56 domain includes the bank number of the CIPS direct participating bank, execute step 1.3;

[0081] Optionally, for field 57, as long as the field information of field 57 is not empty, the corresponding bank number of the payee's account opening will be filled in. This is the relevant regulation in this field. It should be noted that the bank number of the payee's account opening refers to the bank that handles the account opening procedures, and one bank number uniquely corresponds to one bank.

[0082] Optionally, CIPS direct participating banks and CIPS indirect participating banks are well-known concepts in this field. CIPS direct participating banks are also called CIPS direct participating banks, which can be understood as: bank accounts that open accounts in CIPS and directly transfer and receive money through CIPS. CIPS indirect participating banks are also called CIPS indirect participating banks, which need to indirectly obtain the services provided by CIPS through CIPS direct participating banks. It should be noted that different banks have corresponding bank numbers, and there are corresponding bank numbers for CIPS direct participating banks and CIPS indirect participating banks.

[0083] Optionally, different identifiers can be set in the SWIFT message to distinguish the line number of the CIPS direct participating bank and the line number of the CIPS inter-participating bank. The present invention can identify the identifier to determine whether the domain information of the 56 domain includes the line number of the CIPS direct participating bank, and the present invention is not limited to this.

[0084] Step 1.3, fill in the row number of the CIPS direct reference row of the 56 field in the direct reference row node field of the blank message, and determine whether the field information of the 57 field includes the row number of the CIPS indirect reference row; if the field information of the 57 field includes the row number of the CIPS indirect reference row, execute step 1.4; if the field information of the 57 field does not include the row number of the CIPS indirect reference row, execute step 1.5;

[0085] Optionally, in the CIPS message, the direct reference row node field is used to store the row number of the CIPS direct reference row. Therefore, when the field information of the 56 field includes the row number of the CIPS direct reference row, the row number of the corresponding CIPS direct reference row can be obtained from the field information of the 56 field and filled into the direct reference row node field, that is, saved in the direct reference row node field, and the present invention does not limit this.

[0086] Optionally, the present invention also needs to process the domain information of domain 57, that is, it can determine whether the domain information of domain 57 includes the line number of the CIPS indirect reference line. It should be noted that, because it has been determined that the line number of the CIPS direct reference line is recorded in the domain information of domain 56, based on the provisions of the CIPS message, the line number of the CIPS direct reference line will no longer be recorded in the domain information of domain 57. Therefore, it can be directly determined whether the domain information of domain 57 includes the line number of the CIPS indirect reference line, and the present invention does not limit this.

[0087] Optionally, as mentioned above, the present invention can determine whether the domain information of the 57 domain includes the row number of the CIPS reference row by identifying the identifier, and the present invention is not limited to this.

[0088] Step 1.4, fill in the CIPS inter-reference bank number of the 57 field in the inter-reference bank node field of the blank message, and fill in the beneficiary's account opening bank number in the account opening bank number node field of the blank message;

[0089] Optionally, in the CIPS message, the inter-reference row node field is used to store the row number of the CIPS inter-reference row. Therefore, when the field information of the 57 field includes the row number of the CIPS inter-reference row, the row number of the corresponding CIPS inter-reference row can be obtained from the field information of the 57 field and filled into the inter-reference row node field, that is, saved in the inter-reference row node field, and the present invention does not limit this.

[0090] Optionally, as mentioned above, as long as the domain information of the 57 domain is not empty, the corresponding bank number of the payee will be recorded. Therefore, the present invention can obtain the corresponding bank number of the payee from the 57 domain and fill it into the bank number node domain, that is, save it to the bank number node domain, and the present invention does not limit this.

[0091] Step 1.5: Fill in the bank number of the payee in the bank number node field, and keep the reference bank node field empty.

[0092] Optionally, if the field information of field 57 does not include the bank number of the CIPS intermediary bank, it means that the bank number of the CIPS intermediary bank is not recorded in the SWIFT message, and the bank number of the CIPS intermediary bank should not be saved in the converted CIPS. However, based on the above scheme, the field information of field 57 is not empty, so the bank number node field of the account opening bank needs to be filled with the corresponding bank number of the payee, and the present invention does not limit this.

[0093] In combination with the previous embodiment, in some optional embodiments, after step 1.1, the method further includes: step 2.1, step 2.2 and step 2.3;

[0094] Step 2.1, if the domain information of the 56th domain and the 57th domain are not empty, determine whether the domain information of the 56th domain includes the row number of the CIPS reference row;

[0095] If the domain information of the 56 domains includes the row number of the CIPS inter-reference row, execute step 2.2; if the domain information of the 56 domains does not include the row number of the CIPS inter-reference row, execute step 2.3;

[0096] Optionally, for domain 56, under the premise that its domain information is not empty, there are three cases: case 1, domain information of domain 56 includes the row number of the CIPS direct reference line; case 2, domain information of domain 56 includes the row number of the CIPS indirect reference line; case 3, domain information of domain 56 includes both the row number of the CIPS direct reference line and the row number of the CIPS indirect reference line. Case 1 has been described in the previous embodiment, and this embodiment describes case 2.

[0097] To this end, the present invention can determine whether the domain information of the 56 domain includes the row number of the CIPS reference row, and the present invention does not impose any limitation on this.

[0098] Step 2.2, query the bank number of the first CIPS direct participating bank corresponding to the bank number of the CIPS intermediary participating bank, and fill in the bank number of the first CIPS direct participating bank in the direct participating bank node field, fill in the bank number of the CIPS intermediary participating bank in the 56 field in the intermediary participating bank node field, and fill in the beneficiary's account opening bank number in the account opening bank number node field;

[0099] Optionally, based on the relevant specifications of the SWIFT message, if the domain information of the 56 field includes the bank number of the CIPS inter-participating bank, the bank number of the CIPS direct participating bank corresponding to the bank number of the CIPS inter-participating bank will be saved accordingly. In order to distinguish it from the bank number of the CIPS direct participating bank in the aforementioned embodiment, the present invention is characterized by "the bank number of the first CIPS direct participating bank". It should be noted that the CIPS inter-participating bank cannot conduct transactions directly with the final payee, and transactions must be conducted through a direct participating bank (the first CIPS direct participating bank), so the bank number of the corresponding first CIPS direct participating bank can be queried.

[0100] Step 2.3, obtain the first CIPS intermediary agency information and the second CIPS intermediary agency information according to the domain information query of the 56 domain, and fill in the first CIPS intermediary agency information and the second CIPS intermediary agency information in the direct participating node domain and the indirect participating node domain respectively.

[0101] Optionally, if the domain information of the 56th domain does not include the bank number of the CIPS intermediary bank, it means that the bank corresponding to the domain information recorded in the 56th domain is neither a CIPS direct participating bank (described in the previous implementation mode, this implementation mode excludes this situation) nor a CIPS intermediary bank. Therefore, two agent banks are required to act as CIPS intermediaries to conduct transactions, so it is necessary to query and obtain the information of the first CIPS intermediary and the second CIPS intermediary.

[0102] In conjunction with the second embodiment, in some optional embodiments, after step 1.1, the method further includes: step 3.1, step 3.2, step 3.3, step 3.4, step 3.5, step 3.6, step 3.7, step 3.8 and step 3.9;

[0103] Step 3.1, if the domain information of the 56th domain is empty and the domain information of the 57th domain is not empty, determine whether the domain information of the 57th domain includes the row number of the CIPS direct reference row;

[0104] If the domain information of the 57 domain includes the row number of the CIPS direct reference line, execute step 3.2; if the domain information of the 57 domain does not include the row number of the CIPS direct reference line, execute step 3.3;

[0105] Step 3.2, fill in the row number of the CIPS direct reference row of the 57 field in the direct reference row node field, and keep the indirect reference row node field empty;

[0106] Optionally, under the premise of step 3.2, the present invention may also save the bank number of the payee's account opening bank recorded in the 57 field to the account opening bank number node field, and the present invention does not impose any limitation on this.

[0107] Step 3.3, determine whether the domain information of the 57 domain includes the row number of the CIPS reference row;

[0108] If the domain information of the 57 domain includes the row number of the CIPS inter-reference row, execute step 3.4; if the domain information of the 57 domain does not include the row number of the CIPS inter-reference row, execute step 3.5;

[0109] Step 3.4, query the bank number of the second CIPS direct participating bank corresponding to the bank number of the CIPS intermediary participating bank, and fill in the bank number of the second CIPS direct participating bank in the direct participating bank node field, fill in the bank number of the CIPS intermediary participating bank in the 57 field in the intermediary participating bank node field, and fill in the beneficiary's account opening bank number in the account opening bank number node field;

[0110] Optionally, step 3.4 may be understood with reference to step 2.2, and the present invention will not elaborate on this.

[0111] Step 3.5, querying the domain information of the 57 domain to obtain the corresponding agent bank information;

[0112] Optionally, if the domain information of the 57 domain does not include the bank number of the CIPS intermediary bank, it means that the bank corresponding to the domain information recorded in the 57 domain is neither a CIPS direct participating bank (this embodiment excludes this situation) nor a CIPS intermediary bank. Therefore, it is necessary to query the corresponding agent bank information.

[0113] Step 3.6: Determine whether the agent bank information includes the bank number of the CIPS direct participating bank or the bank number of the CIPS indirect participating bank;

[0114] If the agent bank information includes the bank number of the CIPS direct participating bank, execute step 3.7; if the agent bank information includes the bank number of the CIPS indirect participating bank, execute step 3.8; if the agent bank information does not include the bank number of the CIPS direct participating bank or the bank number of the CIPS indirect participating bank, execute step 3.9;

[0115] Step 3.7, fill in the bank number of the CIPS direct participating bank in the direct participating bank node field of the blank message, fill in the bank number of the payee's account opening bank in the account opening bank number node field, and keep the indirect participating bank node field empty;

[0116] Optionally, the bank number of the CIPS direct participating bank described in step 3.7 refers to the bank number of the CIPS direct participating bank included in the agent bank information, and the present invention is not limited to this.

[0117] Step 3.8, query the bank number of the third CIPS direct participating bank corresponding to the bank number of the CIPS intermediary participating bank, and fill in the bank number of the third CIPS direct participating bank in the direct participating bank node field, fill in the bank number of the CIPS intermediary participating bank in the intermediary participating bank node field, and fill in the bank number of the payee's account opening bank in the account opening bank number node field;

[0118] Optionally, corresponding to step 3.8, reference may be made to step 3.4 or step 2.2 for understanding, and the present invention will not elaborate on this.

[0119] Step 3.9: Obtain the third CIPS intermediary agency information and the fourth CIPS intermediary agency information according to the agent bank information query, and fill in the third CIPS intermediary agency information and the fourth CIPS intermediary agency information in the direct participating bank node field and the indirect participating bank node field respectively.

[0120] Optionally, step 3.9 may be understood with reference to step 2.3, and the present invention will not elaborate on this.

[0121] Optionally, in certain optional implementations, the S200 further includes: for the domain information of other domains except the domain 56 and the domain 57, executing: according to a pre-established domain name comparison relationship, filling the domain information of each of the other domains in the first message into the node domain corresponding to the blank message.

[0122] As mentioned above, the SWIFT message includes many different domains. The above-mentioned embodiment needs to be processed for domain 56 and domain 57. For other domains except the domain 56 and the domain 57, it is only necessary to save the domain information of other domains in the first message to the node domain corresponding to the blank message according to the comparison relationship between Table 1, Table 2 and Table 3. The present invention does not impose any restrictions on this.

[0123] Optionally, the above optional embodiment describes a solution for converting a SWIFT message into a CIPS message. The present invention can also convert a CIPS message into a SWIFT message. For example, in combination with Figure 1 In the embodiment shown, in certain optional embodiments, the first message is the CIPS message in the xml format, and the blank message is the SWIFT message in the fin format;

[0124] The S200 includes: step 4.1, step 4.2, step 4.3, step 4.4 and step 4.5;

[0125] Step 4.1, determine whether the reference row node field of the first message stores the row number of the CIPS reference row;

[0126] If the indirect reference row node field does not store the row number of the CIPS indirect reference row, execute step 4.2;

[0127] Step 4.2, determining whether the intermediary agency node domain of the first message stores CIPS intermediary agency information;

[0128] If the intermediary agency node domain stores one CIPS intermediary agency information, execute step 4.3; if the intermediary agency node domain stores two CIPS intermediary agency information, execute step 4.4; if the intermediary agency node domain does not store the CIPS intermediary agency information, execute step 4.5;

[0129] Step 4.3, fill in the CIPS intermediary agency information in field 56 of the blank message;

[0130] Step 4.4, fill in the two CIPS intermediary agency information into field 56 of the blank message and field 57 of the blank message respectively;

[0131] Optionally, for both step 4.3 and step 4.4, the bank number of the payee can also be obtained from the bank node field and filled into the receiving bank field of the blank message, and the present invention does not impose any limitation on this.

[0132] Step 4.5: Obtain the payee's bank number from the bank node field of the first message, and fill the obtained payee's bank number into the receiving bank field of the blank message, and keep field 56 and field 57 of the blank message empty.

[0133] In combination with the previous embodiment, in some optional embodiments, after step 4.1, the method further includes: step 5.1, step 5.2, step 5.3 and step 5.4;

[0134] Step 5.1: If the intermediary line node field of the first message stores the line number of the CIPS intermediary line, determine whether the intermediary agency node field stores the CIPS intermediary agency information;

[0135] If the intermediary agency node domain stores one CIPS intermediary agency information, execute step 5.2; if the intermediary agency node domain stores two CIPS intermediary agency information, execute step 5.3; if the intermediary agency node domain does not store the CIPS intermediary agency information, execute step 5.4;

[0136] Step 5.2, fill in the CIPS intermediary agency information in field 56 of the blank message;

[0137] Step 5.3, fill in the two CIPS intermediary agency information into field 56 of the blank message and field 57 of the blank message respectively;

[0138] Step 5.4, obtain the row number of the CIPS inter-reference row from the inter-reference row node field of the first message, fill the row number of the CIPS inter-reference row into the received message row field, and keep the 56 field of the blank message and the 57 field of the blank message blank.

[0139] S300: Generate a second message in the second message format according to the blank message filled with the field information of the first message.

[0140] Optionally, after the domain information of the first message is filled into the blank message, the blank message may be encapsulated according to relevant specifications of the second message format to generate the second message, and the present invention does not impose any limitation on this.

[0141] like Figure 2 As shown, the present invention provides a data conversion device, including: a parsing unit 100, a filling unit 200 and a message generating unit 300;

[0142] The parsing unit 100 is used to parse the first message in the first message format, so as to obtain the domain name and corresponding domain information of each domain of the first message;

[0143] The filling unit 200 is used to fill in the domain information of each of the first message into the field corresponding to the blank message of the second message format according to the domain name for any of the domain information;

[0144] The message generating unit 300 is configured to generate a second message in the second message format according to the blank message filled with the field information of the first message.

[0145] Combination Figure 2 In the embodiment shown, in certain optional embodiments, the first message is a SWIFT message in fin format, and the blank message is a CIPS message in xml format;

[0146] The filling unit 200 includes: a first judgment unit, a second judgment unit, a first processing unit, a second processing unit and a third processing unit;

[0147] a first judgment unit, configured to judge whether the domain information of the 56 field of the first message and the 57 field of the first message are both not empty, and if the domain information of the 56 field and the 57 field are both not empty, triggering the second judgment unit;

[0148] A second judgment unit is used to judge whether the domain information of the 56 domain includes the bank number of the CIPS direct participating bank, wherein the domain information of the 57 domain that is not empty at least includes the bank number of the payee's account opening bank; if the domain information of the 56 domain includes the bank number of the CIPS direct participating bank, the first processing unit is triggered;

[0149] The first processing unit is used to fill the row number of the CIPS direct reference row of the 56 field in the direct reference row node field of the blank message, and determine whether the field information of the 57 field includes the row number of the CIPS indirect reference row; if the field information of the 57 field includes the row number of the CIPS indirect reference row, the second processing unit is triggered; if the field information of the 57 field does not include the row number of the CIPS indirect reference row, the third processing unit is triggered;

[0150] The second processing unit is used to fill in the bank number of the CIPS inter-reference bank in the 57 field in the inter-reference bank node field of the blank message, and fill in the bank number of the beneficiary's account opening bank in the account opening bank number node field of the blank message;

[0151] The third processing unit is used to fill in the bank number of the payee's account opening bank in the account opening bank number node field, and keep the indirect reference bank node field empty.

[0152] In combination with the previous embodiment, in some optional embodiments, the device further includes: a third judgment unit, a fourth processing unit and a fifth processing unit;

[0153] A third judgment unit is used for, after judging whether the domain information of the 56 field of the first message and the 57 field of the first message are both not empty, if the domain information of the 56 field and the 57 field are both not empty, judging whether the domain information of the 56 field includes the row number of the CIPS inter-reference row; if the domain information of the 56 field includes the row number of the CIPS inter-reference row, triggering the fourth processing unit; if the domain information of the 56 field does not include the row number of the CIPS inter-reference row, triggering the fifth processing unit;

[0154] The fourth processing unit is used to query the bank number of the first CIPS direct reference bank corresponding to the bank number of the CIPS intermediary reference bank, and fill in the bank number of the first CIPS direct reference bank in the direct reference bank node field, and fill in the bank number of the CIPS intermediary reference bank in the 56 field in the intermediary reference bank node field, and fill in the beneficiary's account opening bank number in the account opening bank number node field;

[0155] The fifth processing unit is used to obtain the first CIPS intermediary agency information and the second CIPS intermediary agency information according to the domain information query of the 56 domains, and fill in the first CIPS intermediary agency information and the second CIPS intermediary agency information in the direct reference node domain and the indirect reference node domain respectively.

[0156] In combination with the second device embodiment, in some optional embodiments, the device further includes: a fourth judgment unit, a sixth processing unit, a fifth judgment unit, a seventh processing unit, an eighth processing unit, a sixth judgment unit, a ninth processing unit, a tenth processing unit, and an eleventh processing unit;

[0157] a fourth judgment unit, configured to, after judging whether the domain information of the 56 field of the first message and the 57 field of the first message are both not empty, if the domain information of the 56 field is empty and the domain information of the 57 field is not empty, judge whether the domain information of the 57 field includes the line number of the CIPS direct reference line; if the domain information of the 57 field includes the line number of the CIPS direct reference line, trigger the sixth processing unit; if the domain information of the 57 field does not include the line number of the CIPS direct reference line, trigger the fifth judgment unit;

[0158] A sixth processing unit, configured to fill the row number of the CIPS direct reference row of the 57 field in the direct reference row node field, and keep the indirect reference row node field empty;

[0159] a fifth judgment unit, configured to judge whether the domain information of the 57 domain includes the row number of the CIPS inter-reference row; if the domain information of the 57 domain includes the row number of the CIPS inter-reference row, triggering the seventh processing unit; if the domain information of the 57 domain does not include the row number of the CIPS inter-reference row, triggering the eighth processing unit;

[0160] The seventh processing unit is used to query the bank number of the second CIPS direct reference bank corresponding to the bank number of the CIPS intermediary reference bank, and fill in the bank number of the second CIPS direct reference bank in the direct reference bank node field, and fill in the bank number of the CIPS intermediary reference bank in the 57 field in the intermediary reference bank node field, and fill in the bank number of the payee's account opening bank in the account opening bank number node field;

[0161] An eighth processing unit, configured to obtain corresponding agent bank information according to the domain information query of the 57 domains;

[0162] The sixth judgment unit is used to judge whether the agent bank information includes the bank number of the CIPS direct participating bank or the bank number of the CIPS indirect participating bank; if the agent bank information includes the bank number of the CIPS direct participating bank, the ninth processing unit is triggered; if the agent bank information includes the bank number of the CIPS indirect participating bank, the tenth processing unit is triggered; if the agent bank information does not include the bank number of the CIPS direct participating bank or the bank number of the CIPS indirect participating bank, the eleventh processing unit is triggered;

[0163] The ninth processing unit is used to fill in the bank number of the CIPS direct participating bank in the direct participating bank node field of the blank message, fill in the bank number of the payee's account opening bank in the account opening bank number node field, and keep the indirect participating bank node field empty.

[0164] The tenth processing unit is used to query the bank number of the third CIPS direct participating bank corresponding to the bank number of the CIPS intermediary participating bank, and fill in the bank number of the third CIPS direct participating bank in the direct participating bank node field, fill in the bank number of the CIPS intermediary participating bank in the intermediary participating bank node field, and fill in the bank number of the payee's account opening bank in the account opening bank number node field;

[0165] An eleventh processing unit is used to obtain the third CIPS intermediary agency information and the fourth CIPS intermediary agency information according to the agent bank information query, and fill in the third CIPS intermediary agency information and the fourth CIPS intermediary agency information in the direct participating bank node field and the indirect participating bank node field respectively.

[0166] Optionally, in some optional implementations, the filling unit 200 further includes: other domain filling units;

[0167] The other domain filling unit is used to perform the following steps for the domain information of other domains except the 56 domain and the 57 domain: according to the pre-established domain name comparison relationship, fill the domain information of each other domain in the first message into the node domain corresponding to the blank message.

[0168] Combination Figure 2 In the embodiment shown, in certain optional embodiments, the first message is the CIPS message in the xml format, and the blank message is the SWIFT message in the fin format;

[0169] The filling unit 200 includes: a seventh judgment unit, an eighth judgment unit, a twelfth processing unit, a thirteenth processing unit and a fourteenth processing unit;

[0170] a seventh judgment unit, configured to judge whether the indirect reference row node field of the first message stores the row number of the CIPS indirect reference row; if the indirect reference row node field does not store the row number of the CIPS indirect reference row, triggering the eighth judgment unit;

[0171] an eighth judgment unit, configured to judge whether the intermediary agency node domain of the first message stores CIPS intermediary agency information; if the intermediary agency node domain stores one CIPS intermediary agency information, triggering the twelfth processing unit; if the intermediary agency node domain stores two CIPS intermediary agency information, triggering the thirteenth processing unit; if the intermediary agency node domain does not store the CIPS intermediary agency information, triggering the fourteenth processing unit;

[0172] A twelfth processing unit, configured to fill in the CIPS intermediary agency information in field 56 of the blank message;

[0173] A thirteenth processing unit, used to fill the two CIPS intermediary agency information into field 56 of the blank message and field 57 of the blank message respectively;

[0174] The fourteenth processing unit is used to obtain the payee's bank number from the bank node field of the first message, and fill the obtained payee's bank number into the receiving bank field of the blank message, and keep the 56 field and the 57 field of the blank message empty.

[0175] In combination with the previous embodiment, in some optional embodiments, the device further includes: a ninth judgment unit, a fifteenth processing unit, a sixteenth processing unit, and a seventeenth processing unit;

[0176] A ninth judgment unit, for judging whether the intermediary agency node domain stores the CIPS intermediary agency information after judging whether the intermediary agency node domain of the first message stores the line number of the CIPS intermediary agency, if the intermediary agency node domain of the first message stores the line number of the CIPS intermediary agency; triggering a fifteenth processing unit if the intermediary agency node domain stores one CIPS intermediary agency information; triggering a sixteenth processing unit if the intermediary agency node domain stores two CIPS intermediary agency information; triggering a seventeenth processing unit if the intermediary agency node domain does not store the CIPS intermediary agency information;

[0177] A fifteenth processing unit, configured to fill in the CIPS intermediary agency information in field 56 of the blank message;

[0178] A sixteenth processing unit, used to fill the two CIPS intermediary agency information into field 56 of the blank message and field 57 of the blank message respectively;

[0179] The seventeenth processing unit is used to obtain the row number of the CIPS inter-reference row from the inter-reference row node field of the first message, fill the row number of the CIPS inter-reference row into the received message row field, and keep the 56 field and the 57 field of the blank message blank.

[0180] The present invention provides a computer-readable storage medium having a program stored thereon, wherein the program, when executed by a processor, implements any of the above-mentioned data conversion methods.

[0181] like Figure 3As shown, the present invention provides an electronic device 70, which includes at least one processor 701, and at least one memory 702 and a bus 703 connected to the processor 701; wherein the processor 701 and the memory 702 communicate with each other through the bus 703; the processor 701 is used to call the program instructions in the memory 702 to execute any of the data conversion methods described above.

[0182] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0183] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0184] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0185] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A data conversion method, characterized in that: include: Parsing a first message in a first message format to obtain a domain name and corresponding domain information of each domain of the first message; For any of the domain information, each of the domain information of the first message is filled into the field corresponding to the blank message of the second message format according to the domain name; generating a second message in the second message format according to the blank message filled with the field information of each of the first messages; Wherein, if the first message is a SWIFT message in fin format, and the blank message is a CIPS message in xml format; then for any of the domain information, each domain information of the first message is filled into the domain corresponding to the blank message in the second message format according to the domain name, including: Determine whether the domain information of the 56 field of the first message and the 57 field of the first message are both not empty; If the domain information of the 56th field and the 57th field are not empty, then determine whether the domain information of the 56th field includes the bank number of the CIPS direct participating bank, wherein the domain information of the 57th field that is not empty at least includes the bank number of the payee's account opening bank; If the domain information of the 56th domain includes the row number of the CIPS direct reference line, then fill in the row number of the CIPS direct reference line of the 56th domain in the direct reference line node domain of the blank message, and determine whether the domain information of the 57th domain includes the row number of the CIPS indirect reference line; If the domain information of the 57 field includes the bank number of the CIPS intermediary bank, then the bank number of the CIPS intermediary bank in the 57 field is filled in the intermediary bank node field of the blank message, and the bank number of the beneficiary's account opening bank is filled in the account opening bank number node field of the blank message; If the domain information of the 57 domain does not include the bank number of the CIPS intermediary bank, then fill in the bank number of the payee's account opening bank in the account opening bank number node domain, and keep the intermediary bank node domain empty; Wherein, if the first message is a CIPS message in xml format, and the blank message is a SWIFT message in fin format; then for any of the domain information, each domain information of the first message is filled into the domain corresponding to the blank message in the second message format according to the domain name, including: Determine whether the inter-reference row node field of the first message stores the row number of the CIPS inter-reference row; If the indirect reference line node field does not store the line number of the CIPS indirect reference line, determining whether the intermediary agency node field of the first message stores CIPS intermediary agency information; If the intermediary agency node domain stores the CIPS intermediary agency information, then fill in the CIPS intermediary agency information in the 56 field of the blank message; If the intermediary agency node domain stores two pieces of CIPS intermediary agency information, the two pieces of CIPS intermediary agency information are filled into field 56 of the blank message and field 57 of the blank message respectively; If the intermediary institution node domain does not store the CIPS intermediary institution information, the bank number of the payee's account opening bank is obtained from the bank opening bank node domain of the first message, and the obtained bank number of the payee's account opening bank is filled into the receiving bank domain of the blank message, and the 56 field of the blank message and the 57 field of the blank message are kept empty.

2. The method according to claim 1, characterized in that After determining whether the field information of field 56 of the first message and field 57 of the first message are both not empty, the method further includes: If the domain information of the 56th domain and the 57th domain are not empty, then determine whether the domain information of the 56th domain includes the row number of the CIPS reference row; If the domain information of the 56 domain includes the bank number of the CIPS intermediary bank, then query the bank number of the first CIPS direct participating bank corresponding to the bank number of the CIPS intermediary bank, and fill in the bank number of the first CIPS direct participating bank in the direct participating bank node domain, and fill in the bank number of the CIPS intermediary bank in the 56 domain in the intermediary bank node domain, and fill in the bank number of the beneficiary's account opening bank in the account opening bank number node domain; If the domain information of the 56 domain does not include the row number of the CIPS indirect reference line, the first CIPS intermediary agency information and the second CIPS intermediary agency information are obtained according to the domain information of the 56 domain, and the first CIPS intermediary agency information and the second CIPS intermediary agency information are filled in the direct reference line node domain and the indirect reference line node domain respectively.

3. The method according to claim 1, characterized in that After determining whether the field information of field 56 of the first message and field 57 of the first message are both not empty, the method further includes: If the domain information of the 56th domain is empty and the domain information of the 57th domain is not empty, then determine whether the domain information of the 57th domain includes the row number of the CIPS direct reference row; If the domain information of the 57 domain includes the row number of the CIPS direct reference row, then fill in the row number of the CIPS direct reference row of the 57 domain in the direct reference row node domain, and keep the indirect reference row node domain empty; If the domain information of the 57 domain does not include the row number of the CIPS direct reference line, determine whether the domain information of the 57 domain includes the row number of the CIPS indirect reference line; If the domain information of the 57 domain includes the bank number of the CIPS intermediary bank, then query the bank number of the second CIPS direct participating bank corresponding to the bank number of the CIPS intermediary bank, and fill in the bank number of the second CIPS direct participating bank in the direct participating bank node domain, and fill in the bank number of the CIPS intermediary bank in the 57 domain in the intermediary bank node domain, and fill in the bank number of the beneficiary's account opening bank in the account opening bank number node domain; If the domain information of the 57th domain does not include the bank number of the CIPS inter-reference bank, then the corresponding agent bank information is obtained by querying the domain information of the 57th domain; Determine whether the agent bank information includes the bank number of the CIPS direct participating bank or the bank number of the CIPS indirect participating bank; If the agent bank information includes the bank number of the CIPS direct participating bank, then fill in the bank number of the CIPS direct participating bank in the direct participating bank node field of the blank message, fill in the bank number of the payee's account opening bank in the account opening bank number node field, and keep the indirect participating bank node field blank; If the agent bank information includes the bank number of the CIPS intermediary bank, then query the bank number of the third CIPS direct participating bank corresponding to the bank number of the CIPS intermediary bank, and fill in the bank number of the third CIPS direct participating bank in the direct participating bank node field, and fill in the bank number of the CIPS intermediary bank in the intermediary bank node field, and fill in the bank number of the beneficiary's account opening bank in the account opening bank number node field; If the agent bank information does not include the bank number of the CIPS direct participating bank or the bank number of the CIPS indirect participating bank, the third CIPS intermediary institution information and the fourth CIPS intermediary institution information are obtained by querying the agent bank information, and the third CIPS intermediary institution information and the fourth CIPS intermediary institution information are filled in the direct participating bank node field and the indirect participating bank node field respectively.

4. The method according to claim 1, 2 or 3, characterized in that: For any of the domain information, each domain information of the first message is filled into a field corresponding to a blank message of the second message format according to the domain name, and further includes: For the domain information of other domains except the 56 domain and the 57 domain, the following steps are performed: according to the pre-established domain name comparison relationship, the domain information of each other domain in the first message is filled into the node domain corresponding to the blank message.

5. The method according to claim 1, characterized in that After determining whether the indirect reference row node field of the first message stores the row number of the CIPS indirect reference row, the method further includes: If the intermediary line node field of the first message stores the line number of the CIPS intermediary line, then determining whether the intermediary agency node field stores the CIPS intermediary agency information; If the intermediary agency node domain stores the CIPS intermediary agency information, then fill in the CIPS intermediary agency information in the 56 field of the blank message; If the intermediary agency node domain stores two pieces of CIPS intermediary agency information, the two pieces of CIPS intermediary agency information are filled into field 56 of the blank message and field 57 of the blank message respectively; If the intermediary agency node domain does not store the CIPS intermediary agency information, the row number of the CIPS intermediary line is obtained from the intermediary line node domain of the first message, and the row number of the CIPS intermediary line is filled into the receiving message line domain, and the 56 field of the blank message and the 57 field of the blank message are kept blank.

6. A data conversion device, characterized in that: include: Parsing unit, filling unit and message generating unit; The parsing unit is used to parse the first message in the first message format, so as to obtain the domain name and corresponding domain information of each domain of the first message; The filling unit is used to fill in the domain information of each of the first message into the field corresponding to the blank message of the second message format according to the domain name for any of the domain information; The message generating unit is configured to generate a second message in the second message format according to the blank message filled with the domain information of each of the first messages; Wherein, if the first message is a SWIFT message in fin format, and the blank message is a CIPS message in xml format; then for any of the domain information, each domain information of the first message is filled into the domain corresponding to the blank message in the second message format according to the domain name, including: Determine whether the domain information of the 56 field of the first message and the 57 field of the first message are both not empty; If the domain information of the 56th field and the 57th field are not empty, then determine whether the domain information of the 56th field includes the bank number of the CIPS direct participating bank, wherein the domain information of the 57th field that is not empty at least includes the bank number of the payee's account opening bank; If the domain information of the 56th domain includes the row number of the CIPS direct reference line, then fill in the row number of the CIPS direct reference line of the 56th domain in the direct reference line node domain of the blank message, and determine whether the domain information of the 57th domain includes the row number of the CIPS indirect reference line; If the domain information of the 57 field includes the bank number of the CIPS intermediary bank, then the bank number of the CIPS intermediary bank in the 57 field is filled in the intermediary bank node field of the blank message, and the bank number of the beneficiary's account opening bank is filled in the account opening bank number node field of the blank message; If the domain information of the 57 domain does not include the bank number of the CIPS intermediary bank, then fill in the bank number of the payee's account opening bank in the account opening bank number node domain, and keep the intermediary bank node domain empty; Wherein, if the first message is a CIPS message in xml format, and the blank message is a SWIFT message in fin format; then for any of the domain information, each domain information of the first message is filled into the domain corresponding to the blank message in the second message format according to the domain name, including: Determine whether the inter-reference row node field of the first message stores the row number of the CIPS inter-reference row; If the indirect reference line node field does not store the line number of the CIPS indirect reference line, determining whether the intermediary agency node field of the first message stores CIPS intermediary agency information; If the intermediary agency node domain stores the CIPS intermediary agency information, then fill in the CIPS intermediary agency information in the 56 field of the blank message; If the intermediary agency node domain stores two pieces of CIPS intermediary agency information, the two pieces of CIPS intermediary agency information are filled into field 56 of the blank message and field 57 of the blank message respectively; If the intermediary institution node domain does not store the CIPS intermediary institution information, the bank number of the payee's account opening bank is obtained from the bank opening bank node domain of the first message, and the obtained bank number of the payee's account opening bank is filled into the receiving bank domain of the blank message, and the 56 field of the blank message and the 57 field of the blank message are kept empty.

7. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the data conversion method according to any one of claims 1 to 5 is implemented.

8. An electronic device, characterized in that: The electronic device includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute the data conversion method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data processing method and system between domestic custodian bank and overseas custodian agent bank

    CN101833738A

  • Communication protocol conversion technology

    CN102546442A