A method and device for processing a face letter

By obtaining relevant information from business data, querying the face-to-face letter rules and feature tables, and generating and saving face-to-face letter result data, the problem of increasing the number of face-to-face letter templates and high maintenance costs in the existing technology is solved, and more efficient face-to-face letter processing is achieved.

CN115081420BActive Publication Date: 2025-05-23INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210722309.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2025-05-23
Estimated Expiration
2042-06-24

AI Technical Summary

Technical Problem

In the prior art, the face-to-face processing process requires different face-to-face templates to be configured for different overseas institutions, resulting in a significant increase in the number of templates and increasing maintenance costs.

Method used

By obtaining the business type, transaction name and region number from the business data, querying the face-to-face rule description table and face-to-face element table, generating face-to-face result data based on the face-to-face main style template and business data, and saving it in the face-to-face result table.

Benefits of technology

It avoids configuring different face-to-face templates for different overseas institutions, reduces the number and maintenance costs of face-to-face templates, and improves processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115081420B_ABST
    Figure CN115081420B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for processing face letters, which can be used in the financial field or other technical fields. The method includes: obtaining the business number, business type, transaction name and area code from business data, and obtaining the face letter language according to the area code; querying the face letter rule description table according to the business type, transaction name and face letter language to obtain at least one valid face letter rule; querying the face letter rule element table according to the face letter number and the face letter language to obtain at least one face letter element rule corresponding to each valid face letter rule; obtaining face letter result data according to the face letter main style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and business data; saving the face letter result data into the corresponding face letter result table and making the face letter result table correspond to the business number. The device is used to execute the above method. The face letter processing method and device provided by the embodiment of the present invention reduce the maintenance cost of face letter templates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for processing face letters. Background Art

[0002] In the process of international settlement and trade financing, the cover letter carries the function of information exchange and transmission between the bank and its customers and counterparties. It is a kind of voucher-like text letter. For example, in the letter of credit business, the cover letters involved include the original letter of credit, the copy of the letter of credit, the letter of credit issuance notice, the fee notice, etc.

[0003] In the prior art, the Word template field code method is used to process the face letter, and the specific process is as follows: (1) Create a Word face letter template, set the basic style of the face letter, and locate the data to be replaced in the face letter template by field code; (2) Save the transaction data in an XML format file during the transaction processing process; (3) Convert the Word format face letter template to an XML format face letter template, and load the XML format business data file at the same time to match and generate a face letter; (3) Convert the XML format face letter result to a Word format face letter. With the continuous innovation and development of business, the continuous expansion of overseas institutions and the increase in business volume, in order to realize the above-mentioned face letter processing process, it is necessary to configure different face letter templates for different overseas institutions, which greatly increases the number of face letter templates and increases the maintenance cost of face letter templates. Summary of the invention

[0004] In view of the problems in the prior art, an embodiment of the present invention provides a method and device for processing a face letter, which can at least partially solve the problems in the prior art.

[0005] In a first aspect, the present invention provides a method for processing a face letter, comprising:

[0006] Acquire the business number, business type, transaction name and area code from the business data, and acquire the language of the face letter according to the area code;

[0007] According to the business type, the transaction name, and the language of the face letter, a face letter rule description table is searched to obtain at least one valid face letter rule; wherein the face letter rule description table is preset;

[0008] According to the face letter number and the face letter language included in each valid face letter rule, the face letter rule element table is searched to obtain at least one face letter element rule corresponding to each valid face letter rule; wherein the face letter rule element table is preset;

[0009] Obtaining the face letter result data corresponding to each valid face letter rule according to the face letter main style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule, and the business data; wherein the face letter main style template is preset;

[0010] The face-to-face letter result data corresponding to each valid face-to-face letter rule is saved in the corresponding face-to-face letter result table and the face-to-face letter result table is corresponded to the business number.

[0011] In a second aspect, the present invention provides a face envelope processing device, comprising:

[0012] An acquisition module, used to acquire a business number, a business type, a transaction name and an area code from the business data, and acquire a language of the face letter according to the area code;

[0013] A first query module is used to query the face letter rule description table according to the business type, the transaction name, and the face letter language to obtain at least one valid face letter rule; wherein the face letter rule description table is preset;

[0014] A second query module is used to query the face letter rule element table according to the face letter number and the face letter language included in each valid face letter rule, and obtain at least one face letter element rule corresponding to each valid face letter rule; wherein the face letter rule element table is preset;

[0015] An acquisition module, used for acquiring the face letter result data corresponding to each valid face letter rule according to the face letter master style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and the business data; wherein the face letter master style template is preset;

[0016] The storage module is used to save the face letter result data corresponding to each valid face letter rule into the corresponding face letter result table and correspond the face letter result table with the business number.

[0017] In a third aspect, the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for processing a face envelope described in any one of the above embodiments is implemented.

[0018] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the face letter processing method described in any of the above embodiments.

[0019] In a fifth aspect, the present invention provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the method for processing a face envelope as described in any of the above embodiments is implemented.

[0020] The face letter processing method and device provided by the embodiment of the present invention obtain the business type, transaction name and area code from the business data, and obtain the face letter language according to the area code; query the face letter rule description table according to the business type, the transaction name and the face letter language to obtain at least one valid face letter rule; query the face letter rule element table according to the face letter number and the face letter language included in each valid face letter rule to obtain at least one face letter element rule corresponding to each valid face letter rule; assemble the face letter result data corresponding to each valid face letter rule according to the face letter main style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and the business data, save the face letter result data corresponding to each valid face letter rule into the corresponding face letter result table, perform data splicing through a common face letter main style template and corresponding rules, obtain the face letter result data and save it into the face letter result table, and correspond the face letter result table with the business number, thereby avoiding the configuration of different face letter templates for different overseas institutions, eliminating the need for a large number of face letter templates, and reducing the maintenance cost of the face letter templates. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0022] Figure 1 It is a flowchart of the face letter processing method provided by the first embodiment of the present invention.

[0023] Figure 2 It is a schematic diagram of the layout style of the face envelope area of ​​the face envelope main style template provided in the second embodiment of the present invention.

[0024] Figure 3 It is a flowchart of a method for processing a face letter provided in a third embodiment of the present invention.

[0025] Figure 4 4 is a flowchart of a method for processing a face letter provided in a fourth embodiment of the present invention.

[0026] Figure 5 It is a flowchart of a method for processing a face letter provided in a fifth embodiment of the present invention.

[0027] Figure 6 It is a flowchart of a method for processing a face letter provided in a sixth embodiment of the present invention.

[0028] Figure 74 is a flowchart of a method for processing face envelopes provided in accordance with a seventh embodiment of the present invention.

[0029] Figure 8 It is a flowchart of a method for processing a face letter provided in an eighth embodiment of the present invention.

[0030] Fig. 9 It is a flowchart of a method for processing face letters provided in the ninth embodiment of the present invention.

[0031] Fig.10 It is a structural schematic diagram of a mask processing device provided in the tenth embodiment of the present invention.

[0032] Fig.11 It is a schematic structural diagram of a mask processing device provided in the eleventh embodiment of the present invention.

[0033] Fig.12 It is a schematic structural diagram of a mask processing device provided in the twelfth embodiment of the present invention.

[0034] Fig.13 It is a schematic structural diagram of a mask processing device provided in the thirteenth embodiment of the present invention.

[0035] Fig.14 It is a schematic structural diagram of a mask processing device provided in the fourteenth embodiment of the present invention.

[0036] Fig.15 It is a schematic structural diagram of a mask processing device provided in the fifteenth embodiment of the present invention.

[0037] Fig.16 It is a schematic structural diagram of a mask processing device provided in the sixteenth embodiment of the present invention.

