[go: up one dir, main page]

CN110689418B - Bill generation method and device - Google Patents

Bill generation method and device Download PDF

Info

Publication number
CN110689418B
CN110689418B CN201910927944.6A CN201910927944A CN110689418B CN 110689418 B CN110689418 B CN 110689418B CN 201910927944 A CN201910927944 A CN 201910927944A CN 110689418 B CN110689418 B CN 110689418B
Authority
CN
China
Prior art keywords
bill
transaction data
user
link
request information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910927944.6A
Other languages
Chinese (zh)
Other versions
CN110689418A (en
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.)
Ant International Business (Shanghai) Co.,Ltd.
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202310237443.1A priority Critical patent/CN116993519A/en
Priority to CN201910927944.6A priority patent/CN110689418B/en
Publication of CN110689418A publication Critical patent/CN110689418A/en
Application granted granted Critical
Publication of CN110689418B publication Critical patent/CN110689418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/12Accounting
    • G06Q40/125Finance or payroll
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

One or more embodiments of the present specification disclose a method and an apparatus for generating a bill, which are used to integrate a bill generation process into one device, thereby achieving an effect of generating a bill quickly and easily. The method comprises the following steps: retrieving relevant transaction data of the first user from at least one service node; the service node is used for recording the related transaction data generated in the user transaction process; determining bill request information of the first user, and processing the related transaction data according to the bill request information to obtain first transaction data; generating a bill for the first user based on the first transaction data.

Description

账单生成方法及装置Bill generation method and device

技术领域technical field

本文件涉及数据处理技术领域,尤其涉及一种账单生成方法及装置。This document relates to the technical field of data processing, and in particular to a bill generation method and device.

背景技术Background technique

随着商户数量的飞速增加,账单平台所承担的任务越来越繁重,如今账单平台所面对的问题之一是如何尽可能节约资源且保证大量的商户账单及时产出。With the rapid increase in the number of merchants, the tasks undertaken by the billing platform are becoming more and more onerous. One of the problems facing the billing platform today is how to save resources as much as possible and ensure the timely output of a large number of merchant bills.

现有的商户账单体系依托于ODPS(Open Data Processing Service,开放数据处理服务)提供的调度及质量检测功能,产出对应的账单节点,而账单平台只负责导出CSV(Comma-Separated Values,逗号分隔值)文件格式的账单。现有的这种方式由于把单一账单的生命周期分散到两个系统(即账单平台及 ODPS)中,因此如果账单出错则需要排查两个系统,并且,由于ODPS的调度太过灵活、调用链路太深,导致随着账单数量增加,账单链路只会越来越复杂。The existing merchant billing system relies on the scheduling and quality inspection functions provided by ODPS (Open Data Processing Service) to generate corresponding billing nodes, while the billing platform is only responsible for exporting CSV (Comma-Separated Values, comma-separated value) file format bill. The existing method distributes the life cycle of a single bill into two systems (that is, the billing platform and ODPS), so if the bill is wrong, the two systems need to be checked, and, because the scheduling of ODPS is too flexible, the call chain The road is too deep, and as the number of bills increases, the billing links will only become more and more complicated.

发明内容Contents of the invention

本说明书一个或多个实施例的目的是提供一种账单生成方法及装置,用以将账单生成的流程整合到一个设备上,从而实现快速、简便地生成账单的效果。The purpose of one or more embodiments of this specification is to provide a bill generation method and device, which are used to integrate the bill generation process into one device, so as to achieve the effect of quickly and easily generating bills.

为解决上述技术问题,本说明书一个或多个实施例是这样实现的:In order to solve the above technical problems, one or more embodiments of this specification are implemented as follows:

一方面,本说明书一个或多个实施例提供一种账单生成方法,包括:In one aspect, one or more embodiments of this specification provide a bill generation method, including:

从至少一个服务节点调取第一用户的相关交易数据;其中,所述服务节点用于记录用户交易过程中产生的所述相关交易数据;Retrieving the relevant transaction data of the first user from at least one service node; wherein the service node is used to record the relevant transaction data generated during the user's transaction process;

确定所述第一用户的账单请求信息,根据所述账单请求信息对所述相关交易数据进行处理,得到第一交易数据;determining the bill request information of the first user, and processing the relevant transaction data according to the bill request information to obtain first transaction data;

根据所述第一交易数据,生成所述第一用户的账单。A bill for the first user is generated according to the first transaction data.

另一方面,本说明书一个或多个实施例提供一种账单生成装置,包括:On the other hand, one or more embodiments of this specification provide a bill generation device, including:

调取模块,从至少一个服务节点调取第一用户的相关交易数据;其中,所述服务节点用于记录用户交易过程中产生的所述相关交易数据;A calling module, which calls the relevant transaction data of the first user from at least one service node; wherein, the service node is used to record the relevant transaction data generated during the user's transaction process;

处理模块,确定所述第一用户的账单请求信息,根据所述账单请求信息对所述相关交易数据进行处理,得到第一交易数据;A processing module, which determines the bill request information of the first user, processes the relevant transaction data according to the bill request information, and obtains first transaction data;

生成模块,根据所述第一交易数据,生成所述第一用户的账单。The generation module generates the first user's bill according to the first transaction data.

再一方面,本说明书一个或多个实施例提供一种账单生成设备,包括:In another aspect, one or more embodiments of this specification provide a bill generation device, including:

处理器;以及processor; and

被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器:A memory arranged to store computer-executable instructions that, when executed, cause the processor to:

从至少一个服务节点调取第一用户的相关交易数据;其中,所述服务节点用于记录用户交易过程中产生的所述相关交易数据;Retrieving the relevant transaction data of the first user from at least one service node; wherein the service node is used to record the relevant transaction data generated during the user's transaction process;

确定所述第一用户的账单请求信息,根据所述账单请求信息对所述相关交易数据进行处理,得到第一交易数据;determining the bill request information of the first user, and processing the relevant transaction data according to the bill request information to obtain first transaction data;

根据所述第一交易数据,生成所述第一用户的账单。A bill for the first user is generated according to the first transaction data.

