Movatterモバイル変換


[0]ホーム

URL:


CN116501929A - Electronic voucher generation method, device and electronic equipment - Google Patents

Electronic voucher generation method, device and electronic equipment
Download PDF

Info

Publication number
CN116501929A
CN116501929ACN202310524482.XACN202310524482ACN116501929ACN 116501929 ACN116501929 ACN 116501929ACN 202310524482 ACN202310524482 ACN 202310524482ACN 116501929 ACN116501929 ACN 116501929A
Authority
CN
China
Prior art keywords
target
voucher
electronic
data processing
business data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310524482.XA
Other languages
Chinese (zh)
Inventor
刘俊佳
梅开欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co LtdfiledCriticalChina Construction Bank Corp
Priority to CN202310524482.XApriorityCriticalpatent/CN116501929A/en
Publication of CN116501929ApublicationCriticalpatent/CN116501929A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请实施例提供一种电子凭证生成方法、装置及电子设备,涉及数据处理技术领域。所述方法包括:接收业务系统发送的凭证申请请求,其中,凭证申请请求中包含凭证标识,根据凭证申请请求中包含的领域标识确定目标行业平台,确定凭证标识对应的至少一目标参数,并从目标行业平台中获取至少一目标参数对应的目标业务数据,对目标业务数据进行解析处理,确定目标业务数据对应的目标数据处理规则,并基于目标数据处理规则对目标业务数据进行处理,得到初始电子凭证,根据预设的签章接口对初始电子凭证进行加签处理,得到电子凭证。本申请提高了电子凭证生成过程的准确性,进而保证了电子凭证的生成效果。

Embodiments of the present application provide a method, device, and electronic device for generating an electronic voucher, which relate to the technical field of data processing. The method includes: receiving a voucher application request sent by the business system, wherein the voucher application request includes a voucher identifier, determining a target industry platform according to the field identifier contained in the voucher application request, determining at least one target parameter corresponding to the voucher identifier, and obtaining from Obtain the target business data corresponding to at least one target parameter in the target industry platform, analyze and process the target business data, determine the target data processing rules corresponding to the target business data, and process the target business data based on the target data processing rules to obtain the initial electronic Voucher: According to the preset signature interface, the initial electronic voucher is signed, and the electronic voucher is obtained. The application improves the accuracy of the electronic voucher generation process, thereby ensuring the generation effect of the electronic voucher.

Description

Translated fromChinese
电子凭证生成方法、装置及电子设备Electronic voucher generation method, device and electronic equipment

技术领域technical field

本申请实施例涉及数据处理技术领域,尤其涉及一种电子凭证生成方法、装置及电子设备。The embodiments of the present application relate to the technical field of data processing, and in particular, to a method, device, and electronic device for generating an electronic voucher.

背景技术Background technique

随着经济的发展,用户的需求越来越多,金融机构可以根据用户的需求对用户数据进行核对以及整合处理,并依据整合结果输出一个凭证,进而得到电子凭证。With the development of the economy, the needs of users are increasing. Financial institutions can check and integrate user data according to the needs of users, and output a voucher based on the integration result to obtain an electronic voucher.

现有技术中,在根据用户的需求对用户数据进行核对以及整合处理时,需要对大量的结构化、非结构化以及不同的数据格式的用户数据进行处理,从而生成电子凭证。In the prior art, when checking and integrating user data according to user requirements, it is necessary to process a large amount of structured, unstructured and different data formats of user data to generate electronic vouchers.

然而,现有的电子凭证的生成过程难以应对大量不同格式的原始数据,可能出现对原始数据无法进行整合处理的问题,需要人工额外对用户数据进行处理,增大了人力成本,且主观性强,降低了电子凭证生成过程的准确率,进而影响了电子凭证的生成效果。However, the existing electronic voucher generation process is difficult to deal with a large amount of raw data in different formats, and there may be problems that the raw data cannot be integrated and processed, and additional manual processing of user data is required, which increases labor costs and is highly subjective. , which reduces the accuracy of the electronic voucher generation process, thereby affecting the generation effect of the electronic voucher.

发明内容Contents of the invention

本申请实施例提供一种电子凭证生成方法、装置及电子设备,用以解决电子凭证生成过程准确率低的问题。Embodiments of the present application provide a method, device, and electronic device for generating an electronic voucher to solve the problem of low accuracy in the electronic voucher generation process.

第一方面,本申请提供一种电子凭证生成方法,包括:In a first aspect, the present application provides a method for generating an electronic certificate, including:

接收业务系统发送的凭证申请请求,其中,所述凭证申请请求中包含凭证标识;receiving a voucher application request sent by the business system, wherein the voucher application request includes a voucher identifier;

根据所述凭证申请请求中包含的领域标识确定目标行业平台,确定所述凭证标识对应的至少一目标参数,并从所述目标行业平台中获取所述至少一目标参数对应的目标业务数据;Determine a target industry platform according to the field identifier contained in the voucher application request, determine at least one target parameter corresponding to the voucher identifier, and acquire target business data corresponding to the at least one target parameter from the target industry platform;

对所述目标业务数据进行解析处理,确定所述目标业务数据对应的目标数据处理规则,并基于所述目标数据处理规则对所述目标业务数据进行处理,得到初始电子凭证;Analyzing and processing the target business data, determining target data processing rules corresponding to the target business data, and processing the target business data based on the target data processing rules to obtain initial electronic vouchers;

根据预设的签章接口对所述初始电子凭证进行加签处理,得到电子凭证。Signature processing is performed on the initial electronic certificate according to the preset signature interface to obtain the electronic certificate.

可选的,所述对所述目标业务数据进行解析处理,确定所述目标业务数据对应的目标数据处理规则,包括:Optionally, the parsing and processing the target business data to determine the target data processing rules corresponding to the target business data includes:

对所述目标业务数据进行解析处理,确定所述目标业务数据的格式信息以及领域信息;Analyzing the target business data to determine format information and domain information of the target business data;

根据所述格式信息以及所述领域信息确定所述目标业务数据对应的目标数据处理规则。A target data processing rule corresponding to the target business data is determined according to the format information and the domain information.

可选的,所述基于所述目标数据处理规则对所述目标业务数据进行处理,得到初始电子凭证,包括:Optionally, processing the target business data based on the target data processing rules to obtain an initial electronic voucher includes:

基于所述目标数据处理规则对所述目标业务数据的格式以及内容进行规范化检测处理;Perform standardized detection processing on the format and content of the target business data based on the target data processing rules;

若所述目标业务数据的格式以及内容符合所述目标数据处理规则,则将所述目标业务数据与预设模板进行融合,得到初始电子凭证。If the format and content of the target business data comply with the target data processing rules, the target business data is fused with a preset template to obtain an initial electronic voucher.

可选的,还包括:Optionally, also include:

若所述目标业务数据的格式和/或内容不符合所述目标数据处理规则,则发送修改请求至所述业务系统,其中,所述修改请求中包含不符合所述目标数据处理规则的格式和/或内容;If the format and/or content of the target business data do not comply with the target data processing rules, then send a modification request to the business system, wherein the modification request includes the format and/or content that do not comply with the target data processing rules / or content;

接收所述业务系统根据所述修改请求发送的新的凭证申请请求,并在所述新的凭证申请请求对应的新的目标业务数据符合所述目标数据处理规则时,生成初始电子凭证。Receive a new voucher application request sent by the business system according to the modification request, and generate an initial electronic voucher when the new target business data corresponding to the new voucher application request complies with the target data processing rule.

可选的,还包括:Optionally, also include:

接收数据处理规则更新请求,其中,所述数据处理规则更新请求中包含待增加的规则选项、待删除的规则选项以及待更新的规则选项中的至少一种;Receiving a data processing rule update request, wherein the data processing rule update request includes at least one of rule options to be added, rule options to be deleted, and rule options to be updated;

基于所述数据处理规则更新请求来对所述目标数据处理规则进行更新,得到新的目标数据处理规则。The target data processing rule is updated based on the data processing rule update request to obtain a new target data processing rule.