[0038] Fig.17 It is a schematic diagram of the physical structure of an electronic device provided by the seventeenth embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.

[0040] The following takes the server as an example of the execution subject to illustrate the implementation process of the face letter processing method provided by the embodiment of the present invention.

[0041] Figure 1 FIG. 1 is a flow chart of a method for processing a face letter according to a first embodiment of the present invention. Figure 1As shown, the face letter processing method provided by the embodiment of the present invention includes:

[0042] S101, obtaining a business type, a transaction name, and an area code from business data, and obtaining an interface language according to the area code;

[0043] Specifically, the server can obtain business data from the international settlement business system, and the business data includes information such as business number, business type, transaction name, and area code. The server can obtain the face letter language corresponding to the business area according to the area code. The corresponding relationship between the area code and the face letter language is preset. The business data has a unique corresponding business number.

[0044] S102, querying a face letter rule description table according to the business type, the transaction name, and the face letter language to obtain at least one valid face letter rule; wherein the face letter rule description table is preset;

[0045] Specifically, the server queries the face letter rule description table according to the business type, the transaction name, and the face letter language to obtain at least one valid face letter rule. If multiple valid face letter rules are obtained, it means that the current business data needs to generate multiple face letters. Among them, the face letter rule description table is preset and used to set the basic information of the face letter, which may include face letter number, face letter name, business type, transaction name, face letter language, effective condition, receiving role, effective status, face letter extended attributes and other information, which is set according to actual needs and is not limited in the embodiment of the present invention.

[0046] Among them, the letter number corresponds to the letter one by one. The letter number can be used to read the record information of the letter rule element table and the letter element value path table. Letter name: the name displayed in the final letter, corresponding to the B area of ​​the main style template of the letter. Business type: the business type of the letter generation, which matches the docking international settlement business system, such as ILC for import letter of credit, ILG for issuing letter of guarantee, etc. Transaction name: the transaction generated by the letter, which matches the docking international settlement business system. There are different transaction names according to different business types. For example, under the ILC import letter of credit business, the transaction names include ILCOPN letter of credit, ILCAME letter of credit modification, ILCCAN letter of credit closing, etc. Letter generation condition: used to set the conditional logic for letter generation, used to support special business scenarios. For example, if a letter configuration $product.ilcman.bussubtyp$! ='01', when generating a letter, the business subtype bussubtyp will be judged. If bussubtyp is not equal to 01, then the letter is generated, otherwise the letter is not generated. Receiving role: used to set the receiving role of the face letter, such as APL for the applicant, ADV for the notifying bank, etc. The information is extracted and displayed according to the set receiving role, corresponding to the C area of ​​the face letter main style template. Face letter language: used to set the language version of the face letter, supporting multi-language configuration of the face letter to support the special needs of different overseas institutions, such as Frankfurt area, German, is de_DE; Paris area, French, is fr_FR; Milan area, Italian, is it_IT; Madrid area, Spanish, is sp_SP; Warsaw area, Polish, is po_PO; the default overseas unified face letter, English, is en_US, etc. Face letter rule status: 0 is effective, 1 is invalid. Face letter extended attributes: can be used to extend the face letter rule control attributes, for example, you can define an attribute MODFLG face letter adjustment control flag to control whether the face letter result data can be modified.

[0047] For example, Table 1 is a description table of cover letter rules, and each row is a cover letter rule. The cover letter rule with cover letter number 000001 in the table is an import letter of credit (business type = ILC), a letter of credit transaction (transaction name = ILCOPN), and an English version (cover letter language = en_US) of the letter of credit issuance notice (cover letter name = NOTICEOF LC ISSUANCE) generated for the applicant (receiving role = APL). XXX is the cover letter extension attribute, which can be set as needed. If the cover letter extension attribute is not set, it can be empty.

[0048] Table 1 Description of face letter rules

[0049]

[0050] S103, querying a face letter rule element table according to the face letter number and the face letter language included in each valid face letter rule, and obtaining at least one face letter element rule corresponding to each valid face letter rule; wherein the face letter rule element table is preset;

[0051] Specifically, for each valid face letter rule, the server obtains a face letter number from the valid face letter rule, and then searches for at least one face letter element rule corresponding to the face letter number and the face letter language in the face letter rule element table according to the obtained face letter number and the face letter language, as at least one face letter element rule corresponding to the valid face letter rule. The face letter rule element table is preset and used to set the element rules of the face letter, including multiple face letter element rules, each face letter element rule may include information such as the face letter number, element rule type, element rule sequence number, face letter language, element tag, element tag value logic, region code, effective state, effective condition, etc., which is set according to actual needs and is not limited in the embodiment of the present invention.

[0052] Among them, the same face letter number can correspond to multiple face letter element rules. The element rule type can include key information tag type (INFO), middle fixed face letter clause description (MID) and end fixed face letter clause description (END); the data obtained through the element tag value logic corresponding to INFO will be displayed in the E area of ​​the face letter main style template; the content corresponding to the element tag value logic corresponding to MID will be displayed in the G area of ​​the face letter main style template; the content corresponding to the element tag value logic corresponding to END will be displayed in the I area of ​​the face letter main style template. Element rule sequence number: used to control the display order of each element tag value. Element tag: used to set the name of the element tag display. Element tag value logic: set the value logic of the corresponding element tag, where {Ln} is a variable definition. Region code: used to support the definition of regional characteristic elements. For example, if you want the element tag A0001 to be displayed only in the face letter with region code 00001, and not in the face letters of other regions, you can configure an element tag = A0001, region code = 00001 face letter element rule. Face letter element rule status: used to set the status of the face letter element rule, such as setting D to invalid and empty to valid. Face letter element rule validity condition: used to set the conditional logic for the face letter element rule to take effect, used to support special business scenarios; for example, if a face letter element rule validity condition is configured as $product.ilcman.bussubtyp$! = '01', when generating a face letter, the business subtype bussubtyp will be judged. If it is not equal to 01, the element label will be displayed, otherwise the element label will not be displayed.

[0053] For example, Table 2 is a face letter rule element table, each row is a face letter element rule. In the table, the face letter element rule with face letter number 000001 has element rule type INFO, element rule sequence number 1, face letter language en_US, element tag LC NO., element tag value logic is variable, and effective status is empty, indicating that it has been effective.

[0054] S104, assembling the face letter result data corresponding to each valid face letter rule according to the face letter master style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule, and the business data; wherein the face letter master style template is preset;

[0055] Specifically, the face letter area layout style is set in the face letter main style template, and corresponding content will be filled in each preset area. For each valid face letter rule, the server will obtain corresponding data from the valid face letter rule and correspond to the preset area in the face letter main style template. The server will obtain corresponding data corresponding to the area in the face letter main style template according to each face letter element rule corresponding to the valid face letter rule and the business data, assemble the data corresponding to each preset area of ​​the face letter main style template, and obtain the face letter result data corresponding to each valid face letter rule. Among them, the face letter main style template is preset and is set according to actual needs, and the embodiment of the present invention does not limit it.

[0056] Table 2 Elements of face letter rules

[0057]

[0058] Among them, Figure 2 As shown, the main style template of the letter can be divided into area A, area B, area C, area D, area E, area F, area G, area H, area I and area J. Area A corresponds to the letter header information; area B corresponds to the letter name; area C corresponds to the recipient of the letter; area D corresponds to the date of letter generation; area E corresponds to key label information; area F corresponds to the title; area G corresponds to the middle fixed letter terms description; area H corresponds to public table elements such as charging details and accounting details; area I corresponds to the last fixed letter terms description; area J corresponds to the letter signature.