再一方面,本说明书一个或多个实施例提供一种存储介质,用于存储计算机可执行指令,所述可执行指令在被执行时实现以下流程:In another aspect, one or more embodiments of the present specification provide a storage medium for storing computer-executable instructions, and the executable instructions implement the following processes when executed:

从至少一个服务节点调取第一用户的相关交易数据;其中,所述服务节点用于记录用户交易过程中产生的所述相关交易数据;Retrieving the relevant transaction data of the first user from at least one service node; wherein the service node is used to record the relevant transaction data generated during the user's transaction process;

确定所述第一用户的账单请求信息,根据所述账单请求信息对所述相关交易数据进行处理,得到第一交易数据;determining the bill request information of the first user, and processing the relevant transaction data according to the bill request information to obtain first transaction data;

根据所述第一交易数据,生成所述第一用户的账单。A bill for the first user is generated according to the first transaction data.

采用本说明书一个实施例的技术方案,能够将账单的生成流程整合到一个设备上,无需依赖于其他平台,从而使账单的生成更加快速、统一化;此外,正是由于账单生成链路的统一化,使得每个账单的生成过程都是一条清晰的线性链路,从而使账单生成过程中出现的各种问题容易排查,且能够降低账单生成流程的出错概率。By adopting the technical solution of an embodiment of this specification, the bill generation process can be integrated on one device without relying on other platforms, thereby making the bill generation faster and more unified; in addition, it is precisely because of the unified bill generation link This makes the generation process of each bill a clear linear link, which makes it easy to troubleshoot various problems in the bill generation process and reduces the error probability of the bill generation process.

附图说明Description of drawings

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

图1是根据本说明书一实施例的一种账单生成方法的示意性流程图;Fig. 1 is a schematic flowchart of a method for generating a bill according to an embodiment of the present specification;

图2是根据本说明书一实施例的一种账单生成装置的示意性框图;Fig. 2 is a schematic block diagram of a bill generation device according to an embodiment of the present specification;

图3是根据本说明书一实施例的一种账单生成设备的示意性框图。Fig. 3 is a schematic block diagram of a bill generation device according to an embodiment of the present specification.

具体实施方式Detailed ways

本说明书一个或多个实施例提供一种账单生成方法及装置,用以将账单生成的流程整合到一个设备上,从而实现快速、简便地生成账单的效果。One or more embodiments of this specification provide a bill generation method and device, which are used to integrate the bill generation process into one device, so as to achieve the effect of quickly and easily generating bills.

为了使本技术领域的人员更好地理解本说明书一个或多个实施例中的技术方案,下面将结合本说明书一个或多个实施例中的附图,对本说明书一个或多个实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书一部分实施例,而不是全部的实施例。基于本说明书一个或多个实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本文件保护的范围。In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will describe the technical solutions in one or more embodiments of this specification in conjunction with the drawings in one or more embodiments of this specification The technical solution is clearly and completely described, and obviously, the described embodiments are only a part of the embodiments in this specification, rather than all the embodiments. Based on one or more embodiments in this specification, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of this document.

图1是根据本说明书一实施例的一种账单生成方法的示意性流程图,如图 1所示,该账单生成方法应用于账单平台,包括:Fig. 1 is a schematic flowchart of a method for generating a bill according to an embodiment of this specification. As shown in Fig. 1, the method for generating a bill is applied to a billing platform, including:

S102,从至少一个服务节点调取第一用户的相关交易数据。S102. Retrieve relevant transaction data of the first user from at least one service node.

其中,每个服务节点可以可做一个域,用于记录用户交易过程中产生的相关交易数据。相关交易数据可包括不同类型的交易过程中可能产生的任一项或多项交易数据,如交易金额、交易次数、交易时间、交易用户信息等。每个服务节点可存储至少一种交易类型的交易数据,例如,服务节点a用于存储转账过程中的相关交易数据,服务节点b用于支付过程中的相关交易数据,服务节点c用于存储收款过程中的相关交易数据,等等。Among them, each service node can be used as a domain to record the relevant transaction data generated during the user's transaction process. Relevant transaction data may include any one or multiple transaction data that may be generated during different types of transactions, such as transaction amount, transaction times, transaction time, transaction user information, and the like. Each service node can store transaction data of at least one type of transaction, for example, service node a is used to store related transaction data in the transfer process, service node b is used to store related transaction data in the payment process, and service node c is used to store Relevant transaction data during the collection process, etc.

S104,确定第一用户的账单请求信息,根据账单请求信息对相关交易数据进行处理,得到第一交易数据。S104. Determine bill request information of the first user, and process relevant transaction data according to the bill request information to obtain first transaction data.

其中,账单请求信息可包括预设的账单输出规则、生成一个或多个账单的请求、账单存储地址等信息。根据账单请求信息中携带的不同信息,对相关交易数据的处理方式也有所不同,具体的处理方式将在下述实施例中详细说明。Wherein, the bill request information may include information such as a preset bill output rule, a request for generating one or more bills, and a bill storage address. According to different information carried in the bill request information, the relevant transaction data is processed in different ways, and the specific processing methods will be described in detail in the following embodiments.

S106,根据第一交易数据,生成第一用户的账单。S106. Generate a bill for the first user according to the first transaction data.

采用本说明书一个实施例的技术方案,能够将账单的生成流程整合到一个设备上,无需依赖于其他平台,从而使账单的生成更加快速、统一化;此外,正是由于账单生成链路的统一化,使得每个账单的生成过程都是一条清晰的线性链路,从而使账单生成过程中出现的各种问题容易排查,且能够降低账单生成流程的出错概率。By adopting the technical solution of an embodiment of this specification, the bill generation process can be integrated on one device without relying on other platforms, thereby making the bill generation faster and more unified; in addition, it is precisely because of the unified bill generation link This makes the generation process of each bill a clear linear link, which makes it easy to troubleshoot various problems in the bill generation process and reduces the error probability of the bill generation process.

