CN111930760A - Transaction flow distributed batch processing method and system - Google Patents

Transaction flow distributed batch processing method and system Download PDF

Info

Publication number
CN111930760A
CN111930760A CN202010702599.9A CN202010702599A CN111930760A CN 111930760 A CN111930760 A CN 111930760A CN 202010702599 A CN202010702599 A CN 202010702599A CN 111930760 A CN111930760 A CN 111930760A
Authority
CN
China
Prior art keywords
clearing
module
transaction
transaction flow
batch
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.)
Granted
Application number
CN202010702599.9A
Other languages
Chinese (zh)
Other versions
CN111930760B (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.)
Yinsheng Payment Service Co Ltd
Original Assignee
Yinsheng Payment Service 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 Yinsheng Payment Service Co Ltd filed Critical Yinsheng Payment Service Co Ltd
Priority to CN202010702599.9A priority Critical patent/CN111930760B/en
Publication of CN111930760A publication Critical patent/CN111930760A/en
Application granted granted Critical
Publication of CN111930760B publication Critical patent/CN111930760B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Technology Law (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种交易流水分布式批量处理方法及其系统,包括调度模块、交易流水模块、清算模块以及分润计算模块,所述调度模块、交易流水、清算模块以及分润计算模块依次连接,所述调度模块用于触发清算模块执行清算交易,所述交易流水会实时通过交易流水模块的数据库同步到清算模块内的交易存储数据库中,每隔一段时间查出多种类型订单消费数据,并通过清洗转换过滤,清算成功后存储于清算模块的数据库中,供分润计算模块提取计算分润手续费,本发明可支持业务维度的数据量上涨清算,并且不影响其他维度的跑批执行时间,可以支持快速迁移数据,方便各种业务处理。

Figure 202010702599

The invention discloses a transaction flow distributed batch processing method and a system thereof, comprising a scheduling module, a transaction flow module, a clearing module and a profit sharing calculation module, wherein the scheduling module, the transaction flow, the clearing module and the profit sharing calculation module are connected in sequence , the scheduling module is used to trigger the clearing module to execute clearing transactions, the transaction flow will be synchronized to the transaction storage database in the clearing module through the database of the transaction flow module in real time, and various types of order consumption data will be found at regular intervals. And through cleaning, conversion and filtering, after successful liquidation, it is stored in the database of the liquidation module for the profit distribution calculation module to extract and calculate the profit distribution fee. The present invention can support the increase in data volume in the business dimension and liquidation, and does not affect the execution of batches in other dimensions. Time, can support rapid data migration and facilitate various business processing.

Figure 202010702599

Description

一种交易流水分布式批量处理方法及其系统A transaction flow distributed batch processing method and system thereof

技术领域technical field

本发明涉及网络业务交易技术领域,具体涉及一种交易流水分布式批量处理方法及其系统。The invention relates to the technical field of network business transactions, in particular to a transaction flow distributed batch processing method and system.

背景技术Background technique

在现有技术当中,系统由于是以业务(如客户)维度来清分计算,这种方式会使得当某个业务维度的交易量分布不均匀,个别业务交易量增长快,数据过于庞大时,这种业务会影响到所有客户的清分计算时间,导致系统执行缓慢,从而影响到了整个系统运行时间。In the prior art, the system uses the business (such as customer) dimension to sort and calculate, this method will make when the transaction volume of a certain business dimension is unevenly distributed, the transaction volume of individual business grows rapidly, and the data is too large, This kind of business will affect the sorting calculation time of all customers, causing the system to execute slowly, thus affecting the running time of the entire system.

发明内容SUMMARY OF THE INVENTION

为了克服现有技术的不足,本发明提供一种将交易流水进行分布式批量处理方法及其系统,当单个业务交易量上涨,本发明解决了业务维度的数据量上涨影响到其他维度的跑批执行时间。In order to overcome the deficiencies of the prior art, the present invention provides a distributed batch processing method and system for the transaction flow. When the transaction volume of a single business increases, the present invention solves the problem that the increase in the data volume of the business dimension affects the batch running of other dimensions. execution time.

本发明解决其技术问题所采用的技术方案是:一种交易流水分布式批量处理方法,其改进之处在于,所述方法包括下列步骤:The technical solution adopted by the present invention to solve the technical problem is: a transaction flow distributed batch processing method, and its improvement lies in that the method comprises the following steps:

S1:调度模块定时将交易流水模块内的交易流水导入清算模块;S1: The scheduling module regularly imports the transaction flow in the transaction flow module into the clearing module;

S2:所述交易流水模块的数据库将交易流水同步于清算模块的交易存储数据库中;S2: the database of the transaction flow module synchronizes the transaction flow with the transaction storage database of the clearing module;

S3:所述清算模块查出交易的数据,通过清洗转换过滤器过滤后转换成带有清算批字号的清算流水,形成清算批次号数据,所述多个清算批次号数据以清算批次表格式存在清算模块的数据库中。S3: The clearing module finds out the transaction data, filters it through the cleaning conversion filter, and converts it into clearing flow with clearing batch numbers to form clearing batch number data. The table format is stored in the database of the clearing module.

S4:调度模块将清算批次表从清算模块的数据库中提取至分润计算模块进行分润手续费的计算。S4: The scheduling module extracts the liquidation batch table from the database of the liquidation module to the profit distribution calculation module to calculate the profit distribution fee.

作为上述技术方案的改进,在上述步骤S2中,清洗转换过滤并存入清算模块的数据库中的步骤包括:As an improvement of the above technical solution, in the above step S2, the steps of cleaning, converting, filtering and storing in the database of the clearing module include:

S21:所述清算模块查询出成功的交易流水;S21: The clearing module inquires about the successful transaction flow;

S22:将成功的交易流水导入清算模块;S22: Import the successful transaction flow into the clearing module;

S23:所述清算模块通过关联其他交易流水表将成功的清算流水转换成需要的字段后,形成带有清算批字号的清算流水或者清算批字号为空的清算流水;S23: After the clearing module converts the successful clearing flow into the required fields by associating with other transaction flow tables, a clearing flow with a clearing batch number or a clearing batch with an empty clearing batch number is formed;

S24:更新每笔交易的清算批次号信息形成清算批次号表,并通过调度模块存储于清算模块的数据库中。S24: Update the clearing batch number information of each transaction to form a clearing batch number table, which is stored in the database of the clearing module through the scheduling module.

作为上述技术方案的改进,所述交易流水包括消费、订单、代付、退款或者其他交易类型的数据。As an improvement of the above technical solution, the transaction flow includes data of consumption, order, payment, refund or other transaction types.

作为上述技术方案的改进,所述清算批次表包括清算日期、批次号、组号、清算状态以及笔数。As an improvement of the above technical solution, the liquidation batch table includes liquidation date, batch number, group number, liquidation status and number of transactions.

一种交易流水分布式批量处理系统,其改进之处在于,包括调度模块、交易流水模块、清算模块以及分润计算模块,所述调度模块、交易流水、清算模块以及分润计算模块依次连接,所述调度模块用于触发清算模块执行清算交易,所述交易流水会实时通过交易流水模块的数据库同步到清算模块内的交易存储数据库中,每隔一段时间查出多种类型订单消费数据,并通过清洗转换过滤,清算成功后存储于清算模块的数据库中,供分润计算模块提取计算分润手续费。A distributed batch processing system for transaction flow, which is improved in that it includes a scheduling module, a transaction flow module, a clearing module and a profit sharing calculation module, wherein the scheduling module, the transaction flow, the clearing module and the profit sharing calculation module are connected in sequence, The scheduling module is used to trigger the clearing module to execute the clearing transaction, and the transaction flow will be synchronized to the transaction storage database in the clearing module through the database of the transaction flow module in real time. Through cleaning, conversion and filtering, after successful liquidation, it is stored in the database of the liquidation module for the profit-sharing calculation module to extract and calculate the profit-sharing fee.

作为上述技术方案的改进,所述清洗转换过滤并存入清算模块的数据库中的步骤包括:As an improvement of the above technical solution, the steps of cleaning, converting, filtering and storing in the database of the clearing module include:

S21:所述清算模块查询出成功的交易流水;S21: The clearing module inquires about the successful transaction flow;

S22:将成功的交易流水导入清算模块;S22: Import the successful transaction flow into the clearing module;

S23:所述清算模块通过关联其他交易流水表将成功的清算流水转换成需要的字段后,形成带有清算批字号的清算流水或者清算批字号为空的清算流水;S23: After the clearing module converts the successful clearing flow into the required fields by associating with other transaction flow tables, a clearing flow with a clearing batch number or a clearing batch with an empty clearing batch number is formed;

S24:更新每笔交易的清算批次号信息形成清算批次号表,并存储于清算模块的数据库中。S24: Update the clearing batch number information of each transaction to form a clearing batch number table, and store it in the database of the clearing module.

作为上述技术方案的改进,所述清算模块清算的交易流水包括消费、订单或者其他交易类型的数据。As an improvement of the above technical solution, the transaction flow cleared by the clearing module includes data of consumption, order or other transaction types.

作为上述技术方案的改进,所述清算批次表包括清算日期、批次号、组号、清算状态以及笔数。As an improvement of the above technical solution, the liquidation batch table includes liquidation date, batch number, group number, liquidation status and number of transactions.

一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其改进之处在于,所述处理器执行所述计算机程序时实现上述任一项所述方法。A computer device, comprising a memory, a processor, and a computer program stored on the memory and running on the processor, the improvement is that the processor implements any one of the methods described above when executing the computer program .

一种计算机可读存储介质,其该之处在于,所述计算机可读存储介质存储有执行上述任一项所述方法的计算机程序。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing any one of the methods described above.

本发明的有益效果是:本发明可支持业务维度的数据量上涨清算,并且不影响其他维度的跑批执行时间,可以支持快速迁移数据,方便各种业务处理。The beneficial effects of the present invention are: the present invention can support the increase and clearing of the data volume in the business dimension, without affecting the execution time of batch running in other dimensions, can support rapid data migration, and facilitate various business processing.

附图说明Description of drawings

下面结合附图和实施例对本发明进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

图1是本发明的系统流程图。FIG. 1 is a system flow diagram of the present invention.

图2是本发明的系统流程图。Figure 2 is a system flow diagram of the present invention.

图3是本发明的清算交易流程图。Figure 3 is a flow chart of a clearing transaction of the present invention.

具体实施方式Detailed ways

以下将结合实施例和附图对本发明的构思、具体结构及产生的技术效果进行清楚、完整地描述,以充分地理解本发明的目的、特征和效果。显然,所描述的实施例只是本发明的一部分实施例,而不是全部实施例,基于本发明的实施例,本领域的技术人员在不付出创造性劳动的前提下所获得的其他实施例,均属于本发明保护的范围。另外,专利中涉及到的所有联接/连接关系,并非单指构件直接相接,而是指可根据具体实施情况,通过添加或减少联接辅件,来组成更优的联接结构。本发明创造中的各个技术特征,在不互相矛盾冲突的前提下可以交互组合。The concept, specific structure and technical effects of the present invention will be clearly and completely described below with reference to the embodiments and accompanying drawings, so as to fully understand the purpose, characteristics and effects of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, other embodiments obtained by those skilled in the art without creative efforts are all within the scope of The scope of protection of the present invention. In addition, all the coupling/connection relationships involved in the patent do not mean that the components are directly connected, but refer to a better coupling structure by adding or reducing coupling accessories according to the specific implementation. Various technical features in the present invention can be combined interactively on the premise of not contradicting each other.

参照图1和图2,本发明揭示了一种交易流水分布式批量处理方法,所述方法包括下列步骤:1 and 2, the present invention discloses a transaction flow distributed batch processing method, the method includes the following steps:

S1:调度模块1定时将交易流水模块2内的交易流水导入清算模块3;S1: The scheduling module 1 regularly imports the transaction flow in the transaction flow module 2 into the clearing module 3;

S2:所述交易流水模块2的数据库将交易流水同步于清算模块3的交易存储数据库中;S2: the database of the transaction flow module 2 synchronizes the transaction flow with the transaction storage database of the clearing module 3;

S3:所述清算模块3查出交易的数据,通过清洗转换过滤器过滤后转换成带有清算批字号的清算流水,形成清算批次号数据,所述多个清算批次号数据以清算批次表格式存在清算模块3的数据库中。S3: The clearing module 3 finds out the transaction data, filters it through the cleaning conversion filter, and converts it into a clearing flow with a clearing batch number to form clearing batch number data. The secondary table format is stored in the database of the clearing module 3.

S4:调度模块1将清算批次表从清算模块3的数据库中提取至分润计算模块4进行分润手续费的计算。S4: The scheduling module 1 extracts the liquidation batch table from the database of the liquidation module 3 to the profit distribution calculation module 4 to calculate the distribution fee.

在上述步骤S2中,清洗转换过滤并存入清算模块3的数据库中的步骤包括:In the above-mentioned step S2, the steps of cleaning, converting, filtering and storing in the database of the clearing module 3 include:

S21:所述清算模块3查询出成功的交易流水;S21: The clearing module 3 inquires about the successful transaction flow;

S22:将成功的交易流水导入清算模块3;S22: Import the successful transaction flow into the clearing module 3;

S23:所述清算模块3通过关联其他交易流水表将成功的清算流水转换成需要的字段后,形成带有清算批字号的清算流水或者清算批字号为空的清算流水;S23: After the clearing module 3 converts the successful clearing flow into the required fields by associating with other transaction flow tables, a clearing flow with a clearing batch number or a clearing batch with an empty clearing batch number is formed;

S24:更新每笔交易的清算批次号信息形成清算批次号表,并通过调度模块1存储于清算模块3的数据库中。S24: Update the clearing batch number information of each transaction to form a clearing batch number table, which is stored in the database of the clearing module 3 through the scheduling module 1.

在上述实施例中,参考图3,所述交易流水会实时通过交易流水模块2的数据库同步到清算模块3的交易存储数据库中,形成清算交易表,所述清算交易表会通过调度模块1触发执行,每隔一段时间查出不同类型订单消费等的清算交易流水的一批数据出来,通过清洗转换过滤,查询出成功的交易流水,并通过关联其他交易流水表转换成需要的字段之后,转成清算流水,并存储在数据库中。In the above embodiment, referring to FIG. 3 , the transaction flow will be synchronized to the transaction storage database of the clearing module 3 through the database of the transaction flow module 2 in real time to form a clearing transaction table, which will be triggered by the scheduling module 1 Execute, find out a batch of data of the clearing transaction flow of different types of order consumption, etc. at regular intervals, and query the successful transaction flow through cleaning, conversion and filtering, and convert it into the required fields by associating other transaction flow tables. into a clearing stream and stored in the database.

进一步的,所述交易流水包括消费、订单、代付、退款或者其他交易类型的数据,支持多种清算交易类型。Further, the transaction flow includes data of consumption, order, payment, refund or other transaction types, and supports multiple types of clearing transactions.

再进一步的,所述清算批次表包括清算日期、批次号、组号、清算状态以及笔数。全面整合交易的清算日期、批次号、组号、清算状态以及笔数,使得交易流水数据被全面透明化,方便清算流水交易数据。Still further, the liquidation batch table includes liquidation date, batch number, group number, liquidation status and number of transactions. The clearing date, batch number, group number, clearing status and number of transactions are fully integrated, so that the transaction flow data is fully transparent, and it is convenient to clear the flow transaction data.

本发明的调度模块1定时从交易流水模块2抽取数据到清算模块3时,每一笔清算流水会附加一个清算批次号字段,当交易流水导入清算模块3后会给每一场清算流水每N笔设上一个清算批次号,组号由机器节点数来决定,机器节点数X由配置文件获取可以动态修改,并根据机器X节点数来分配执行X组号,假设节点数为X,就是1到X,每个组号分配N笔交易流水,并根据清算日期,批次号,组号,清算状态,笔数,保存为清算批次表,调度模块1执行清算跑批任务执行时,如图1所示,调度模块1会根据清算批次表分配的机器节点数X,向分润计算模块4内的多个服务器发送执行命令,每台服务器会跟调度模块1发送的命令来选取一台机器,该服务器会取得这个组号相关的交易流水来清分计算流水,从而达到多服务分布式批量处理目的。When the scheduling module 1 of the present invention regularly extracts data from the transaction flow module 2 to the clearing module 3, a clearing batch number field will be attached to each clearing flow. Set a clearing batch number for N pen. The group number is determined by the number of machine nodes. The number of machine nodes X is obtained from the configuration file and can be dynamically modified, and the number of execution X group numbers is allocated according to the number of X nodes of the machine. Assuming that the number of nodes is X, It is from 1 to X. Each group number is assigned N transactions, and according to the clearing date, batch number, group number, clearing status, and number of transactions, it is saved as a clearing batch table. When the scheduling module 1 executes the clearing run batch task , as shown in Figure 1, the scheduling module 1 will send execution commands to multiple servers in the profit-sharing calculation module 4 according to the number of machine nodes X allocated by the liquidation batch table, and each server will follow the commands sent by the scheduling module 1. Select a machine, and the server will obtain the transaction flow related to this group number to clear the calculation flow, so as to achieve the purpose of multi-service distributed batch processing.

一种交易流水分布式批量处理系统,包括调度模块1、交易流水模块2、清算模块3以及分润计算模块4,所述调度模块1、交易流水模块2、清算模块3以及分润计算模块4依次连接,所述调度模块1用于触发清算模块3执行清算交易,所述交易流水会实时通过交易流水模块2的数据库同步到清算模块3内的交易存储数据库中,每隔一段时间查出多种类型订单消费数据,并通过清洗转换过滤,清算成功后存储于清算模块3的数据库中,供分润计算模块4提取计算分润手续费,业务维度的数据量上涨时,减轻其他维度的跑批执行时间,支持快速迁移数据,方便各种业务处理。A transaction flow distributed batch processing system, comprising a scheduling module 1, a transaction flow module 2, a clearing module 3 and a profit distribution calculation module 4, the scheduling module 1, the transaction flow module 2, the clearing module 3 and the profit distribution calculation module 4 Connected in sequence, the scheduling module 1 is used to trigger the clearing module 3 to execute the clearing transaction, and the transaction flow will be synchronized to the transaction storage database in the clearing module 3 through the database of the transaction flow module 2 in real time. The consumption data of various types of orders are collected and filtered through cleaning, transformation and filtering. After successful liquidation, they are stored in the database of the liquidation module 3 for the profit distribution calculation module 4 to extract and calculate the profit distribution fee. When the data volume of the business dimension increases, the running of other dimensions is reduced. Batch execution time, supports rapid data migration, and facilitates various business processing.

清洗转换过滤并存入清算模块的数据库中的步骤包括:The steps to clean, transform, filter and store in the clearing module's database include:

S21:所述清算模块3查询出成功的交易流水;S21: The clearing module 3 inquires about the successful transaction flow;

S22:将成功的交易流水导入清算模块3;S22: Import the successful transaction flow into the clearing module 3;

S23:所述清算模块3通过关联其他交易流水表将成功的清算流水转换成需要的字段后,形成带有清算批字号的清算流水或者清算批字号为空的清算流水;S23: After the clearing module 3 converts the successful clearing flow into the required fields by associating with other transaction flow tables, a clearing flow with a clearing batch number or a clearing batch with an empty clearing batch number is formed;

S24:更新每笔交易的清算批次号信息形成清算批次号表,并存储于清算模块3的数据库中。S24 : Update the clearing batch number information of each transaction to form a clearing batch number table, and store it in the database of the clearing module 3 .

在上述实施例中,如图3所示,所述交易流水会实时通过数据库同步到清算模块3的交易存储数据库中,形成清算交易表,所述清算交易表会通过调度模块1触发执行,每隔一段时间查出不同类型订单消费等的清算交易流水的一批数据出来,通过清洗转换过滤,查询出需要导入到清算流水的成功状态,并通过关联其他交易流水表转换成需要的字段之后,转成清算流水,并存储在清算模块3的数据库中。In the above embodiment, as shown in FIG. 3 , the transaction flow will be synchronized to the transaction storage database of the clearing module 3 through the database in real time to form a clearing transaction table. The clearing transaction table will be triggered and executed by the scheduling module 1. After a period of time, find out a batch of data of the clearing transaction flow of different types of order consumption, etc., through the cleaning conversion filter, query the successful status that needs to be imported into the clearing flow, and convert it into the required fields by associating other transaction flow tables, It is converted into clearing flow and stored in the database of clearing module 3.

进一步的,所述交易流水包括消费、订单、代付、退款或者其他交易类型的数据。支持多种清算交易类型。Further, the transaction flow includes data of consumption, order, payment, refund or other transaction types. Multiple clearing transaction types are supported.

再进一步的,所述清算批次表包括清算日期、批次号、组号、清算状态以及笔数。全面整合交易的清算日期、批次号、组号、清算状态以及笔数,使得交易流水数据被全面透明化,方便清算流水交易数据。Still further, the liquidation batch table includes liquidation date, batch number, group number, liquidation status and number of transactions. The clearing date, batch number, group number, clearing status and number of transactions are fully integrated, so that the transaction flow data is fully transparent, and it is convenient to clear the flow transaction data.

本发明的调度模块1定时从交易流水模块2抽取数据到清算模块3时,每一笔清算流水会附加一个清算批次号字段,当交易流水导入清算模块3后会给每一场清算流水每N笔设上一个清算批次号,组号由机器节点数来决定,机器节点数X由配置文件获取,可以动态修改,并根据机器X节点数来分配执行X组号,假设节点数为X,就是1到X,每个组号分配N笔交易流水,并根据清算日期,批次号,组号,清算状态,笔数,保存为清算批次表,调度模块1执行清算跑批任务执行时,调度模块1会根据清算批次表分配的机器节点数X,向分润计算模块4内的多个服务器发送执行命令,每台服务器会跟调度模块发送的命令来选取一台机器,该服务器会取得这个组号相关的交易流水来清分计算流水,从而达到多服务分布式批量处理目的。When the scheduling module 1 of the present invention regularly extracts data from the transaction flow module 2 to the clearing module 3, a clearing batch number field will be attached to each clearing flow. Set a clearing batch number for N pen. The group number is determined by the number of machine nodes. The number of machine nodes X is obtained from the configuration file, which can be dynamically modified, and the number of X group numbers is allocated and executed according to the number of X nodes of the machine, assuming that the number of nodes is X , that is, 1 to X, each group number is allocated N transactions, and according to the clearing date, batch number, group number, clearing status, and number of transactions, it is saved as a clearing batch table, and the scheduling module 1 executes the clearing and running batch tasks. At the same time, the scheduling module 1 will send execution commands to multiple servers in the profit-sharing calculation module 4 according to the number of machine nodes X allocated by the liquidation batch table, and each server will select a machine according to the command sent by the scheduling module. The server will obtain the transaction flow related to this group number to clear the calculation flow, so as to achieve the purpose of multi-service distributed batch processing.

本发明还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现的上述任一项所述方法。The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements any one of the methods described above when the processor executes the computer program .

本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有执行上述任一项所述方法的计算机程序。The present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for executing any one of the methods described above.

本发明的有益效果是:本发明可支持业务维度的数据量上涨清算,并且不影响其他维度的跑批执行时间,可以支持快速迁移数据,方便各种业务处理。The beneficial effects of the present invention are: the present invention can support the increase and clearing of the data volume in the business dimension, without affecting the execution time of batch running in other dimensions, can support rapid data migration, and facilitate various business processing.

以上是对本发明的较佳实施进行了具体说明,但本发明创造并不限于所述实施例,熟悉本领域的技术人员在不违背本发明精神的前提下还可做出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described embodiments, and those skilled in the art can also make various equivalent deformations or replacements on the premise that does not violate the spirit of the present invention , these equivalent modifications or substitutions are all included within the scope defined by the claims of the present application.

Claims (10)

1.一种交易流水分布式批量处理方法,其特征在于,所述方法包括下列步骤:1. a transaction flow distributed batch processing method, is characterized in that, described method comprises the following steps: S1:调度模块定时将交易流水模块内的交易流水导入清算模块;S1: The scheduling module regularly imports the transaction flow in the transaction flow module into the clearing module; S2:所述交易流水模块的数据库将交易流水同步于清算模块的交易存储数据库中;S2: the database of the transaction flow module synchronizes the transaction flow with the transaction storage database of the clearing module; S3:所述清算模块查出交易的数据,通过清洗转换过滤器过滤后转换成带有清算批字号的清算流水,形成清算批次号数据,所述多个清算批次号数据以清算批次表格式存在清算模块的数据库中。S3: The clearing module finds out the transaction data, filters it through the cleaning conversion filter, and converts it into clearing flow with clearing batch numbers to form clearing batch number data. The table format is stored in the database of the clearing module. S4:调度模块将清算批次表从清算模块的数据库中提取至分润计算模块进行分润手续费的计算。S4: The scheduling module extracts the liquidation batch table from the database of the liquidation module to the profit distribution calculation module to calculate the profit distribution fee. 2.根据权利要求1所述的一种交易流水分布式批量处理方法,其特征在于,在上述步骤S2中,清洗转换过滤并存入清算模块的数据库中的步骤包括:2. A transaction flow distributed batch processing method according to claim 1, characterized in that, in the above step S2, the steps of cleaning, converting, filtering and storing in the database of the clearing module include: S21:所述清算模块查询出成功的交易流水;S21: The clearing module inquires about the successful transaction flow; S22:将成功的交易流水导入清算模块;S22: Import the successful transaction flow into the clearing module; S23:所述清算模块通过关联其他交易流水表将成功的清算流水转换成需要的字段后,形成带有清算批字号的清算流水或者清算批字号为空的清算流水;S23: After the clearing module converts the successful clearing flow into the required fields by associating with other transaction flow tables, a clearing flow with a clearing batch number or a clearing batch with an empty clearing batch number is formed; S24:更新每笔交易的清算批次号信息形成清算批次号表,并通过调度模块存储于清算模块的数据库中。S24: Update the clearing batch number information of each transaction to form a clearing batch number table, which is stored in the database of the clearing module through the scheduling module. 3.根据权利要求1所述的一种交易流水分布式批量处理方法,其特征在于,所述交易流水包括消费、订单、代付、退款或者其他交易类型的数据。3 . The distributed batch processing method for transaction flow according to claim 1 , wherein the transaction flow includes data of consumption, order, payment, refund or other transaction types. 4 . 4.根据权利要求1所述的一种交易流水分布式批量处理方法,其特征在于,所述清算批次表包括清算日期、批次号、组号、清算状态以及笔数。4 . The distributed batch processing method for transaction flow according to claim 1 , wherein the liquidation batch table includes liquidation date, batch number, group number, liquidation status and number of transactions. 5 . 5.一种交易流水分布式批量处理系统,其特征在于,包括调度模块、交易流水模块、清算模块以及分润计算模块,所述调度模块、交易流水、清算模块以及分润计算模块依次连接,所述调度模块用于触发清算模块执行清算交易,所述交易流水会实时通过交易流水模块的数据库同步到清算模块内的交易存储数据库中,每隔一段时间查出多种类型订单消费数据,并通过清洗转换过滤,清算成功后存储于清算模块的数据库中,供分润计算模块提取计算分润手续费。5. A transaction flow distributed batch processing system, characterized in that it comprises a scheduling module, a transaction flow module, a clearing module and a profit sharing calculation module, wherein the scheduling module, the transaction flow, the clearing module and the profit sharing calculation module are connected in sequence, The scheduling module is used to trigger the clearing module to execute the clearing transaction, and the transaction flow will be synchronized to the transaction storage database in the clearing module through the database of the transaction flow module in real time. Through cleaning, conversion and filtering, after successful liquidation, it is stored in the database of the liquidation module for the profit-sharing calculation module to extract and calculate the profit-sharing fee. 6.根据权利要求5所述的一种交易流水分布式批量处理系统,其特征在于,所述清洗转换过滤并存入清算模块的数据库中的步骤包括:6. A transaction flow distributed batch processing system according to claim 5, wherein the step of cleaning, converting, filtering and storing in the database of the clearing module comprises: S21:所述清算模块查询出成功的交易流水;S21: The clearing module inquires about the successful transaction flow; S22:将成功的交易流水导入清算模块;S22: Import the successful transaction flow into the clearing module; S23:所述清算模块通过关联其他交易流水表将成功的清算流水转换成需要的字段后,形成带有清算批字号的清算流水或者清算批字号为空的清算流水;S23: After the clearing module converts the successful clearing flow into the required fields by associating with other transaction flow tables, a clearing flow with a clearing batch number or a clearing batch with an empty clearing batch number is formed; S24:更新每笔交易的清算批次号信息形成清算批次号表,并存储于清算模块的数据库中。S24: Update the clearing batch number information of each transaction to form a clearing batch number table, and store it in the database of the clearing module. 7.根据权利要求5所述的一种交易流水分布式批量处理系统,其特征在于,所述交易流水包括消费、订单、代付、退款或者其他交易类型的数据。7 . The distributed batch processing system for transaction flow according to claim 5 , wherein the transaction flow includes data of consumption, order, payment, refund or other transaction types. 8 . 8.根据权利要求5所述的一种交易流水分布式批量处理系统,其特征在于,所述清算批次表包括清算日期、批次号、组号、清算状态以及笔数。8 . The distributed batch processing system for transaction flow according to claim 5 , wherein the liquidation batch table includes liquidation date, batch number, group number, liquidation status and number of transactions. 9 . 9.一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至4任一项所述方法。9. A computer device comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements any of claims 1 to 4 when the processor executes the computer program method described in item. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有执行权利要求1至4任一项所述方法的计算机程序。10. A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 4.
CN202010702599.9A 2020-07-21 2020-07-21 A transaction flow distributed batch processing method and system Active CN111930760B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010702599.9A CN111930760B (en) 2020-07-21 2020-07-21 A transaction flow distributed batch processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010702599.9A CN111930760B (en) 2020-07-21 2020-07-21 A transaction flow distributed batch processing method and system

Publications (2)

Publication Number Publication Date
CN111930760A true CN111930760A (en) 2020-11-13
CN111930760B CN111930760B (en) 2025-01-21

Family

ID=73313673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010702599.9A Active CN111930760B (en) 2020-07-21 2020-07-21 A transaction flow distributed batch processing method and system

Country Status (1)

Country Link
CN (1) CN111930760B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650568A (en) * 2020-12-22 2021-04-13 银盛支付服务股份有限公司 Merchant netting difference settlement method, system, computer equipment and storage medium
CN112860745A (en) * 2021-01-29 2021-05-28 拉卡拉支付股份有限公司 Separate settlement method, server and storage medium
CN117648381A (en) * 2023-12-21 2024-03-05 易方达基金管理有限公司 Data synchronization method and device based on real-time transaction
CN118363952A (en) * 2024-06-19 2024-07-19 中卫信软件股份有限公司 Multi-task pipelined data cleaning system and method based on preventive inoculation platform

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104751359A (en) * 2013-12-30 2015-07-01 中国银联股份有限公司 System and method for payment and settlement
CN107491563A (en) * 2017-09-28 2017-12-19 深圳市爱贝信息技术有限公司 Towards the data processing method and system of settlement for account
CN108446972A (en) * 2018-02-07 2018-08-24 深圳市雁联计算系统有限公司 Bank's Supervision of credit method, apparatus and fund position manage system
CN109753531A (en) * 2018-12-26 2019-05-14 深圳市麦谷科技有限公司 A kind of big data statistical method, system, computer equipment and storage medium
CN110060140A (en) * 2019-03-15 2019-07-26 深圳壹账通智能科技有限公司 Mass data account checking method, device, medium and computer equipment
KR20200004739A (en) * 2019-01-16 2020-01-14 전지훈 Method for marketing to distribute sales profits of products
CN110796470A (en) * 2019-08-13 2020-02-14 广州中国科学院软件应用技术研究所 Market subject supervision and service oriented data analysis system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104751359A (en) * 2013-12-30 2015-07-01 中国银联股份有限公司 System and method for payment and settlement
CN107491563A (en) * 2017-09-28 2017-12-19 深圳市爱贝信息技术有限公司 Towards the data processing method and system of settlement for account
CN108446972A (en) * 2018-02-07 2018-08-24 深圳市雁联计算系统有限公司 Bank's Supervision of credit method, apparatus and fund position manage system
CN109753531A (en) * 2018-12-26 2019-05-14 深圳市麦谷科技有限公司 A kind of big data statistical method, system, computer equipment and storage medium
KR20200004739A (en) * 2019-01-16 2020-01-14 전지훈 Method for marketing to distribute sales profits of products
CN110060140A (en) * 2019-03-15 2019-07-26 深圳壹账通智能科技有限公司 Mass data account checking method, device, medium and computer equipment
CN110796470A (en) * 2019-08-13 2020-02-14 广州中国科学院软件应用技术研究所 Market subject supervision and service oriented data analysis system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650568A (en) * 2020-12-22 2021-04-13 银盛支付服务股份有限公司 Merchant netting difference settlement method, system, computer equipment and storage medium
CN112860745A (en) * 2021-01-29 2021-05-28 拉卡拉支付股份有限公司 Separate settlement method, server and storage medium
CN117648381A (en) * 2023-12-21 2024-03-05 易方达基金管理有限公司 Data synchronization method and device based on real-time transaction
CN118363952A (en) * 2024-06-19 2024-07-19 中卫信软件股份有限公司 Multi-task pipelined data cleaning system and method based on preventive inoculation platform

Also Published As

Publication number Publication date
CN111930760B (en) 2025-01-21

Similar Documents

Publication Publication Date Title
CN111930760A (en) Transaction flow distributed batch processing method and system
CN109753531A (en) A kind of big data statistical method, system, computer equipment and storage medium
CN100531055C (en) Data synchronous system and its method
CN102508709B (en) Distributed-cache-based acquisition task scheduling method in purchase, supply and selling integrated electric energy acquiring and monitoring system
CN105718565B (en) The construction method and construction device of data warehouse model
CN105787058B (en) A kind of user tag system and the data delivery system based on user tag system
CN103631870A (en) System and method used for large-scale distributed data processing
CN109901918A (en) A kind of method and apparatus handling overtime task
CN110032591A (en) A kind of assets big data intelligent analysis method
CN110489441A (en) A kind of extemporaneous querying method and equipment based on big data
CN102567428A (en) Method and device for managing life cycle of online data
CN110222039A (en) Data storage and garbage data cleaning method, device, equipment and storage medium
CN112085488A (en) General point account management method and system
CN105808653A (en) User label system-based data processing method and device
CN111666144A (en) Batch processing task execution method and system and machine room deployment system
CN103294799B (en) A kind of data parallel batch imports the method and system of read-only inquiry system
CN110134689A (en) Target group screening method, system and computer equipment based on subject object label changes
van Dongen et al. EMiT: A process mining tool
CN110175206A (en) Intellectual analysis operational approach, system and medium for multiple database separation
CN102890807A (en) Method and device for generating split rules of clearing and settlement subsystem
CN101252451B (en) Method and middleware for Web server system requesting to distinguish service ensuring service quality
CN102075896B (en) Price previewing method and system
CN109977139A (en) Data processing method and device based on type of structured query statement
CN109829003A (en) Database backup method and device
CN114265887A (en) A dimensional data processing method, device, storage medium and electronic device

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