[0059] The corresponding cover letter header information in area A may include bank name, telegram number, address information, contact number, fax number, and SWIFT address. The bank name can be obtained by concatenating the first line of the acquiring bank name + the second line of the acquiring bank name + the third line of the acquiring bank name in the receiving bank information. The telegram number can be obtained by querying the Telex in the acquiring bank information. The address information can be obtained by concatenating the first line of the address in the receiving bank information, the second line of the address, and the country and city in the acquiring bank information. The contact number, fax number, and SWIFT address can all be obtained from the acquiring bank information. Among them, the acquiring bank information is pre-stored in the international settlement business system. Among them, the acquiring bank information can be obtained by querying the international settlement business system.

[0060] The name of the face letter corresponding to the B area can be obtained from the face letter name included in the face letter rules. The recipient of the face letter corresponding to the C area can be obtained through the receiving role included in the face letter rules. The generation date of the face letter corresponding to the D area can be the current date. Since the date format varies in different regions, the date format can be defined through the face letter element rules. The key tag information corresponding to the E area can be obtained through the element tag value corresponding to INFO in the face letter element rules. The title corresponding to the F area is usually fixed and can be obtained through the element tag value logic corresponding to the element rule type; the description of the fixed middle face letter terms in the G area can be obtained through the element tag value logic corresponding to MID in the face letter element rules. The data such as charging details and accounting details corresponding to the H area can be obtained by querying the international settlement business system; the description of the fixed face letter terms in the I area can be obtained through the element tag value logic corresponding to END in the face letter element rules. The signature of the face letter corresponding to the J area can be obtained through the element tag value logic corresponding to the element rule type.

[0061] S105, saving the face-to-face letter result data corresponding to each valid face-to-face letter rule into a corresponding face-to-face letter result table and making the face-to-face letter result table correspond to the business number.

[0062] Specifically, for each effective face letter rule corresponding to the face letter result data, the server can save the face letter result data corresponding to each effective face letter rule into a corresponding face letter result table, and the face letter result table corresponds to the business number. Each face letter result table is used to generate a face letter. The data in the face letter result table can be edited to meet special face letter needs.

[0063] The face letter processing method provided by the embodiment of the present invention obtains the business type, transaction name and area code from the business data, and obtains the face letter language according to the area code; queries the face letter rule description table according to the business type, the transaction name and the face letter language to obtain at least one valid face letter rule; queries the face letter rule element table according to the face letter number and the face letter language included in each valid face letter rule to obtain at least one face letter element rule corresponding to each valid face letter rule; assembles face letter result data corresponding to each valid face letter rule according to the face letter main style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and the business data, saves the face letter result data corresponding to each valid face letter rule into the corresponding face letter result table, performs data splicing through a common face letter main style template and corresponding rules, obtains face letter result data, saves it into the face letter result table, and corresponds the face letter result table to the business number, thereby avoiding the configuration of different face letter templates for different overseas institutions, eliminating the need for a large number of face letter templates, and reducing the maintenance cost of the face letter templates. In addition, since the face letter result data can be saved in the face letter result table in the form of data stream, there is no need for a special file server to store the face letter template, which can avoid the occurrence of the file server single point problem.

[0064] Figure 3 FIG. 1 is a flow chart of a method for processing a face letter according to a third embodiment of the present invention. Figure 3 As shown, based on the above embodiments, further, querying the face letter rule description table according to the business type, the transaction name, and the face letter language to obtain at least one valid face letter rule includes:

[0065] S301, searching the corresponding face letter rule in the face letter rule description table according to the business type, the transaction name, and the face letter language;

[0066] Specifically, the server searches for the corresponding face letter rule in the face letter rule description table according to the business type, the transaction name, and the face letter language. If the business type, transaction name, and face letter language included in a face letter rule are respectively the same as the business type, transaction name, and face letter language used in the query, then the face letter rule is the corresponding face letter rule. The server traverses each face letter rule in the face letter rule description table to obtain all corresponding face letter rules.

[0067] S302: If it is determined that the effective status of the face letter rule is effective, the effective face letter rule is used as a valid face letter rule.

[0068] Specifically, for each of the corresponding face letter rules queried, the server obtains the effective state from the face letter rule, and if the effective state included in the face letter rule is effective, the effective face letter rule is used as the effective face letter rule. If multiple effective face letter rules are obtained, it means that the current business data needs to generate multiple face letters.

[0069] Figure 4 FIG. 4 is a flow chart of a method for processing a face letter according to a fourth embodiment of the present invention. Figure 4 As shown, on the basis of the above embodiments, further, the face letter rule element table is queried according to the face letter number and the face letter language included in each valid face letter rule to obtain at least one face letter element rule corresponding to each valid face letter rule, including:

[0070] S401, querying and obtaining multiple face letter element rules having the same element rule sequence number in the face letter rule element table according to the face letter number and the face letter language included in the valid face letter rule;

[0071] Specifically, for each valid face letter rule, the server may query the corresponding face letter element rule in the face letter rule element table according to the face letter number and the face letter language included in the valid face letter rule. If the face letter number and the face letter language included in a face letter element rule are respectively the same as the face letter number and the face letter language used in the query, then the face letter element rule is used as the corresponding face letter element rule. If the query obtains multiple face letter element rules, and the multiple face letter element rules have the same element rule sequence number, then multiple face letter element rules with the same element rule sequence number are obtained.

[0072] S402: Filter multiple face element rules with the same element rule sequence number based on the same label element filtering condition; wherein the same label element filtering rule is preset.

[0073] Specifically, the server will screen multiple face letter element rules with the same element rule sequence number according to the same tag element screening condition, and can screen out one face letter element rule from the multiple face letter element rules with the same element rule sequence number as a face letter element rule corresponding to the effective face letter rule. Multiple face letter element rules with the same element rule sequence number can also be discarded, that is, multiple face letter element rules with the same element rule sequence number will not be used as face letter element rules corresponding to the effective face letter rule.

[0074] On the basis of the above embodiments, further, the same tag element screening condition includes:

[0075] If it is determined that the area code obtained from the business data is different from the area codes included in the multiple face letter element rules with the same element rule sequence number, the face letter element rule with an empty area code among the multiple face letter element rules with the same element rule sequence number is used as a face letter element rule corresponding to the valid face letter rule;

[0076] If it is determined that the area code obtained from the business data is the same as the area code included in one of the multiple face letter element rules with the same element rule sequence number and the effective state corresponding to the face letter element rule is effective, the face letter element rule corresponding to the area code obtained from the business data is used as a face letter element rule corresponding to the effective face letter rule;

[0077] If it is determined that the area code obtained from the business data is the same as the area code included in one of the multiple face letter element rules with the same element rule sequence number and the corresponding effective status of the face letter element rule is not effective, then the multiple face letter element rules with the same element rule sequence number are discarded.

[0078] Specifically, for each face letter element rule in the multiple face letter element rules with the same element rule sequence number, the server compares the area code included in each face letter element rule with the area code obtained from the business data. If the area code included in each face letter element rule in the multiple face letter element rules with the same element rule sequence number is different from the area code obtained from the business data, then the face letter element rule with an empty area code will be obtained from the multiple face letter element rules with the same element rule sequence number as a face letter element rule corresponding to the valid face letter rule.

[0079] For each face letter element rule in multiple face letter element rules with the same element rule sequence number, the server compares the area code included in each face letter element rule with the area code obtained from the business data. If there is a face letter element rule among the multiple face letter element rules with the same element rule sequence number, the area code included in the face letter element rule is the same as the area code obtained from the business data, and the area code obtained from the business data corresponds to the face letter element rule, then the effectiveness status included in the face letter element rule is obtained. If the effectiveness status included in the face letter element rule is effective, then the face letter element rule is used as a face letter element rule corresponding to the valid face letter rule.