可选的,在所述根据预设的签章接口对所述初始电子凭证进行加签处理,得到电子凭证之后,还包括:Optionally, after the initial electronic certificate is signed according to the preset signature interface and the electronic certificate is obtained, the method further includes:

将所述电子凭证以及所述电子凭证对应的凭证编号上传至区块链;Upload the electronic certificate and the certificate number corresponding to the electronic certificate to the block chain;

发送包含所述凭证编号的上传成功提示至所述业务系统,以使所述业务系统根据所述凭证编号从所述区块链中获取所述电子凭证。Sending an upload success prompt including the voucher number to the business system, so that the business system can obtain the electronic voucher from the block chain according to the voucher number.

可选的,在所述发送包含所述凭证编号的上传成功提示至所述业务系统,以使所述业务系统根据所述凭证编号从所述区块链中获取所述电子凭证之后,还包括:Optionally, after sending the upload success prompt containing the voucher number to the business system, so that the business system can obtain the electronic voucher from the block chain according to the voucher number, further include: :

接收所述业务系统发送的验证请求,其中,所述验证请求中包含凭证编号;receiving a verification request sent by the business system, wherein the verification request includes a voucher number;

若所述凭证编号对应的电子凭证为所述凭证标识对应的电子凭证中最新生成的电子凭证,则发送验证成功提示至所述业务系统。If the electronic voucher corresponding to the voucher number is the latest generated electronic voucher among the electronic vouchers corresponding to the voucher identifier, a verification success prompt is sent to the business system.

第二方面,本申请提供一种电子凭证生成装置,包括:In a second aspect, the present application provides an electronic voucher generation device, including:

接收模块,用于接收业务系统发送的凭证申请请求,其中,所述凭证申请请求中包含凭证标识;A receiving module, configured to receive a voucher application request sent by the business system, wherein the voucher application request includes a voucher identifier;

处理模块,用于根据所述凭证申请请求中包含的领域标识确定目标行业平台,确定所述凭证标识对应的至少一目标参数,并从所述目标行业平台中获取所述至少一目标参数对应的目标业务数据;A processing module, configured to determine a target industry platform according to the field identifier contained in the voucher application request, determine at least one target parameter corresponding to the voucher identifier, and obtain the target industry platform corresponding to the at least one target parameter from the target industry platform. target business data;

所述处理模块,还用于对所述目标业务数据进行解析处理,确定所述目标业务数据对应的目标数据处理规则,并基于所述目标数据处理规则对所述目标业务数据进行处理,得到初始电子凭证;The processing module is further configured to analyze and process the target business data, determine the target data processing rules corresponding to the target business data, and process the target business data based on the target data processing rules to obtain the initial electronic certificate;

所述处理模块,还用于根据预设的签章接口对所述初始电子凭证进行加签处理,得到电子凭证。The processing module is further configured to perform signature processing on the initial electronic certificate according to a preset signature interface to obtain an electronic certificate.

第三方面,本申请实施例提供一种电子设备,包括:处理器,以及与所述处理器通信连接的存储器;In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

所述存储器存储计算机执行指令;the memory stores computer-executable instructions;

所述处理器执行所述存储器存储的计算机执行指令,实现如上第一方面以及第一方面各种可能的设计所述的电子凭证生成方法。The processor executes the computer-executed instructions stored in the memory to implement the electronic certificate generation method described in the above first aspect and various possible designs of the first aspect.

第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的电子凭证生成方法。In the fourth aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the above first aspect and the first Various possible designs of the electronic voucher generation method described above.

第五方面,本申请实施例提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,实现如上第一方面以及第一方面各种可能的设计所述的电子凭证生成方法。In the fifth aspect, the embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it realizes the electronic voucher generation method described in the above first aspect and various possible designs of the first aspect. .

本申请实施例提供了一种电子凭证生成方法、装置及电子设备,采用上述方案后,可以先接收业务系统发送的包含凭证标识的凭证申请请求,然后可以根据凭证申请请求中包含的领域标识确定目标行业平台,确定凭证标识对应的至少一目标参数,并从目标行业平台中获取至少一目标参数对应的目标业务数据,还可以对目标业务数据进行解析处理,确定目标业务数据对应的目标数据处理规则,并基于目标数据处理规则对目标业务数据进行处理,得到初始电子凭证,再根据预设的签章接口对初始电子凭证进行加签处理,得到电子凭证,通过对目标业务数据进行解析处理,确定目标业务数据对应的目标数据处理规则,然后再基于该目标数据处理规则直接对目标业务数据进行处理,得到电子凭证的方式,可以实现对不同格式的业务数据直接进行处理,不需要额外增加人工方式,既降低了人力成本,也提高了电子凭证生成过程的准确性,进而保证了电子凭证的生成效果。The embodiment of the present application provides a method, device, and electronic device for generating an electronic voucher. After adopting the above-mentioned scheme, the voucher application request containing the voucher identifier sent by the business system can be received first, and then determined according to the field identifier contained in the voucher application request. The target industry platform determines at least one target parameter corresponding to the voucher identifier, and obtains the target business data corresponding to at least one target parameter from the target industry platform, and can also analyze and process the target business data to determine the target data processing corresponding to the target business data Based on the target data processing rules, the target business data is processed to obtain the initial electronic voucher, and then the initial electronic voucher is signed according to the preset signature interface to obtain the electronic voucher, and the target business data is analyzed and processed. Determine the target data processing rules corresponding to the target business data, and then directly process the target business data based on the target data processing rules to obtain electronic vouchers, which can directly process business data in different formats without additional labor This method not only reduces labor costs, but also improves the accuracy of the electronic voucher generation process, thereby ensuring the generation effect of electronic vouchers.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本申请实施例提供的电子凭证生成方法的应用系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of the application system of the electronic voucher generation method provided by the embodiment of the present application;

图2为本申请实施例提供的电子凭证生成方法的流程示意图;FIG. 2 is a schematic flow diagram of a method for generating an electronic voucher provided in an embodiment of the present application;

图3为本申请实施例提供的电子凭证生成方法的原理示意图;FIG. 3 is a schematic diagram of the principle of the electronic voucher generation method provided by the embodiment of the present application;

图4为本申请实施例提供的电子凭证生成装置的结构示意图;FIG. 4 is a schematic structural diagram of an electronic voucher generation device provided by an embodiment of the present application;

图5为本申请实施例提供的电子设备的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例还能够包括除了图示或描述的那些实例以外的其他顺序实例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above drawings are used to distinguish similar objects and not necessarily Describe a specific order or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are also capable of other sequential instances than those illustrated or described. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.

现有技术中,在生成电子凭证时,可以根据用户的需求对用户数据进行核对以及整合处理,即需要对大量的结构化、非结构化以及不同的数据格式的用户数据进行处理,进而生成电子凭证。示例性的,在生成保险电子凭证时,需要对大量的结构化、非结构化以及不同的数据格式的用户保险数据进行处理,并将最后经过格式审核的业务数据和添加的电子凭证的生成信息一起存储到保险电子凭证的生成表中,从而生成保险电子凭证。然而,现有的电子凭证的生成过程难以应对大量不同格式的原始数据,可能出现对原始数据无法进行处理的问题,且不同类型的电子凭证对应的业务数据处理过程可能不同,需要人工额外对用户数据进行处理,增大了人力成本,且主观性强,降低了电子凭证生成过程的准确率,进而影响了电子凭证的生成效果。In the prior art, when generating electronic vouchers, user data can be checked and integrated according to user needs, that is, a large amount of structured, unstructured, and different data formats of user data need to be processed to generate electronic certificates. certificate. Exemplarily, when generating electronic insurance certificates, it is necessary to process a large amount of user insurance data in structured, unstructured and different data formats, and generate information about the business data and the added electronic certificates after format review Store them together in the generation table of the electronic insurance certificate, thereby generating the electronic insurance certificate. However, the existing electronic voucher generation process is difficult to deal with a large amount of raw data in different formats, and there may be problems that the original data cannot be processed, and the business data processing processes corresponding to different types of electronic vouchers may be different, requiring manual additional user Data processing increases labor costs and is highly subjective, which reduces the accuracy of the electronic voucher generation process, thereby affecting the generation effect of electronic vouchers.