在一个实施例中,执行上述步骤之前,需将用户交易过程中产生的相关交易数据记录在各个服务节点上。由于各服务节点按照不同的交易类型进行划分,因此各服务节点上用于存储不同类型的交易过程中产生的交易数据,例如,将转账过程中的相关交易数据记录于服务节点a,将支付过程中的相关交易数据记录于服务节点b,将存储收款过程中的相关交易数据记录于服务节点c,等等。In one embodiment, before performing the above steps, relevant transaction data generated during the user's transaction needs to be recorded on each service node. Since each service node is divided according to different transaction types, each service node is used to store transaction data generated during different types of transactions. Record the relevant transaction data in the service node b, record the relevant transaction data in the storage collection process in the service node c, and so on.

本实施例中,可根据用户交易时的交易信息记录相关交易数据。例如,交易信息为“用户A向用户B转账100元”,则经过分析该交易数据,获知该交易过程中,支付方为用户A,收款方为用户B,交易金额为100元,进而将支付方、收款方、交易金额等数据记录于转账交易类型对应的服务节点上。In this embodiment, relevant transaction data may be recorded according to the transaction information of the user during the transaction. For example, if the transaction information is "User A transfers 100 yuan to user B", after analyzing the transaction data, it is known that during the transaction process, the payer is user A, the payee is user B, and the transaction amount is 100 yuan. The payer, payee, transaction amount and other data are recorded on the service node corresponding to the transfer transaction type.

将相关交易数据记录于各服务节点之后,即可在需要为用户生成账单时,从至少一个服务节点上获取用户的相关交易数据,进而生成用户的账单。After the relevant transaction data is recorded in each service node, when it is necessary to generate a bill for the user, the user's relevant transaction data can be obtained from at least one service node, and then the user's bill can be generated.

在一个实施例中,从至少一个服务节点调取第一用户的相关交易数据之后,可对相关交易数据进行核对,以判断相关交易数据是否准确,并在确定相关交易数据准确之后,再确定第一用户的账单请求信息(即执行S104)。In one embodiment, after the relevant transaction data of the first user is retrieved from at least one service node, the relevant transaction data can be checked to determine whether the relevant transaction data is accurate, and after determining that the relevant transaction data is accurate, determine the second A user's bill request information (that is, execute S104).

本实施例中,可从多方面对相关交易数据进行核对,例如核对相关交易数据中记录的交易金额是否准确、交易时间是否准确、交易涉及到的用户信息是否准确、交易数据的记录格式是否准确等。对交易金额、交易时间、交易涉及到的用户信息等数据进行核对时,可首先获取用户交易时的交易信息,用户交易时的交易信息可存储于账单平台的指定存储区域,也可存储于其他服务器中。In this embodiment, the relevant transaction data can be checked from various aspects, such as checking whether the transaction amount recorded in the relevant transaction data is accurate, whether the transaction time is accurate, whether the user information involved in the transaction is accurate, and whether the record format of the transaction data is accurate wait. When checking data such as transaction amount, transaction time, and user information involved in the transaction, the transaction information of the user's transaction can be obtained first, and the transaction information of the user's transaction can be stored in the designated storage area of the billing platform or in other in the server.

例如,交易信息为“用户A向用户B转账100元”,从服务节点上获取到的相关交易数据为:支付方为用户A,收款方为用户B,交易金额为100元。通过分析交易信息,并将交易信息与获取到的相关交易数据进行比对,从而判断出获取到的相关交易数据是否准确。若存在至少一项相关交易数据与交易信息不相符,则可确定获取到的相关交易数据不准确。For example, the transaction information is "User A transfers 100 yuan to user B", and the relevant transaction data obtained from the service node is: the payer is user A, the payee is user B, and the transaction amount is 100 yuan. By analyzing the transaction information and comparing the transaction information with the obtained relevant transaction data, it is judged whether the obtained relevant transaction data is accurate. If there is at least one piece of relevant transaction data inconsistent with the transaction information, it can be determined that the acquired relevant transaction data is inaccurate.

本实施例中,在生成账单之前,通过对服务节点上记录的各项相关交易数据的正确性进行核对,确保了获取到正确的相关交易数据,从而确保为用户生成准确的账单。In this embodiment, before generating the bill, by checking the correctness of the relevant transaction data recorded on the service node, it is ensured that the correct relevant transaction data is obtained, thereby ensuring that an accurate bill is generated for the user.

在一个实施例中,账单请求信息包括预设的账单输出规则。因此,在根据账单请求信息对相关交易数据进行处理时,可先汇总相关交易数据,得到相关交易数据对应的数据宽表;进而针对数据宽表中的各相关交易数据,按照账单输出规则对各相关交易数据进行相应处理,得到符合账单输出规则的第一交易数据。In one embodiment, the bill request information includes preset bill output rules. Therefore, when processing the relevant transaction data according to the bill request information, the relevant transaction data can be summarized first to obtain the data wide table corresponding to the relevant transaction data; Corresponding processing is performed on the relevant transaction data to obtain the first transaction data conforming to the bill output rule.

其中,账单输出规则用于约束各项相关交易数据的数据输出格式。例如,账单输出规则包括交易时间对应的时间戳格式,时间戳格式为 yyyyMMddHHmmss形式,其中,“yyyy”表示年,“MM”表示月,“dd”表示日,“HH”表示时,“mm”表示分,“ss”表示秒。Among them, the bill output rules are used to constrain the data output format of various relevant transaction data. For example, the bill output rule includes the timestamp format corresponding to the transaction time, and the timestamp format is in the form of yyyyMMddHHmmss, where "yyyy" indicates the year, "MM" indicates the month, "dd" indicates the day, "HH" indicates the hour, and "mm" Indicates minutes, "ss" indicates seconds.

本实施例中,将获取到的相关交易数据按照预设的账单输出规则进行处理,得到第一交易数据,进而根据第一交易数据生成用户的账单,使得所生成的用户账单中的各项交易数据符合一定规则,而不是杂乱无章的形式,从而方便用户查看,且便于账单平台对交易数据的管理。In this embodiment, the acquired related transaction data is processed according to the preset bill output rules to obtain the first transaction data, and then the user's bill is generated according to the first transaction data, so that all transactions in the generated user bill The data conforms to certain rules, rather than in a disorganized form, which is convenient for users to view and facilitates the management of transaction data by the billing platform.