[0080] If there is a face letter element rule among multiple face letter element rules with the same element rule sequence number and the area code included in it is the same as the area code obtained from the business data, but the effective status included in this face letter element rule is not effective, then the multiple face letter element rules with the same element rule sequence number are discarded, that is, none of the multiple face letter element rules with the same element rule sequence number will be used as a face letter element rule corresponding to the effective face letter rule.

[0081] For example, as shown in Table 2, the effective face letter rule includes the face letter number 000001 and the face letter language en_US, and four face letter element rules with the element rule sequence number 4 can be queried in Table 2. If the area code obtained from the business data is different from the area code included in the four face letter element rules with the element rule sequence number 4, then the face letter element rule with an empty area code will be obtained as a face letter element rule corresponding to the effective face letter rule.

[0082] If the area code obtained from the business data is 0016200000, which is the same as the area code included in one of the four facial letter element rules mentioned above, and the facial letter element rule with the area code of 0016200000 includes an effective status of E, where E means it has taken effect, then the facial letter element rule with the area code of 0016200000 is regarded as a facial letter element rule corresponding to the effective facial letter rule.

[0083] If the area code obtained from the business data is 0016300000, which is the same as the area code included in one of the four facial letter element rules mentioned above, and the facial letter element rule with the area code of 0016300000 includes an effective status of D, where D means ineffective, then the above four facial letter element rules will be discarded, that is, none of the above four facial letter element rules will be used as a facial letter element rule corresponding to a valid facial letter rule.

[0084] Figure 5 FIG. 5 is a flow chart of a method for processing a face letter according to a fifth embodiment of the present invention. Figure 5 As shown, on the basis of the above embodiments, further, according to the main face letter style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and the business data, assembling the face letter result data corresponding to each valid face letter rule includes:

[0085] S501, obtaining data corresponding to the first type of area of ​​the face letter main style template according to the face letter main style template and the business data;

[0086] Specifically, different areas are set in the main style template of the cover letter, and these areas can be divided into first-category areas, second-category areas and third-category areas based on different ways of obtaining data. For the first-category area of ​​the main style template of the cover letter, corresponding data can be queried from the international settlement business system according to the business data to obtain data corresponding to the first-category area of ​​the main style template of the cover letter.

[0087] For example, as mentioned above, the main style template of the cover letter is divided into Area A, Area B, Area C, Area D, Area E, Area F, Area G, Area H, Area I and Area J. Area A and Area H are the first type of areas. For the data corresponding to Area A, the area code can be obtained from the business data, and the acquiring bank information can be queried from the international settlement business system based on the area code. The bank name, telegraph number, address information, contact number, fax number, and SWIFT address can be obtained from the acquiring bank information to form the data corresponding to Area A. For the data corresponding to Area H, the business number can be obtained from the business data, and the details of the charges and the details of the accounts payable can be queried from the international settlement business system based on the business number to form the data corresponding to Area H.

[0088] S502, obtaining data corresponding to the second type of area of ​​the face letter main style template according to the face letter main style template and the effective face letter rule;

[0089] Specifically, for the second type of area of ​​the face letter main style template, corresponding data can be obtained according to the effective face letter rule to obtain data corresponding to the second type of area of ​​the face letter main style template.

[0090] For example, as described above, the main face letter style template is divided into area A, area B, area C, area D, area E, area F, area G, area H, area I and area J. Area B and area C are second-category areas, and the face letter name included in the effective face letter rule is obtained as the data corresponding to area B. The receiving role included in the effective face letter rule is obtained as the data corresponding to area C.

[0091] S503, obtaining data corresponding to the third category area of ​​the main face letter style template according to the face letter main style template, each face letter element rule corresponding to the valid face letter rule, and the business data;

[0092] Specifically, for the third type of area of ​​the face letter main style template, corresponding data can be obtained by using each face letter element rule corresponding to the valid face letter rule and the business data to obtain data corresponding to the third type of area of ​​the face letter main style template.

[0093] For example, as described above, the main face letter style template is divided into area A, area B, area C, area D, area E, area F, area G, area H, area I and area J. Area D, area E, area I and area J are third-type areas. Different face letter element rules can be set for area D, area E, area F, area G, area I and area J, respectively, and corresponding data can be obtained based on the face letter element rules.

[0094] S504, based on the data corresponding to the first type of area of ​​the face letter main style template, the data corresponding to the second type of area of ​​the face letter main style template, and the data corresponding to the third type of area of ​​the face letter main style template, generate face letter result data corresponding to the valid face letter rule.

[0095] Specifically, after obtaining the data corresponding to the first type of area of ​​the face envelope main style template, the data corresponding to the second type of area of ​​the face envelope main style template, and the data corresponding to the third type of area of ​​the face envelope main style template, the server splices the data corresponding to each type of area into the corresponding area respectively, and after the splicing processing of each type of area is completed, generates the face envelope result data corresponding to the valid face envelope rule.

[0096] Figure 6 FIG. 6 is a flow chart of a method for processing a face letter according to a sixth embodiment of the present invention. Figure 6 As shown, on the basis of the above embodiments, further, the data corresponding to the third type of area of ​​the face letter main style template is obtained according to the face letter main style template, each face letter element rule corresponding to the valid face letter rule and the business data, including:

[0097] S601, if it is determined that the logic of the element label value included in the face letter element rule is a variable, query the face letter element value path table according to the label variable corresponding to the element label value logic to obtain the corresponding value logic path and formatting processing type; wherein the face letter element value path table is preset;

[0098] Specifically, the server obtains the element label value logic from the face letter element rule. If the element label value logic is a variable, then the label variable corresponding to the element label value logic is obtained from the face letter element rule, and then the face letter element value path table is queried according to the label variable to obtain the value logic path and formatting processing type corresponding to the label variable. Among them, the element label value logic is preset and can be set as a variable or a non-variable. It is set according to actual needs and is not limited by the embodiment of the present invention. The face letter element value path table is preset and can be set according to actual needs and is not limited by the embodiment of the present invention.

[0099] For example, as shown in Table 3, the value path table of the face letter element may include information such as the face letter number, label variable, value logic path, formatting processing type, formatting processing details, etc. The value logic path corresponding to the label variable L1 is subStruct.product.ilcman.refno, and the corresponding formatting processing type corresponding to the label variable L1 is REFNO, which indicates boldface formatting.

[0100] Table 3 Value path table of face letter elements

[0101]

[0102] S602, obtaining a corresponding data value from the business data according to a value obtaining path corresponding to the tag variable;

[0103] Specifically, the server can obtain the data value corresponding to the value acquisition logic path from the business data according to the value acquisition logic path.

[0104] S603, performing format processing on the obtained data value according to the format processing type corresponding to the label variable;

[0105] Specifically, the server performs format processing on the data value corresponding to the value-taking logic path according to the format processing type corresponding to the label variable, and can obtain the format-processed data value.

[0106] S604, concatenating the format-processed data value with the element label included in the face element rule to obtain a corresponding key-value pair;

[0107] Specifically, the server obtains the element tag from the face element rule, and then concatenates the format-processed data value with the element tag to obtain a corresponding key-value pair, which is the element tag and the format-processed data value.

[0108] S605. Obtain a corresponding preset area according to the element rule type included in the face element rule, and use the obtained key-value pair as data corresponding to the preset area; wherein the third type of area includes the preset area.

[0109] Specifically, the server obtains the corresponding preset area according to the element rule type included in the face element rule, and corresponds the obtained key-value pair to the preset area as data corresponding to the preset area. The third type of area includes the preset area, and the corresponding relationship between the element rule type and the preset area is preset.

