WO2019051943A1 - Method, apparatus, and device for generating credit message, and computer readable storage medium - Google Patents

Method, apparatus, and device for generating credit message, and computer readable storage medium Download PDF

Info

Publication number
WO2019051943A1
WO2019051943A1 PCT/CN2017/108236 CN2017108236W WO2019051943A1 WO 2019051943 A1 WO2019051943 A1 WO 2019051943A1 CN 2017108236 W CN2017108236 W CN 2017108236W WO 2019051943 A1 WO2019051943 A1 WO 2019051943A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
string
segment
insurance
character string
Prior art date
Application number
PCT/CN2017/108236
Other languages
French (fr)
Chinese (zh)
Inventor
周航
李婷
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019051943A1 publication Critical patent/WO2019051943A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/197Version control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Abstract

Embodiments of the present application provide a method, apparatus, and device for generating a credit message, and a computer readable storage medium. The method comprises: acquiring policy information of an insurance product; processing the policy information according to preset processing rules of the policy information to obtain a string cluster corresponding to the policy information; and processing the string cluster separately according to preset format requirements of each segment body of a credit message to generate corresponding credit message segment bodies, and combining all the credit message segment bodies to form the credit message. According to the method of the embodiments of the present application, as long as the policy information of the insurance product is acquired, the device can automatically generate the credit message meeting the preset format requirements according to the policy information without manually combining the policy information into the credit message in a preset format, thereby greatly improving the work efficiency and reducing the error rate.

Description