在一个实施例中,可预先配置生成各类账单分别所需执行的账单生成链路,并为各账单生成链路包含的各链路节点配置各自的节点属性;其中,节点属性包括用户信息、账单生成过程中的操作类型等信息,各账单生成链路包含至少一个链路节点。In one embodiment, the bill generation links that need to be executed to generate various bills can be pre-configured, and each link node included in each bill generation link is configured with its own node attributes; wherein, the node attributes include user information, Information such as the operation type in the bill generation process, each bill generation link includes at least one link node.

本实施例中,各链路节点具有可配置性,这使得配置人员能够根据业务需求对各链路节点进行配置,从而对配置人员来说能够简单、清晰、明了地管理账单生成链路中包含的各链路节点。此外,将账单生成流程节点化,使得每个操作步骤只需关注自身的逻辑,而无需考虑上下环境,因此对于各单独的链路节点而言,其自身的操作逻辑简单可控,对于整体调度而言各链路节点之间相互独立,因此很容易实现分布式调度,最大化利用系统资源。In this embodiment, each link node is configurable, which enables the configuration personnel to configure each link node according to business requirements, so that the configuration personnel can simply, clearly and clearly manage the bill generation link. each link node. In addition, the bill generation process is node-based, so that each operation step only needs to focus on its own logic without considering the upper and lower environments. Therefore, for each individual link node, its own operation logic is simple and controllable, which is important for the overall scheduling In other words, each link node is independent of each other, so it is easy to implement distributed scheduling and maximize the use of system resources.

基于上述实施例,若账单请求信息包括生成多个账单的请求,则在生成多个账单时,首先需要确定生成各账单分别需执行的账单生成链路;进而确定各链路节点的节点属性;然后比对各账单生成链路分别对应的链路节点,以判断各账单生成链路分别对应的链路节点的节点属性是否相同;若各账单生成链路分别对应的链路节点中存在节点属性相同的链路节点,则对各账单生成链路中节点属性相同的链路节点进行合并。Based on the above embodiment, if the bill request information includes a request to generate multiple bills, when multiple bills are generated, it is first necessary to determine the bill generation links that need to be executed to generate each bill; and then determine the node attributes of each link node; Then compare the link nodes corresponding to each bill generation link to determine whether the node attributes of the link nodes corresponding to each bill generation link are the same; if there are node attributes in the link nodes corresponding to each bill generation link For the same link nodes, the link nodes with the same node attributes in each bill generation link are merged.

例如,账单请求信息中包含生成用户A的交易明细账单及汇总账单的请求,即需要同时生成两个账单,且由于这两个账单不同,因此生成各账单需执行的账单生成链路所对应的链路节点不同。具体的,交易明细账单的账单生成链路包括链路节点X,该链路节点X的节点属性为:用户信息为用户A,操作类型为获取交易明细数据。汇总账单的账单生成链路包括链路节点X及链路节点Y,该链路节点X的节点属性为:用户信息为用户A,操作类型为获取交易明细数据,链路节点Y的节点属性为:用户信息为用户A,操作类型为汇总所有明细数据。由此可见,交易明细账单及汇总账单的账单生成链路中包含相同的链路节点X,因此可将交易明细账单对应的链路节点X与汇总账单对应的链路节点 X进行合并。For example, the bill request information includes the request to generate user A's transaction detailed bill and summary bill, that is, two bills need to be generated at the same time, and because the two bills are different, the bill generation link that needs to be executed to generate each bill corresponds to the Link nodes are different. Specifically, the bill generation link of the transaction detailed bill includes a link node X, and the node attributes of the link node X are: the user information is user A, and the operation type is to obtain transaction detailed data. The bill generation link for summarizing bills includes link node X and link node Y. The node attributes of the link node X are: the user information is user A, the operation type is to obtain transaction detailed data, and the node attributes of link node Y are : The user information is user A, and the operation type is to summarize all detailed data. It can be seen that the bill generation links of the transaction detail bill and the summary bill contain the same link node X, so the link node X corresponding to the transaction detail bill and the link node X corresponding to the summary bill can be merged.

本实施例中,在合并具有相同节点属性的链路节点之后,不同账单中被合并的链路节点的输出结果也被合并。沿用上述举例,在将交易明细账单对应的链路节点X与汇总账单对应的链路节点X进行合并(即将两个账单生成过程中的获取明细数据的操作进行合并)之后,输出交易明细账单及汇总账单时,仅需输出一个明细数据,而无需分别输出交易明细账单对应的明细数据及汇总账单对应的明细数据,从而大大节省了资源。In this embodiment, after merging link nodes with the same node attribute, the output results of the merged link nodes in different bills are also merged. Following the above example, after merging the link node X corresponding to the transaction detailed bill and the link node X corresponding to the summary bill (that is, merging the operations of obtaining detailed data in the process of generating the two bills), output the transaction detail bill and When summarizing bills, only one detail data needs to be output, instead of outputting the detail data corresponding to the transaction detail bill and the detail data corresponding to the summary bill separately, thus greatly saving resources.

本实施例中,通过将交易明细账单对应的链路节点X与汇总账单对应的链路节点X进行合并,使得具有相同节点属性的链路节点所对应的操作仅执行一次,从而避免账单平台对相同链路节点对应的相同操作的重复执行,大大降低了系统负载及资源消耗。In this embodiment, by merging the link node X corresponding to the transaction detailed bill and the link node X corresponding to the summary bill, the operation corresponding to the link node with the same node attribute is only executed once, thereby avoiding the billing platform to Repeated execution of the same operation corresponding to the same link node greatly reduces system load and resource consumption.

在一个实施例中,账单请求信息包括账单存储地址,因此,在生成第一用户的账单之后,可将账单输出至账单存储地址,以便于第一用户从账单存储地址中查看账单。In one embodiment, the bill request information includes a bill storage address. Therefore, after the first user's bill is generated, the bill can be output to the bill storage address, so that the first user can view the bill from the bill storage address.