[0110] For example, as shown in Table 2, when the logic of the element tag value is a variable, the tag variable corresponding to the logic of the element tag value can be enclosed in {}, and when the logic of the element tag value is a non-variable, the content corresponding to the logic of the element tag value can be a string. For the element rule corresponding to the element rule sequence number 1, the logic of the element tag value corresponds to {L1}. Since the tag variable L1 is enclosed in {}, the logic of the element tag value is a variable. The value path table of the face element can be queried according to the tag variable L1, and the value logic path corresponding to L1 is obtained as subStruct.product.ilcman.refno, and the corresponding formatting processing type is REFNO. The corresponding data value can be obtained from the received business data according to subStruct.product.ilcman.refno. If the obtained data value is LC002002000001. REFNO means bold format processing, and the data value LC002002000001 will be processed in bold format to obtain the data value LC002002000001 after format processing. Then, the element label LC NO. is obtained from the element rule corresponding to the element rule number 1, and the element label LC NO. is concatenated with the format-processed data value LC002002000001 to obtain the LC NO.:LC002002000001 key-value pair. The element rule corresponding to the element rule number 1 includes the element rule type INFO, INFO corresponds to area E, and LC NO.:LC002002000001 is used as the data corresponding to area E. Among them, area E belongs to the third type of area.

[0111] On the basis of the above embodiments, further, obtaining data corresponding to the third type of area of ​​the face letter master style template according to the face letter master style template, each face letter element rule corresponding to the valid face letter rule and the business data includes:

[0112] If it is determined that the logic of the element label value included in the face element rule is not a variable, the content corresponding to the logic of the element label value included in the face element rule is obtained as the data corresponding to the preset area corresponding to the element rule type included in the face element rule; wherein the third type of area includes the preset area.

[0113] Specifically, the server obtains the element tag value logic from the face letter element rule. If the element tag value logic is a variable, then the content corresponding to the element tag value logic is obtained from the face letter element rule, and the obtained content is used as the data corresponding to the third area corresponding to the element rule type included in the face letter element rule.

[0114] For example, as shown in Table 2, for the feature rule corresponding to feature rule number 6, the content corresponding to the feature tag value logic is "WE ADVISE HAVING ISSUED SUBJECT CREDIT", which is not enclosed by {}, and the feature tag value logic is not a variable. The feature rule corresponding to feature rule number 6 includes a feature rule type of MID, MID corresponds to area G, and "WE ADVISE HAVING ISSUED SUBJECT CREDIT" is used as the data corresponding to area G. Among them, area G belongs to the third category area. The feature rule corresponding to feature rule number 6 is used to set the terms and conditions of the letter. If adjustment is required, directly modify the content corresponding to the feature tag value logic of the feature rule.

[0115] For example, as shown in Table 2, for the feature rule corresponding to feature rule number 7, the content corresponding to the feature tag value logic is "THIS TRANSACTION IS SUBJECT TO THE APPLICABLE UCP RULES (ISSUED BY THE ICC) AS STIPULATED IN THE CREDIT", which is not enclosed by {}, and the feature tag value logic is not a variable. The feature rule corresponding to feature rule number 7 includes a feature rule type of END, END corresponds to area I, and "THISTRANSACTION IS SUBJECT TO THE APPLICABLE UCP RULES (ISSUED BY THE ICC) AS STIPULATED IN THE CREDIT" is used as the data corresponding to area I. Among them, area I belongs to the third type of area. The feature rule corresponding to feature rule number 7 is used to set the clause text of the cover letter. If adjustment is required, the content corresponding to the feature tag value logic of the feature rule can be directly modified.

[0116] Figure 7 FIG. 7 is a flow chart of a method for processing a face letter according to a seventh embodiment of the present invention. Figure 7 As shown, based on the above embodiments, the face letter processing method provided by the embodiment of the present invention further includes:

[0117] S701, receiving a face letter adjustment request sent by a client, wherein the face letter adjustment request includes the service number;

[0118] Specifically, when the bank staff needs to adjust the letter, they can send a letter adjustment request to the server through the client, and the letter adjustment request includes the business number. The client includes but is not limited to desktop computers, laptop computers and other devices.

[0119] S702, obtaining a corresponding face letter result table according to the service number and sending the face letter result table to the client by carrying it in an adjustment feedback request;

[0120] Specifically, after receiving the face letter adjustment request, the server will query the corresponding face letter result table according to the business number, and then send the face letter result table corresponding to the business number to the client in the adjustment feedback request. Bank staff can modify the data in the face letter result table on the client.

[0121] S703: Update the face letter result table corresponding to the business number according to the change information of the face letter result table sent by the client.

[0122] Specifically, the client will send the modification of the face-to-face letter result table by the bank staff as the modification information of the face-to-face letter result table to the server. The server will receive the modification information of the face-to-face letter result table and update the face-to-face letter result table corresponding to the business number based on the modification information of the face-to-face letter result table.

[0123] Figure 8 FIG. 8 is a flow chart of a method for processing a face letter according to an eighth embodiment of the present invention. Figure 8 As shown, based on the above embodiments, the face letter processing method provided by the embodiment of the present invention further includes:

[0124] S801, obtaining corresponding format parameters according to the area code;

[0125] Specifically, since the formats of face letters in different regions are different, format parameters corresponding to different area codes can be set, and the format parameters include line spacing, font size, etc., which are set according to actual needs. The server can query and obtain the corresponding format parameters according to the area code.

[0126] S802: Generate a face letter according to the format parameters corresponding to the area code and the face letter result table.

[0127] Specifically, the server generates a face letter according to the format parameters corresponding to the area code and the face letter result table, and the output format of the face letter can be .doc, .pdf, .xml, etc., which is set according to actual needs and is not limited in the embodiment of the present invention. Among them, the output format of the face letter is set according to actual needs and is not limited in the embodiment of the present invention.

[0128] For example, the output format of the face letter can be set according to the area code, the output format of the face letter can be set according to the acquiring bank, or the output format of the face letter can be set according to the business number. It can be set according to actual conditions and is not limited in the embodiments of the present invention.

[0129] like Fig. 9 As shown, the following takes a face letter generation process as an example to illustrate the implementation process of the face letter processing method provided by the embodiment of the present invention.

[0130] The first step is to receive business data. The server receives business data from the international settlement business system and obtains the business number, business type, transaction name and area code from the business data. The server can query and obtain the corresponding interface language based on the area code.

[0131] Step 2: Get valid face letter rules. The server queries the face letter rule description table according to the business type, transaction name, area code and face letter language, and queries the corresponding face letter rules from the face letter rule description table. If the effective status of the face letter rules obtained by the query is effective, the effective face letter rules are taken as valid face letter rules. There can be multiple valid face letter rules obtained, and the server will process each valid face letter rule.

[0132] Step 3: Get the corresponding face letter element rules. Query the face letter rule element table according to the face letter number and face letter language included in the valid face letter rules to obtain multiple face letter element rules corresponding to the valid face letter rules. If there are multiple face letter element rules with the same element rule sequence number, the multiple face letter element rules with the same element rule sequence number will be screened according to the same label element screening condition to obtain a face letter element rule corresponding to the valid face letter rule, or discard multiple face letter element rules with the same element rule sequence number.

[0133] Step 4. Obtain the data corresponding to the first category of areas. The main cover letter template is divided into 10 preset areas: Area A, Area B, Area C, Area D, Area E, Area F, Area G, Area H, Area I and Area J. Area A and Area H belong to the first category of areas. The server queries the acquiring bank information from the international settlement business system based on the area code. From the acquiring bank information, the bank name, telegraph number, address information, contact number, fax number, and SWIFT address can be obtained to form the data corresponding to Area A. The server queries the receivable details and accounting details from the international settlement business system based on the business number to form the data corresponding to Area H.

[0134] Step 5: Get the data corresponding to the second type of area. Areas B and C belong to the second type of area. The server obtains the name of the face letter included in the effective face letter rule as the data corresponding to area B. The server obtains the receiving role included in the effective face letter rule as the data corresponding to area C.