基于上述技术问题,本申请通过对目标业务数据进行解析处理,确定目标业务数据对应的目标数据处理规则,然后再基于该目标数据处理规则直接对目标业务数据进行处理,得到电子凭证的方式,可以实现对不同格式的业务数据直接进行处理,不需要额外增加人工方式,达到了既降低了人力成本,也提高了电子凭证生成过程的准确性,进而保证了电子凭证的生成效果的技术效果。Based on the above technical problems, this application determines the target data processing rules corresponding to the target business data by analyzing and processing the target business data, and then directly processes the target business data based on the target data processing rules to obtain electronic vouchers. Realize the direct processing of business data in different formats without additional manual methods, which not only reduces labor costs, but also improves the accuracy of the electronic voucher generation process, thereby ensuring the technical effect of the electronic voucher generation effect.

本申请的技术方案中,所涉及的金融数据或用户数据等信息的收集、存储、使用、加工、传输、提供和公开等处理,均符合相关法律法规的规定,且不违背公序良俗。In the technical solution of this application, the collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data and other information involved are in compliance with relevant laws and regulations, and do not violate public order and good customs.

图1为本申请实施例提供的电子凭证生成方法的应用系统的架构示意图,如图1所示,在该实施例中,应用系统可以包括处理服务器101和业务系统服务器102,业务系统服务器102中可以部署有业务系统,用于实现相关业务(例如,金融业务、保险业务等)。不同的业务系统可以部署在同一业务系统服务器102中,也可以部署在不同的业务系统服务器102中。业务系统服务器102中的业务系统可以向处理服务器101发送凭证申请请求,处理服务器101在接收到凭证申请请求之后,可以根据凭证申请请求中包含的领域标识确定目标行业平台,确定凭证标识对应的至少一目标参数,并从目标行业平台中获取所述至少一目标参数对应的目标业务数据,然后可以对目标业务数据进行解析处理,确定目标业务数据对应的目标数据处理规则,并基于目标数据处理规则对目标业务数据进行处理,得到初始电子凭证,并根据预设的签章接口对初始电子凭证进行加签处理,得到电子凭证。Fig. 1 is a schematic diagram of the architecture of the application system of the electronic voucher generation method provided by the embodiment of the present application. As shown in Fig. 1, in this embodiment, the application system may include a processing server 101 and a business system server 102. A service system may be deployed for implementing related services (for example, financial services, insurance services, etc.). Different business systems may be deployed in the same business system server 102 or in different business system servers 102 . The business system in the business system server 102 can send a voucher application request to the processing server 101. After receiving the voucher application request, the processing server 101 can determine the target industry platform according to the field identifier contained in the voucher application request, and determine at least A target parameter, and obtain the target business data corresponding to the at least one target parameter from the target industry platform, then analyze and process the target business data, determine the target data processing rules corresponding to the target business data, and based on the target data processing rules Process the target business data to obtain the initial electronic certificate, and add a signature to the initial electronic certificate according to the preset signature interface to obtain the electronic certificate.

此外,还可以将得到的电子凭证发送至对应的业务系统。In addition, the obtained electronic certificate can also be sent to the corresponding business system.

其中,处理服务器101和业务系统服务器102可以为单独的服务器,也可以为集群,在此不再详细进行限定。Wherein, the processing server 101 and the business system server 102 may be individual servers or clusters, which are not limited here in detail.

下面以具体地实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solution of the present application will be described in detail below with specific embodiments. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

图2为本申请实施例提供的电子凭证生成方法的流程示意图,本实施例的方法可以由处理服务器101执行。如图2所示,本实施例的方法,可以包括:FIG. 2 is a schematic flowchart of a method for generating an electronic certificate provided by an embodiment of the present application, and the method of this embodiment may be executed by the processing server 101 . As shown in Figure 2, the method of this embodiment may include:

S201:接收业务系统发送的凭证申请请求,其中,凭证申请请求中包含凭证标识。S201: Receive a voucher application request sent by the business system, wherein the voucher application request includes a voucher identifier.

在本实施例中,业务系统在实现相关业务的过程中,可能需要电子凭证。例如,在实现转账业务时,可能需要转账凭证。在确定有多少存款时,可能需要存款凭证。因此,可以在需要电子凭证时,向可以生成电子凭证的处理服务器发送凭证申请请求。In this embodiment, the business system may need electronic certificates during the process of implementing related businesses. For example, when transferring money, a transfer certificate may be required. A certificate of deposit may be required when determining how much to deposit. Therefore, when an electronic certificate is needed, a certificate application request can be sent to a processing server capable of generating an electronic certificate.

其中,凭证申请请求中可以包含凭证标识,用于表示待生成电子凭证的类型。示例性的,凭证标识为1,可以表示待生成电子凭证为转账凭证;凭证标识为2,可以表示待生成电子凭证为存款凭证。此外,凭证标识的具体样式可以为多种,在此不再详细进行限定。Wherein, the credential application request may include a credential identifier, which is used to indicate the type of electronic credential to be generated. Exemplarily, the voucher identifier is 1, which may indicate that the electronic voucher to be generated is a transfer voucher; the voucher identifier is 2, may indicate that the electronic voucher to be generated is a deposit voucher. In addition, there may be various specific styles of the credential identifier, which will not be limited here in detail.

S202:根据凭证申请请求中包含的领域标识确定目标行业平台,确定凭证标识对应的至少一目标参数,并从目标行业平台中获取至少一目标参数对应的目标业务数据。S202: Determine the target industry platform according to the field identifier included in the voucher application request, determine at least one target parameter corresponding to the voucher identifier, and acquire target business data corresponding to the at least one target parameter from the target industry platform.

在本实施例中,处理服务器在接收到凭证申请请求之后,可以基于该凭证申请请求获取与凭证标识对应的目标业务数据。其中,该目标业务数据为待生成的电子凭证中需要的数据。In this embodiment, after receiving the voucher application request, the processing server may acquire target service data corresponding to the voucher identifier based on the voucher application request. Wherein, the target business data is the data required in the electronic voucher to be generated.

此外,不同行业的电子凭证所需要的数据可能在不同的行业平台中,因此,在发送凭证申请请求时,可以在凭证申请请求中包含领域标识。后续在获取目标业务数据时,可以先根据凭证申请请求中包含的领域标识来确定目标行业平台。In addition, the data required by the electronic certificates of different industries may be in different industry platforms. Therefore, when sending the certificate application request, the field identification can be included in the certificate application request. When obtaining the target business data later, the target industry platform can be determined first according to the domain identification contained in the voucher application request.

可选的,不同的领域标识对应的行业平台可以预先进行配置,并存储配置结果,后续在接收到凭证申请请求时,可以在存储的领域标识与行业平台的对应关系中查找,确定凭证申请请求中包含的领域标识对应的目标行业平台。Optionally, the industry platforms corresponding to different domain identifiers can be pre-configured and the configuration results stored. When a certificate application request is received later, it can be searched in the corresponding relationship between the stored domain identifier and the industry platform to determine the certificate application request. The field identified in contains the corresponding target industry platform.

此外,还可以根据凭证标识来确定对应的目标参数,且目标参数的个数为一个或多个。可选的,不同的凭证标识表示不同的电子凭证,不同的电子凭证中所需要的目标参数不同,可以预先配置好不同的电子凭证对应的目标参数,然后再基于凭证标识与目标参数的对应关系确定申请请求中包含的凭证标识对应的一个或多个目标参数。示例性的,凭证标识为存款证明标识,该存款证明标识对应的目标参数可以包括用户姓名、卡号、余额、开户行、开户手机号等。In addition, the corresponding target parameter can also be determined according to the credential identifier, and the number of target parameters is one or more. Optionally, different voucher identifiers represent different electronic vouchers, and the target parameters required in different electronic vouchers are different. The target parameters corresponding to different electronic vouchers can be pre-configured, and then based on the corresponding relationship between the voucher identifier and the target parameters One or more target parameters corresponding to the credential identifier included in the application request are determined. Exemplarily, the credential identifier is a deposit certificate identifier, and the target parameters corresponding to the deposit certificate identifier may include user name, card number, balance, account opening bank, account opening mobile phone number, and the like.