综上,已经对本主题的特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作可以按照不同的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序,以实现期望的结果。在某些实施方式中,多任务处理和并行处理可以是有利的。In summary, certain embodiments of the subject matter have been described. Other implementations are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In certain implementations, multitasking and parallel processing may be advantageous.

以上为本说明书一个或多个实施例提供的账单生成方法,基于同样的思路,本说明书一个或多个实施例还提供一种账单生成装置。The above is the method for generating a bill provided by one or more embodiments of this specification. Based on the same idea, one or more embodiments of this specification further provide a device for generating a bill.

图2是根据本说明书一实施例的一种账单生成装置的示意性结构图,如图 2所示,账单生成装置200应用于账单平台,包括:Fig. 2 is a schematic structural diagram of a bill generation device according to an embodiment of the present specification. As shown in Fig. 2, the bill generation device 200 is applied to a bill platform, including:

调取模块210,从至少一个服务节点调取第一用户的相关交易数据;其中,服务节点用于记录用户交易过程中产生的相关交易数据;The retrieval module 210 retrieves the relevant transaction data of the first user from at least one service node; wherein, the service node is used to record the relevant transaction data generated during the user's transaction process;

处理模块220,确定第一用户的账单请求信息,根据账单请求信息对相关交易数据进行处理,得到第一交易数据;The processing module 220 determines the bill request information of the first user, processes the relevant transaction data according to the bill request information, and obtains the first transaction data;

生成模块230,根据第一交易数据,生成第一用户的账单。The generating module 230 generates a bill of the first user according to the first transaction data.

在一个实施例中,账单请求信息包括预设的账单输出规则;In one embodiment, the bill request information includes preset bill output rules;

处理模块220包括:The processing module 220 includes:

汇总单元,汇总相关交易数据,得到相关交易数据对应的数据宽表;A summary unit, which summarizes relevant transaction data and obtains a wide data table corresponding to the relevant transaction data;

处理单元,针对数据宽表中的各相关交易数据,按照账单输出规则对各相关交易数据进行相应处理,得到符合账单输出规则的第一交易数据。The processing unit processes the relevant transaction data in the wide data table according to the bill output rules, and obtains the first transaction data conforming to the bill output rules.

在一个实施例中,装置200还包括:In one embodiment, the device 200 also includes:

核对模块,从至少一个服务节点调取第一用户的相关交易数据之后,对相关交易数据进行核对,以判断相关交易数据是否准确;The verification module checks the relevant transaction data after retrieving the relevant transaction data of the first user from at least one service node, so as to determine whether the relevant transaction data is accurate;

处理模块220包括:The processing module 220 includes:

确定单元,当确定相关交易数据准确后,确定第一用户的账单请求信息。The determining unit is configured to determine the bill request information of the first user after determining that the relevant transaction data is accurate.

在一个实施例中,账单请求信息包括生成多个账单的请求;In one embodiment, the billing request information includes a request to generate multiple bills;

装置200还包括:The device 200 also includes:

第一确定模块,确定生成各账单分别需执行的账单生成链路;各账单生成链路包含至少一个链路节点;The first determination module determines the bill generation links that need to be executed to generate each bill; each bill generation link includes at least one link node;

第二确定模块,确定各链路节点的节点属性;其中,节点属性包括用户信息、账单生成过程中的操作类型中的至少一项信息;The second determination module determines the node attributes of each link node; wherein, the node attributes include at least one item of user information and operation types in the bill generation process;

比对模块,比对各账单生成链路分别对应的链路节点,以判断各账单生成链路分别对应的链路节点的节点属性是否相同;The comparison module compares the link nodes corresponding to each bill generation link to determine whether the node attributes of the link nodes corresponding to each bill generation link are the same;

合并模块,若各账单生成链路分别对应的链路节点的节点属性相同,则对各账单生成链路分别对应的链路节点进行合并。The merging module is configured to merge the link nodes corresponding to the bill generation links if the node attributes of the link nodes corresponding to the bill generation links are the same.

在一个实施例中,装置200还包括:In one embodiment, the device 200 also includes:

配置模块,确定生成各账单分别需执行的账单生成链路之前,配置生成各类账单分别所需执行的账单生成链路;及,为账单生成链路所包含的各链路节点配置各自的节点属性。Configuration module, before determining the bill generation links that need to be executed to generate each bill, configure the bill generation links that need to be executed to generate various bills respectively; and configure their own nodes for each link node included in the bill generation link Attributes.

在一个实施例中,账单请求信息还包括账单存储地址;In one embodiment, the bill request information also includes a bill storage address;

装置200还包括:The device 200 also includes:

输出模块,将账单输出至账单存储地址。The output module outputs the bill to the bill storage address.

采用本说明书一个实施例的装置,能够将账单的生成流程整合到一个设备上,无需依赖于其他平台,从而使账单的生成更加快速、统一化;此外,正是由于账单生成链路的统一化,使得每个账单的生成过程都是一条清晰的线性链路,从而使账单生成过程中出现的各种问题容易排查,且能够降低账单生成流程的出错概率。Using the device of an embodiment of this specification, the bill generation process can be integrated into one device without relying on other platforms, so that the generation of bills is faster and more unified; in addition, it is precisely because of the unified bill generation link , so that the generation process of each bill is a clear linear link, so that various problems in the bill generation process can be easily checked, and the error probability of the bill generation process can be reduced.

本领域的技术人员应可理解,上述账单生成装置能够用来实现前文所述的账单生成方法,其中的细节描述应与前文方法部分描述类似,为避免繁琐,此处不另赘述。Those skilled in the art should understand that the above-mentioned bill generation device can be used to implement the above-mentioned bill generation method, and the detailed description thereof should be similar to the above-mentioned part of the method description, and will not be repeated here to avoid tediousness.