[0135] Step 6: Get the data corresponding to the third category of areas. The remaining areas belong to the third category of areas. You need to obtain the data corresponding to the third category of areas through the face letter element rules and business data corresponding to the valid face letter rules. The server will process the face letter element rules one by one. After all the element rules corresponding to the valid face letter rules are processed, the data corresponding to the third category of areas is obtained.

[0136] For each face letter element rule, the server determines whether the logic of the element tag value included in the face letter element rule is a variable. If the logic of the element tag value is a variable, the face letter element value path table is queried according to the tag variable corresponding to the element tag value logic to obtain the corresponding value logic path and formatting processing type, and the corresponding data value is obtained from the business data according to the value path corresponding to the tag variable. According to the formatting processing type corresponding to the tag variable, the obtained data value is formatted, and the formatted data value is concatenated with the element tag included in the face letter element rule to obtain the corresponding key-value pair, and the corresponding preset area is obtained according to the element rule type included in the face letter element rule, and the obtained key-value pair is used as the data corresponding to the preset area. The data corresponding to areas D and E are obtained by the above method.

[0137] If the element tag value logic is not a variable, the server obtains the content corresponding to the element tag value logic included in the face element rule as the data corresponding to the preset area corresponding to the element rule type included in the face element rule. The data corresponding to area F, area G, area I and area J are obtained in this way.

[0138] Step 7: Determine whether there are any unprocessed face letter element rules. The server determines whether there are any unprocessed face letter element rules among the multiple face letter element rules corresponding to the valid face letter rules. If there are, it returns to step 6 to continue processing the unprocessed face letter element rules. If there are no unprocessed face letter element rules, it proceeds to step 8.

[0139] Step 8: Generate face letter result data. The server splices the data corresponding to the first type of area of ​​the face letter main style template, the data corresponding to the second type of area of ​​the face letter main style template, and the data corresponding to the third type of area of ​​the face letter main style template to the corresponding areas on the face letter main style template, generates face letter result data corresponding to the effective face letter rules, and stores them in the face letter result table.

[0140] Step 9: Determine whether there are any unprocessed valid face letter rules. Whether there are any unprocessed valid face letter rules on the server, if not, the process ends; if there are any unprocessed valid face letter rules, return to step 4 and obtain an unprocessed valid face letter rule for processing.

[0141] The face letter processing method provided by the embodiment of the present invention greatly reduces the number of face letter templates, from more than 900 face letter templates in the original bank to one main face letter style. When the rule configuration continues to meet the special needs of overseas institutions, the configuration can take effect in real time, saving project R&D costs and shortening the R&D cycle. The data stream storage of this solution avoids the operation and processing of files, does not require a dedicated file server to store face letter templates, and avoids the problem of single points. In addition, the processing efficiency is faster when the business volume is highly concurrent.

[0142] The cover letter can support conversion and output in .doc, .pdf, .xml and other formats to meet the needs of different overseas branches and improve customer satisfaction.

[0143] Fig.10 FIG. 1 is a schematic diagram of the structure of a face envelope processing device provided in a tenth embodiment of the present invention. Fig.10 As shown, the face letter processing device provided by the embodiment of the present invention includes an acquisition module 1001, a first query module 1002, a second query module 1003, an acquisition module 1004 and a storage module 1005, wherein:

[0144] The acquisition module 1001 is used to obtain the business number, business type, transaction name and area code from the business data, and obtain the face letter language according to the area code; the first query module 1002 is used to query the face letter rule description table according to the business type, the transaction name and the face letter language to obtain at least one valid face letter rule; wherein the face letter rule description table is preset; the second query module 1003 is used to query the face letter rule element table according to the face letter number and the face letter language included in each valid face letter rule, and obtain at least one face letter element rule corresponding to each valid face letter rule; wherein the face letter rule element table is preset; the acquisition module 1004 is used to obtain the face letter result data corresponding to each valid face letter rule according to the face letter main style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and the business data; wherein the face letter main style template is preset; the storage module 1005 is used to save the face letter result data corresponding to each valid face letter rule into the corresponding face letter result table and correspond the face letter result table to the business number.

[0145] Specifically, the acquisition module 1001 can acquire business data from the international settlement business system, and the business data includes information such as business number, business type, transaction name, and area code. The server can obtain the interface language corresponding to the business area according to the area code. The corresponding relationship between the area code and the interface language is preset. The business data has a unique corresponding business number.

[0146] The first query module 1002 queries the face letter rule description table according to the business type, the transaction name, and the face letter language to obtain at least one valid face letter rule. If multiple valid face letter rules are obtained, it means that the current business data needs to generate multiple face letters. Among them, the face letter rule description table is preset and used to set the basic information of the face letter, which may include face letter number, face letter name, business type, transaction name, face letter language, effective condition, receiving role, effective status, face letter extended attributes and other information, which is set according to actual needs and is not limited in the embodiment of the present invention.

[0147] For each valid face letter rule, the second query module 1003 obtains the face letter number from the valid face letter rule, and then searches the face letter rule element table for at least one face letter element rule corresponding to the face letter number and the face letter language according to the obtained face letter number and the face letter language, as the at least one face letter element rule corresponding to the valid face letter rule. The face letter rule element table is preset and used to set the element rules of the face letter, including multiple face letter element rules, each face letter element rule may include information such as the face letter number, element rule type, element rule sequence number, face letter language, element tag, element tag value logic, region code, effective state, effective condition, etc., which is set according to actual needs and is not limited in the embodiment of the present invention.

[0148] The face letter area layout style is set in the face letter main style template, and the corresponding content will be filled in each preset area. For each valid face letter rule, the acquisition module 1004 will obtain the corresponding data from the valid face letter rule and correspond to the preset area in the face letter main style template. The server will obtain the corresponding data corresponding to the area in the face letter main style template according to the face letter element rules and the business data corresponding to the valid face letter rule, assemble the data corresponding to each preset area of ​​the face letter main style template, and obtain the face letter result data corresponding to each valid face letter rule. Among them, the face letter main style template is preset and is set according to actual needs, and the embodiment of the present invention does not limit it.

[0149] For each effective face letter result data corresponding to each effective face letter rule, the storage module 1005 can save the face letter result data corresponding to each effective face letter rule into a corresponding face letter result table, and the face letter result table corresponds to the business number. Each face letter result table is used to generate a face letter. The data in the face letter result table can be edited to meet special face letter needs.

[0150] The face letter processing device provided by the embodiment of the present invention obtains the business type, transaction name and area code from the business data, and obtains the face letter language according to the area code; queries the face letter rule description table according to the business type, the transaction name and the face letter language to obtain at least one valid face letter rule; queries the face letter rule element table according to the face letter number and the face letter language included in each valid face letter rule to obtain at least one face letter element rule corresponding to each valid face letter rule; assembles face letter result data corresponding to each valid face letter rule according to the face letter main style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and the business data, saves the face letter result data corresponding to each valid face letter rule into the corresponding face letter result table, performs data splicing through a common face letter main style template and corresponding rules, obtains face letter result data, saves it into the face letter result table, and corresponds the face letter result table with the business number, thereby avoiding the configuration of different face letter templates for different overseas institutions, eliminating the need for a large number of face letter templates, and reducing the maintenance cost of the face letter templates. In addition, since the face letter result data can be saved in the face letter result table in the form of data stream, there is no need for a special file server to store the face letter template, which can avoid the occurrence of the file server single point problem.

[0151] Fig.11 FIG. 1 is a schematic diagram of the structure of a face envelope processing device provided in the eleventh embodiment of the present invention. Fig.11 As shown, based on the above embodiments, further, the first query module 1002 includes a first query unit 10021 and a judgment unit 10022, wherein:

[0152] The first query unit 10021 queries the face letter rule description table according to the business type, the transaction name, and the face letter language to obtain the corresponding face letter rule; the judgment unit 10022 is used to, after judging that the effective status of the face letter rule is effective, take the effective face letter rule as the valid face letter rule.

[0153] Fig.12 FIG. 1 is a schematic diagram of the structure of a face envelope processing device provided in the twelfth embodiment of the present invention. Fig.12 As shown, based on the above embodiments, the second query module 1003 further includes a second query unit 10031 and a screening unit 10032, wherein:

[0154] The second query unit 10031 is used to query and obtain multiple face letter element rules with the same element rule serial number in the face letter rule element table according to the face letter number and the face letter language included in the valid face letter rule; the screening unit 10032 is used to screen the multiple face letter element rules with the same element rule serial number based on the same label element screening condition; wherein the same label element screening rule is preset.

[0155] On the basis of the above embodiments, further, the same tag element screening condition includes:

[0156] If it is determined that the area code obtained from the business data is different from the area codes included in the multiple face letter element rules with the same element rule sequence number, the face letter element rule with an empty area code among the multiple face letter element rules with the same element rule sequence number is used as a face letter element rule corresponding to the valid face letter rule;

[0157] If it is determined that the area code obtained from the business data is the same as the area code included in one of the multiple face letter element rules with the same element rule sequence number and the effective state corresponding to the face letter element rule is effective, the face letter element rule corresponding to the area code obtained from the business data is used as a face letter element rule corresponding to the effective face letter rule;

[0158] If it is determined that the area code obtained from the business data is the same as the area code included in one of the multiple face letter element rules with the same element rule sequence number and the corresponding effective status of the face letter element rule is not effective, then the multiple face letter element rules with the same element rule sequence number are discarded.

[0159] Fig.13 is a schematic diagram of the structure of a face envelope processing device provided in the thirteenth embodiment of the present invention. Fig.13 As shown, on the basis of the above embodiments, further, the obtaining module 1004 includes a first obtaining unit 10041, a second obtaining unit 10042, a third obtaining unit 10043 and a generating unit 10044, wherein:

[0160] The first obtaining unit 10041 is used to obtain the data corresponding to the first type of area of ​​the face letter main style template according to the face letter main style template and the business data; the second obtaining unit 10042 is used to obtain the data corresponding to the second type of area of ​​the face letter main style template according to the face letter main style template and the effective face letter rule; the third obtaining unit 10043 is used to obtain the data corresponding to the third type of area of ​​the face letter main style template according to the face letter main style template, each face letter element rule corresponding to the effective face letter rule and the business data; the generating unit 10044 is used to generate the face letter result data corresponding to the effective face letter rule based on the data corresponding to the first type of area of ​​the face letter main style template, the data corresponding to the second type of area of ​​the face letter main style template and the data corresponding to the third type of area of ​​the face letter main style template.

[0161] Fig.14 is a schematic diagram of the structure of a face envelope processing device provided in a fourteenth embodiment of the present invention. Fig.14 As shown, on the basis of the above embodiments, further, the third obtaining unit 10043 includes a first obtaining subunit 100431, a second obtaining subunit 100432, a format processing subunit 100433, a splicing subunit 100434 and a third obtaining subunit 100435, wherein:

[0162] The first obtaining subunit 100431 is used to query the face component element value path table according to the label variable corresponding to the element label value logic to obtain the corresponding value logic path and formatting processing type after determining that the element label value logic included in the face component element rule is a variable; wherein the face component element value path table is preset; the second obtaining subunit 100432 is used to obtain the corresponding data value from the business data according to the value path corresponding to the label variable; the formatting processing subunit 100433 performs format processing on the obtained data value according to the formatting processing type corresponding to the label variable; the splicing subunit 100434 is used to splice the formatted data value with the element label included in the face component element rule to obtain the corresponding key-value pair; the third obtaining subunit 100435 is used to obtain the corresponding preset area according to the element rule type included in the face component element rule, and use the obtained key-value pair as the data corresponding to the preset area; wherein the third type of area includes the preset area.

[0163] On the basis of the above embodiments, further, the third obtaining unit 10043 is specifically used for:

[0164] If it is determined that the logic of the element label value included in the face element rule is not a variable, the content corresponding to the logic of the element label value included in the face element rule is obtained as the data corresponding to the preset area corresponding to the element rule type included in the face element rule; wherein the third type of area includes the preset area.

[0165] Fig.15 FIG. 1 is a schematic diagram of the structure of a face envelope processing device provided in a fifteenth embodiment of the present invention. Fig.15 As shown, based on the above embodiments, the face letter processing device provided in the embodiment of the present invention further includes a receiving module 1006, a sending module 1007 and an updating module 1008, wherein:

[0166] The receiving module 1006 is used to receive a face letter adjustment request sent by the client, and the face letter adjustment request includes the business number; the sending module 1007 obtains the corresponding face letter result table according to the business number and carries the face letter result table in the adjustment feedback request and sends it to the client; the updating module 1008 updates the face letter result table corresponding to the business number according to the change information of the face letter result table sent by the client.

[0167] Fig.16 is a schematic diagram of the structure of a mask processing device provided in a sixteenth embodiment of the present invention. Fig.16 As shown, based on the above embodiments, the face letter processing device provided by the embodiment of the present invention further includes a format parameter acquisition module 1009 and a generation module 1010, wherein:

[0168] The format parameter acquisition module 1009 is used to acquire the corresponding format parameters according to the area code; the generation module 1010 is used to generate the face letter according to the format parameters corresponding to the area code and the face letter result table.

[0169] The embodiments of the apparatus provided in the embodiments of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments, and its functions are not described in detail here, and reference can be made to the detailed description of the above-mentioned method embodiments.

[0170] It should be noted that the face letter processing method and device provided in the embodiment of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiment of the present invention does not limit the application field of the face letter processing method and device.

[0171] Fig.17 is a schematic diagram of the physical structure of an electronic device provided by the seventeenth embodiment of the present invention, such as Fig.17 As shown, the electronic device may include: a processor (processor) 1701, a communication interface (Communications Interface) 1702, a memory (memory) 1703 and a communication bus 1704, wherein the processor 1701, the communication interface 1702, and the memory 1703 communicate with each other through the communication bus 1704. The processor 1701 can call the logic instructions in the memory 1703 to execute the following method: obtain the business number, business type, transaction name and area code from the business data, and obtain the face letter language according to the area code; query the face letter rule description table according to the business type, the transaction name, and the face letter language to obtain at least one valid face letter rule; wherein the face letter rule description table is preset; query the face letter rule element table according to the face letter number and the face letter language included in each valid face letter rule to obtain at least one face letter element rule corresponding to each valid face letter rule; wherein the face letter rule element table is preset; obtain the face letter result data corresponding to each valid face letter rule according to the face letter main style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and the business data; wherein the face letter main style template is preset; save the face letter result data corresponding to each valid face letter rule into the corresponding face letter result table and correspond the face letter result table to the business number.

[0172] In addition, the logic instructions in the above-mentioned memory 1703 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0173] This embodiment discloses a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining a business number, a business type, a transaction name, and an area code from business data, and obtaining a face letter language according to the area code; querying a face letter rule description table according to the business type, the transaction name, and the face letter language to obtain at least one valid face letter rule; wherein the face letter rule description table is preset; According to the face letter number included in each valid face letter rule and the face letter language, query the face letter rule element table to obtain at least one face letter element rule corresponding to each valid face letter rule; wherein the face letter rule element table is preset; according to the face letter main style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and the business data, obtain the face letter result data corresponding to each valid face letter rule; wherein the face letter main style template is preset; save the face letter result data corresponding to each valid face letter rule into the corresponding face letter result table and correspond the face letter result table to the business number.