S203:对目标业务数据进行解析处理,确定目标业务数据对应的目标数据处理规则,并基于目标数据处理规则对目标业务数据进行处理,得到初始电子凭证。S203: Analyzing and processing the target business data, determining target data processing rules corresponding to the target business data, and processing the target business data based on the target data processing rules to obtain an initial electronic voucher.

在本实施例中,在得到目标业务数据之后,由于不同的目标业务数据对应不同的电子凭证,因此,通过不同的目标业务数据生成对应的电子凭证的处理过程也不相同。In this embodiment, after the target business data is obtained, since different target business data corresponds to different electronic vouchers, the process of generating corresponding electronic vouchers from different target business data is also different.

可选的,可以先对目标业务数据进行解析处理,确定目标业务数据对应的目标数据处理规则,然后再基于该目标数据处理规则对目标业务数据进行处理,进而得到初始电子凭证。Optionally, the target business data can be analyzed and processed first, the target data processing rules corresponding to the target business data can be determined, and then the target business data can be processed based on the target data processing rules to obtain the initial electronic voucher.

进一步的,所述对所述目标业务数据进行解析处理,确定所述目标业务数据对应的目标数据处理规则,具体可以包括:Further, the analyzing and processing the target business data, and determining the target data processing rules corresponding to the target business data may specifically include:

对所述目标业务数据进行解析处理,确定所述目标业务数据的格式信息以及领域信息。Analyzing the target business data to determine format information and domain information of the target business data.

根据所述格式信息以及所述领域信息确定所述目标业务数据对应的目标数据处理规则。A target data processing rule corresponding to the target business data is determined according to the format information and the domain information.

具体的,数据所属的领域以及格式不同,对应的处理方式可能不同,因此,在对目标业务数据进行解析处理时,可以对目标业务数据中包含的字段逐一进行分析,确定格式信息字段以及领域信息字段,进而根据格式信息字段来确定目标业务数据的格式信息,根据领域信息字段来确定目标业务数据的领域信息。其中,格式信息可以表示目标业务数据的格式,示例性的,可以为JSON格式、XML格式等。领域信息可以为金融领域、保险领域、社会公共事务领域(例如,居住证凭证、出生证明凭证等)。然后可以根据确定的格式信息以及领域信息进一步确定目标数据处理规则,进而通过该目标数据处理规则对目标业务数据进行处理。Specifically, depending on the field and format of the data, the corresponding processing methods may be different. Therefore, when parsing and processing the target business data, the fields contained in the target business data can be analyzed one by one to determine the format information fields and domain information. field, and then determine the format information of the target business data according to the format information field, and determine the domain information of the target business data according to the domain information field. Wherein, the format information may indicate the format of the target business data, for example, it may be in JSON format, XML format, and the like. The field information may be in the field of finance, insurance, and social public affairs (for example, certificates of residence certificates, certificates of birth certificates, etc.). Then, the target data processing rule can be further determined according to the determined format information and domain information, and then the target business data can be processed through the target data processing rule.

此外,所述基于所述目标数据处理规则对所述目标业务数据进行处理,得到初始电子凭证,具体可以包括:In addition, the processing of the target business data based on the target data processing rules to obtain the initial electronic voucher may specifically include:

基于所述目标数据处理规则对所述目标业务数据的格式以及内容进行规范化检测处理。The format and content of the target service data are standardized and detected based on the target data processing rules.

若所述目标业务数据的格式以及内容符合所述目标数据处理规则,则将所述目标业务数据与预设模板进行融合,得到初始电子凭证。If the format and content of the target business data comply with the target data processing rules, the target business data is fused with a preset template to obtain an initial electronic voucher.

具体的,在确定目标数据处理规则之后,可以根据目标数据处理规则对目标业务数据进行处理,进而得到初始电子凭证。Specifically, after the target data processing rule is determined, the target business data can be processed according to the target data processing rule, and then the initial electronic voucher can be obtained.

此外,在基于目标数据处理规则对目标业务数据进行处理时,可以对目标业务数据的格式以及内容进行规范化检测处理。可选的,对目标业务数据的格式进行规范化检测时,可以确定目标业务数据中包含的参数与待生成的电子凭证中所需要的参数是否一致。在对目标业务数据的内容进行规范化检测时,可以确定目标业务数据中包含的内容是否符合相关行业的规范。其中,每个电子凭证需要的参数以及相关行业的规范可以预先自定义进行设置,在此不再详细进行论述。In addition, when the target business data is processed based on the target data processing rules, the format and content of the target business data can be standardized and detected. Optionally, when performing standardization detection on the format of the target business data, it may be determined whether the parameters contained in the target business data are consistent with the parameters required in the electronic voucher to be generated. When standardizing the content of the target business data, it can be determined whether the content contained in the target business data complies with the specifications of the relevant industry. Among them, the parameters required by each electronic certificate and the specifications of related industries can be customized and set in advance, and will not be discussed in detail here.

此外,若目标业务数据的格式以及内容均符合目标数据处理规则,则可以将目标业务数据与待生成的电子凭证对应的模板进行融合,得到初始电子凭证。其中,电子凭证对应的模板为预先定义好的,不同的电子凭证可以对应不同的模板,在此不再详细进行论述。In addition, if the format and content of the target business data conform to the target data processing rules, the target business data can be fused with the template corresponding to the electronic voucher to be generated to obtain the initial electronic voucher. Wherein, the template corresponding to the electronic certificate is pre-defined, and different electronic certificates may correspond to different templates, which will not be discussed in detail here.

此外,所述方法还可以包括:In addition, the method may also include:

若所述目标业务数据的格式和/或内容不符合所述目标数据处理规则,则发送修改请求至所述业务系统,其中,所述修改请求中包含不符合所述目标数据处理规则的格式和/或内容。If the format and/or content of the target business data do not comply with the target data processing rules, then send a modification request to the business system, wherein the modification request includes the format and/or content that do not comply with the target data processing rules and/or content.

接收所述业务系统根据所述修改请求发送的新的凭证申请请求,并在所述新的凭证申请请求对应的新的目标业务数据符合所述目标数据处理规则时,生成初始电子凭证。Receive a new voucher application request sent by the business system according to the modification request, and generate an initial electronic voucher when the new target business data corresponding to the new voucher application request complies with the target data processing rule.

具体的,若目标业务数据的格式不符合目标数据处理规则,或者目标业务数据的内容不符合目标数据处理规则,或者目标业务数据的格式与内容均不符合目标数据处理规则,则表明无法直接根据目标业务数据生成初始电子凭证,因此,可以向业务系统发送修改请求,确定业务系统是否可以更改目标数据中不符合目标数据处理规则的格式和/或内容。Specifically, if the format of the target business data does not conform to the target data processing rules, or the content of the target business data does not conform to the target data processing rules, or the format and content of the target business data do not conform to the target data processing rules, it means that the The target business data generates an initial electronic voucher, so a modification request can be sent to the business system to determine whether the business system can change the format and/or content of the target data that does not comply with the target data processing rules.