生成征信报文的方法、装置、设备及计算机可读存储介质  Method, device, device and computer readable storage medium for generating credit information
本申请要求于2017年9月18日提交中国专利局、申请号为201710841909.3、发明名称为“生成征信报文的方法、装置、设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on September 18, 2017, the Chinese Patent Office, the application number is 201710841909.3, and the invention is entitled "Method, device, device and computer readable storage medium for generating a credit information message". The entire contents of this application are incorporated herein by reference.
技术领域Technical field
本申请涉及信息处理技术领域,尤其涉及一种生成征信报文的方法、装置、设备及计算机可读存储介质。The present application relates to the field of information processing technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for generating a credit information message.
背景技术Background technique
信用险等保险产品在承保过程中,需要将信用险的保单信息上传到人民银行征信系统,上传到人民银行征信系统的数据格式是统一要求的,但是平时我们的保单信息不符合人民银行征信系统的数据格式,因此需要将该保单信息的数据格式转化为符合要求的格式,现有的方法一般是先通过人工查找到保单信息,然后人工将保单信息手动拼接成符合人民银行征信系统的格式的数据,再将拼接好的数据保存在一个文件中,最后上传到人民银行征信系统。In the course of underwriting, credit insurance and other insurance products need to upload the insurance policy information to the People's Bank Credit Information System. The data format uploaded to the PBC's credit information system is uniformly required, but our policy information does not meet the PBOC. The data format of the credit information system, so the data format of the policy information needs to be converted into a format that meets the requirements. The existing method generally first manually finds the policy information, and then manually splicing the policy information into the credit line of the People's Bank of China. The formatted data of the system is stored in a file and finally uploaded to the People's Bank of China Credit Information System.
将保单信息中的数据人工拼接为符合格式要求的数据这一过程的工作量巨大,需要大量的操作人员,工作周期长,并且工作效率低下,对操作人员的专业性要求比较高,操作人员需熟悉人行征信系统报文格式要求;另外,人工操作都会存在失误,尤其是长时间操作后产生误操作的风险增大。The process of manually splicing the data in the policy information into the data that meets the format requirements is huge, requires a large number of operators, has a long work cycle, and has low work efficiency. The professional requirements of the operators are relatively high, and the operators need to Familiar with the message format requirements of the PBC system; in addition, manual operations will have errors, especially the risk of misoperation after long-term operation increases.
发明内容Summary of the invention
本申请实施例提供了一种生成征信报文的方法、装置、设备及计算机可读存储介质,能够显著地提高工作效率和降低出错率。The embodiment of the present application provides a method, an apparatus, a device, and a computer readable storage medium for generating a credit information, which can significantly improve work efficiency and reduce error rate.
第一方面,本申请实施例提供了一种生成征信报文的方法,该方法包括:In a first aspect, the embodiment of the present application provides a method for generating a credit information packet, where the method includes:
获取保险合同的保单信息;Obtain policy information for the insurance contract;
根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集;And processing the policy information according to the preset processing rule of the policy information, to obtain a string cluster corresponding to the policy information;
分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文。The string clusters are processed according to the preset format of each segment of the credit information packet, and the corresponding credit message segment body is generated, and all the credit information segment segments are combined to form a credit information packet.
第二方面,本申请实施例还提供了一种生成征信报文的装置,该装置包括用于执行上述的生成征信报文的方法的单元。In a second aspect, the embodiment of the present application further provides an apparatus for generating a credit information packet, where the apparatus includes a unit for performing the foregoing method for generating a credit information message.
第三方面,本申请实施例还提供了一种生成征信报文的设备,所述设备包括存储器,以及与所述存储器相连的处理器;In a third aspect, the embodiment of the present application further provides a device for generating a credit information packet, where the device includes a memory, and a processor connected to the memory;
所述存储器,用于存储实现生成征信报文的方法的程序数据;The memory is configured to store program data that implements a method for generating a credit information message;
所述处理器,用于运行所述存储器中存储的程序数据,以执行如上述第一方面所述的方法。The processor is configured to execute program data stored in the memory to perform the method as described in the first aspect above.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者一个以上程序数据,所述一个或者一个以上程序数据可被一个或者一个以上的处理器执行,以实现上述第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, where the one or more program data is stored, and the one or more program data may be processed by one or more processes. The apparatus is executed to implement the method described in the first aspect above.
本申请实施例提供了生成征信报文的方法、装置、设备及计算机可读存储介质,所述方法包括:获取保险产品的保单信息;根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集;分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文。通过本申请实施例的方法,设备只需要获取保险产品的保单信息,对保单信息进行加工处理后即可自动生成符合预设格式要求的征信报文,不再需要通过人工将保单信息拼接为预设格式的征信报文,大大地提高工作效率和降低出错率。 The embodiment of the present application provides a method, an apparatus, a device, and a computer readable storage medium for generating a credit information, the method comprising: obtaining policy information of an insurance product; and the policy according to a preset processing rule of the policy information The information is processed to obtain a string cluster corresponding to the policy information; the string cluster is processed according to a preset format requirement of each segment of the credit message, and a corresponding credit segment body is generated, and all the signs are generated. The combination of the message segment forms a credit message. With the method of the embodiment of the present application, the device only needs to obtain the policy information of the insurance product, and after processing the policy information, the device can automatically generate the credit information packet that meets the requirements of the preset format, and no longer needs to manually splicing the policy information into The pre-set format of the credit report greatly improves work efficiency and reduces the error rate.
附图说明DRAWINGS
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present application. For the ordinary technicians, other drawings can be obtained based on these drawings without paying creative labor.
图1是本申请实施例提供的一种生成征信报文的方法的流程示意图;1 is a schematic flowchart of a method for generating a credit information packet according to an embodiment of the present application;
图2是本申请实施例提供的一种生成征信报文的方法的子流程示意图;2 is a schematic diagram of a sub-flow of a method for generating a credit information packet according to an embodiment of the present application;
图3是本申请实施例提供的一种生成征信报文的方法的另一子流程示意图;3 is a schematic diagram of another sub-flow of a method for generating a credit information packet according to an embodiment of the present application;
图4是本申请实施例提供的一种生成征信报文的方法的另一子流程示意图;4 is a schematic diagram of another sub-flow of a method for generating a credit information packet according to an embodiment of the present application;
图5是本申请实施例提供的一种生成征信报文的方法的另一子流程示意图;FIG. 5 is a schematic diagram of another sub-flow of a method for generating a credit information packet according to an embodiment of the present application;
图6是本申请实施例提供的一种生成征信报文的方法的另一子流程示意图;FIG. 6 is a schematic diagram of another sub-flow of a method for generating a credit information message according to an embodiment of the present application;
图7是本申请实施例提供的一种生成征信报文的方法的另一子流程示意图;FIG. 7 is a schematic diagram of another sub-flow of a method for generating a credit information message according to an embodiment of the present application;
图8是本申请另一实施例提供的一种生成征信报文的方法的流程示意图;FIG. 8 is a schematic flowchart of a method for generating a credit information packet according to another embodiment of the present application;
图9是本申请实施例提供的一种生成征信报文的装置的单元结构示意框图;FIG. 9 is a schematic block diagram showing a unit structure of an apparatus for generating a credit information message according to an embodiment of the present application;
图10是本申请实施例提供的一种生成征信报文的装置的结构示意框图;FIG. 10 is a schematic block diagram showing the structure of an apparatus for generating a credit information message according to an embodiment of the present application;
图11是本申请实施例提供的一种生成征信报文的装置的另一子单元结构示意框图;11 is a schematic block diagram showing another subunit structure of an apparatus for generating a credit information packet according to an embodiment of the present application;
图12是本申请实施例提供的一种生成征信报文的装置的另一子单元结构示意框图;FIG. 12 is a schematic block diagram showing another subunit structure of an apparatus for generating a credit information message according to an embodiment of the present application;
图13是本申请实施例提供的一种生成征信报文的装置的另一子单元结构示意框图;FIG. 13 is a schematic block diagram showing another subunit structure of an apparatus for generating a credit information message according to an embodiment of the present application;
图14是本申请实施例提供的一种生成征信报文的装置的另一子单元结构示意框图;FIG. 14 is a schematic block diagram showing another subunit structure of an apparatus for generating a credit information message according to an embodiment of the present application;
图15是本申请实施例提供的一种生成征信报文的装置的另一子单元结构示意框图;15 is a schematic block diagram showing another subunit structure of an apparatus for generating a credit information packet according to an embodiment of the present application;
图16是本申请实施例提供的一种生成征信报文的设备的示意性框图。FIG. 16 is a schematic block diagram of an apparatus for generating a credit information message according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和 “包含”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It will be understood that the terms "comprise" and "the" when used in the specification and the appended claims "Comprising" indicates the existence of the described features, integers, steps, operations, elements and/or components, but does not exclude the presence of one or more other features, integers, steps, operations, elements, components and/or combinations thereof Add to.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/ 或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be understood that the term "and / is used in the specification and the appended claims of this application. Or "" refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
也应当理解,尽管术语第一、第二等可以在此用来描述各种元素,但这些元素不应该受限于这些术语,这些术语仅用来将这些元素彼此区分开。例如,在不脱离本申请范围的前提下,第一字符串可以被称为第二字符串,并且类似地,第二字符串可以被称为第一字符串。It should also be understood that although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited to these terms, and these terms are only used to distinguish the elements from one another. For example, the first character string may be referred to as a second character string without departing from the scope of the present application, and similarly, the second character string may be referred to as a first character string.
图1为本申请实施例提供的一种生成征信报文的方法的流程示意图。该方法可以运行在智能手机(如Android手机、IOS手机等)、平板电脑、笔记本电脑以及智能设备等终端中。如图1所示,该方法的步骤包括S101~S103。FIG. 1 is a schematic flowchart of a method for generating a credit information packet according to an embodiment of the present disclosure. The method can be run on terminals such as smart phones (such as Android phones, IOS phones, etc.), tablets, laptops, and smart devices. As shown in FIG. 1, the steps of the method include S101~S103.
S101,获取保险合同的保单信息。S101. Obtain policy information of an insurance contract.
其中,一份保单的保单信息一般包括保险公司的机构代码、被保证人名称、被保证人证件类型、被保证人证件号码、保单编号、保险合同编号、保险业务种类、保险方式、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式、约定再担保补偿比例、费率、年化费率、保险合同的有效状态、代偿责任解除日期、在保余额和余额变化日期等,这些保单信息是保险合同涉及的重要信息,在保险承保过程中不可或缺。Among them, the policy information of a policy generally includes the organization code of the insurance company, the name of the guarantor, the type of the guarantor's certificate, the guarantor's ID number, the policy number, the insurance contract number, the type of insurance business, the insurance method, the insurance amount, and the insurance start. Date, insurance expiration date, deposit margin ratio, counter-guarantee method, agreed re-guarantee compensation ratio, rate, annualized rate, effective status of insurance contract, date of cancellation of compensation liability, balance of in-service balance and date of balance change, etc. These policy information is important information involved in the insurance contract and is indispensable in the insurance underwriting process.
例如,保单信息先保存在一个excel表格里,保险系统利用对接接口将从excel表格中的保单信息提取出来,并将保单信息保存为一份CSV格式的文件,当操作人员需要产生该保单对应的征信报文时,通过一个页面窗口将CSV格式的文件导入能生成征信报文的设备,设备便能获取保险合同的保单信息。For example, the policy information is first stored in an excel form. The insurance system uses the docking interface to extract the policy information from the excel form, and saves the policy information as a CSV file. When the operator needs to generate the corresponding policy, When the message is collected, the device in the CSV format can be imported into the device capable of generating the credit information through a page window, and the device can obtain the policy information of the insurance contract.
S102,根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集。S102: Process the policy information according to a preset processing rule of the policy information, to obtain a string cluster corresponding to the policy information.
预设处理规则指的是结合保单信息和征信报文的字符串格式要求对保单信息进行处理。根据保单信息的预设处理规则对保单信息进行处理目的是使最终得到的字符串群集中包含的保单信息的格式能够符合征信报文的格式要求。The preset processing rule refers to processing the policy information in combination with the policy format and the string format of the credit information. The purpose of processing the policy information according to the preset processing rule of the policy information is to make the format of the policy information contained in the finally obtained string cluster conform to the format requirement of the credit information.
其中,所述字符串群集包括第一字符串、第三字符串、第四字符串、第五字符串、第六字符串、第七字符串和第八字符串。第一字符串和第三字符串能被识别出保险公司的机构代码,第四字符串能被识别出被保证人名称,第五字符串能被识别出被保证人证件类型和被保证人证件号码,第六字符串能被识别出保险业务种类、保险方式、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式、约定再担保补偿比例、费率以及年化费率等,第七字符串能被识别出保险合同的有效状态、代偿责任解除日期、在保余额和余额变化日期等,第八字符串能被识别出该保单信息中包含多多少数量的保单对应的信息。除上述保单信息形成的各个字符串外,其他保单信息其本身作为字符串与第一字符串、第三字符串、第四字符串、第五字符串、第六字符串、第七字符串以及第八字符串形成字符串群集。The string cluster includes a first string, a third string, a fourth string, a fifth string, a sixth string, a seventh string, and an eighth string. The first character string and the third character string can be identified by the insurance company's institution code, the fourth character string can be identified by the guarantor name, and the fifth character string can be identified by the guarantor's document type and the guarantor's document number, The six-character string can be identified as the type of insurance business, insurance method, insurance amount, insurance start date, insurance expiration date, deposit margin ratio, counter-guarantee method, agreed re-guarantee compensation ratio, rate and annualized rate, etc. The seventh character string can be identified as the valid status of the insurance contract, the release responsibility release date, the insured balance and the balance change date, etc., and the eighth character string can be identified as the number of policies corresponding to the policy information. information. In addition to the respective character strings formed by the above policy information, the other policy information itself as a character string and the first character string, the third character string, the fourth character string, the fifth character string, the sixth character string, the seventh character string, and The eighth string forms a cluster of strings.
S103,分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文。S103: Process the string cluster according to a preset format requirement of each segment of the credit information packet, generate a corresponding credit report segment body, and combine all the credit information segment segments to form a credit information packet.
预设格式要求包括段体内容对应的字符串和字符串的排列方式。The preset format requirements include the arrangement of the string and the string corresponding to the segment content.
其中,所述征信报文段体包括报文头、基础段、保险合同段、实际代偿责任信息段和报文尾。The credit message segment body includes a message header, a base segment, an insurance contract segment, an actual compensation responsibility information segment, and a message tail.
进一步地,如图2所示,所述步骤S102包括子步骤S1021a-S1022a。Further, as shown in FIG. 2, the step S102 includes sub-steps S1021a-S1022a.
S1021a,获取报文头标识号和报文格式版本号。S1021a: Obtain a packet header identification number and a packet format version number.
S1022a,将所述报文头标识号、报文格式版本号和保险公司的机构代码组合形成所述第一字符串。S1022a, combining the packet header identification number, the message format version number, and the insurance company's organization code to form the first character string.
报文头中需要包含的保单信息为保险公司的机构代码这一项,在加工处理保险公司的机构代码的过程中,需要根据报文头所需的要求处理该项保单信息,最后得到被识别出该项保单信息的第一字符串,该第一字符串由所述报文头标识号、报文格式版本号和机构代码按顺序结合而成。The policy information to be included in the header is the insurance company's organization code. In the process of processing the insurance company's organization code, the policy information needs to be processed according to the requirements of the message header, and finally it is recognized. The first character string of the policy information is formed by combining the message header identification number, the message format version number, and the organization code in sequence.
其中,报文头标识号为字母,字长为1位,例如A;报文格式版本号的字长为3位,本申请实施例中默认为1.0。The identifier of the packet header is a letter, and the length of the packet is 1 digit, for example, A; the length of the packet format version is 3 digits, and the default value is 1.0 in the embodiment of the present application.
在第一字符串中,机构代码的字长为预设位数,若原保单信息中机构代码的位数不够,则在机构代码后直接增加四个空格即可,全文中描述到的机构代码的位数均为14,机构代码实际位数不够的在后面增加空格至14位长度。具体地,在本申请实施例中,为符合人民银行征信系统的格式要求,预设位数为14位。In the first string, the word length of the organization code is the preset number of bits. If the number of bits of the organization code in the original policy information is not enough, then four spaces are added directly after the organization code, and the organization code described in the full text is The number of bits is 14, and the actual number of bits in the organization code is not enough to add spaces to the length of 14 bits. Specifically, in the embodiment of the present application, in order to comply with the format requirements of the People's Bank of China credit information system, the preset number of bits is 14 bits.
进一步地,如图3所示,所述步骤S103包括子步骤S1031a-S1034a,该子步骤用于生成报文头。Further, as shown in FIG. 3, the step S103 includes sub-steps S1031a-S1034a for generating a message header.
S1031a,获取所需生成报文的报文类型,获取报文类型对应的代码。S1031a obtains the packet type of the packet to be generated, and obtains the code corresponding to the packet type.
报文类型包保险业务信息正常报文、保险业务信息标识变更报文和保险业务信息删除报文,保险业务信息正常报文对应的代码为81,保险业务信息标识变更报文对应的代码为82,保险业务信息删除报文对应的代码为83。The packet type includes the insurance service information normal message, the insurance service information identification change message, and the insurance service information deletion message. The insurance service information normal message corresponds to the code 81, and the insurance service information identification change message corresponds to the code 82. The code corresponding to the insurance service information deletion message is 83.
一般用户会根据保单提前在系统内部设置好当前要生成的针对该保单的报文类型,在本申请实施例中,保单一般为非修改非变更的保单,因此,报文类型对应为保险业务信息正常报文。In the embodiment of the present application, the policy is generally a non-modified non-changing policy, and the message type corresponds to the insurance service information. Normal message.
S1032a,获取当前时间作为报文生成时间。S1032a, obtains the current time as the packet generation time.
其中,报文生成时间的字长为14位,包括报文生成日期和报文生成具体时间,报文生成日期为年月日信息,报文生成具体时间为时分秒信息,例如YYYYMMDDHHMMSS,YYYY代表年份,MM代表月份,DD代表具体某一日,HH代表几时,MM代表几分,SS代表几秒。The length of the packet generation time is 14 bits, including the packet generation date and the specific time when the packet is generated. The packet generation date is the year, month, and day information. The specific time of the packet generation is the hour, minute, and second information, such as YYYYMMDDHHMMSS and YYYY. Year, MM stands for month, DD stands for specific day, HH stands for a few hours, MM stands for a few minutes, and SS stands for a few seconds.
S1033a,将所述报文生成时间与所述报文类型对应的代码组合形成第二字符串。S1033a: Combine the code generation time with a code corresponding to the message type to form a second character string.
S1034a,将所述第一字符串和第二字符串按顺序排列形成所述报文头。S1034a: The first character string and the second character string are sequentially arranged to form the message header.
报文头主要包括第一字符串和第二字符串,体现保险公司的机构代码。The header of the message mainly includes the first character string and the second character string, which reflect the organization code of the insurance company.
进一步地,如图4所示,所述步骤S102包括子步骤S1021b-S1022b。Further, as shown in FIG. 4, the step S102 includes sub-steps S1021b-S1022b.
S1021b,获取基础段标识号、所需生成报文的报文编号以及能标识业务信息记录类别的代码,根据被保证人名称获取被保证人的类型,获取所述被保证人的类型对应的代码以及所述被保证人证件类型对应的代码。S1021b: Obtain a base segment identification number, a message number of a required message, and a code that can identify a service information record category, obtain a type of the guarantor according to the guarantor name, acquire a code corresponding to the type of the guarantor, and the code The code corresponding to the type of the certificate holder.
其中,所述业务信息记录类别包括保险业务信息记录,对应的代码为61,基础段标识号的字长为1,用字母表示,例如B,报文编号的字长为4,被保证人的类型包括组织机构和自然人,分别对应的代码为1和2,保证人名称的字长为80位,位数不够的在名称后面增加空格至达到80位,0-身份证;The service information record category includes an insurance service information record, the corresponding code is 61, the base segment identification number has a word length of 1, and is represented by a letter, for example, B, the message number has a word length of 4, and the type of the guarantor is Including organizations and natural persons, the corresponding codes are 1 and 2, the guarantor's name is 80 characters long, and the number of digits is not enough to add spaces after the name to 80, 0-ID;
被保证人证件类型包括户口簿、护照、军官证、士兵证、港澳居民来往内地通行证、台湾同胞来往内地通行证、临时身份证、外国人居留证、警官证、香港身份证、澳门身份证、台湾身份证、其他证件、组织机构代码证、贷款卡、机构信用代码等,分别对应的代码为1、2、3、4、5、6、7、8、9、A、B、C、X、a、c和d,当被保证人为企业或其他组织时,被保险人证件类型首选c,其次可选择d和a。The types of documents of the guarantor include residence book, passport, military officer's card, soldier's card, Hong Kong and Macao residents' travel to and from the Mainland, Taiwan compatriots' transit to the Mainland, temporary ID card, foreigner's residence permit, police officer's card, Hong Kong identity card, Macao identity card, Taiwan identity Certificates, other documents, organization code certificates, loan cards, agency credit codes, etc., corresponding codes are 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, X, a , c and d, when the sponsor is a business or other organization, the insured's document type is preferred c, followed by d and a.
在具体实施过程中,要求被保险人证件号码的字长为18位,原保单信息中保险人证件号码的实际字长不足18位的在最后面预留空格补足18位。In the specific implementation process, the insured's ID number is required to be 18 digits. In the original policy information, the actual word length of the insurer's ID number is less than 18, and the last reserved space is filled with 18 digits.
S1022b,将所述报文编号、所述能标识业务信息记录类别的代码、所述基础段标识号以及保险公司的机构代码按顺序组合形成所述第三字符串,将所述被保证人的类型对应的代码与所述被保证人名称组合形成所述第四字符串,将所述被保证人证件类型对应的代码与所述被保证人证件号码组合形成所述第五字符串。S1022b, the message number, the code that can identify the service information record category, the base segment identification number, and the insurance company's organization code are sequentially combined to form the third character string, and the type of the guaranteed person is The corresponding code is combined with the sponsored name to form the fourth character string, and the code corresponding to the sponsored document type is combined with the sponsored document number to form the fifth character string.
进一步地,所述步骤S103还包括子步骤S1031b,该子步骤用于生成基础段。Further, the step S103 further includes a sub-step S1031b for generating a base segment.
S1031b,将所述第三字符串、保单编号、保险合同编号、第四字符串、第五字符串以及报文生成日期按顺序排列形成所述基础段。S1031b. The third character string, the policy number, the insurance contract number, the fourth character string, the fifth character string, and the message generation date are sequentially arranged to form the basic segment.
具体地,保单编号的字长为60位,保险合同编号的字长为60位。Specifically, the word number of the policy number is 60 digits, and the word length of the insurance contract number is 60 digits.
因此,基础段包括了被保证人名称、被保证人证件类型、被保证人证件号码、保单编号和保险合同编号等基本保单信息。Therefore, the basic paragraph includes basic policy information such as the name of the guarantor, the type of guarantor's certificate, the guarantor's ID number, the policy number, and the insurance contract number.
进一步地,为符合人民银行征信系统的格式要求,报文头与基础段之间预留30位空格长度。Further, in order to comply with the format requirements of the People's Bank of China credit information system, a space length of 30 spaces is reserved between the message header and the base segment.
进一步地,如图5所示,步骤S102还包括子步骤S1021c-S1022c。Further, as shown in FIG. 5, step S102 further includes sub-steps S1021c-S1022c.
S1021c,获取保险业务种类对应的代码、保险方式对应的代码和反担保方式对应的代码,以及获取保险合同段标识号。S1021c obtains a code corresponding to the type of the insurance service, a code corresponding to the insurance method, a code corresponding to the counter-guarantee method, and an identification number of the insurance contract segment.
在本申请实施例中,保险业务种类为个人消费信用保险类型,对应的代码为31,保险方式包括保证和信用两种方式,分别对应的代码为1和2,反担保方式包括自然人信用担保、第三方企业信用担保、动产质押担保、存单质押担保、知识产权质押担保、应收账款质押担保、其他质押担保、房地产抵押担保、其他抵押担保、多种形式组合担保和无反担保方式,分别对应的代码为0,1,2,3,4,5,6,7,8,9和x,其中,多种形式组合担保是指除无反担保方式以外的两种或两种以上反担保方式的组合。In the embodiment of the present application, the insurance business type is a personal consumption credit insurance type, and the corresponding code is 31, and the insurance method includes two methods of guarantee and credit, and the corresponding codes are 1 and 2 respectively, and the counter guarantee method includes a natural person credit guarantee, Third-party enterprise credit guarantee, movable property pledge guarantee, deposit certificate pledge guarantee, intellectual property pledge guarantee, accounts receivable pledge guarantee, other pledge guarantee, real estate mortgage guarantee, other mortgage guarantee, multiple forms combination guarantee and non-reverse guarantee method, respectively The corresponding codes are 0,1,2,3,4,5,6,7,8,9 and x, wherein the multiple forms combination guarantee refers to two or more kinds of counter guarantees other than the no-guarantee method. a combination of ways.
在具体的实施过程,保险业务种类固定为个人消费信用保险类型,反担保方式选择为自然人信用担保。In the specific implementation process, the type of insurance business is fixed to the type of personal consumption credit insurance, and the counter-guarantee method is selected as the natural person credit guarantee.
保险合同段标识号为字母,字长为1,例如D。The insurance contract segment identification number is a letter with a word length of 1, such as D.
S1022c,将所述保险合同段标识号、保险业务种类对应的代码、保险方式对应的代码、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式对应的代码、约定再担保补偿比例、费率以及年化费率按顺序组合形成所述第六字符串。S1022c, the insurance contract segment identification number, the code corresponding to the insurance business type, the code corresponding to the insurance method, the insurance amount, the insurance start date, the insurance expiration date, the deposit margin ratio, the code corresponding to the counter-guarantee method, and the agreement The re-guarantee compensation ratio, the rate, and the annualized rate are sequentially combined to form the sixth character string.
第六字符串中,要求保险金额的字长为20位,如果原保单信息中保险金额的字长不足20位,在金额的数字添加0补足字长,保险起始日期和保险到期日期均占6位字长,包括年月日信息,存出保证金比例占存3位字长,约定再担保补偿比例占3位字长,费率以及年化费率均占3位字长。In the sixth string, the word length of the insurance amount is 20 digits. If the word size of the insurance amount in the original policy information is less than 20 digits, add 0 to the word length in the amount of the amount, the insurance start date and the insurance expiration date. It takes 6 characters, including year, month and day information. The deposit margin ratio accounts for 3 digits. The agreed re-guarantee compensation ratio accounts for 3 digits, and the rate and annualized rate account for 3 digits.
第六字符串即为所述保险合同段,为符合人民银行征信系统的格式要求,所述保险合同段与基础段之间预留60位空格。The sixth string is the insurance contract segment. In order to comply with the format requirements of the People's Bank of China Credit Information System, 60 spaces are reserved between the insurance contract segment and the base segment.
进一步地,如图6所示,步骤S102还包括子步骤S1021d-S1022d。Further, as shown in FIG. 6, step S102 further includes sub-steps S1021d-S1022d.
S1021d,获取实际代偿责任信息段标识号、保险合同有效状态对应的代码。S1021d, obtaining the code corresponding to the actual compensation responsibility information segment identification number and the insurance contract effective state.
实际代偿责任信息段标识号为字母,字长为1,例如H,保险合同有效状态分为有效和无效,对应的代码为1和2。The actual compensation liability information segment identification number is a letter, the word length is 1, for example, H, the insurance contract valid state is divided into valid and invalid, and the corresponding codes are 1 and 2.
S1022d,将所述实际代偿责任信息段标识号、保险合同有效状态对应的代码、代偿责任解除日期、在保余额、余额变化日期按顺序组合形成所述第七字符串。S1022d: The seventh string is formed by sequentially combining the actual compensation responsibility information segment identification number, the code corresponding to the insurance contract effective state, the compensation responsibility release date, the insured balance, and the balance change date.
在第七字符串,要求代偿责任解除日期和余额变化日期均占6位字长,包括年月日信息,保余额的字长要求为20位,实际字长不够的在在保余额的数字之前增加0补足字长。In the seventh string, the date of request for the release of the responsibility and the date of the change of the balance account for 6 characters, including the date of the year, the date of the balance, the length of the word for the balance is 20, and the actual length of the word is not enough. Add 0 to make up the word length before.
第七字符串即为实际代偿责任信息段,实际代偿责任信息段与保险合同段之间预留60位空格。The seventh character string is the actual compensation responsibility information segment, and 60 spaces are reserved between the actual compensation responsibility information segment and the insurance contract segment.
进一步地,如图7所示,步骤S102包括子步骤S1021e-S1022e:Further, as shown in FIG. 7, step S102 includes sub-steps S1021e-S1022e:
S1021e,获取所述保单信息中所包含的保单数量以及报文尾标识号,所述保单数量的字长为预设位数。S1021e: Obtain a policy quantity and a message tail identification number included in the policy information, where the word length of the policy number is a preset number of bits.
S1022e,将所述报文尾标识号与保单数量组合形成所述第八字符串。S1022e: Combine the message tail identification number with the policy number to form the eighth character string.
报文尾标识号为字母,字长为1,例如Z。The identifier of the end of the message is a letter with a length of 1, such as Z.
步骤S103包括:将所述第八字符串作为所述报文尾。例如,预设位数为10位,保单数量为26,则报文尾为Z0000000026。Step S103 includes: using the eighth character string as the end of the message. For example, if the preset number of digits is 10 digits and the number of policies is 26, the end of the message is Z0000000026.
基础段、保险合同段和实际代偿责任信息段依次排列作为该征信报文的报文体,报文头、报文体以及报文尾形成了整体的征信报文。The basic segment, the insurance contract segment and the actual compensation liability information segment are arranged in sequence as the message body of the credit information message, and the packet header, the message body and the message tail form an overall credit information message.
特别地,如果保单数量大于或等于二,则每份保单对应的基础段、保险合同段和实际代偿责任信息段作为一个整体依次排列形成报文体。In particular, if the number of policies is greater than or equal to two, the base segment, the insurance contract segment, and the actual compensation liability information segment corresponding to each policy are sequentially arranged as a whole to form a message body.
需要说明的是,步骤S102中分别对每项保单信息的处理不区分具体的先后顺序,对不同的保单信息用不同的子步骤进行说明只是为了更清楚地解释对每项保单信息的处理过程。It should be noted that the processing of each policy information in step S102 does not distinguish the specific sequence, and the different policy information is described in different sub-steps only to explain the processing procedure of each policy information more clearly.
本申请实施例提供的生成征信报文的方法,操作人员只需要将保单信息上传设备,设备会自动生成最终符合要求的文件,降低操作成本,操作人员无需手动将保单信息来拼接成征信报文,降低出错的概率。In the method for generating a credit information provided by the embodiment of the present application, the operator only needs to upload the policy information to the device, and the device automatically generates a file that finally meets the requirements, thereby reducing the operation cost, and the operator does not need to manually splicing the policy information into the credit information. The message reduces the probability of error.
图8是本申请另一实施例提供的一种生成征信报文的方法的流程示意图,该方法包括步骤S201-S205。FIG. 8 is a schematic flowchart of a method for generating a credit information packet according to another embodiment of the present application, where the method includes steps S201-S205.
S201,获取用户提供的序列号。S201. Obtain a serial number provided by the user.
用户在页面窗口导入包含保单信息的CSV格式的文件的同时输入序列号,该序列号用来对征信报文进行命名。The user enters a serial number in the CSV format file containing the policy information in the page window, and the serial number is used to name the credit information message.
S202,获取保险合同的保单信息。S202. Obtain policy information of the insurance contract.
S203,根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集。S203. Process the policy information according to a preset processing rule of the policy information, to obtain a string cluster corresponding to the policy information.
S204,分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文。S204: Process the string cluster according to a preset format requirement of each segment of the credit information packet, generate a corresponding credit report segment body, and combine all the credit information segment segments to form a credit information packet.
步骤S202-S203与上述实施例的步骤S101-S103S完全一致,具体过程请参考上述实施例。The steps S202-S203 are completely consistent with the steps S101-S103S of the foregoing embodiment. For the specific process, refer to the foregoing embodiment.
S205,根据所述序列号为所述征信报文生成文件名,并输出所述征信报文。S205. Generate a file name according to the serial number as the credit information packet, and output the credit information packet.
为符合人民银行征信系统的格式要求,设置文件名的长度为26位,第一位代表征信系统类型,1代表个人征信系统,2代表企业征信系统,第2-3位代表机构类型,在本申请实施例主要是向人民银行征信系统发送数据,固定设置为数据报送机构,代码为10,第3-17位为保险公司的机构代码,第18-19位指示报文种类,16代表保险业务信息修改报文,15代表保险业务信息正常报文,14代表保险业务信息删除报文,本申请实施例生成的征信报文为保险业务信息正常报文,第20位指示批文数据类型,1代表获取数据正常,0表示获取数据异常,第21-24位为用户提供的序列号,用户可输入的序列号为0000-9999,但同一天内输入的序列号不能重复,第25位为反馈表示,固定为0,代表向人民银行征信系统上报报文,第26位固定为0。In order to comply with the format requirements of the People's Bank of China Credit Information System, the length of the file name is set to 26, the first representative of the credit information system type, 1 the personal credit information system, 2 the corporate credit information system, and the 2-3th representative office. Type, in the embodiment of the present application is mainly to send data to the People's Bank Credit Information System, fixedly set to the data reporting organization, the code is 10, the 3-17th is the insurance company's organization code, the 18th-19th indicator message The type, 16 represents the insurance service information modification message, 15 represents the insurance service information normal message, 14 represents the insurance service information deletion message, and the credit information message generated by the embodiment of the present application is the insurance business information normal message, the 20th place Indicates the batch data type, 1 means that the data is normal, 0 means that the data is abnormal, and the 21st to 24th is the serial number provided by the user. The serial number that the user can input is 0000-9999, but the serial number entered in the same day cannot be repeated. The 25th position is the feedback, and the fixed value is 0, which means that the message is reported to the People's Bank of China, and the 26th position is fixed at 0.
在征信报文形成之后,根据具体情况,对应获取所需文件名的每一位数字,产生具体的文件名为征信报文命名,最后输出征信报文,该征信报文为txt文件,该征信报文最终再由用户根据实际需求上传给人民银行征信系统。After the formation of the credit information message, according to the specific situation, corresponding to each digit of the required file name, a specific file name is named, and the credit information message is output, and the credit information message is txt. The document, the credit report message is finally uploaded to the People's Bank Credit Information System by the user according to actual needs.
本申请实施例提供的生成征信报文的方法,操作人员只需要将保单信息和命名的序列号上传设备,设备会自动生成符合要求的文件并将文件名按照格式要求进行征信报文进行命名,降低操作成本。In the method for generating a credit information provided by the embodiment of the present application, the operator only needs to upload the policy information and the named serial number to the device, and the device automatically generates a file that meets the requirements and performs the credit information according to the format requirement. Naming, reducing operating costs.
图9为本申请实施例提供的一种生成征信报文的装置的示意性框图。该装置包括获取单元101、处理单元102、生成单元103、命名单元104和输出单元105。FIG. 9 is a schematic block diagram of an apparatus for generating a credit information according to an embodiment of the present application. The apparatus includes an acquisition unit 101, a processing unit 102, a generation unit 103, a naming unit 104, and an output unit 105.
所述获取单元101用于获取用户提供的序列号和保险合同的保单信息。The obtaining unit 101 is configured to acquire the serial number provided by the user and the policy information of the insurance contract.
一份保险保单的保单信息包括保险公司的机构代码、被保证人名称、被保证人证件类型、被保证人证件号码、保单编号、保险合同编号、保险业务种类、保险方式、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式、约定再担保补偿比例、费率、年化费率、保险合同的有效状态、代偿责任解除日期、在保余额和余额变化日期等,这些保单信息是保险合同涉及的重要信息,在保险承保过程中不可或缺。The policy information of an insurance policy includes the insurance company's organization code, the name of the guarantor, the type of guarantor's certificate, the guarantor's ID number, the policy number, the insurance contract number, the type of insurance business, the insurance method, the insurance amount, and the insurance start date. Insurance expiration date, deposit deposit ratio, counter-guarantee method, agreed re-guarantee compensation ratio, rate, annualized rate, effective status of insurance contract, date of repayment of liability, balance of in-service balance and date of balance change, etc. Policy information is important information involved in an insurance contract and is indispensable in the insurance underwriting process.
在本申请实施例中,保单信息首先保存在一个excel表格里,保险系统利用对接接口将从excel表格中的保单信息提取出来,并将保单信息保存为一份CSV格式的文件,当操作人员需要产生该保单对应的征信报文时,通过一个页面窗口将CSV格式的文件和序列号导入能生成征信报文的设备,该设备便能获取保险合同的保单信息和该序列号。In the embodiment of the present application, the policy information is first stored in an excel form, and the insurance system uses the docking interface to extract the policy information from the excel form, and saves the policy information as a CSV format file when the operator needs When the credit information corresponding to the policy is generated, the file and the serial number in the CSV format are imported into the device capable of generating the credit information through a page window, and the device can obtain the policy information of the insurance contract and the serial number.
所述处理单元102用于根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集。The processing unit 102 is configured to process the policy information according to a preset processing rule of the policy information, to obtain a cluster of strings corresponding to the policy information.
其中,所述字符串群集包括第一字符串、第三字符串、第四字符串、第五字符串、第六字符串、第七字符串和第八字符串。第一字符串和第三字符串能被识别出保险公司的机构代码,第四字符串能被识别出被保证人名称,第五字符串能被识别出被保证人证件类型和被保证人证件号码,第六字符串能被识别出保险业务种类、保险方式、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式、约定再担保补偿比例、费率以及年化费率等,第七字符串能被识别出保险合同的有效状态、代偿责任解除日期、在保余额和余额变化日期等,第八字符串能被识别出该保单信息中包含多多少数量的保单对应的信息。The string cluster includes a first string, a third string, a fourth string, a fifth string, a sixth string, a seventh string, and an eighth string. The first character string and the third character string can be identified by the insurance company's institution code, the fourth character string can be identified by the guarantor name, and the fifth character string can be identified by the guarantor's document type and the guarantor's document number, The six-character string can be identified as the type of insurance business, insurance method, insurance amount, insurance start date, insurance expiration date, deposit margin ratio, counter-guarantee method, agreed re-guarantee compensation ratio, rate and annualized rate, etc. The seventh character string can be identified as the valid status of the insurance contract, the release responsibility release date, the insured balance and the balance change date, etc., and the eighth character string can be identified as the number of policies corresponding to the policy information. information.
所述生成单元103用于分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文。The generating unit 103 is configured to process the cluster of the character string according to the preset format requirement of each segment of the credit information packet, generate a corresponding credit report segment body, and combine all the credit information segment segments to form a sign. Letter message.
所述命名单元104用于根据所述序列号为所述征信报文生成文件名。为符合人民银行征信系统的格式要求,设置文件名的长度为26位,第一位代表征信系统类型,1代表个人征信系统,2代表企业征信系统,第2-3位代表机构类型,在本申请实施例主要是向人民银行征信系统发送数据,固定设置为数据报送机构,代码为10,第3-17位为保险公司的机构代码,第18-19位指示报文种类,16代表保险业务信息修改报文,15代表保险业务信息正常报文,14代表保险业务信息删除报文,本申请实施例生成的征信报文为保险业务信息正常报文,第20位指示批文数据类型,1代表获取数据正常,0表示获取数据异常,第21-24位为用户提供的序列号,用户可输入的序列号为0000-9999,但同一天内输入的序列号不能重复,第25位为反馈表示,固定为0,代表向人民银行征信系统上报报文,第26位固定为0。The naming unit 104 is configured to generate a file name according to the serial number as the credit information message. In order to comply with the format requirements of the People's Bank of China Credit Information System, the length of the file name is set to 26, the first representative of the credit information system type, 1 the personal credit information system, 2 the corporate credit information system, and the 2-3th representative office. Type, in the embodiment of the present application is mainly to send data to the People's Bank Credit Information System, fixedly set to the data reporting organization, the code is 10, the 3-17th is the insurance company's organization code, the 18th-19th indicator message The type, 16 represents the insurance service information modification message, 15 represents the insurance service information normal message, 14 represents the insurance service information deletion message, and the credit information message generated by the embodiment of the present application is the insurance business information normal message, the 20th place Indicates the batch data type, 1 means that the data is normal, 0 means that the data is abnormal, and the 21st to 24th is the serial number provided by the user. The serial number that the user can input is 0000-9999, but the serial number entered in the same day cannot be repeated. The 25th position is the feedback, and the fixed value is 0, which means that the message is reported to the People's Bank of China, and the 26th position is fixed at 0.
所述输出单元105用于输出所述征信报文。The output unit 105 is configured to output the credit information message.
为了得到符合格式要求的征信报文,需要先对保单信息进行处理,在本申请实施例中,如图10所示,所述处理单元102包括:In order to obtain the credit information packet that meets the format requirements, the policy information needs to be processed first. In the embodiment of the present application, as shown in FIG. 10, the processing unit 102 includes:
第一获取子单元1021a,用于获取报文头标识号和报文格式版本号。The first obtaining sub-unit 1021a is configured to obtain a packet header identification number and a packet format version number.
第一形成子单元1022a,用于将所述报文头标识号、报文格式版本号和保险公司的机构代码组合形成第一字符串。The first forming subunit 1022a is configured to combine the packet header identification number, the message format version number, and the insurance company's organization code to form a first character string.
报文头中需要包含的保单信息为保险公司的机构代码这一项,在加工处理保险公司的机构代码的过程中,需要根据报文头所需的要求处理该项保单信息,最后得到被识别出该项保单信息的第一字符串,该第一字符串由所述报文头标识号、报文格式版本号和机构代码按顺序结合而成。The policy information to be included in the header is the insurance company's organization code. In the process of processing the insurance company's organization code, the policy information needs to be processed according to the requirements of the message header, and finally it is recognized. The first character string of the policy information is formed by combining the message header identification number, the message format version number, and the organization code in sequence.
如图11所示,所述生成单元103包括:As shown in FIG. 11, the generating unit 103 includes:
第二获取子单元1031a,用于获取所需生成报文的报文类型,获取报文类型对应的代码,获取当前时间作为报文生成时间。报文类型包保险业务信息正常报文、保险业务信息标识变更报文和保险业务信息删除报文,保险业务信息正常报文对应的代码为81,保险业务信息标识变更报文对应的代码为82,保险业务信息删除报文对应的代码为83。The second obtaining sub-unit 1031a is configured to obtain a packet type of the packet to be generated, obtain a code corresponding to the packet type, and obtain a current time as the packet generation time. The packet type includes the insurance service information normal message, the insurance service information identification change message, and the insurance service information deletion message. The insurance service information normal message corresponds to the code 81, and the insurance service information identification change message corresponds to the code 82. The code corresponding to the insurance service information deletion message is 83.
第二形成子单元1032a,用于将所述报文生成时间与所述报文类型对应的代码组合形成第二字符串。其中,其中,报文生成时间的字长为14位,包括报文生成日期和报文生成具体时间,报文生成日期为年月日信息,报文生成具体时间为时分秒信息。The second forming subunit 1032a is configured to combine the code generation time and the code corresponding to the message type to form a second character string. The packet generation time is 14 bits, including the packet generation date and the packet generation time. The packet generation date is the year, month, and day information, and the packet generation time is the hour, minute, and second information.
第三形成子单元1033a,用于将所述第一字符串和第二字符串按顺序排列形成所述报文头。报文头主要包括第一字符串和第二字符串,体现保险公司的机构代码。The third forming subunit 1033a is configured to sequentially arrange the first character string and the second character string to form the message header. The header of the message mainly includes the first character string and the second character string, which reflect the organization code of the insurance company.
以上第二获取子单元1031a、第二形成子单元1032a和第三形成子单元1033a共同用于生成征信报文的报文头。The second obtaining sub-unit 1031a, the second forming sub-unit 1032a, and the third forming sub-unit 1033a are used to generate a packet header of the credit information.
在本申请实施例中,如图12所示,所述处理单元102还包括:In the embodiment of the present application, as shown in FIG. 12, the processing unit 102 further includes:
第三获取子单元1021b,用于获取基础段标识号、所需生成报文的报文编号以及能标识业务信息记录类别的代码,根据被保证人名称获取被保证人的类型,获取所述被保证人的类型对应的代码以及所述被保证人证件类型对应的代码。其中,所述业务信息记录类别包括保险业务信息记录,对应的代码为61,基础段标识号的字长为1,用字母表示,例如B,报文编号的字长为4,被保证人的类型包括组织机构和自然人,分别对应的代码为1和2,保证人名称的字长为80位,位数不够的在名称后面增加空格至达到80位,0-身份证;被保证人证件类型包括户口簿、护照、军官证、士兵证、港澳居民来往内地通行证、台湾同胞来往内地通行证、临时身份证、外国人居留证、警官证、香港身份证、澳门身份证、台湾身份证、其他证件、组织机构代码证、贷款卡、机构信用代码等,分别对应的代码为1、2、3、4、5、6、7、8、9、A、B、C、X、a、c和d,当被保证人为企业或其他组织时,被保险人证件类型首选c,其次可选择d和a。The third obtaining sub-unit 1021b is configured to obtain a base segment identification number, a packet number of the required packet, and a code that can identify the service information record category, obtain the type of the guaranteed person according to the name of the sponsor, and obtain the guaranteed person. The code corresponding to the type and the code corresponding to the type of the guarantor's certificate. The service information record category includes an insurance service information record, the corresponding code is 61, the base segment identification number has a word length of 1, and is represented by a letter, for example, B, the message number has a word length of 4, and the type of the guarantor is Including organizations and natural persons, the corresponding codes are 1 and 2, the guarantor's name is 80 characters long, and the number of digits is not enough to add a space after the name to 80, 0-ID card; the guarantor's ID type includes the household registration book , Passport, Military Officer Card, Soldier Card, Hong Kong and Macao Residents' Passes to and from the Mainland, Taiwan Compatriots to and from the Mainland, Temporary Identity Card, Foreigner Residence Permit, Police Officer Card, Hong Kong Identity Card, Macao Identity Card, Taiwan Identity Card, Other Documents, Organization Code certificate, loan card, agency credit code, etc., corresponding codes are 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, X, a, c, and d, when When the guarantor is a business or other organization, the type of the insured's certificate is preferred c, followed by d and a.
在具体实施过程中,要求被保险人证件号码的字长为18位,原保单信息中保险人证件号码的实际字长不足18位的在最后面预留空格补足18位。In the specific implementation process, the insured's ID number is required to be 18 digits. In the original policy information, the actual word length of the insurer's ID number is less than 18, and the last reserved space is filled with 18 digits.
第四形成子单元1022b,用于将所述报文编号、所述能标识业务信息记录类别的代码、所述基础段标识号以及保险公司的机构代码按顺序组合形成第三字符串,将所述被保证人的类型对应的代码与所述被保证人名称组合形成第四字符串,将所述被保证人证件类型对应的代码与所述被保证人证件号码组合形成第五字符串。a fourth forming subunit 1022b, configured to sequentially combine the message number, the code that can identify the service information record category, the base segment identification number, and the insurance company's organization code to form a third character string. The code corresponding to the type of the guarantor is combined with the guarantor name to form a fourth character string, and the code corresponding to the guarantor certificate type is combined with the guarantor certificate number to form a fifth character string.
进一步的,所述生成单元103还包括第五形成子单元,第五形成子单元用于将所述第三字符串、保单编号、保险合同编号、第四字符串、第五字符串以及报文生成日期按顺序排列形成所述基础段。Further, the generating unit 103 further includes a fifth forming subunit, where the fifth forming subunit is configured to use the third character string, the policy number, the insurance contract number, the fourth character string, the fifth character string, and the message The generation date is arranged in order to form the base segment.
在本申请实施例中,保单编号的字长为60位,保险合同编号的字长为60位,因此,基础段包括了被保证人名称、被保证人证件类型、被保证人证件号码、保单编号和保险合同编号等基本保单信息。In the embodiment of the present application, the word length of the policy number is 60, and the word length of the insurance contract number is 60. Therefore, the basic section includes the name of the guarantor, the type of the guarantor's certificate, the guarantor's ID number, the policy number, and the insurance. Basic policy information such as contract number.
为符合人民银行征信系统的格式要求,报文头与基础段之间预留30位空格长度。In order to comply with the format requirements of the People's Bank of China's credit information system, a space length of 30 spaces is reserved between the message header and the base segment.
如图13所示,所述处理单元102还包括:As shown in FIG. 13, the processing unit 102 further includes:
第四获取子单元1021c,用于获取保险业务种类对应的代码、保险方式对应的代码和反担保方式对应的代码,以及获取保险合同段标识号。其中,保险业务种类为个人消费信用保险类型,对应的代码为31,保险方式包括保证和信用两种方式,分别对应的代码为1和2,反担保方式包括自然人信用担保、第三方企业信用担保、动产质押担保、存单质押担保、知识产权质押担保、应收账款质押担保、其他质押担保、房地产抵押担保、其他抵押担保、多种形式组合担保和无反担保方式,分别对应的代码为0,1,2,3,4,5,6,7,8,9和x,其中,多种形式组合担保是指除无反担保方式以外的两种或两种以上反担保方式的组合。在一些实施例中,保险业务种类固定为个人消费信用保险类型,反担保方式选择为自然人信用担保。保险合同段标识号为字母,字长为1,例如D。The fourth obtaining sub-unit 1021c is configured to obtain a code corresponding to the insurance service type, a code corresponding to the insurance mode, and a code corresponding to the counter-guarantee mode, and obtain an insurance contract segment identification number. Among them, the insurance business type is personal consumption credit insurance type, the corresponding code is 31, the insurance method includes guarantee and credit two ways, the corresponding codes are 1 and 2 respectively, and the counter-guarantee methods include natural person credit guarantee and third-party enterprise credit guarantee. , movable property pledge guarantee, deposit certificate pledge guarantee, intellectual property pledge guarantee, account receivable pledge guarantee, other pledge guarantee, real estate mortgage guarantee, other mortgage guarantee, multiple forms combination guarantee and no counter guarantee method, respectively, the corresponding code is 0 , 1, 2, 3, 4, 5, 6, 7, 8, 9 and x, wherein the combination of multiple forms of guarantee refers to a combination of two or more types of counter-guarantee methods other than the no-guarantee method. In some embodiments, the insurance business type is fixed to the personal consumption credit insurance type, and the counter guarantee method is selected as the natural person credit guarantee. The insurance contract segment identification number is a letter with a word length of 1, such as D.
第六形成子单元1022c,用于将所述保险合同段标识号、保险业务种类对应的代码、保险方式对应的代码、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式对应的代码、约定再担保补偿比例、费率以及年化费率按顺序组合形成第六字符串。其中,第六字符串中,要求保险金额的字长为20位,如果原保单信息中保险金额的字长不足20位,在金额的数字添加0补足字长,保险起始日期和保险到期日期均占6位字长,包括年月日信息,存出保证金比例占存3位字长,约定再担保补偿比例占3位字长,费率以及年化费率均占3位字长。The sixth forming subunit 1022c is configured to use the insurance contract segment identification number, the code corresponding to the insurance service type, the code corresponding to the insurance method, the insurance amount, the insurance start date, the insurance expiration date, the deposit margin ratio, and the reverse The code corresponding to the guarantee method, the agreed re-guarantee compensation ratio, the rate and the annualized rate are combined in order to form a sixth string. Among them, in the sixth string, the word length of the insurance amount is 20 digits. If the word size of the insurance amount in the original policy information is less than 20 digits, add 0 to the word length in the amount of the amount, and the insurance start date and insurance expires. The date is 6 characters long, including the year, month and day information. The deposit margin ratio accounts for 3 digits. The agreed re-guarantee compensation ratio accounts for 3 digits, and the rate and annualized rate are 3 digits.
所述生成单元103还用于将第六字符串作为所述保险合同段。为符合人民银行征信系统的格式要求,所述保险合同段与基础段之间预留60位空格。The generating unit 103 is further configured to use the sixth character string as the insurance contract segment. In order to comply with the format requirements of the People's Bank of China Credit Information System, 60 spaces are reserved between the insurance contract segment and the base segment.
如图14所示,所述处理单元102还包括:As shown in FIG. 14, the processing unit 102 further includes:
第五获取子单元1021d,用于获取实际代偿责任信息段标识号、保险合同有效状态对应的代码。其中,实际代偿责任信息段标识号为字母,字长为1,例如H,保险合同有效状态分为有效和无效,对应的代码为1和2。The fifth obtaining sub-unit 1021d is configured to obtain a code corresponding to the actual compensation responsibility information segment identification number and the insurance contract effective state. The actual compensation responsibility information segment identification number is a letter, the word length is 1, for example, H, the insurance contract valid state is divided into valid and invalid, and the corresponding codes are 1 and 2.
第七形成子单元1022d,用于将所述实际代偿责任信息段标识号、保险合同有效状态对应的代码、代偿责任解除日期、在保余额、余额变化日期按顺序组合形成的第七字符串。其中,在第七字符串,要求代偿责任解除日期和余额变化日期均占6位字长,包括年月日信息,保余额的字长要求为20位,实际字长不够的在在保余额的数字之前增加0补足字长。The seventh forming subunit 1022d is configured to combine the actual compensation responsibility information segment identification number, the code corresponding to the effective status of the insurance contract, the release responsibility release date, the balance on the balance of the insurance, and the balance change date. string. Among them, in the seventh string, the date for requesting the release of the responsibility and the date of the change of the balance account for 6 characters, including the date of the year, the date of the balance, the requirement for the length of the balance is 20, and the actual length of the word is insufficient. The number before the increase of 0 complements the word length.
所述生成单元103还用于将第七字符串作为实际代偿责任信息段。其中,实际代偿责任信息段与保险合同段之间预留60位空格。The generating unit 103 is further configured to use the seventh character string as the actual compensation responsibility information segment. Among them, 60 spaces are reserved between the actual compensation responsibility information section and the insurance contract section.
在本申请实施例中,如图15所示,所述处理单元102还包括: In the embodiment of the present application, as shown in FIG. 15, the processing unit 102 further includes:
第六获取子单元1021e,用于获取所述保单信息中所包含的保单数量以及报文尾标识号,所述保单数量的字长为预设位数。在一些实施例中,预设位数为10位,报文尾标识号为字母,字长为1,例如Z。The sixth obtaining sub-unit 1021e is configured to acquire the number of policies and the end of the message included in the policy information, where the word length of the policy number is a preset number of bits. In some embodiments, the preset number of bits is 10 bits, the message tail identification number is a letter, and the word length is 1, such as Z.
第八形成子单元1022e,用于将所述报文尾标识号与保单数量组合形成所述第八字符串。The eighth forming subunit 1022e is configured to combine the message tail identification number and the policy number to form the eighth character string.
所述生成单元103还用于:将所述第八字符串作为所述报文尾。例如,保单数量为26,则报文尾为Z0000000026。The generating unit 103 is further configured to: use the eighth character string as the message tail. For example, if the number of policies is 26, the end of the message is Z0000000026.
基础段、保险合同段和实际代偿责任信息段依次排列作为该征信报文的报文体,报文头、报文体以及报文尾形成了整体的征信报文。The basic segment, the insurance contract segment and the actual compensation liability information segment are arranged in sequence as the message body of the credit information message, and the packet header, the message body and the message tail form an overall credit information message.
特别地,如果保单数量大于或等于二,则每份保单对应的基础段、保险合同段和实际代偿责任信息段作为一个整体依次排列形成报文体。In particular, if the number of policies is greater than or equal to two, the base segment, the insurance contract segment, and the actual compensation liability information segment corresponding to each policy are sequentially arranged as a whole to form a message body.
上述生成征信报文的装置可以实现为一种计算机程序的形式,计算机程序可以在如图16所示的计算机设备上运行。The above apparatus for generating a credit message can be implemented in the form of a computer program which can be run on a computer device as shown in FIG.
图16为本申请实施例提供的一种生成征信报文的设备的示意性框图。该设备可以是终端,也可以是服务器,其中,终端可以是智能手机、平板电脑、笔记本电脑、台式电脑、个人数字助理和穿戴式设备等具有通信功能的电子设备。服务器可以是独立的服务器,也可以是多个服务器组成的服务器集群。FIG. 16 is a schematic block diagram of an apparatus for generating a credit information packet according to an embodiment of the present disclosure. The device may be a terminal or a server, wherein the terminal may be a communication-enabled electronic device such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server can be a standalone server or a server cluster consisting of multiple servers.
该设备为一种计算机设备200,包括通过系统总线201连接的处理器202、非易失性存储介质203、内存储器204和网络接口205。其中,该计算机设备200的非易失性存储介质203可存储操作系统2031和计算机程序2032,该计算机程序2032被执行时,可使得处理器202执行一种生成征信报文的方法。该计算机设备200的处理器202用于提供计算和控制能力,支撑整个计算机设备200的运行。该内存储器204为非易失性存储介质203中的计算机程序2032的运行提供环境,该计算机程序2032被处理器202执行时,可使得处理器202执行一种生成征信报文的方法。计算机设备200的网络接口205用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,图16中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。The device is a computer device 200 comprising a processor 202 connected by a system bus 201, a non-volatile storage medium 203, an internal memory 204, and a network interface 205. The non-volatile storage medium 203 of the computer device 200 can store an operating system 2031 and a computer program 2032. When the computer program 2032 is executed, the processor 202 can be caused to perform a method of generating a credit message. The processor 202 of the computer device 200 is used to provide computing and control capabilities to support the operation of the entire computer device 200. The internal memory 204 provides an environment for the operation of the computer program 2032 in the non-volatile storage medium 203, which when executed by the processor 202, may cause the processor 202 to perform a method of generating a credit message. The network interface 205 of the computer device 200 is used to perform network communications, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the structure shown in FIG. 16 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied. The specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
处理器202用于运行非易失性存储介质203中的计算机程序2032,以执行如下操作:The processor 202 is configured to run the computer program 2032 in the non-volatile storage medium 203 to perform the following operations:
获取保险合同的保单信息;根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集;分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文。Obtaining policy information of the insurance contract; processing the policy information according to the preset processing rule of the policy information, and obtaining a string cluster corresponding to the policy information; respectively, according to a preset format of each segment of the credit information packet The cluster of the string is processed to generate a corresponding packet segment, and all the segments of the packet are combined to form a packet.
处理器202还执行如下操作:The processor 202 also performs the following operations:
获取用户提供的序列号;获取保险合同的保单信息;根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集;分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文;根据所述序列号为所述征信报文生成文件名,并输出所述征信报文。Obtaining the serial number provided by the user; obtaining the policy information of the insurance contract; processing the policy information according to the preset processing rule of the policy information, and obtaining a cluster of strings corresponding to the policy information; The preset format of the segment body is required to process the string cluster, generate a corresponding credit message segment body, and combine all the credit message segment segments to form a credit information packet; according to the serial number, the credit information is The message generates a file name and outputs the credit information message.
其中,保单信息包括保险公司的机构代码、被保证人名称、被保证人证件类型、被保证人证件号码、保单编号、保险合同编号、保险业务种类、保险方式、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式、约定再担保补偿比例、费率、年化费率、保险合同的有效状态、代偿责任解除日期、在保余额和余额变化日期等,征信报文包括报文头、基础段、保险合同段、实际代偿责任信息段和报文尾。The policy information includes the organization code of the insurance company, the name of the guarantor, the type of the guarantor's certificate, the guarantor's ID number, the policy number, the insurance contract number, the type of insurance business, the insurance method, the insurance amount, the insurance start date, and the insurance expiration. Date, deposit deposit ratio, counter-guarantee method, agreed re-guarantee compensation ratio, rate, annualized rate, effective status of insurance contract, date of repayment of liability, date of insured balance and date of balance change, etc. It includes the message header, the base segment, the insurance contract segment, the actual compensation responsibility information segment and the end of the message.
处理器202还执行如下操作:The processor 202 also performs the following operations:
获取报文头标识号和报文格式版本号;将所述报文头标识号、报文格式版本号和机构代码组合形成第一字符串;获取所需生成报文的报文类型,获取报文类型获取对应的代码;在报文生成过程中获取报文生成时间;将所述报文生成时间与所述代码组合形成第二字符串;将所述第一字符串和第二字符串按顺序排列形成所述报文头。Obtaining a packet header identification number and a packet format version number; combining the packet header identification number, the packet format version number, and the organization code to form a first character string; obtaining a packet type of the required packet to be generated, and obtaining a report The text type obtains the corresponding code; the message generation time is obtained in the message generation process; the message generation time is combined with the code to form a second character string; and the first character string and the second character string are pressed The message headers are formed in a sequential order.
处理器202还执行如下操作:The processor 202 also performs the following operations:
获取基础段标识号、所需生成报文的报文编号以及能标识业务信息记录类别的代码,根据被保证人名称获取被保证人的类型,获取所述被保证人的类型对应的代码以及所述被保证人证件类型对应的代码;将所述报文编号、所述能标识业务信息记录类别的代码、所述基础段标识号以及保险公司的机构代码按顺序组合形成第三字符串,将所述被保证人的类型对应的代码与所述被保证人名称组合形成第四字符串,将所述被保证人证件类型对应的代码与所述被保证人证件号码组合形成第五字符串;将所述第三字符串、保单编号、保险合同编号、第四字符串、第五字符串以及报文生成日期按顺序排列形成所述基础段。Obtaining a base segment identification number, a message number of a required message to be generated, and a code capable of identifying a service information record category, obtaining a type of the guarantor according to the guarantor name, obtaining a code corresponding to the type of the guarantor, and the guarantor a code corresponding to the document type; combining the message number, the code capable of identifying the service information record category, the base segment identification number, and the insurance company's organization code to form a third character string, and the guarantor Combining the code corresponding to the type of the guarantor to form a fourth character string, combining the code corresponding to the guarantor certificate type with the guarantor certificate number to form a fifth character string; The policy number, the insurance contract number, the fourth character string, the fifth character string, and the message generation date are arranged in order to form the base segment.
处理器202还执行如下操作:The processor 202 also performs the following operations:
获取保险业务种类对应的代码、保险方式对应的代码和反担保方式对应的代码,以及获取保险合同段标识号;将所述获取保险合同段标识号、保险业务种类对应的代码、保险方式对应的代码、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式对应的代码、约定再担保补偿比例、费率以及年化费率按顺序组合形成第六字符串,将第六字符串作为所述保险合同段。Obtaining the code corresponding to the type of insurance business, the code corresponding to the insurance method, and the code corresponding to the counter-guarantee method, and obtaining the identification number of the insurance contract segment; and obtaining the code corresponding to the insurance contract segment identification number, the insurance service type, and the insurance method The code, the insurance amount, the insurance start date, the insurance expiration date, the deposit margin ratio, the code corresponding to the counter-guarantee method, the agreed re-guarantee compensation ratio, the rate and the annualized rate are sequentially combined to form a sixth string. The sixth character string is used as the insurance contract segment.
处理器202还执行如下操作:The processor 202 also performs the following operations:
获取实际代偿责任信息段标识号、保险合同有效状态对应的代码;将所述实际代偿责任信息段标识号、保险合同有效状态对应的代码、代偿责任解除日期、在保余额、余额变化日期按顺序组合形成的第七字符串,将第七字符串作为实际代偿责任信息段。Obtain the code corresponding to the actual compensation liability information segment identification number and the effective status of the insurance contract; the actual compensation liability information segment identification number, the code corresponding to the effective status of the insurance contract, the release date of the compensation obligation, the insured balance, and the balance change The date is a combination of the seventh character string formed in order, and the seventh character string is used as the actual compensation responsibility information segment.
处理器202还执行如下操作:The processor 202 also performs the following operations:
获取所述保单信息中所包含的保单数量以及报文尾标识号,所述保单数量的字长为预设位数;将所述报文尾标识号与保单数量组合形成所述报文尾。Obtaining the number of policies included in the policy information and the identifier number of the message end, the word length of the policy number is a preset number of bits; combining the message tail identification number with the policy number to form the message tail.
本领域技术人员可以理解,图16中示出的生成征信报文的设备的实施例并不构成对生成征信报文的设备具体构成的限定,在其他实施例中,生成征信报文的设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,生成征信报文的设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图16所示实施例一致,在此不再赘述。It can be understood by those skilled in the art that the embodiment of the device for generating a credit message shown in FIG. 16 does not constitute a limitation on the specific configuration of the device for generating the credit message. In other embodiments, the credit message is generated. The device may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements. For example, in some embodiments, the device for generating the credit message may include only the memory and the processor. In such an embodiment, the structure and function of the memory and the processor are consistent with the embodiment shown in FIG. Let me repeat.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者一个以上程序,所述一个或者一个以上程序可被一个或者一个以上的处理器执行,以实现以下步骤:The application further provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the following steps:
获取保险合同的保单信息;根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集;分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文。Obtaining policy information of the insurance contract; processing the policy information according to the preset processing rule of the policy information, and obtaining a string cluster corresponding to the policy information; respectively, according to a preset format of each segment of the credit information packet The cluster of the string is processed to generate a corresponding packet segment, and all the segments of the packet are combined to form a packet.
本实施例中,还实现以下步骤:In this embodiment, the following steps are also implemented:
获取用户提供的序列号;获取保险合同的保单信息;根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集;分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文;根据所述序列号为所述征信报文生成文件名,并输出所述征信报文。Obtaining the serial number provided by the user; obtaining the policy information of the insurance contract; processing the policy information according to the preset processing rule of the policy information, and obtaining a cluster of strings corresponding to the policy information; The preset format of the segment body is required to process the string cluster, generate a corresponding credit message segment body, and combine all the credit message segment segments to form a credit information packet; according to the serial number, the credit information is The message generates a file name and outputs the credit information message.
其中,保单信息包括保险公司的机构代码、被保证人名称、被保证人证件类型、被保证人证件号码、保单编号、保险合同编号、保险业务种类、保险方式、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式、约定再担保补偿比例、费率、年化费率、保险合同的有效状态、代偿责任解除日期、在保余额和余额变化日期等,征信报文包括报文头、基础段、保险合同段、实际代偿责任信息段和报文尾。The policy information includes the organization code of the insurance company, the name of the guarantor, the type of the guarantor's certificate, the guarantor's ID number, the policy number, the insurance contract number, the type of insurance business, the insurance method, the insurance amount, the insurance start date, and the insurance expiration. Date, deposit deposit ratio, counter-guarantee method, agreed re-guarantee compensation ratio, rate, annualized rate, effective status of insurance contract, date of repayment of liability, date of insured balance and date of balance change, etc. It includes the message header, the base segment, the insurance contract segment, the actual compensation responsibility information segment and the end of the message.
本实施例中,所述步骤包括:In this embodiment, the steps include:
获取报文头标识号和报文格式版本号;将所述报文头标识号、报文格式版本号和机构代码组合形成第一字符串;获取所需生成报文的报文类型,获取报文类型获取对应的代码;在报文生成过程中获取报文生成时间;将所述报文生成时间与所述代码组合形成第二字符串;将所述第一字符串和第二字符串按顺序排列形成所述报文头。Obtaining a packet header identification number and a packet format version number; combining the packet header identification number, the packet format version number, and the organization code to form a first character string; obtaining a packet type of the required packet to be generated, and obtaining a report The text type obtains the corresponding code; the message generation time is obtained in the message generation process; the message generation time is combined with the code to form a second character string; and the first character string and the second character string are pressed The message headers are formed in a sequential order.
本实施例中,所述步骤包括:In this embodiment, the steps include:
获取基础段标识号、所需生成报文的报文编号以及能标识业务信息记录类别的代码,根据被保证人名称获取被保证人的类型,获取所述被保证人的类型对应的代码以及所述被保证人证件类型对应的代码;将所述报文编号、所述能标识业务信息记录类别的代码、所述基础段标识号以及保险公司的机构代码按顺序组合形成第三字符串,将所述被保证人的类型对应的代码与所述被保证人名称组合形成第四字符串,将所述被保证人证件类型对应的代码与所述被保证人证件号码组合形成第五字符串;将所述第三字符串、保单编号、保险合同编号、第四字符串、第五字符串以及报文生成日期按顺序排列形成所述基础段。Obtaining a base segment identification number, a message number of a required message to be generated, and a code capable of identifying a service information record category, obtaining a type of the guarantor according to the guarantor name, obtaining a code corresponding to the type of the guarantor, and the guarantor a code corresponding to the document type; combining the message number, the code capable of identifying the service information record category, the base segment identification number, and the insurance company's organization code to form a third character string, and the guarantor Combining the code corresponding to the type of the guarantor to form a fourth character string, combining the code corresponding to the guarantor certificate type with the guarantor certificate number to form a fifth character string; The policy number, the insurance contract number, the fourth character string, the fifth character string, and the message generation date are arranged in order to form the base segment.
本实施例中,所述步骤包括:In this embodiment, the steps include:
获取保险业务种类对应的代码、保险方式对应的代码和反担保方式对应的代码,以及获取保险合同段标识号;将所述获取保险合同段标识号、保险业务种类对应的代码、保险方式对应的代码、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式对应的代码、约定再担保补偿比例、费率以及年化费率按顺序组合形成第六字符串,将第六字符串作为所述保险合同段。Obtaining the code corresponding to the type of insurance business, the code corresponding to the insurance method, and the code corresponding to the counter-guarantee method, and obtaining the identification number of the insurance contract segment; and obtaining the code corresponding to the insurance contract segment identification number, the insurance service type, and the insurance method The code, the insurance amount, the insurance start date, the insurance expiration date, the deposit margin ratio, the code corresponding to the counter-guarantee method, the agreed re-guarantee compensation ratio, the rate and the annualized rate are sequentially combined to form a sixth string. The sixth character string is used as the insurance contract segment.
本实施例中,所述步骤包括:In this embodiment, the steps include:
获取实际代偿责任信息段标识号、保险合同有效状态对应的代码;将所述实际代偿责任信息段标识号、保险合同有效状态对应的代码、代偿责任解除日期、在保余额、余额变化日期按顺序组合形成的第七字符串,将第七字符串作为实际代偿责任信息段。Obtain the code corresponding to the actual compensation liability information segment identification number and the effective status of the insurance contract; the actual compensation liability information segment identification number, the code corresponding to the effective status of the insurance contract, the release date of the compensation obligation, the insured balance, and the balance change The date is a combination of the seventh character string formed in order, and the seventh character string is used as the actual compensation responsibility information segment.
本实施例中,所述步骤包括:In this embodiment, the steps include:
获取所述保单信息中所包含的保单数量以及报文尾标识号,所述保单数量的字长为预设位数;将所述报文尾标识号与保单数量组合形成所述报文尾。Obtaining the number of policies included in the policy information and the identifier number of the message end, the word length of the policy number is a preset number of bits; combining the message tail identification number with the policy number to form the message tail.
所述计算机可读存储介质可以是前述设备的内部存储单元,例如设备的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述设备所需的其他程序和数据。The computer readable storage medium may be an internal storage unit of the aforementioned device, such as a hard disk or memory of the device. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, and a smart memory card (Smart Media Card, SMC), Secure Digital (SD) card, flash card (Flash) Card) and so on. Further, the computer readable storage medium may also include both an internal storage unit of the device and an external storage device. The computer readable storage medium is for storing the computer program and other programs and data required by the device.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的设备、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the device, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present application.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备 ( 可以是个人计算机,服务器,或者网络设备等 ) 执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括 :U 盘、移动硬盘、只读存储器 (ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be in essence or part of the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. Including several instructions to make a computer device (may be a personal computer, server, or network device, etc.) Perform all or part of the steps of the method described in various embodiments of the present application. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, and a read only memory. (ROM, Read-Only Memory), disk or optical disc, etc. Various media that can store program code.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any equivalents can be easily conceived by those skilled in the art within the technical scope disclosed in the present application. Modifications or substitutions are intended to be included within the scope of the present application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

Claims (20)

  1. 一种生成征信报文的方法,其特征在于,包括: A method for generating a credit information packet, comprising:
    获取保险合同的保单信息;Obtain policy information for the insurance contract;
    根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集;And processing the policy information according to the preset processing rule of the policy information, to obtain a string cluster corresponding to the policy information;
    分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文。 The string clusters are processed according to the preset format of each segment of the credit information packet, and the corresponding credit message segment body is generated, and all the credit information segment segments are combined to form a credit information packet.
  2. 根据权利要求1所述的方法,其特征在于,所述保单信息包括保险公司的机构代码,所述征信报文段体包括报文头,所述字符串群集包括第一字符串;The method according to claim 1, wherein the policy information comprises an organization code of an insurance company, the credit message segment body comprises a message header, and the string cluster comprises a first character string;
    所述根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集,包括:The policy information is processed according to the preset processing rule of the policy information, and the string cluster corresponding to the policy information is obtained, including:
    获取报文头标识号和报文格式版本号;Obtaining the packet header identification number and the packet format version number;
    将所述报文头标识号、报文格式版本号和保险公司的机构代码组合形成所述第一字符串;Combining the packet header identification number, the message format version number, and the insurance company's organization code to form the first character string;
    所述分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,包括:And processing the string cluster according to the preset format requirement of each segment of the packet, and generating a corresponding packet segment, including:
    获取所需生成报文的报文类型,获取报文类型对应的代码; Obtain the packet type of the packet to be generated, and obtain the code corresponding to the packet type.
    获取当前时间作为报文生成时间;Obtain the current time as the packet generation time;
    将所述报文生成时间与所述报文类型对应的代码组合形成第二字符串;Combining the message generation time with a code corresponding to the message type to form a second character string;
    将所述第一字符串和第二字符串按顺序排列形成所述报文头。The first character string and the second character string are sequentially arranged to form the message header.
  3. 根据权利要求2所述的方法,其特征在于,所述保单信息还包括被保证人名称、被保证人证件类型、被保证人证件号码、保单编号和保险合同编号,所述报文生成时间包括报文生成日期,所述征信报文段体包括基础段,所述字符串群集包括第三字符串、第四字符串和第五字符串;The method according to claim 2, wherein the policy information further includes a name of the sponsor, a type of the certificate of the sponsor, a certificate number of the sponsor, a policy number, and an insurance contract number, wherein the message generation time includes message generation. a date, the credit segment body includes a base segment, and the string cluster includes a third string, a fourth string, and a fifth string;
    所述根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集,包括:The policy information is processed according to the preset processing rule of the policy information, and the string cluster corresponding to the policy information is obtained, including:
    获取基础段标识号、所需生成报文的报文编号以及能标识业务信息记录类别的代码,所述业务信息记录类别包括保险业务信息记录,根据被保证人名称获取被保证人的类型,获取所述被保证人的类型对应的代码以及所述被保证人证件类型对应的代码;Obtaining a base segment identification number, a message number of the required message to be generated, and a code capable of identifying a service information record category, where the service information record category includes an insurance service information record, and obtaining the type of the guaranteed person according to the name of the sponsor, obtaining the a code corresponding to the type of the sponsor and a code corresponding to the type of the certificate of the sponsor;
    将所述报文编号、所述能标识业务信息记录类别的代码、所述基础段标识号以及保险公司的机构代码按顺序组合形成所述第三字符串,将所述被保证人的类型对应的代码与所述被保证人名称组合形成所述第四字符串,将所述被保证人证件类型对应的代码与所述被保证人证件号码组合形成所述第五字符串;And combining the message number, the code capable of identifying the service information record category, the base segment identification number, and the insurance company's organization code to form the third character string, and corresponding to the type of the guaranteed person. The code is combined with the sponsored name to form the fourth character string, and the code corresponding to the sponsored document type is combined with the sponsored document number to form the fifth character string;
    所述分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,包括:And processing the string cluster according to the preset format requirement of each segment of the packet, and generating a corresponding packet segment, including:
    将所述第三字符串、保单编号、保险合同编号、第四字符串、第五字符串以及报文生成日期按顺序排列形成所述基础段。The third character string, the policy number, the insurance contract number, the fourth character string, the fifth character string, and the message generation date are sequentially arranged to form the base segment.
  4. 根据权利要求1所述的方法,其特征在于,所述保单信息包括保险业务种类、保险方式、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式、约定再担保补偿比例、费率以及年化费率,所述征信报文段体包括保险合同段,所述字符串群集包括第六字符串;The method according to claim 1, wherein the policy information includes an insurance service type, an insurance method, an insurance amount, an insurance start date, an insurance expiration date, a deposit margin ratio, a counter guarantee method, and an agreement re-guarantee. a compensation ratio, a rate, and an annualized rate, wherein the credit segment includes an insurance contract segment, and the string cluster includes a sixth character string;
    所述根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集,包括:The policy information is processed according to the preset processing rule of the policy information, and the string cluster corresponding to the policy information is obtained, including:
    获取保险业务种类对应的代码、保险方式对应的代码和反担保方式对应的代码,以及获取保险合同段标识号;Obtain the code corresponding to the type of insurance business, the code corresponding to the insurance method, the code corresponding to the counter-guarantee method, and obtain the identification number of the insurance contract segment;
    将所述保险合同段标识号、保险业务种类对应的代码、保险方式对应的代码、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式对应的代码、约定再担保补偿比例、费率以及年化费率按顺序组合形成所述第六字符串;The insurance contract section identification number, the code corresponding to the insurance business type, the code corresponding to the insurance method, the insurance amount, the insurance start date, the insurance expiration date, the deposit margin ratio, the code corresponding to the counter-guarantee method, and the re-guarantee The compensation ratio, the rate, and the annualized rate are sequentially combined to form the sixth character string;
    所述分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,包括:And processing the string cluster according to the preset format requirement of each segment of the packet, and generating a corresponding packet segment, including:
    将所述第六字符串作为所述保险合同段。The sixth character string is used as the insurance contract segment.
  5. 根据权利要求1所述的方法,其特征在于,所述保单信息包括保险合同的有效状态、代偿责任解除日期、在保余额和余额变化日期,所述征信报文段体包括实际代偿责任信息段,所述字符串群集包括第七字符串;The method according to claim 1, wherein said policy information includes an effective status of the insurance contract, a date of payment of the compensation responsibility, a balance of the insured balance and a date of the balance change, and the credit information segment includes actual compensation. a string of responsibility information, the string cluster comprising a seventh string;
    所述根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集,包括:The policy information is processed according to the preset processing rule of the policy information, and the string cluster corresponding to the policy information is obtained, including:
    获取实际代偿责任信息段标识号、保险合同有效状态对应的代码;Obtaining the code corresponding to the identification number of the actual compensation responsibility information section and the effective status of the insurance contract;
    将所述实际代偿责任信息段标识号、保险合同有效状态对应的代码、代偿责任解除日期、在保余额、余额变化日期按顺序组合形成所述第七字符串;Forming, according to the actual compensation liability information segment identification number, the code corresponding to the effective status of the insurance contract, the cancellation responsibility release date, the insured balance, and the balance change date, to form the seventh character string;
    所述分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,包括:And processing the string cluster according to the preset format requirement of each segment of the packet, and generating a corresponding packet segment, including:
    将所述第七字符串作为所述实际代偿责任信息段。The seventh character string is used as the actual compensation responsibility information segment.
  6. 根据权利要求1所述的方法,其特征在于,所述征信报文段体包括报文尾,所述字符串群集包括第八字符串;The method according to claim 1, wherein the credit segment body comprises a message tail, and the string cluster comprises an eighth character string;
    所述根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集,包括:The policy information is processed according to the preset processing rule of the policy information, and the string cluster corresponding to the policy information is obtained, including:
    获取所述保单信息中所包含的保单数量以及报文尾标识号,所述保单数量的字长为预设位数;Obtaining the number of policies included in the policy information and the identification number of the end of the message, where the word length of the policy number is a preset number of digits;
    将所述报文尾标识号与保单数量组合形成所述第八字符串;Combining the message tail identification number with the policy number to form the eighth character string;
    所述分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,包括:And processing the string cluster according to the preset format requirement of each segment of the packet, and generating a corresponding packet segment, including:
    将所述第八字符串作为所述报文尾。The eighth character string is used as the end of the message.
  7. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    获取用户提供的序列号;Obtain the serial number provided by the user;
    所述将所有征信报文段体组合形成征信报文之后,还包括:After the all the information packet segments are combined to form a credit information packet, the method further includes:
    根据所述序列号为所述征信报文生成文件名,并输出所述征信报文。Generating a file name according to the serial number as the credit information packet, and outputting the credit information packet.
  8. 一种生成征信报文的装置,其特征在于,包括:An apparatus for generating a credit information packet, comprising:
    获取单元,用于获取保险合同的保单信息;An acquisition unit for obtaining policy information of an insurance contract;
    处理单元,用于根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集;a processing unit, configured to process the policy information according to a preset processing rule of the policy information, to obtain a string cluster corresponding to the policy information;
    生成单元,用于分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文。a generating unit, configured to process the string cluster according to a preset format requirement of each segment of the credit information packet, generate a corresponding credit information segment body, and combine all the credit information segment segments to form a credit report Text.
  9. 根据权利要求8所述的装置,其特征在于,所述保单信息包括保险公司的机构代码,所述征信报文段体包括报文头,所述字符串群集包括第一字符串;The apparatus according to claim 8, wherein the policy information comprises an organization code of an insurance company, the credit message segment body comprises a message header, and the string cluster comprises a first character string;
    所述处理单元,包括:The processing unit includes:
    第一获取子单元,用于获取报文头标识号和报文格式版本号;a first acquiring subunit, configured to obtain a packet header identification number and a packet format version number;
    第一形成子单元,用于将所述报文头标识号、报文格式版本号和保险公司的机构代码组合形成所述第一字符串;a first forming subunit, configured to combine the packet header identification number, the message format version number, and the insurance company's organization code to form the first character string;
    所述生成单元,包括:The generating unit includes:
    第二获取子单元,用于获取所需生成报文的报文类型,获取报文类型对应的代码,以及获取当前时间作为报文生成时间;a second acquiring sub-unit, configured to obtain a packet type of the packet to be generated, obtain a code corresponding to the packet type, and obtain a current time as a packet generation time;
    第二形成子单元,用于将所述报文生成时间与所述报文类型对应的代码组合形成第二字符串;a second forming subunit, configured to combine the code generation time and the code corresponding to the message type to form a second character string;
    第三形成子单元,用于将所述第一字符串和第二字符串按顺序排列形成所述报文头。And a third forming subunit, configured to sequentially arrange the first character string and the second character string to form the message header.
  10. 根据权利要求9所述的装置,其特征在于,所述保单信息还包括被保证人名称、被保证人证件类型、被保证人证件号码、保单编号和保险合同编号,所述报文生成时间包括报文生成日期,所述征信报文段体包括基础段,所述字符串群集包括第三字符串、第四字符串和第五字符串;The apparatus according to claim 9, wherein said policy information further comprises a name of the sponsor, a type of the certificate of the sponsor, a certificate number of the sponsor, a policy number, and an insurance contract number, wherein the message generation time includes message generation a date, the credit segment body includes a base segment, and the string cluster includes a third string, a fourth string, and a fifth string;
    所述处理单元,包括:The processing unit includes:
    第三获取子单元,用于获取基础段标识号、所需生成报文的报文编号以及能标识业务信息记录类别的代码,所述业务信息记录类别包括保险业务信息记录,根据被保证人名称获取被保证人的类型,获取所述被保证人的类型对应的代码以及所述被保证人证件类型对应的代码;a third obtaining subunit, configured to obtain a base segment identification number, a message number of the required packet to be generated, and a code that can identify a service information record category, where the service information record category includes an insurance service information record, and is obtained according to the name of the sponsored person. a type of the sponsor, a code corresponding to the type of the sponsor, and a code corresponding to the type of the certificate of the sponsor;
    第四形成子单元,用于将所述报文编号、所述能标识业务信息记录类别的代码、所述基础段标识号以及保险公司的机构代码按顺序组合形成所述第三字符串,将所述被保证人的类型对应的代码与所述被保证人名称组合形成所述第四字符串,将所述被保证人证件类型对应的代码与所述被保证人证件号码组合形成所述第五字符串;a fourth forming subunit, configured to sequentially combine the message number, the code that can identify the service information record category, the base segment identification number, and the insurance company's organization code to form the third string, The code corresponding to the type of the guarantor is combined with the guarantor name to form the fourth character string, and the code corresponding to the guarantor certificate type is combined with the guarantor certificate number to form the fifth character string;
    所述生成单元,包括:The generating unit includes:
    第五形成子单元,用于将所述第三字符串、保单编号、保险合同编号、第四字符串、第五字符串以及报文生成日期按顺序排列形成所述基础段。And a fifth forming subunit, configured to sequentially form the third character string, the policy number, the insurance contract number, the fourth character string, the fifth character string, and the message generation date to form the basic segment.
  11. 根据权利要求8所述的装置,其特征在于,所述保单信息包括保险业务种类、保险方式、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式、约定再担保补偿比例、费率以及年化费率,所述征信报文段体包括保险合同段,所述字符串群集包括第六字符串;The device according to claim 8, wherein the policy information includes an insurance service type, an insurance method, an insurance amount, an insurance start date, an insurance expiration date, a deposit margin ratio, a counter guarantee method, and an agreement re-guarantee. a compensation ratio, a rate, and an annualized rate, wherein the credit segment includes an insurance contract segment, and the string cluster includes a sixth character string;
    所述处理单元,包括:The processing unit includes:
    第四获取子单元,用于获取保险业务种类对应的代码、保险方式对应的代码和反担保方式对应的代码,以及获取保险合同段标识号;a fourth obtaining subunit, configured to obtain a code corresponding to the insurance service type, a code corresponding to the insurance method, and a code corresponding to the counter guarantee method, and obtain an insurance contract segment identification number;
    第六形成子单元,用于将所述保险合同段标识号、保险业务种类对应的代码、保险方式对应的代码、保险金额、保险起始日期、保险到期日期、存出保证金比例、反担保方式对应的代码、约定再担保补偿比例、费率以及年化费率按顺序组合形成所述第六字符串;a sixth forming subunit, configured to use the insurance contract segment identification number, a code corresponding to the insurance service type, a code corresponding to the insurance method, an insurance amount, an insurance start date, an insurance expiration date, a deposit margin ratio, and a counter guarantee The code corresponding to the mode, the agreed re-guarantee compensation ratio, the rate, and the annualized rate are sequentially combined to form the sixth character string;
    所述生成单元,用于:The generating unit is configured to:
    将所述第六字符串作为所述保险合同段。The sixth character string is used as the insurance contract segment.
  12. 根据权利要求8所述的装置,其特征在于,所述保单信息包括保险合同的有效状态、代偿责任解除日期、在保余额和余额变化日期,所述征信报文段体包括实际代偿责任信息段,所述字符串群集包括第七字符串;The apparatus according to claim 8, wherein said policy information includes an effective status of the insurance contract, a date of payment of the compensation responsibility, a balance of the insured balance and a date of the balance change, and the credit information segment includes the actual compensation a string of responsibility information, the string cluster comprising a seventh string;
    所述处理单元,包括:The processing unit includes:
    第五获取子单元,用于获取实际代偿责任信息段标识号、保险合同有效状态对应的代码;a fifth obtaining subunit, configured to obtain an actual compensation responsibility information segment identification number and a code corresponding to an effective state of the insurance contract;
    第七形成子单元,用于将所述实际代偿责任信息段标识号、保险合同有效状态对应的代码、代偿责任解除日期、在保余额、余额变化日期按顺序组合形成所述第七字符串;a seventh forming subunit, configured to form the seventh character by sequentially combining the actual compensation responsibility information segment identification number, the code corresponding to the effective status of the insurance contract, the cancellation responsibility release date, the insured balance, and the balance change date string;
    所述生成单元,用于:The generating unit is configured to:
    将所述第七字符串作为所述实际代偿责任信息段。The seventh character string is used as the actual compensation responsibility information segment.
  13. 根据权利要求8所述的装置,其特征在于,所述征信报文段体包括报文尾,所述字符串群集包括第八字符串;The apparatus according to claim 8, wherein the credit segment body comprises a message tail, and the string cluster comprises an eighth character string;
    所述处理单元,包括:The processing unit includes:
    第六获取子单元,用于获取所述保单信息中所包含的保单数量以及报文尾标识号,所述保单数量的字长为预设位数;a sixth obtaining subunit, configured to obtain the number of the policy included in the policy information and the identifier of the end of the message, where the word length of the policy number is a preset number of digits;
    第八形成子单元,用于将所述报文尾标识号与保单数量组合形成所述第八字符串;An eighth forming subunit, configured to combine the message tail identification number and the policy number to form the eighth character string;
    所述生成单元,用于:The generating unit is configured to:
    将所述第八字符串作为所述报文尾。The eighth character string is used as the end of the message.
  14. 根据权利要求8所述的装置,其特征在于,所述获取单元还用于:获取用户提供的序列号;The device according to claim 8, wherein the obtaining unit is further configured to: obtain a serial number provided by a user;
    所述装置还包括:The device also includes:
    命名单元,用于根据所述序列号为所述征信报文生成文件名;a naming unit, configured to generate a file name according to the serial number as the credit information packet;
    输出单元,用于输出所述征信报文。And an output unit, configured to output the credit information packet.
  15. 一种生成征信报文的设备,其特征在于,所述设备包括存储器,以及与所述存储器相连的处理器;A device for generating a credit message, wherein the device comprises a memory, and a processor connected to the memory;
    所述存储器,用于存储生成征信报文的程序数据;The memory is configured to store program data for generating a credit information message;
    所述处理器,用于运行所述存储器中存储的程序数据,以执行:The processor is configured to run program data stored in the memory to perform:
    获取保险合同的保单信息;Obtain policy information for the insurance contract;
    根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集;And processing the policy information according to the preset processing rule of the policy information, to obtain a string cluster corresponding to the policy information;
    分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文。The string clusters are processed according to the preset format of each segment of the credit information packet, and the corresponding credit message segment body is generated, and all the credit information segment segments are combined to form a credit information packet.
  16. 根据权利要求15所述的设备,其特征在于,所述保单信息包括保险公司的机构代码,所述征信报文段体包括报文头,所述字符串群集包括第一字符串;The device according to claim 15, wherein the policy information comprises an organization code of an insurance company, the credit message segment body comprises a message header, and the string cluster comprises a first character string;
    在执行所述根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集中,具体执行:The policy information is processed by executing the preset processing rule according to the policy information, and the string cluster corresponding to the policy information is obtained, and the specific execution is:
    获取报文头标识号和报文格式版本号;Obtaining the packet header identification number and the packet format version number;
    将所述报文头标识号、报文格式版本号和保险公司的机构代码组合形成所述第一字符串;Combining the packet header identification number, the message format version number, and the insurance company's organization code to form the first character string;
    在执行所述分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体中,具体执行:Performing the processing of the string cluster according to the preset format requirement of each segment of the credit information packet, and generating a corresponding credit information segment body, specifically performing:
    获取所需生成报文的报文类型,获取报文类型对应的代码; Obtain the packet type of the packet to be generated, and obtain the code corresponding to the packet type.
    获取当前时间作为报文生成时间;Obtain the current time as the packet generation time;
    将所述报文生成时间与所述报文类型对应的代码组合形成第二字符串;Combining the message generation time with a code corresponding to the message type to form a second character string;
    将所述第一字符串和第二字符串按顺序排列形成所述报文头。The first character string and the second character string are sequentially arranged to form the message header.
  17. 根据权利要求16所述的设备,其特征在于,所述保单信息还包括被保证人名称、被保证人证件类型、被保证人证件号码、保单编号和保险合同编号,所述报文生成时间包括报文生成日期,所述征信报文段体包括基础段,所述字符串群集包括第三字符串、第四字符串和第五字符串;The device according to claim 16, wherein the policy information further includes a name of the sponsor, a type of the certificate of the sponsor, a certificate number of the sponsor, a policy number, and an insurance contract number, wherein the message generation time includes message generation. a date, the credit segment body includes a base segment, and the string cluster includes a third string, a fourth string, and a fifth string;
    在执行所述根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集中,具体执行:The policy information is processed by executing the preset processing rule according to the policy information, and the string cluster corresponding to the policy information is obtained, and the specific execution is:
    获取基础段标识号、所需生成报文的报文编号以及能标识业务信息记录类别的代码,所述业务信息记录类别包括保险业务信息记录,根据被保证人名称获取被保证人的类型,获取所述被保证人的类型对应的代码以及所述被保证人证件类型对应的代码;Obtaining a base segment identification number, a message number of the required message to be generated, and a code capable of identifying a service information record category, where the service information record category includes an insurance service information record, and obtaining the type of the guaranteed person according to the name of the sponsor, obtaining the a code corresponding to the type of the sponsor and a code corresponding to the type of the certificate of the sponsor;
    将所述报文编号、所述能标识业务信息记录类别的代码、所述基础段标识号以及保险公司的机构代码按顺序组合形成所述第三字符串,将所述被保证人的类型对应的代码与所述被保证人名称组合形成所述第四字符串,将所述被保证人证件类型对应的代码与所述被保证人证件号码组合形成所述第五字符串;And combining the message number, the code capable of identifying the service information record category, the base segment identification number, and the insurance company's organization code to form the third character string, and corresponding to the type of the guaranteed person. The code is combined with the sponsored name to form the fourth character string, and the code corresponding to the sponsored document type is combined with the sponsored document number to form the fifth character string;
    在执行所述分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体中,具体执行:Performing the processing of the string cluster according to the preset format requirement of each segment of the credit information packet, and generating a corresponding credit information segment body, specifically performing:
    将所述第三字符串、保单编号、保险合同编号、第四字符串、第五字符串以及报文生成日期按顺序排列形成所述基础段。The third character string, the policy number, the insurance contract number, the fourth character string, the fifth character string, and the message generation date are sequentially arranged to form the base segment.
  18. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有一个或者一个以上程序数据,所述一个或者一个以上程序数据可被一个或者一个以上的处理器执行,以实现:A computer readable storage medium, characterized in that the computer readable storage medium stores one or more program data, the one or more program data being executable by one or more processors to:
    获取保险合同的保单信息;Obtain policy information for the insurance contract;
    根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集;And processing the policy information according to the preset processing rule of the policy information, to obtain a string cluster corresponding to the policy information;
    分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体,将所有征信报文段体组合形成征信报文。The string clusters are processed according to the preset format of each segment of the credit information packet, and the corresponding credit message segment body is generated, and all the credit information segment segments are combined to form a credit information packet.
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述保单信息包括保险公司的机构代码,所述征信报文段体包括报文头,所述字符串群集包括第一字符串;The computer readable storage medium of claim 18, wherein the policy information comprises an agency code of an insurance company, the credit segment body comprises a message header, and the string cluster comprises a first character string;
    在实现所述根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集中,具体实现:The policy information is processed by the preset processing rule according to the policy information, and the string cluster corresponding to the policy information is obtained, and the specific implementation is:
    获取报文头标识号和报文格式版本号;Obtaining the packet header identification number and the packet format version number;
    将所述报文头标识号、报文格式版本号和保险公司的机构代码组合形成所述第一字符串;Combining the packet header identification number, the message format version number, and the insurance company's organization code to form the first character string;
    在实现所述分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体中,具体实现:The string cluster is processed according to the preset format requirement of each segment of the credit message, and the corresponding credit report segment body is generated, and the specific implementation is:
    获取所需生成报文的报文类型,获取报文类型对应的代码; Obtain the packet type of the packet to be generated, and obtain the code corresponding to the packet type.
    获取当前时间作为报文生成时间;Obtain the current time as the packet generation time;
    将所述报文生成时间与所述报文类型对应的代码组合形成第二字符串;Combining the message generation time with a code corresponding to the message type to form a second character string;
    将所述第一字符串和第二字符串按顺序排列形成所述报文头。The first character string and the second character string are sequentially arranged to form the message header.
  20. 根据权利要求19所述的计算机可读存储介质,其特征在于,所述保单信息还包括被保证人名称、被保证人证件类型、被保证人证件号码、保单编号和保险合同编号,所述报文生成时间包括报文生成日期,所述征信报文段体包括基础段,所述字符串群集包括第三字符串、第四字符串和第五字符串;The computer readable storage medium according to claim 19, wherein said policy information further comprises a sponsor name, a sponsored document type, a sponsored document number, a policy number, and an insurance contract number, said message generation time The message generation date includes a basic segment, and the string cluster includes a third character string, a fourth character string, and a fifth character string;
    在实现所述根据所述保单信息的预设处理规则对所述保单信息进行处理,得到所述保单信息对应的字符串群集中,具体实现:The policy information is processed by the preset processing rule according to the policy information, and the string cluster corresponding to the policy information is obtained, and the specific implementation is:
    获取基础段标识号、所需生成报文的报文编号以及能标识业务信息记录类别的代码,所述业务信息记录类别包括保险业务信息记录,根据被保证人名称获取被保证人的类型,获取所述被保证人的类型对应的代码以及所述被保证人证件类型对应的代码;Obtaining a base segment identification number, a message number of the required message to be generated, and a code capable of identifying a service information record category, where the service information record category includes an insurance service information record, and obtaining the type of the guaranteed person according to the name of the sponsor, obtaining the a code corresponding to the type of the sponsor and a code corresponding to the type of the certificate of the sponsor;
    将所述报文编号、所述能标识业务信息记录类别的代码、所述基础段标识号以及保险公司的机构代码按顺序组合形成所述第三字符串,将所述被保证人的类型对应的代码与所述被保证人名称组合形成所述第四字符串,将所述被保证人证件类型对应的代码与所述被保证人证件号码组合形成所述第五字符串;And combining the message number, the code capable of identifying the service information record category, the base segment identification number, and the insurance company's organization code to form the third character string, and corresponding to the type of the guaranteed person. The code is combined with the sponsored name to form the fourth character string, and the code corresponding to the sponsored document type is combined with the sponsored document number to form the fifth character string;
    在实现所述分别根据征信报文每个段体的预设格式要求处理所述字符串群集,生成对应的征信报文段体中,具体实现:The string cluster is processed according to the preset format requirement of each segment of the credit message, and the corresponding credit report segment body is generated, and the specific implementation is:
    将所述第三字符串、保单编号、保险合同编号、第四字符串、第五字符串以及报文生成日期按顺序排列形成所述基础段。The third character string, the policy number, the insurance contract number, the fourth character string, the fifth character string, and the message generation date are sequentially arranged to form the base segment.
PCT/CN2017/108236 2017-09-18 2017-10-30 Method, apparatus, and device for generating credit message, and computer readable storage medium WO2019051943A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710841909.3 2017-09-18
CN201710841909.3A CN107665464B (en) 2017-09-18 2017-09-18 Method, device and equipment for generating credit investigation message and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2019051943A1 true WO2019051943A1 (en) 2019-03-21

Family

ID=61098315

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/108236 WO2019051943A1 (en) 2017-09-18 2017-10-30 Method, apparatus, and device for generating credit message, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN107665464B (en)
WO (1) WO2019051943A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768929B (en) * 2018-04-09 2021-04-13 平安科技(深圳)有限公司 Electronic device, credit investigation feedback message analysis method and storage medium
CN109617647B (en) * 2018-10-22 2022-10-25 中国平安财产保险股份有限公司 Message conversion method and device, computer equipment and computer readable storage medium
CN109783781B (en) * 2018-12-13 2023-08-11 中国平安财产保险股份有限公司 Image recognition-based policy entry method and related device
CN112785411A (en) * 2020-12-29 2021-05-11 平安消费金融有限公司 Credit investigation data processing method, system, equipment and computer readable storage medium
CN115190055A (en) * 2022-07-08 2022-10-14 武汉众邦银行股份有限公司 TCP message customized conversion method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140127088A (en) * 2013-04-24 2014-11-03 주식회사 케이티 Method and apparatus for providing additional service about device insurance
CN105704083A (en) * 2014-11-24 2016-06-22 中兴通讯股份有限公司 Generation method, generation device and simulation system of Ethernet excitation message
CN107066457A (en) * 2016-08-23 2017-08-18 平安科技(深圳)有限公司 User profile view construction method and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009660B (en) * 2007-01-19 2010-06-30 杭州华三通信技术有限公司 Universal method and device for processing the match of the segmented message mode
CN101873236B (en) * 2010-06-13 2014-04-30 中兴通讯股份有限公司 Method and system for testing message
CN102571541A (en) * 2010-12-24 2012-07-11 中兴通讯股份有限公司 Message encoding-decoding method and device
CN202033796U (en) * 2011-03-28 2011-11-09 中国建设银行股份有限公司 Credit investigation assistance system for credit cards
CN103580857A (en) * 2012-08-06 2014-02-12 重庆电子工程职业学院 Compression method for Chinese character message data based on knapsack encryption
CN104202249A (en) * 2014-07-25 2014-12-10 汉柏科技有限公司 Method and device of message forwarding
GB201520879D0 (en) * 2015-11-26 2016-01-13 Ibm Session initiation protocol message processing
CN106383812B (en) * 2016-08-30 2020-05-26 泰康保险集团股份有限公司 New contract policy testing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140127088A (en) * 2013-04-24 2014-11-03 주식회사 케이티 Method and apparatus for providing additional service about device insurance
CN105704083A (en) * 2014-11-24 2016-06-22 中兴通讯股份有限公司 Generation method, generation device and simulation system of Ethernet excitation message
CN107066457A (en) * 2016-08-23 2017-08-18 平安科技(深圳)有限公司 User profile view construction method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHANG SHUGUI: "Integration and Utilization of Personal Credit Information in Commercial Bank", MASTER'S THESIS, 31 August 2009 (2009-08-31) *

Also Published As

Publication number Publication date
CN107665464B (en) 2021-05-25
CN107665464A (en) 2018-02-06

Similar Documents

Publication Publication Date Title
WO2019051943A1 (en) Method, apparatus, and device for generating credit message, and computer readable storage medium
WO2019051942A1 (en) Task allocation method, terminal, and computer readable storage medium
WO2019019378A1 (en) Service processing method and apparatus, adapter and computer-readable storage medium
WO2019019376A1 (en) Service process management method, apparatus, and device, and computer readable storage medium
WO2019080249A1 (en) Alarm processing method and apparatus, computer device, and storage medium
WO2019085103A1 (en) Training management method, device, computer apparatus, and storage medium
WO2019041406A1 (en) Indecent picture recognition method, terminal and device, and computer-readable storage medium
WO2018233367A1 (en) Case registration method and apparatus, terminal, and computer readable storage medium
WO2016148457A1 (en) Payment additional service information processing method and electronic device for supporting the same
WO2019051890A1 (en) Terminal control method and device, and computer-readable storage medium
WO2015127859A1 (en) Sensitive text detecting method and apparatus
WO2018058919A1 (en) Identification information generating method, apparatus, device, and computer readable storage medium
WO2018120457A1 (en) Data processing method, apparatus, device, and computer readable storage medium
WO2016082267A1 (en) Voice recognition method and system
WO2019019493A1 (en) Data sharing method and device, and computer readable storage medium
WO2018166236A1 (en) Claim settlement bill recognition method, apparatus and device, and computer-readable storage medium
WO2019051866A1 (en) Right and interest information management method, device, and apparatus, and computer-readable storage medium
WO2018227887A1 (en) Video advertisement delivery method, video advertisement generation method, device, server and readable storage medium
WO2018166107A1 (en) Hybrid-based compatibility method, adapter, operating apparatus and system, and computer-readable storage medium
WO2015093870A1 (en) Method and device for managing data
WO2018201696A1 (en) Method, apparatus and device for paying renewal premium of social security card policy, and storage medium
WO2018149191A1 (en) Method, apparatus and device for underwriting insurance policy, and computer-readable storage medium
WO2015180594A1 (en) Data distribution method and system and data receiving apparatus
WO2019056462A1 (en) Name list distribution method, apparatus and device, and computer readable storage medium
WO2019019351A1 (en) User behaviour data processing method and apparatus, and computer readable storage medium

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/10/2020)

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/10/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17924791

Country of ref document: EP

Kind code of ref document: A1