基于同样的思路,本说明书一个或多个实施例还提供一种账单生成设备,如图3所示。账单生成设备可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器301和存储器302,存储器302中可以存储有一个或一个以上存储应用程序或数据。其中,存储器302可以是短暂存储或持久存储。存储在存储器302的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括对账单生成设备中的一系列计算机可执行指令。更进一步地,处理器301可以设置为与存储器302通信,在账单生成设备上执行存储器302 中的一系列计算机可执行指令。账单生成设备还可以包括一个或一个以上电源 303,一个或一个以上有线或无线网络接口304,一个或一个以上输入输出接口 305,一个或一个以上键盘306。Based on the same idea, one or more embodiments of this specification further provide a bill generation device, as shown in FIG. 3 . The bill generation device may have relatively large differences due to different configurations or performances, and may include one or more processors 301 and memory 302, and one or more storage applications or data may be stored in the memory 302. Wherein, the storage 302 may be a short-term storage or a persistent storage. The application program stored in the memory 302 may include one or more modules (not shown in the figure), and each module may include a series of computer-executable instructions in the statement generation device. Furthermore, the processor 301 may be configured to communicate with the memory 302, and execute a series of computer-executable instructions in the memory 302 on the bill generation device. The bill generation device may also include one or more power sources 303, one or more wired or wireless network interfaces 304, one or more input and output interfaces 305, and one or more keyboards 306.

具体在本实施例中,账单生成设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对账单生成设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:Specifically in this embodiment, the bill generation device includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and one or more programs may include one or more modules, and each A module may comprise a series of computer-executable instructions in a statement generating device, and configured to be executed by one or more processors. The one or more programs include computer-executable instructions for performing the following:

从至少一个服务节点调取第一用户的相关交易数据;其中,所述服务节点用于记录用户交易过程中产生的所述相关交易数据;Retrieving the relevant transaction data of the first user from at least one service node; wherein the service node is used to record the relevant transaction data generated during the user's transaction process;

确定所述第一用户的账单请求信息,根据所述账单请求信息对所述相关交易数据进行处理,得到第一交易数据;determining the bill request information of the first user, and processing the relevant transaction data according to the bill request information to obtain first transaction data;

根据所述第一交易数据,生成所述第一用户的账单。A bill for the first user is generated according to the first transaction data.

可选地,所述账单请求信息包括预设的账单输出规则;Optionally, the bill request information includes preset bill output rules;

计算机可执行指令在被执行时,还可以使所述处理器:The computer-executable instructions, when executed, may also cause the processor to:

汇总所述相关交易数据,得到所述相关交易数据对应的数据宽表;Summarizing the relevant transaction data to obtain a wide data table corresponding to the relevant transaction data;

针对所述数据宽表中的各所述相关交易数据,按照所述账单输出规则对各所述相关交易数据进行相应处理,得到符合所述账单输出规则的所述第一交易数据。For each of the relevant transaction data in the data wide table, corresponding processing is performed on each of the relevant transaction data according to the bill output rule, to obtain the first transaction data conforming to the bill output rule.

可选地,计算机可执行指令在被执行时,还可以使所述处理器:Optionally, when the computer-executable instructions are executed, the processor can also:

所述从至少一个服务节点调取第一用户的相关交易数据之后,对所述相关交易数据进行核对,以判断所述相关交易数据是否准确;After the relevant transaction data of the first user is retrieved from at least one service node, the relevant transaction data is checked to determine whether the relevant transaction data is accurate;

当确定所述相关交易数据准确后,确定所述第一用户的账单请求信息。After it is determined that the relevant transaction data is accurate, the bill request information of the first user is determined.

可选地,所述账单请求信息包括生成多个账单的请求;Optionally, the bill request information includes a request to generate multiple bills;

计算机可执行指令在被执行时,还可以使所述处理器:The computer-executable instructions, when executed, may also cause the processor to:

确定生成各所述账单分别需执行的账单生成链路;各所述账单生成链路包含至少一个链路节点;Determine the bill generation link that needs to be executed to generate each of the bills; each of the bill generation links includes at least one link node;

确定各所述链路节点的节点属性;其中,所述节点属性包括用户信息、账单生成过程中的操作类型中的至少一项信息;determining node attributes of each of the link nodes; wherein, the node attributes include at least one item of user information and operation types in the bill generation process;

比对各所述账单生成链路分别对应的所述链路节点,以判断各所述账单生成链路分别对应的所述链路节点的节点属性是否相同;comparing the link nodes corresponding to each of the bill generation links to determine whether the node attributes of the link nodes corresponding to each of the bill generation links are the same;

若是,则对各所述账单生成链路分别对应的所述链路节点进行合并。If yes, merge the link nodes corresponding to each of the bill generation links.

可选地,计算机可执行指令在被执行时,还可以使所述处理器:Optionally, when the computer-executable instructions are executed, the processor can also:

所述确定生成各所述账单分别需执行的账单生成链路之前,配置生成各类账单分别所需执行的账单生成链路;及,为所述账单生成链路所包含的各链路节点配置各自的节点属性。Before determining the bill generation links that need to be executed to generate each of the bills, configure the bill generation links that need to be executed to generate various bills; and configure each link node included in the bill generation link respective node properties.

可选地,所述账单请求信息还包括账单存储地址;Optionally, the bill request information also includes a bill storage address;

计算机可执行指令在被执行时,还可以使所述处理器:The computer-executable instructions, when executed, may also cause the processor to:

将所述账单输出至所述账单存储地址。outputting the bill to the bill storage address.

本说明书一个或多个实施例还提出了一种计算机可读存储介质,该计算机可读存储介质存储一个或多个程序,该一个或多个程序包括指令,该指令当被包括多个应用程序的电子设备执行时,能够使该电子设备执行上述账单生成方法,并具体用于执行:One or more embodiments of the present specification also provide a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, the one or more programs include instructions, and when the instructions include multiple application programs When executed by an electronic device, the electronic device can be made to execute the above-mentioned bill generation method, and specifically used to execute:

从至少一个服务节点调取第一用户的相关交易数据;其中,所述服务节点用于记录用户交易过程中产生的所述相关交易数据;Retrieving the relevant transaction data of the first user from at least one service node; wherein the service node is used to record the relevant transaction data generated during the user's transaction process;