若业务系统可以更改不符合目标数据处理规则的格式和/或内容,则可以根据更改后的目标数据生成新的凭证申请请求,并将新的凭证申请请求发送至处理服务器。处理服务器在接收到新的凭证申请请求之后,可以重复前述过程,判断新的凭证申请请求对应的新的目标业务数据是否符合目标数据处理规则,若符合,则可以根据新的目标业务数据生成初始电子凭证。若仍然不符合,则可以先判断重试次数是否超过次数阈值,若没有超过,则可以重新发送修改请求至业务系统。若超过次数阈值,则可以生成异常提示,进而提醒运维人员及时查看,进而提高了电子凭证的生成准确率。If the business system can change the format and/or content that does not meet the target data processing rules, it can generate a new voucher application request based on the changed target data, and send the new voucher application request to the processing server. After receiving the new voucher application request, the processing server can repeat the aforementioned process to determine whether the new target business data corresponding to the new voucher application request complies with the target data processing rules, and if it does, it can generate initial Electronic voucher. If it still does not meet, you can first judge whether the number of retries exceeds the threshold, and if not, you can resend the modification request to the business system. If the number of times exceeds the threshold, an exception prompt can be generated to remind the operation and maintenance personnel to check it in time, thereby improving the accuracy of electronic voucher generation.

S204:根据预设的签章接口对初始电子凭证进行加签处理,得到电子凭证。S204: Perform signature processing on the initial electronic certificate according to the preset signature interface to obtain the electronic certificate.

在本实施例中,在得到初始电子凭证之后,该初始电子凭证仅可以作为电子凭证的副本,还不能真正替换纸质凭证,因此,可以根据预设的签章接口对初始电子凭证进行加签处理,得到真正的电子凭证,实现了电子凭证防篡改、可信、互认等安全要求。其中,在对初始电子凭证进行加签处理时,可以根据电子凭证的实际需求增加对应的签章。In this embodiment, after obtaining the initial electronic certificate, the initial electronic certificate can only be used as a copy of the electronic certificate, and cannot actually replace the paper certificate. Therefore, the initial electronic certificate can be signed according to the preset signature interface Through processing, real electronic certificates are obtained, and security requirements such as tamper-proof, credible, and mutual recognition of electronic certificates are realized. Wherein, when adding a signature to the initial electronic certificate, the corresponding signature can be added according to the actual demand of the electronic certificate.

采用上述方案后,可以先接收业务系统发送的包含凭证标识的凭证申请请求,然后可以基于该凭证申请请求获取与凭证标识对应的目标业务数据,还可以对目标业务数据进行解析处理,确定目标业务数据对应的目标数据处理规则,并基于目标数据处理规则对目标业务数据进行处理,得到初始电子凭证,再根据预设的签章接口对初始电子凭证进行加签处理,得到电子凭证,通过对目标业务数据进行解析处理,确定目标业务数据对应的目标数据处理规则,然后再基于该目标数据处理规则直接对目标业务数据进行处理,得到电子凭证的方式,可以实现对不同格式的业务数据直接进行处理,不需要额外增加人工方式,既降低了人力成本,也提高了电子凭证生成过程的准确性,进而保证了电子凭证的生成效果。After the above solution is adopted, the voucher application request containing the voucher identifier sent by the business system can be received first, and then the target business data corresponding to the voucher identifier can be obtained based on the voucher application request, and the target business data can also be analyzed and processed to determine the target business The target data processing rules corresponding to the data, and process the target business data based on the target data processing rules to obtain the initial electronic certificate, and then add a signature to the initial electronic certificate according to the preset signature interface to obtain the electronic certificate. Business data is analyzed and processed to determine the target data processing rules corresponding to the target business data, and then directly process the target business data based on the target data processing rules to obtain electronic vouchers, which can directly process business data in different formats , does not require additional manual methods, which not only reduces labor costs, but also improves the accuracy of the electronic voucher generation process, thereby ensuring the generation effect of electronic vouchers.

基于图2的方法,本说明书实施例还提供了该方法的一些具体实施方案,下面进行说明。Based on the method in FIG. 2 , the embodiment of this specification also provides some specific implementations of the method, which will be described below.

此外,在另一实施例中,所述方法还可以包括:In addition, in another embodiment, the method may also include:

接收数据处理规则更新请求,其中,所述数据处理规则更新请求中包含待增加的规则选项、待删除的规则选项以及待更新的规则选项中的至少一种。A data processing rule update request is received, wherein the data processing rule update request includes at least one of rule options to be added, rule options to be deleted, and rule options to be updated.

基于所述数据处理规则更新请求来对所述目标数据处理规则进行更新,得到新的目标数据处理规则。The target data processing rule is updated based on the data processing rule update request to obtain a new target data processing rule.

在本实施例中,为了满足电子凭证的生成需求,可以对目标数据处理规则进行自定义设置,即可以对目标数据处理规则中包含的规则选项进行删除操作、增加操作或者修改操作。In this embodiment, in order to meet the generation requirements of electronic vouchers, the target data processing rules can be customized, that is, the rule options contained in the target data processing rules can be deleted, added or modified.

可选的,可以接收数据处理规则更新请求,其中,数据处理规则更新请求中包含待增加的规则选项、待删除的规则选项以及待更新的规则选项中的至少一种,然后可以基于数据处理规则更新请求来对目标数据处理规则进行更新,得到新的目标数据处理规则。Optionally, a data processing rule update request may be received, wherein the data processing rule update request includes at least one of rule options to be added, rule options to be deleted, and rule options to be updated, and then based on the data processing rules The update request is used to update the target data processing rules to obtain new target data processing rules.

综上,通过自定义设置数据处理规则中的规则选项,可以满足不同电子凭证的生成需求,提高了数据处理规则设置过程的灵活性,进而提高了电子凭证生成过程的灵活性与便利性。In summary, by customizing the rule options in the data processing rules, the generation requirements of different electronic vouchers can be met, the flexibility of the data processing rule setting process is improved, and the flexibility and convenience of the electronic voucher generation process are improved.

图3为本申请实施例提供的电子凭证生成方法的原理示意图,如图3所示,在该实施例中,可以根据凭证申请请求从目标行业平台中获取目标业务数据,然后可以对目标业务数据进行解析处理,确定目标业务数据对应的目标数据处理规则,然后可以基于目标数据处理规则对目标业务数据的格式以及内容进行规范化检测处理,若目标业务数据的格式以及内容符合目标数据处理规则,则将目标业务数据与预设模板进行融合,得到初始电子凭证。并根据预设的签章接口对初始电子凭证进行加签处理,得到电子凭证。若目标业务数据的格式和/或内容不符合目标数据处理规则,则可以通过存储模块存储目标业务数据,进行异常数据留档。Figure 3 is a schematic diagram of the principle of the electronic voucher generation method provided by the embodiment of the present application. As shown in Figure 3, in this embodiment, the target business data can be obtained from the target industry platform according to the voucher application request, and then the target business data can be processed Perform parsing and processing to determine the target data processing rules corresponding to the target business data, and then standardize the format and content of the target business data for detection and processing based on the target data processing rules. If the format and content of the target business data conform to the target data processing rules, then Integrate the target business data with the preset template to obtain the initial electronic voucher. And according to the preset signature interface, the initial electronic certificate is signed, and the electronic certificate is obtained. If the format and/or content of the target business data does not comply with the target data processing rules, the target business data can be stored through the storage module to record the abnormal data.

此外,也可以在目标业务数据的格式和/或内容不符合目标数据处理规则时,发送修改请求至业务系统,以确定新的目标业务数据,并对新的目标业务数据执行后续判断过程,原理与前述类似,在此不再详细进行论述。In addition, when the format and/or content of the target business data do not conform to the target data processing rules, a modification request can be sent to the business system to determine new target business data, and a subsequent judgment process is performed on the new target business data. Principle Similar to the foregoing, it will not be discussed in detail here.

此外,在另一实施例中,在所述根据预设的签章接口对所述初始电子凭证进行加签处理,得到电子凭证之后,还可以包括:In addition, in another embodiment, after the initial electronic certificate is signed according to the preset signature interface to obtain the electronic certificate, it may further include:

将所述电子凭证以及所述电子凭证对应的凭证编号上传至区块链。Upload the electronic certificate and the certificate number corresponding to the electronic certificate to the block chain.