[0174] The present embodiment provides a computer-readable storage medium, which stores a computer program, and the computer program enables the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: obtaining a business number, a business type, a transaction name and an area code from business data, and obtaining a face letter language according to the area code; querying a face letter rule description table according to the business type, the transaction name and the face letter language to obtain at least one valid face letter rule; wherein the face letter rule description table is preset; querying a face letter rule element table according to the face letter number and the face letter language included in each valid face letter rule to obtain at least one face letter element rule corresponding to each valid face letter rule; wherein the face letter rule element table is preset; obtaining face letter result data corresponding to each valid face letter rule according to a face letter main style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and the business data; wherein the face letter main style template is preset; saving the face letter result data corresponding to each valid face letter rule into a corresponding face letter result table and making the face letter result table correspond to the business number.

[0175] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0176] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0177] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0178] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0179] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0180] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for processing face letters, It is characterized in that include: Acquire the business number, business type, transaction name and area code from the business data, and acquire the language of the face letter according to the area code; According to the business type, the transaction name, and the language of the face letter, a face letter rule description table is searched to obtain at least one valid face letter rule; wherein the face letter rule description table is preset; According to the face letter number and the face letter language included in each valid face letter rule, the face letter rule element table is searched to obtain at least one face letter element rule corresponding to each valid face letter rule; wherein the face letter rule element table is preset; Obtaining the face letter result data corresponding to each valid face letter rule according to the face letter main style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule, and the business data; wherein the face letter main style template is preset; The face-to-face letter result data corresponding to each valid face-to-face letter rule is saved in a corresponding face-to-face letter result table and the face-to-face letter result table is associated with the business number; Wherein, obtaining the face letter result data corresponding to each valid face letter rule according to the face letter main style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and the business data comprises: According to the main style template of the face letter and the business data, obtaining data corresponding to the first type of area of ​​the main style template of the face letter; According to the face letter master style template and the effective face letter rule, obtaining data corresponding to the second type of area of ​​the face letter master style template; According to the main cover letter style template, each cover letter element rule corresponding to the valid cover letter rule and the business data, data corresponding to the third category area of ​​the main cover letter style template is obtained; Based on the data corresponding to the first type of area of ​​the face letter main style template, the data corresponding to the second type of area of ​​the face letter main style template, and the data corresponding to the third type of area of ​​the face letter main style template, the face letter result data corresponding to the effective face letter rule is generated.

2. The method according to claim 1, It is characterized in that The querying of the face letter rule description table according to the business type, the transaction name, and the face letter language to obtain at least one valid face letter rule comprises: According to the business type, the transaction name, and the language of the face letter, query the face letter rule description table to obtain the corresponding face letter rule; If it is determined that the effective status of the face letter rule is effective, the effective face letter rule is used as the valid face letter rule.

3. The method according to claim 1, It is characterized in that The querying of the face letter rule element table according to the face letter number and the face letter language included in each valid face letter rule to obtain at least one face letter element rule corresponding to each valid face letter rule comprises: According to the face letter number and the face letter language included in the effective face letter rule, query and obtain multiple face letter element rules with the same element rule sequence number in the face letter rule element table; Based on the same label element screening condition, multiple face letter element rules with the same element rule sequence number are screened; wherein the same label element screening rule is preset.

4. The method according to claim 3, It is characterized in that The same tag element screening conditions include: If it is determined that the area code obtained from the business data is different from the area codes included in the multiple face letter element rules with the same element rule sequence number, the face letter element rule with an empty area code among the multiple face letter element rules with the same element rule sequence number is used as a face letter element rule corresponding to the valid face letter rule; If it is determined that the area code obtained from the business data is the same as the area code included in one of the multiple face letter element rules with the same element rule sequence number and the effective state corresponding to the face letter element rule is effective, the face letter element rule corresponding to the area code obtained from the business data is used as a face letter element rule corresponding to the effective face letter rule; If it is determined that the area code obtained from the business data is the same as the area code included in one of the multiple face letter element rules with the same element rule sequence number and the corresponding effective status of the face letter element rule is not effective, then the multiple face letter element rules with the same element rule sequence number are discarded.

5. The method according to claim 1, It is characterized in that The obtaining of data corresponding to the third category area of ​​the face letter master style template according to the face letter master style template, each face letter element rule corresponding to the valid face letter rule, and the business data includes: If it is determined that the logic of the element label value included in the face letter element rule is a variable, then the face letter element value path table is queried according to the label variable corresponding to the element label value logic to obtain the corresponding value logic path and formatting processing type; wherein the face letter element value path table is preset; Obtaining a corresponding data value from the business data according to a value obtaining path corresponding to the tag variable; Performing format processing on the obtained data value according to the formatting processing type corresponding to the label variable; The format-processed data value is concatenated with the element label included in the face element rule to obtain a corresponding key-value pair; A corresponding preset area is obtained according to the element rule type included in the face element rule, and the obtained key-value pair is used as data corresponding to the preset area; wherein the third type of area includes the preset area.

6. The method according to claim 1, It is characterized in that The obtaining of data corresponding to the third category area of ​​the face letter master style template according to the face letter master style template, each face letter element rule corresponding to the valid face letter rule, and the business data includes: If it is determined that the logic of the element label value included in the face element rule is not a variable, the content corresponding to the logic of the element label value included in the face element rule is obtained as the data corresponding to the preset area corresponding to the element rule type included in the face element rule; wherein the third type of area includes the preset area.

7. The method according to claim 1, It is characterized in that Also includes: receiving a face letter adjustment request sent by a client, wherein the face letter adjustment request includes the service number; Obtaining a corresponding face-to-face letter result table according to the business number and sending the face-to-face letter result table to the client by carrying it in an adjustment feedback request; According to the modification information of the face-to-face result table sent by the client, the face-to-face result table corresponding to the business number is updated.

8. The method according to any one of claims 1 to 7, It is characterized in that Also includes: Obtain corresponding format parameters according to the area code; Generate a face letter according to the format parameters corresponding to the area code and the face letter result table.

9. A face letter processing device, It is characterized in that include: An acquisition module, used to acquire a business number, a business type, a transaction name and an area code from the business data, and acquire a language of the face letter according to the area code; A first query module is used to query the face letter rule description table according to the business type, the transaction name, and the face letter language to obtain at least one valid face letter rule; wherein the face letter rule description table is preset; A second query module is used to query the face letter rule element table according to the face letter number and the face letter language included in each valid face letter rule, and obtain at least one face letter element rule corresponding to each valid face letter rule; wherein the face letter rule element table is preset; An acquisition module, used for acquiring the face letter result data corresponding to each valid face letter rule according to the face letter master style template, each valid face letter rule, each face letter element rule corresponding to each valid face letter rule and the business data; wherein the face letter master style template is preset; A storage module, used for saving the face letter result data corresponding to each valid face letter rule into a corresponding face letter result table and making the face letter result table correspond to the business number; Wherein, the obtaining module is specifically used for: According to the main style template of the face letter and the business data, obtaining data corresponding to the first type of area of ​​the main style template of the face letter; According to the face letter master style template and the effective face letter rule, obtaining data corresponding to the second type of area of ​​the face letter master style template; According to the main cover letter style template, each cover letter element rule corresponding to the valid cover letter rule and the business data, data corresponding to the third category area of ​​the main cover letter style template is obtained; Based on the data corresponding to the first type of area of ​​the face letter main style template, the data corresponding to the second type of area of ​​the face letter main style template, and the data corresponding to the third type of area of ​​the face letter main style template, the face letter result data corresponding to the effective face letter rule is generated.

10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

12. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Transaction certificate generation method, device and system

    CN111563741A