确定所述第一用户的账单请求信息,根据所述账单请求信息对所述相关交易数据进行处理,得到第一交易数据;determining the bill request information of the first user, and processing the relevant transaction data according to the bill request information to obtain first transaction data;

根据所述第一交易数据,生成所述第一用户的账单。A bill for the first user is generated according to the first transaction data.

上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules, or units described in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementing device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or Combinations of any of these devices.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书一个或多个实施例时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above devices, functions are divided into various units and described separately. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in one or more software and/or hardware.

本领域内的技术人员应明白,本说明书一个或多个实施例可提供为方法、系统、或计算机程序产品。因此,本说明书一个或多个实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书一个或多个实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等) 上实施的计算机程序产品的形式。Those skilled in the art should understand that one or more embodiments of this specification may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of the present description may employ a computer program embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The form of the product.

本说明书一个或多个实施例是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/ 或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。One or more embodiments of the present specification are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present specification. It should be understood that each process and/or block in the flowchart and/or block diagrams, and a combination of processes and/or blocks in the flowchart and/or block diagrams can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM) 和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer-readable media, in the form of random access memory (RAM) and/or nonvolatile memory such as read-only memory (ROM) or flash RAM. Memory is an example of computer readable media.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Flash memory or other memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridge, tape magnetic disk storage or other magnetic storage device or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media excludes transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes Other elements not expressly listed, or elements inherent in the process, method, commodity, or apparatus are also included. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本说明书一个或多个实施例可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书一个或多个实施例,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。One or more embodiments of this specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present description may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, refer to part of the description of the method embodiment.

以上所述仅为本说明书一个或多个实施例而已,并不用于限制本说明书。对于本领域技术人员来说,本说明书一个或多个实施例可以有各种更改和变化。凡在本说明书一个或多个实施例的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本说明书一个或多个实施例的权利要求范围之内。The above description is only one or more embodiments of this specification, and is not intended to limit this specification. For those skilled in the art, various modifications and changes may occur in one or more embodiments of this description. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included within the scope of claims of one or more embodiments of this specification.

Claims (10)

1. A bill generation method comprising:
retrieving relevant transaction data for a first user from a plurality of service nodes; each service node is used for recording the related transaction data generated by the user in different types of transaction processes;
determining bill request information of the first user, and processing the related transaction data according to the bill request information to obtain first transaction data;
generating a bill for the first user according to the first transaction data;
the processing the related transaction data according to the bill request information to obtain first transaction data includes: summarizing the related transaction data to obtain first transaction data;
the billing request information includes a request to generate a plurality of bills; generating a bill for the first user based on the first transaction data, comprising: determining bill generation links which need to be executed for generating each bill respectively, wherein each bill generation link comprises at least one link node; determining a node attribute of each of the link nodes; and if the link nodes with the same node attribute exist in the link nodes respectively corresponding to the bill generation links, merging the link nodes with the same node attribute, and merging the output results of the link nodes with the same node attribute.
2. The method of claim 1, the bill request information includes preset bill output rules;
the processing the related transaction data according to the bill request information to obtain first transaction data includes:
summarizing the related transaction data to obtain a data width table corresponding to the related transaction data;
and correspondingly processing each related transaction data in the data wide table according to the bill output rule to obtain the first transaction data according with the bill output rule.
3. The method of claim 1, after retrieving the relevant transaction data for the first user from the at least one service node, further comprising:
checking the related transaction data to judge whether the related transaction data is accurate or not;
the determining the billing request information of the first user comprises:
and when the related transaction data is determined to be accurate, determining the bill request information of the first user.
4. The method of claim 1, prior to determining a bill generation link to be executed for each of the bills, the method further comprising:
configuring a bill generation link which is required to be executed for generating various bills respectively; and configuring respective node attributes for each link node included in the bill generation link.
5. The method of claim 1, the billing request information further comprising a billing storage address;
the method further comprises the following steps:
and outputting the bill to the bill storage address.
6. A bill generation apparatus comprising:
the calling module is used for calling related transaction data of the first user from the plurality of service nodes; the service node is used for recording the related transaction data generated by the user in different types of transaction processes;
the processing module is used for determining bill request information of the first user and processing the related transaction data according to the bill request information to obtain first transaction data;
the generating module is used for generating a bill of the first user according to the first transaction data;
the processing module is used for summarizing the related transaction data to obtain first transaction data;
the generation module is used for determining a bill generation link which needs to be executed for generating each bill respectively, and each bill generation link comprises at least one link node; determining a node attribute of each link node; and if the link nodes with the same node attribute exist in the link nodes respectively corresponding to the bill generation links, merging the link nodes with the same node attribute, and merging the output results of the link nodes with the same node attribute.
7. The apparatus of claim 6, the bill request information comprising preset bill output rules;
the processing module comprises:
the summarizing unit summarizes the related transaction data to obtain a data width table corresponding to the related transaction data;
and the processing unit is used for correspondingly processing each related transaction data in the data wide table according to the bill output rule to obtain the first transaction data according with the bill output rule.
8. The apparatus of claim 6, further comprising:
the checking module is used for checking the related transaction data of the first user after the related transaction data of the first user is called from at least one service node so as to judge whether the related transaction data is accurate or not;
the processing module comprises:
and the first determining unit is used for determining the bill request information of the first user after the related transaction data are determined to be accurate.
9. A bill generation device comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
retrieving relevant transaction data for a first user from a plurality of service nodes; the service node is used for recording the related transaction data generated by the user in different types of transaction processes;
determining bill request information of the first user, and processing the related transaction data according to the bill request information to obtain first transaction data;
generating a bill for the first user according to the first transaction data;
the processing the related transaction data according to the bill request information to obtain first transaction data includes: summarizing the related transaction data to obtain first transaction data;
the billing request information includes a request to generate a plurality of bills; generating a bill for the first user based on the first transaction data, comprising: determining bill generation links which need to be executed for generating each bill respectively, wherein each bill generation link comprises at least one link node; determining a node attribute of each link node; if the link nodes with the same node attribute exist in the link nodes respectively corresponding to the bill generation links, the link nodes with the same node attribute are merged, and the output results of the link nodes with the same node attribute are merged.
10. A storage medium storing computer-executable instructions that, when executed, implement the following:
retrieving relevant transaction data for a first user from a plurality of service nodes; the service node is used for recording the related transaction data generated by the user in different types of transaction processes;
determining bill request information of the first user, and processing the related transaction data according to the bill request information to obtain first transaction data;
generating a bill for the first user according to the first transaction data;
the processing the related transaction data according to the bill request information to obtain first transaction data includes: summarizing the related transaction data to obtain first transaction data;
the billing request information includes a request to generate a plurality of bills; generating a bill for the first user based on the first transaction data, comprising: determining bill generation links which need to be executed for generating each bill respectively, wherein each bill generation link comprises at least one link node; determining a node attribute of each of the link nodes; if the link nodes with the same node attribute exist in the link nodes respectively corresponding to the bill generation links, the link nodes with the same node attribute are merged, and the output results of the link nodes with the same node attribute are merged.
CN201910927944.6A 2019-09-27 2019-09-27 Bill generation method and device Active CN110689418B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310237443.1A CN116993519A (en) 2019-09-27 2019-09-27 Bill generation method and device
CN201910927944.6A CN110689418B (en) 2019-09-27 2019-09-27 Bill generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910927944.6A CN110689418B (en) 2019-09-27 2019-09-27 Bill generation method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310237443.1A Division CN116993519A (en) 2019-09-27 2019-09-27 Bill generation method and device