发送包含所述凭证编号的上传成功提示至所述业务系统,以使所述业务系统根据所述凭证编号从所述区块链中获取所述电子凭证。Sending an upload success prompt including the voucher number to the business system, so that the business system can obtain the electronic voucher from the block chain according to the voucher number.

在本实施例中,在生成电子凭证之后,为了保证电子凭证的安全性,可以将电子凭证上传至区块链,业务系统在需要电子凭证时,可以直接从区块链中获取电子凭证,减少了电子凭证在传输过程中被篡改的情况。In this embodiment, after the electronic certificate is generated, in order to ensure the security of the electronic certificate, the electronic certificate can be uploaded to the block chain. When the business system needs the electronic certificate, it can directly obtain the electronic certificate from the block chain, reducing It prevents the electronic certificate from being tampered with during transmission.

此外,在生成电子凭证时,可以生成电子凭证对应的凭证编号,该凭证编号可以唯一标识该电子凭证。In addition, when the electronic voucher is generated, a voucher number corresponding to the electronic voucher can be generated, and the voucher number can uniquely identify the electronic voucher.

此外,在所述发送包含所述凭证编号的上传成功提示至所述业务系统,以使所述业务系统根据所述凭证编号从所述区块链中获取所述电子凭证之后,还可以包括:In addition, after sending the upload success prompt containing the voucher number to the business system, so that the business system obtains the electronic voucher from the block chain according to the voucher number, it may further include:

接收所述业务系统发送的验证请求,其中,所述验证请求中包含凭证编号。Receive a verification request sent by the business system, wherein the verification request includes a voucher number.

若所述凭证编号对应的电子凭证为所述凭证标识对应的电子凭证中最新生成的电子凭证,则发送验证成功提示至所述业务系统。If the electronic voucher corresponding to the voucher number is the latest generated electronic voucher among the electronic vouchers corresponding to the voucher identifier, a verification success prompt is sent to the business system.

具体的,为了进一步保证电子凭证的安全性,在业务系统获取到电子凭证之后,还可以对电子凭证进行验证,并在验证通过之后再应用该电子凭证。Specifically, in order to further ensure the security of the electronic certificate, after the business system obtains the electronic certificate, it can also verify the electronic certificate, and apply the electronic certificate after the verification is passed.

此外,对电子凭证进行验证的方式可以有多种。可选的,可以先接收业务系统发送的包含凭证编号的验证请求,然后可以根据凭证编号对电子凭证进行验证。对应的,凭证标识可以有一个或多个,每个凭证标识可以对应一类电子凭证,在业务系统需要电子凭证时,需要给业务系统提供与凭证标识对应的最新的电子凭证,即新生成的电子凭证,因此,若凭证编号对应的电子凭证为凭证标识对应的电子凭证中最新生成的电子凭证,即日期最新的电子凭证,则表明向业务系统发送了准确版本的电子凭证,则可以发送验证成功提示至业务系统,业务系统在接收到该验证成功提示之后,即可以应用该电子凭证。In addition, there may be multiple ways to verify the electronic certificate. Optionally, the verification request including the voucher number sent by the business system may be received first, and then the electronic voucher may be verified according to the voucher number. Correspondingly, there can be one or more voucher IDs, and each voucher ID can correspond to a type of electronic voucher. When the business system needs an electronic voucher, it is necessary to provide the business system with the latest electronic voucher corresponding to the voucher identifier, that is, the newly generated Electronic voucher, therefore, if the electronic voucher corresponding to the voucher number is the latest generated electronic voucher in the electronic voucher corresponding to the voucher ID, that is, the electronic voucher with the latest date, it means that the accurate version of the electronic voucher has been sent to the business system, and verification can be sent A successful notification is sent to the business system, and the business system can apply the electronic certificate after receiving the notification of successful verification.

综上,通过根据凭证编号对应的电子凭证是否为凭证标识对应的电子凭证中最新生成的电子凭证的方式来对电子凭证进行验证,避免了错发旧版本的电子凭证的情况,进一步提高了电子凭证的准确性。To sum up, by verifying the electronic voucher according to whether the electronic voucher corresponding to the voucher number is the latest generated electronic voucher in the electronic voucher corresponding to the voucher identifier, the situation of wrongly issuing the old version of the electronic voucher is avoided, and the electronic voucher is further improved. Accuracy of Credentials.

基于同样的思路,本说明书实施例还提供了上述方法对应的装置,图4为本申请实施例提供的电子凭证生成装置的结构示意图,如图4所示,本实施例提供的装置,可以包括:Based on the same idea, the embodiment of this specification also provides a device corresponding to the above method. Figure 4 is a schematic structural diagram of the electronic voucher generation device provided by the embodiment of this application. As shown in Figure 4, the device provided by this embodiment may include :

接收模块401,用于接收业务系统发送的凭证申请请求,其中,所述凭证申请请求中包含凭证标识。The receiving module 401 is configured to receive a voucher application request sent by the business system, wherein the voucher application request includes a voucher identifier.

处理模块402,用于根据所述凭证申请请求中包含的领域标识确定目标行业平台,确定所述凭证标识对应的至少一目标参数,并从所述目标行业平台中获取所述至少一目标参数对应的目标业务数据。The processing module 402 is configured to determine a target industry platform according to the field identifier contained in the voucher application request, determine at least one target parameter corresponding to the voucher identifier, and obtain the at least one target parameter corresponding to the target industry platform from the target industry platform. target business data.

所述处理模块402,还用于对所述目标业务数据进行解析处理,确定所述目标业务数据对应的目标数据处理规则,并基于所述目标数据处理规则对所述目标业务数据进行处理,得到初始电子凭证。The processing module 402 is further configured to analyze and process the target business data, determine target data processing rules corresponding to the target business data, and process the target business data based on the target data processing rules to obtain Initial electronic voucher.

在本实施例中,所述处理模块402,还用于:In this embodiment, the processing module 402 is further configured to:

对所述目标业务数据进行解析处理,确定所述目标业务数据的格式信息以及领域信息。Analyzing the target business data to determine format information and domain information of the target business data.

根据所述格式信息以及所述领域信息确定所述目标业务数据对应的目标数据处理规则。A target data processing rule corresponding to the target business data is determined according to the format information and the domain information.

此外,所述处理模块402,还用于:In addition, the processing module 402 is also used for:

基于所述目标数据处理规则对所述目标业务数据的格式以及内容进行规范化检测处理。The format and content of the target service data are standardized and detected based on the target data processing rules.

若所述目标业务数据的格式以及内容符合所述目标数据处理规则,则将所述目标业务数据与预设模板进行融合,得到初始电子凭证。If the format and content of the target business data comply with the target data processing rules, the target business data is fused with a preset template to obtain an initial electronic voucher.

此外,所述处理模块402,还用于:In addition, the processing module 402 is also used for:

若所述目标业务数据的格式和/或内容不符合所述目标数据处理规则,则发送修改请求至所述业务系统,其中,所述修改请求中包含不符合所述目标数据处理规则的格式和/或内容。If the format and/or content of the target business data do not comply with the target data processing rules, then send a modification request to the business system, wherein the modification request includes the format and/or content that do not comply with the target data processing rules and/or content.

接收所述业务系统根据所述修改请求发送的新的凭证申请请求,并在所述新的凭证申请请求对应的新的目标业务数据符合所述目标数据处理规则时,生成初始电子凭证。Receive a new voucher application request sent by the business system according to the modification request, and generate an initial electronic voucher when the new target business data corresponding to the new voucher application request complies with the target data processing rule.

所述处理模块402,还用于根据预设的签章接口对所述初始电子凭证进行加签处理,得到电子凭证。The processing module 402 is further configured to perform signature processing on the initial electronic certificate according to a preset signature interface to obtain an electronic certificate.

在另一实施例中,所述处理模块402,还用于:In another embodiment, the processing module 402 is further configured to:

接收数据处理规则更新请求,其中,所述数据处理规则更新请求中包含待增加的规则选项、待删除的规则选项以及待更新的规则选项中的至少一种。A data processing rule update request is received, wherein the data processing rule update request includes at least one of rule options to be added, rule options to be deleted, and rule options to be updated.

基于所述数据处理规则更新请求来对所述目标数据处理规则进行更新,得到新的目标数据处理规则。The target data processing rule is updated based on the data processing rule update request to obtain a new target data processing rule.

本申请实施例提供的装置,可以实现上述如图2所示的实施例的方法,其实现原理和技术效果类似,此处不再赘述。The device provided in the embodiment of the present application can implement the method in the above embodiment as shown in FIG. 2 , and its implementation principle and technical effect are similar, and will not be repeated here.

图5为本申请实施例提供的电子设备的硬件结构示意图,如图5所示,本实施例提供的设备500包括:处理器501,以及与所述处理器通信连接的存储器。其中,处理器501、存储器502通过总线503连接。FIG. 5 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application. As shown in FIG. 5 , a device 500 provided in this embodiment includes a processor 501 and a memory communicatively connected to the processor. Wherein, the processor 501 and the memory 502 are connected through a bus 503 .

在具体实现过程中,处理器501执行所述存储器502存储的计算机执行指令,使得处理器501执行上述方法实施例中的方法。In a specific implementation process, the processor 501 executes the computer-executed instructions stored in the memory 502, so that the processor 501 executes the methods in the foregoing method embodiments.

处理器501的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。For the specific implementation process of the processor 501, reference may be made to the foregoing method embodiments. The implementation principles and technical effects thereof are similar, and details are not repeated here in this embodiment.

在上述的图5所示的实施例中,应理解,处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application SpecificIntegrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the above-mentioned embodiment shown in FIG. 5, it should be understood that the processor can be a central processing unit (English: Central Processing Unit, referred to as: CPU), and can also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as: DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC), etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in conjunction with the invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.

存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器。The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory.

总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component Interconnect,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。The bus may be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, the buses in the drawings of the present application are not limited to only one bus or one type of bus.

本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现上述方法实施例的电子凭证生成方法。The embodiment of the present application also provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the method for generating an electronic certificate in the above method embodiment is implemented.

本申请实施例还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时,实现如上所述的电子凭证生成方法。An embodiment of the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method for generating an electronic certificate as described above is realized.

上述的计算机可读存储介质,上述可读存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。可读存储介质可以是通用或专用计算机能够存取的任何可用介质。The above-mentioned computer-readable storage medium, the above-mentioned readable storage medium can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.

一种示例性的可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(Application Specific IntegratedCircuits,简称:ASIC)中。当然,处理器和可读存储介质也可以作为分立组件存在于设备中。An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium may be located in application specific integrated circuits (Application Specific Integrated Circuits, ASIC for short). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit it; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the application. scope.

Claims (11)

Translated fromChinese
1.一种电子凭证生成方法,其特征在于,包括:1. A method for generating an electronic voucher, comprising:接收业务系统发送的凭证申请请求,其中,所述凭证申请请求中包含凭证标识;receiving a voucher application request sent by the business system, wherein the voucher application request includes a voucher identifier;根据所述凭证申请请求中包含的领域标识确定目标行业平台,确定所述凭证标识对应的至少一目标参数,并从所述目标行业平台中获取所述至少一目标参数对应的目标业务数据;Determine a target industry platform according to the field identifier contained in the voucher application request, determine at least one target parameter corresponding to the voucher identifier, and acquire target business data corresponding to the at least one target parameter from the target industry platform;对所述目标业务数据进行解析处理,确定所述目标业务数据对应的目标数据处理规则,并基于所述目标数据处理规则对所述目标业务数据进行处理,得到初始电子凭证;Analyzing and processing the target business data, determining target data processing rules corresponding to the target business data, and processing the target business data based on the target data processing rules to obtain initial electronic vouchers;根据预设的签章接口对所述初始电子凭证进行加签处理,得到电子凭证。Signature processing is performed on the initial electronic certificate according to the preset signature interface to obtain the electronic certificate.2.根据权利要求1所述的方法,其特征在于,所述对所述目标业务数据进行解析处理,确定所述目标业务数据对应的目标数据处理规则,包括:2. The method according to claim 1, wherein the analyzing and processing the target business data and determining the target data processing rules corresponding to the target business data comprises:对所述目标业务数据进行解析处理,确定所述目标业务数据的格式信息以及领域信息;Analyzing the target business data to determine format information and domain information of the target business data;根据所述格式信息以及所述领域信息确定所述目标业务数据对应的目标数据处理规则。A target data processing rule corresponding to the target business data is determined according to the format information and the domain information.3.根据权利要求1所述的方法,其特征在于,所述基于所述目标数据处理规则对所述目标业务数据进行处理,得到初始电子凭证,包括:3. The method according to claim 1, wherein the processing of the target business data based on the target data processing rules to obtain an initial electronic voucher comprises:基于所述目标数据处理规则对所述目标业务数据的格式以及内容进行规范化检测处理;Perform standardized detection processing on the format and content of the target business data based on the target data processing rules;若所述目标业务数据的格式以及内容符合所述目标数据处理规则,则将所述目标业务数据与预设模板进行融合,得到初始电子凭证。If the format and content of the target business data comply with the target data processing rules, the target business data is fused with a preset template to obtain an initial electronic voucher.4.根据权利要求3所述的方法,其特征在于,还包括:4. The method according to claim 3, further comprising:若所述目标业务数据的格式和/或内容不符合所述目标数据处理规则,则发送修改请求至所述业务系统,其中,所述修改请求中包含不符合所述目标数据处理规则的格式和/或内容;If the format and/or content of the target business data do not comply with the target data processing rules, then send a modification request to the business system, wherein the modification request includes the format and/or content that do not comply with the target data processing rules / or content;接收所述业务系统根据所述修改请求发送的新的凭证申请请求,并在所述新的凭证申请请求对应的新的目标业务数据符合所述目标数据处理规则时,生成初始电子凭证。Receive a new voucher application request sent by the business system according to the modification request, and generate an initial electronic voucher when the new target business data corresponding to the new voucher application request complies with the target data processing rule.5.根据权利要求1-4任一项所述的方法,其特征在于,还包括:5. The method according to any one of claims 1-4, further comprising:接收数据处理规则更新请求,其中,所述数据处理规则更新请求中包含待增加的规则选项、待删除的规则选项以及待更新的规则选项中的至少一种;Receiving a data processing rule update request, wherein the data processing rule update request includes at least one of rule options to be added, rule options to be deleted, and rule options to be updated;基于所述数据处理规则更新请求来对所述目标数据处理规则进行更新,得到新的目标数据处理规则。The target data processing rule is updated based on the data processing rule update request to obtain a new target data processing rule.6.根据权利要求1-4任一项所述的方法,其特征在于,在所述根据预设的签章接口对所述初始电子凭证进行加签处理,得到电子凭证之后,还包括:6. The method according to any one of claims 1-4, characterized in that, after the initial electronic certificate is signed according to the preset signature interface and the electronic certificate is obtained, it further includes:将所述电子凭证以及所述电子凭证对应的凭证编号上传至区块链;Upload the electronic certificate and the certificate number corresponding to the electronic certificate to the block chain;发送包含所述凭证编号的上传成功提示至所述业务系统,以使所述业务系统根据所述凭证编号从所述区块链中获取所述电子凭证。Sending an upload success prompt including the voucher number to the business system, so that the business system can obtain the electronic voucher from the block chain according to the voucher number.7.根据权利要求6所述的方法,其特征在于,在所述发送包含所述凭证编号的上传成功提示至所述业务系统,以使所述业务系统根据所述凭证编号从所述区块链中获取所述电子凭证之后,还包括:7. The method according to claim 6, characterized in that, in the sending, the upload success prompt containing the voucher number is sent to the business system, so that the business system can start from the block according to the voucher number After obtaining the electronic certificate in the chain, it also includes:接收所述业务系统发送的验证请求,其中,所述验证请求中包含凭证编号;receiving a verification request sent by the business system, wherein the verification request includes a voucher number;若所述凭证编号对应的电子凭证为所述凭证标识对应的电子凭证中最新生成的电子凭证,则发送验证成功提示至所述业务系统。If the electronic voucher corresponding to the voucher number is the latest generated electronic voucher among the electronic vouchers corresponding to the voucher identifier, a verification success prompt is sent to the business system.8.一种电子凭证生成装置,其特征在于,包括:8. An electronic voucher generating device, characterized in that it comprises:接收模块,用于接收业务系统发送的凭证申请请求,其中,所述凭证申请请求中包含凭证标识;A receiving module, configured to receive a voucher application request sent by the business system, wherein the voucher application request includes a voucher identifier;处理模块,用于根据所述凭证申请请求中包含的领域标识确定目标行业平台,确定所述凭证标识对应的至少一目标参数,并从所述目标行业平台中获取所述至少一目标参数对应的目标业务数据;A processing module, configured to determine a target industry platform according to the field identifier contained in the voucher application request, determine at least one target parameter corresponding to the voucher identifier, and obtain the target industry platform corresponding to the at least one target parameter from the target industry platform. target business data;所述处理模块,还用于对所述目标业务数据进行解析处理,确定所述目标业务数据对应的目标数据处理规则,并基于所述目标数据处理规则对所述目标业务数据进行处理,得到初始电子凭证;The processing module is further configured to analyze and process the target business data, determine the target data processing rules corresponding to the target business data, and process the target business data based on the target data processing rules to obtain the initial electronic certificate;所述处理模块,还用于根据预设的签章接口对所述初始电子凭证进行加签处理,得到电子凭证。The processing module is further configured to perform signature processing on the initial electronic certificate according to a preset signature interface to obtain an electronic certificate.9.一种电子设备,包括:处理器,以及与所述处理器通信连接的存储器;9. An electronic device, comprising: a processor, and a memory communicatively connected to the processor;所述存储器存储计算机执行指令;the memory stores computer-executable instructions;所述处理器执行所述存储器存储的计算机执行指令,以实现如权利要求1-7任一项所述的电子凭证生成方法。The processor executes the computer-executed instructions stored in the memory, so as to realize the method for generating an electronic certificate according to any one of claims 1-7.10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,所述计算机执行指令被处理器执行时用于实现如权利要求1至7任一项所述的电子凭证生成方法。10. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to implement any one of claims 1 to 7 when executed by a processor The method for generating an electronic certificate.11.一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现权利要求1-7任一项所述的电子凭证生成方法。11. A computer program product, comprising a computer program, when the computer program is executed by a processor, the method for generating an electronic certificate according to any one of claims 1-7 is implemented.
CN202310524482.XA2023-05-102023-05-10 Electronic voucher generation method, device and electronic equipmentPendingCN116501929A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202310524482.XACN116501929A (en)2023-05-102023-05-10 Electronic voucher generation method, device and electronic equipment

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202310524482.XACN116501929A (en)2023-05-102023-05-10 Electronic voucher generation method, device and electronic equipment