Publications (2)

Publication Number Publication Date
CN110689418A CN110689418A (en) 2020-01-14
CN110689418B true CN110689418B (en) 2023-04-07

Family

ID=69110772

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202310237443.1A Pending CN116993519A (en) 2019-09-27 2019-09-27 Bill generation method and device
CN201910927944.6A Active CN110689418B (en) 2019-09-27 2019-09-27 Bill generation method and device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202310237443.1A Pending CN116993519A (en) 2019-09-27 2019-09-27 Bill generation method and device

Country Status (1)

Country Link
CN (2) CN116993519A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111402030A (en) * 2020-03-06 2020-07-10 中国建设银行股份有限公司 Bill generation method and device
CN112182505B (en) * 2020-09-09 2024-05-31 支付宝(杭州)信息技术有限公司 A method and device for processing accounting compliance

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651625B (en) * 2009-09-03 2011-09-21 中兴通讯股份有限公司 Route selection device and method for multi-service recovery
CN102158531A (en) * 2010-02-01 2011-08-17 北京大学 Distributed transmission method for query data stream
CN104932982B (en) * 2014-03-21 2019-02-12 华为技术有限公司 A compiling method and related device for message fetching
CN106156265A (en) * 2015-06-08 2016-11-23 北京天禾元创软件股份有限公司 For the method and apparatus merging tree structure
CN108985736A (en) * 2017-06-02 2018-12-11 深圳市银信网银科技有限公司 Processing method, device and the terminal of bill
CN109684408A (en) * 2018-12-07 2019-04-26 深圳市智税链科技有限公司 Data managing method, device, medium and the electronic equipment of block catenary system
CN110070350B (en) * 2019-03-25 2021-05-14 中金支付有限公司 Payment service settlement processing method and system
CN110147992B (en) * 2019-04-29 2023-08-04 创新先进技术有限公司 Bill generation method and device based on blockchain and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Structured Bill of Material Design and Consistency Maintenance in Drilling Industry";Li Runzhou等;《2014 Fifth International Conference on Intelligent Systems Design and Engineering Applications》;第922-925页 *

Also Published As

Publication number Publication date
CN116993519A (en) 2023-11-03
CN110689418A (en) 2020-01-14

Similar Documents

Publication Publication Date Title
US11314754B2 (en) Data processing method, apparatus, and device
CN109145025B (en) A data query method, device and service server integrated with multiple data sources
CN110503435B (en) Blockchain-based transaction warning methods, devices and equipment
WO2020082871A1 (en) Method, device and system for executing blockchain transactions in parallel
CN110648138A (en) Blockchain-based transaction query, transaction data processing method, device and equipment
CN112015739A (en) Data verification and data query method and device
CN110347674A (en) A kind of index creation method, device and equipment based on service identification
CN110162526A (en) Querying method, device and the equipment of data record in a kind of piece of chain type account book
WO2018219285A1 (en) Data object display method and device
CN113535720A (en) Index creating method, device and equipment in block chain type account book
CN111506580B (en) Transaction storage method based on centralized block chain type account book
CN110389989B (en) A data processing method, device and equipment
CN110689418B (en) Bill generation method and device
CN109615379B (en) Method and device for generating a chargeback processing system
CN114548744A (en) A business risk management method, device and equipment
CN111046052A (en) Method, device and equipment for storing operation records in database
CN110782253A (en) Blockchain-based transaction processing method, device and device
CN108074074A (en) Integration device and integration method thereof
CN116996556A (en) Data processing method and device
US10044823B2 (en) Social content aggregation
TWI662486B (en) Method and device for checking completeness of distributed business processing
CN117350872A (en) A data reconciliation method and device
CN111967852B (en) A regulatory document submission method, device, equipment and readable medium
CN114661826A (en) Blockchain-based data processing method, device and equipment
CN114448754A (en) External service access method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240219

Address after: Room 1408, No. 447 Nanquan North Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai, 200120

Patentee after: Shanghai Ant Chuangjiang Information Technology Co.,Ltd.

Country or region after: China

Address before: 310000 801-11 section B, 8th floor, 556 Xixi Road, Xihu District, Hangzhou City, Zhejiang Province

Patentee before: Alipay (Hangzhou) Information Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: Room 1408, No. 447 Nanquan North Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai, 200120

Patentee after: Ant International Business (Shanghai) Co.,Ltd.

Country or region after: China

Address before: Room 1408, No. 447 Nanquan North Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai, 200120

Patentee before: Shanghai Ant Chuangjiang Information Technology Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address