Publications (1)

Publication NumberPublication Date
CN116501929Atrue CN116501929A (en)2023-07-28

Family

ID=87330147

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202310524482.XAPendingCN116501929A (en)2023-05-102023-05-10 Electronic voucher generation method, device and electronic equipment

Country Status (1)

CountryLink
CN (1)CN116501929A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN117056899A (en)*2023-10-112023-11-14北京中科江南信息技术股份有限公司Electronic certificate generation method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107092587A (en)*2017-05-022017-08-25山东浪潮通软信息科技有限公司A kind of business voucher generation method and device
US10356087B1 (en)*2016-08-262019-07-16Intelligent Waves LlcSystem, method and computer program product for credential provisioning in a mobile device platform
CN110097441A (en)*2019-05-092019-08-06海闻科技有限公司A kind of voucher generation method of accounting processing
CN112634005A (en)*2020-12-302021-04-09上海中通吉网络技术有限公司Method and device for generating financial certificate and electronic equipment
CN113112350A (en)*2021-05-112021-07-13中国建设银行股份有限公司Online certification development method and device
CN113435990A (en)*2021-06-282021-09-24平安科技(深圳)有限公司Certificate generation method and device based on rule engine and computer equipment
WO2021227457A1 (en)*2020-05-142021-11-18特斯联科技集团有限公司Blockchain-based electronic data evidence preservation method and system, and storage medium and terminal
CN114239520A (en)*2021-11-222022-03-25航天信息股份有限公司Voucher generating method, system, electronic device and medium for fund business
CN115809792A (en)*2022-12-222023-03-17中国农业银行股份有限公司山西省分行Electronic certificate processing method, device, equipment and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US10356087B1 (en)*2016-08-262019-07-16Intelligent Waves LlcSystem, method and computer program product for credential provisioning in a mobile device platform
CN107092587A (en)*2017-05-022017-08-25山东浪潮通软信息科技有限公司A kind of business voucher generation method and device
CN110097441A (en)*2019-05-092019-08-06海闻科技有限公司A kind of voucher generation method of accounting processing
WO2021227457A1 (en)*2020-05-142021-11-18特斯联科技集团有限公司Blockchain-based electronic data evidence preservation method and system, and storage medium and terminal
CN112634005A (en)*2020-12-302021-04-09上海中通吉网络技术有限公司Method and device for generating financial certificate and electronic equipment
CN113112350A (en)*2021-05-112021-07-13中国建设银行股份有限公司Online certification development method and device
CN113435990A (en)*2021-06-282021-09-24平安科技(深圳)有限公司Certificate generation method and device based on rule engine and computer equipment
CN114239520A (en)*2021-11-222022-03-25航天信息股份有限公司Voucher generating method, system, electronic device and medium for fund business
CN115809792A (en)*2022-12-222023-03-17中国农业银行股份有限公司山西省分行Electronic certificate processing method, device, equipment and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN117056899A (en)*2023-10-112023-11-14北京中科江南信息技术股份有限公司Electronic certificate generation method and device

Similar Documents

PublicationPublication DateTitle
CN110263024B (en)Data processing method, terminal device and computer storage medium
US12026772B2 (en)Systems and methods for managing a loan application
CN107968709A (en) Business data processing method, identity management method and business audit method
WO2020233402A1 (en)Accounts payable order validation method, apparatus and device, and storage medium
CN110458555A (en) Dispute handling method, device, electronic equipment and storage medium
CN110363667A (en) AI-based order financing processing method, device, computer equipment and storage medium
CN111784423B (en)Invoice matching method and device, electronic equipment and storage medium
CN116501929A (en) Electronic voucher generation method, device and electronic equipment
CN112487982A (en)Merchant information auditing method, system and storage medium
CN112529700A (en)Business handling and auditing method, system, equipment and readable storage medium
CN112085531A (en) Resource processing method, server, terminal, device, system and storage medium
CN113506006B (en) A transaction confirmation method, device, medium and equipment for an interbank business system
CN111177099A (en)Data processing method and device of business system, electronic equipment and storage medium
CN114078049B (en)Data processing method and device for supply chain financial credit-worthiness service
CN114637672A (en) Automated data testing method, device, computer equipment and storage medium
CN119271744A (en) Method, device and medium for circulation and storage of digital debt certificates based on blockchain
CN119045873A (en)Collaborative development method, device, equipment and storage medium based on low-code platform
CN113537964A (en)Application form processing method, device, storage medium and device
CN109726883A (en)A kind of risk management and control method of insurance business, device, equipment and storage medium
CN113792267A (en)Method and device for checking digital copyright of card surface picture of payment mechanism
CN116978036A (en)Bill identification result verification method and device, computer equipment and storage medium
CN113239408B (en)Electronic signature system, method, device, equipment and storage medium
CN115170108A (en) Transaction data processing method, device and server
CN114925662A (en)Generation method of application form and related device
CN112668998A (en)Flow implementation method, device, system, electronic equipment and readable storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp