CN111523998A - Transaction processing method and device - Google Patents
Transaction processing method and device Download PDFInfo
- Publication number
- CN111523998A CN111523998A CN202010320518.9A CN202010320518A CN111523998A CN 111523998 A CN111523998 A CN 111523998A CN 202010320518 A CN202010320518 A CN 202010320518A CN 111523998 A CN111523998 A CN 111523998A
- Authority
- CN
- China
- Prior art keywords
- limit
- attribute parameter
- quota
- maximum allowable
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 23
- 238000012545 processing Methods 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 16
- 230000008569 process Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 14
- 238000013515 script Methods 0.000 description 12
- 230000006870 function Effects 0.000 description 5
- 238000009825 accumulation Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/02—Banking, e.g. interest calculation or account maintenance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
- G06Q20/403—Solvency checks
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
Description
技术领域technical field
本发明涉及数据处理技术领域,特别涉及一种交易处理方法及装置。The present invention relates to the technical field of data processing, and in particular, to a transaction processing method and device.
背景技术Background technique
银行卡中包括多种限额,每种限额都存在银行设置的默认额度,即最大允许额度,而用户也可以根据自己的需求设置小于最大允许额度的限额额度,当某一限额的最大允许额度更新时或新增一种限额时,需要编写一次性脚本并批量下发,将所有卡对应的限额额度逐一更新。The bank card includes a variety of limits. Each limit has a default limit set by the bank, that is, the maximum allowable limit. Users can also set a limit that is less than the maximum allowable limit according to their own needs. When the maximum allowable limit of a certain limit is updated When a limit is added from time to time or a new limit is added, a one-time script needs to be written and distributed in batches to update the corresponding limit of all cards one by one.
这种方法在每次更新最大允许额度时均需要编写一次性脚本,开发成本较高,并且,随着银行卡限额种类的不断增加,每次编写和执行脚本时都需要消耗大量的时间和资源,效率较低,此外,在脚本批量下发更新限额的过程中,对系统要求非常高,风险较大,体现在以下三方面,一旦更新失败则会引发ROLLBACK处理,在数据库COMMIT前更新的信息将无效;若在更新限额同时用户正在进行持卡交易,可能导致用户无法进行交易;批量更新限额增加的时间窗口也会影响整体运行时间。This method needs to write a one-time script every time the maximum allowable limit is updated, and the development cost is high. Moreover, with the continuous increase of the types of bank card limits, each time the script is written and executed, it needs to consume a lot of time and resources. , the efficiency is low. In addition, in the process of issuing and updating quotas in batches of scripts, the system requirements are very high and the risk is high, which is reflected in the following three aspects. Once the update fails, it will trigger ROLLBACK processing, and the information updated before the database COMMIT It will be invalid; if the user is conducting a card transaction while updating the limit, the user may not be able to conduct the transaction; the time window for batch update limit increase will also affect the overall running time.
针对上述问题,目前尚未提出有效解决方案。For the above problems, no effective solution has been proposed yet.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种交易处理方法,用于提高限额额度的更新效率,该方法包括:The embodiment of the present invention provides a transaction processing method, which is used to improve the update efficiency of the limit quota, and the method includes:
接收交易请求,确定交易请求中账户信息对应的限额属性参数,其中,限额属性参数是根据限额的最大允许额度和用户设置额度确定的,限额属性参数表示限额的最大允许额度与用户设置额度相同、或限额不存在用户设置额度、或限额的最大允许额度与用户设置额度不相同;Receive the transaction request, and determine the limit attribute parameter corresponding to the account information in the transaction request. The limit attribute parameter is determined according to the maximum allowable limit of the limit and the limit set by the user. The limit attribute parameter indicates that the maximum allowable limit of the limit is the same as the limit set by the user. Or the limit does not exist the limit set by the user, or the maximum allowable limit of the limit is different from the limit set by the user;
在限额的最大允许额度更新时,根据限额属性参数,确定限额额度;When the maximum allowable limit of the limit is updated, the limit amount is determined according to the limit attribute parameter;
根据限额额度、限额周期内的已用额度,以及交易请求中的额度,处理交易请求或拒绝交易请求。According to the limit amount, the amount used in the limit period, and the amount in the transaction request, the transaction request is processed or rejected.
本发明实施例提供一种交易处理装置,用于提高限额额度的更新效率,该装置包括:An embodiment of the present invention provides a transaction processing device, which is used to improve the update efficiency of a limit amount, and the device includes:
限额属性参数确定模块,用于接收交易请求,确定所述交易请求中账户信息对应的限额属性参数,其中,所述限额属性参数是根据限额的最大允许额度和用户设置额度确定的,所述限额属性参数表示限额的最大允许额度与用户设置额度相同、或限额不存在用户设置额度、或限额的最大允许额度与用户设置额度不相同;The limit attribute parameter determination module is configured to receive a transaction request and determine the limit attribute parameter corresponding to the account information in the transaction request, wherein the limit attribute parameter is determined according to the maximum allowable limit of the limit and the limit set by the user, and the limit The attribute parameter indicates that the maximum allowable limit of the limit is the same as the limit set by the user, or the limit does not have the limit set by the user, or the maximum allowable limit of the limit is different from the limit set by the user;
限额额度确定模块,用于在限额的最大允许额度更新时,根据所述限额属性参数,确定限额额度;A limit amount determination module, configured to determine the limit amount according to the limit attribute parameter when the maximum allowable amount of the limit is updated;
交易处理模块,用于根据所述限额额度、限额周期内的已用额度,以及所述交易请求中的额度,处理所述交易请求或拒绝所述交易请求。A transaction processing module, configured to process the transaction request or reject the transaction request according to the limit amount, the used amount in the limit period, and the amount in the transaction request.
本发明实施例还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述交易处理方法。An embodiment of 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, where the processor implements the above transaction processing method when the computer program is executed.
本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有执行上述交易处理方法的计算机程序。An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for executing the above transaction processing method.
本发明实施例通过:接收交易请求,确定交易请求中账户信息对应的限额属性参数,其中,限额属性参数是根据限额的最大允许额度和用户设置额度确定的;在限额的最大允许额度更新时,根据限额属性参数,确定限额额度;根据限额额度、限额周期内的已用额度,以及交易请求中的额度,处理交易请求或拒绝交易请求。与现有技术在限额的最大允许额度更新时需要编写一次性脚本并批量下发逐一更新限额额度相比,本发明在限额的最大允许额度更新时,可以在用户持卡交易的过程中,根据交易请求中账户信息对应的限额属性参数确定限额额度,减少了开发脚本的成本,提高了限额的更新效率,规避了批量更新的带来的风险。In the embodiment of the present invention, the limit attribute parameter corresponding to the account information in the transaction request is determined by: receiving the transaction request, wherein the limit attribute parameter is determined according to the maximum allowable limit of the limit and the limit set by the user; when the maximum allowable limit of the limit is updated, Determine the limit amount according to the limit attribute parameter; process the transaction request or reject the transaction request according to the limit amount, the used amount in the limit period, and the amount in the transaction request. Compared with the prior art, when the maximum allowable limit of the limit is updated, a one-time script needs to be written and the limit is updated one by one in batches. The limit attribute parameter corresponding to the account information in the transaction request determines the limit limit, which reduces the cost of developing scripts, improves the update efficiency of the limit, and avoids the risks brought by batch updates.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts. In the attached image:
图1为本发明实施例中交易处理方法流程的示意图;1 is a schematic diagram of the flow of a transaction processing method in an embodiment of the present invention;
图2为图1中的步骤102的具体流程图;Fig. 2 is the concrete flow chart of
图3为本发明实施例中交易处理方法具体实施例示意图;3 is a schematic diagram of a specific embodiment of a transaction processing method in an embodiment of the present invention;
图4为本发明实施例中交易处理装置结构的示意图;4 is a schematic diagram of a structure of a transaction processing apparatus in an embodiment of the present invention;
图5为本发明实施例中交易处理装置另一结构的示意图。FIG. 5 is a schematic diagram of another structure of a transaction processing apparatus in an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
为了解决现有技术在限额的最大允许额度更新时需要编写一次性脚本并批量下发逐一更新限额额度,使得限额额度的更新效率较低的技术问题,本发明实施例提供一种交易处理方法,用于提高限额额度的更新效率,图1为本发明实施例中交易处理方法流程的示意图,如图1所示,该方法包括:In order to solve the technical problem that in the prior art, when the maximum allowable limit of the limit is updated, a one-time script needs to be written and batches are issued to update the limit one by one, so that the update efficiency of the limit is low, the embodiment of the present invention provides a transaction processing method, For improving the update efficiency of the quota, FIG. 1 is a schematic diagram of the flow of a transaction processing method in an embodiment of the present invention. As shown in FIG. 1, the method includes:
步骤101:接收交易请求,确定交易请求中账户信息对应的限额属性参数,其中,限额属性参数是根据限额的最大允许额度和用户设置额度确定的,限额属性参数表示限额的最大允许额度与用户设置额度相同、或限额不存在用户设置额度、或限额的最大允许额度与用户设置额度不相同;Step 101: Receive the transaction request, and determine the limit attribute parameter corresponding to the account information in the transaction request, wherein the limit attribute parameter is determined according to the maximum allowable limit of the limit and the user-set limit, and the limit attribute parameter indicates the maximum allowable limit of the limit and the user-set limit. The quota is the same, or the quota does not have the quota set by the user, or the maximum allowable quota of the quota is different from the quota set by the user;
步骤102:在限额的最大允许额度更新时,根据限额属性参数,确定限额额度;Step 102: when the maximum allowable limit of the limit is updated, determine the limit according to the attribute parameter of the limit;
步骤103:根据限额额度、限额周期内的已用额度,以及交易请求中的额度,处理交易请求或拒绝交易请求。Step 103: Process the transaction request or reject the transaction request according to the limit amount, the used amount in the limit period, and the amount in the transaction request.
如图1所示,本发明实施例通过:接收交易请求,确定交易请求中账户信息对应的限额属性参数,其中,限额属性参数是根据限额的最大允许额度和用户设置额度确定的;在限额的最大允许额度更新时,根据限额属性参数,确定限额额度;根据限额额度、限额周期内的已用额度,以及交易请求中的额度,处理交易请求或拒绝交易请求。与现有技术在限额的最大允许额度更新时需要编写一次性脚本并批量下发逐一更新限额额度相比,本发明在限额的最大允许额度更新时,可以在用户持卡交易的过程中,根据交易请求中账户信息对应的限额属性参数确定限额额度,减少了开发脚本的成本,提高了限额的更新效率,规避了批量更新的带来的风险。As shown in FIG. 1, the embodiment of the present invention determines the limit attribute parameter corresponding to the account information in the transaction request by receiving the transaction request, wherein the limit attribute parameter is determined according to the maximum allowable limit of the limit and the limit set by the user; When the maximum allowable limit is updated, the limit limit is determined according to the limit attribute parameter; according to the limit limit, the used limit within the limit period, and the limit in the transaction request, the transaction request is processed or rejected. Compared with the prior art, when the maximum allowable limit of the limit is updated, a one-time script needs to be written and the limit is updated one by one in batches. The limit attribute parameter corresponding to the account information in the transaction request determines the limit limit, which reduces the cost of developing scripts, improves the update efficiency of the limit, and avoids the risks brought by batch updates.
具体实施时,步骤101中,在接收交易请求之前,可以首先设置账户信息对应的限额属性参数,账户信息可以是卡号或账号,每个卡号或账号可以包括多种限额,例如可以是:ATM取款日限额、ATM转账月限额、二类户转出年限额等,每种限额都可以设置一个限额属性参数,限额属性参数可以根据限额的最大允许额度和用户设置额度确定,其中,限额的最大允许额度可以是银行系统设置的一个默认额度,如表1所示,用户可以根据实际需求调整限额额度,如表2所示,但是用户设置额度一般不能超过最大允许额度。In specific implementation, in
表1限额默认额度表Table 1 Default limit table
表2限额用户设置额度表Table 2 Quota User Setting Quota Table
具体实施时,在任意一种限额的最大允许额度与用户设置额度相同或该限额不存在用户设置额度时,认为该限额的最大允许额度与用户设置保持一致,可以将该限额的属性参数设置为第一属性参数,第一属性参数可以是“0”,在该限额的最大允许额度与用户设置额度不相同时,可以将该限额的属性参数设置为第二属性参数,第二属性参数可以是“1”。限额属性参数是卡片或账户的固有属性参数,每次用户在进行持卡交易时,可以根据交易请求,读取交易请求中账户信息对应的限额属性参数。During specific implementation, when the maximum allowable limit of any kind of limit is the same as the limit set by the user or the limit does not have a limit set by the user, it is considered that the maximum allowable limit of the limit is consistent with the user setting, and the attribute parameter of the limit can be set as The first attribute parameter, the first attribute parameter can be "0", when the maximum allowable limit of the limit is different from the limit set by the user, the attribute parameter of the limit can be set as the second attribute parameter, and the second attribute parameter can be "1". The limit attribute parameter is the inherent attribute parameter of the card or account. Each time the user conducts a card-holding transaction, the user can read the limit attribute parameter corresponding to the account information in the transaction request according to the transaction request.
图2为图1中的步骤102的具体流程图,如图2所示,在一个实施例中,步骤102根据限额属性参数,确定限额额度,可以包括:FIG. 2 is a specific flowchart of
步骤1021:在限额属性参数为第一属性参数时,根据第一属性参数,将限额更新后的最大允许额度确定为限额额度;Step 1021: when the limit attribute parameter is the first attribute parameter, determine the maximum allowable limit after the limit update as the limit limit according to the first attribute parameter;
其中,限额属性参数为第一属性参数表示限额的最大允许额度与用户设置额度相同、或限额不存在用户设置额度。The limit attribute parameter being the first attribute parameter indicates that the maximum allowable limit of the limit is the same as the limit set by the user, or the limit does not have the limit set by the user.
在一个实施例中,上述步骤1021还可以包括:In one embodiment, the
在限额属性参数为第一属性参数时,根据第一属性参数,基于限额的最大允许额度和用户设置额度的生效时间戳,将生效时间戳较后的额度确定为限额额度。When the quota attribute parameter is the first attribute parameter, according to the first attribute parameter, based on the maximum allowable quota of the quota and the effective timestamp of the quota set by the user, the quota with a later effective timestamp is determined as the quota quota.
具体实施时,步骤1021中,在限额的最大允许额度更新时,可以根据步骤101中读取到的限额属性参数,确定限额额度,在限额的属性参数为第一属性参数即“0”时,将限额更新后的最大允许额度确定为限额额度,例如:某账户的ATM取款日限额的最大允许额度为1万元,用户设置额度也为1万元或用户没有设置额度,该账户ATM取款日限额的限额属性参数为“0”,则在ATM取款日限额的最大允许额度变更为2万元时,可以基于限额属性参数“0”,将变更后的最大允许额度2万元作为该账户ATM取款日限额的额度。由于一个账户可以包括多种限额,在多种限额的最大允许额度同时发生变更且限额属性参数为“0”时,为了避免对每一种限额的变更后的最大允许额度和用户设置额度进行逐一比较,还可以基于限额的最大允许额度和用户设置额度的生效时间戳,将生效时间戳较后的额度确定为限额额度,例如可以将限额的最大允许额度和用户设置额度的生效时间戳进行比较,在限额的最大允许额度的生效时间戳晚于用户设置额度的生效时间戳时,将最大允许额度确定为限额额度,在限额的用户设置额度的生效时间戳晚于最大允许额度的生效时间戳时,将最大允许额度确定为限额额度。During specific implementation, in
如图2所示,在一个实施例中,步骤102根据限额属性参数,确定限额额度,还可以包括:As shown in FIG. 2, in one embodiment,
步骤1022:在限额属性参数为第二属性参数时,根据第二属性参数,将限额更新后的最大允许额度与用户设置额度之间的较小值确定为限额额度;Step 1022: When the limit attribute parameter is the second attribute parameter, according to the second attribute parameter, determine the smaller value between the updated maximum allowable limit and the user-set limit as the limit limit;
其中,限额属性参数为第二属性参数表示限额的最大允许额度与用户设置额度不相同。The limit attribute parameter is the second attribute parameter, indicating that the maximum allowable limit of the limit is different from the limit set by the user.
具体实施时,步骤1022中,在限额的属性参数设为第二属性参数即“1”时,将限额更新后的最大允许额度与用户设置额度之间的较小值确定为限额额度,例如:某账户的ATM取款日限额的最大允许额度为1万元,用户设置额度为5千元,该账户ATM取款日限额的限额属性参数为“1”,则在ATM取款日限额的最大允许额度变更为2万元时,可以基于限额属性参数“1”,将限额更新后的最大允许额度2万元与用户设置额度5千元之间的较小值,即5千元确定为该账户ATM取款日限额的额度;在ATM取款日限额的最大允许额度变更为3千元时,可以基于限额属性参数“1”,将限额更新后的最大允许额度3千元与用户设置额度5千元之间的较小值,即3千元作为该账户ATM取款日限额的额度。During specific implementation, in
在一个实施例中,在步骤102确定了限额额度之后,该方法还可以包括:In one embodiment, after the limit amount is determined in
根据限额更新后的最大允许额度与用户设置额度,更新限额属性参数。Update the limit attribute parameter according to the updated maximum allowable limit and the user-set limit.
具体实施时,可以将限额更新后的最大允许额度与用户设置额度进行比较,根据比较结果,重新确定限额属性参数,用于在限额的最大允许额度再一次更新时确定限额额度。In specific implementation, the maximum allowable limit after the limit update can be compared with the limit set by the user, and according to the comparison result, the limit attribute parameter is re-determined, which is used to determine the limit limit when the maximum allowable limit of the limit is updated again.
具体实施时,步骤103中,在确定了限额额度之后,可以首先读取本次交易中的请求额度,然后从账户额度累计表中读取该限额在累计周期内已有的交易额度和交易次数,将已有的交易额度与本次交易中的请求额度相加,累计交易次数,如果相加后的额度超出限额额度,则拒绝本次交易,如果相加后的额度没有超出限额额度,则处理本次交易,并将本次的交易信息更新至账户额度累计表中。In specific implementation, in
下面举一个具体的例子,以便于理解本发明如何实施。图3为本发明实施例中交易处理方法具体实施例示意图,如图3所示,包括如下步骤:A specific example is given below to facilitate understanding of how the present invention is implemented. FIG. 3 is a schematic diagram of a specific embodiment of a transaction processing method in an embodiment of the present invention, as shown in FIG. 3 , including the following steps:
第一步:根据限额的最大允许额度和用户设置额度设置限额属性参数为“0”或“1”;Step 1: Set the limit attribute parameter to "0" or "1" according to the maximum allowable limit of the limit and the limit set by the user;
第二步:接收交易请求,读取交易请求中账户信息对应的限额属性参数;Step 2: Receive the transaction request, and read the limit attribute parameter corresponding to the account information in the transaction request;
第三步:在限额的最大允许额度更新时,根据限额属性参数,确定限额额度,在限额的属性参数设为“0”时,将限额更新后的最大允许额度确定为限额额度或将限额的最大允许额度和用户设置额度的生效时间戳较后的额度确定为限额额度;在限额的属性参数设为第二属性参数即“1”时,将限额更新后的最大允许额度与用户设置额度之间的较小值确定为限额额度;Step 3: When the maximum allowable limit of the limit is updated, determine the limit amount according to the attribute parameter of the limit. When the attribute parameter of the limit is set to "0", determine the maximum allowable limit after the limit update as the limit limit or set the limit of the limit. The maximum allowable limit and the limit after the effective time stamp of the user-set limit is determined as the limit limit; when the attribute parameter of the limit is set to the second attribute parameter, namely "1", the maximum allowable limit after the limit update and the user-set limit are calculated. The smaller value between the two is determined as the limit amount;
第四步:根据限额更新后的最大允许额度与用户设置额度,重新确定限额属性参数;Step 4: Re-determine the limit attribute parameters according to the updated maximum allowable limit and the limit set by the user;
第五步:读取本次交易中的请求额度,以及该限额在累计周期内已有的交易额度和交易次数,将已有的交易额度与本次交易中的请求额度相加,如果相加后的额度超出限额额度,则拒绝本次交易;如果相加后的额度没有超出限额额度,则处理本次交易。Step 5: Read the request quota in this transaction, as well as the existing transaction quota and transaction times of the quota in the cumulative period, and add the existing transaction quota to the request quota in this transaction. If the added amount exceeds the limit, the transaction will be rejected; if the added amount does not exceed the limit, the transaction will be processed.
基于同一发明构思,本发明实施例中还提供了一种交易处理装置,如下面的实施例。由于交易处理装置解决问题的原理与交易处理方法相似,因此装置的实施可以参见方法的实施,重复之处不再赘述。以下所使用的,术语“单元”或者“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。Based on the same inventive concept, an embodiment of the present invention also provides a transaction processing apparatus, such as the following embodiments. Since the principle of solving the problem of the transaction processing device is similar to that of the transaction processing method, the implementation of the device can be referred to the implementation of the method, and the repetition will not be repeated. As used below, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
为了解决现有技术在限额的最大允许额度更新时需要编写一次性脚本并批量下发逐一更新限额额度,使得限额额度的更新效率较低的技术问题,本发明实施例提供一种交易处理装置,用于提高限额额度的更新效率,图4为本发明实施例中交易处理装置结构的示意图,如图4所示,该装置包括:In order to solve the technical problem in the prior art that when the maximum allowable limit of the limit is updated, a one-time script needs to be written and batches are issued to update the limit one by one, so that the update efficiency of the limit is low, the embodiment of the present invention provides a transaction processing device, For improving the update efficiency of the limit amount, FIG. 4 is a schematic diagram of the structure of a transaction processing device in an embodiment of the present invention. As shown in FIG. 4 , the device includes:
限额属性参数确定模块01,用于接收交易请求,确定交易请求中账户信息对应的限额属性参数,其中,限额属性参数是根据限额的最大允许额度和用户设置额度确定的,限额属性参数表示限额的最大允许额度与用户设置额度相同、或限额不存在用户设置额度、或限额的最大允许额度与用户设置额度不相同;The limit attribute
限额额度确定模块02,用于在限额的最大允许额度更新时,根据限额属性参数,确定限额额度;The limit
交易处理模块03,用于根据限额额度、限额周期内的已用额度,以及交易请求中的额度,处理交易请求或拒绝交易请求。The
在一个实施例中,限额额度确定模块02具体用于:In one embodiment, the limit
在限额属性参数为第一属性参数时,根据第一属性参数,将限额更新后的最大允许额度确定为限额额度;When the limit attribute parameter is the first attribute parameter, according to the first attribute parameter, the maximum allowable limit after the limit update is determined as the limit limit;
其中,限额属性参数为第一属性参数表示限额的最大允许额度与用户设置额度相同、或限额不存在用户设置额度。The limit attribute parameter being the first attribute parameter indicates that the maximum allowable limit of the limit is the same as the limit set by the user, or the limit does not have the limit set by the user.
在一个实施例中,限额额度确定模块02进一步用于:In one embodiment, the limit
在限额属性参数为第一属性参数时,根据第一属性参数,基于限额的最大允许额度和用户设置额度的生效时间戳,将生效时间戳较后的额度确定为限额额度。When the quota attribute parameter is the first attribute parameter, according to the first attribute parameter, based on the maximum allowable quota of the quota and the effective timestamp of the quota set by the user, the quota with a later effective timestamp is determined as the quota quota.
在一个实施例中,限额额度确定模块02进一步用于:In one embodiment, the limit
在限额属性参数为第二属性参数时,根据第二属性参数,将限额更新后的最大允许额度与用户设置额度之间的较小值确定为限额额度;When the limit attribute parameter is the second attribute parameter, according to the second attribute parameter, the smaller value between the maximum allowable limit after the limit update and the limit set by the user is determined as the limit limit;
其中,限额属性参数为第二属性参数表示限额的最大允许额度与用户设置额度不相同。The limit attribute parameter is the second attribute parameter, indicating that the maximum allowable limit of the limit is different from the limit set by the user.
图5为本发明实施例中交易处理装置另一结构的示意图,如图5所示,在一个实施例中,还包括,限额属性参数更新模块04,用于:FIG. 5 is a schematic diagram of another structure of the transaction processing apparatus in the embodiment of the present invention. As shown in FIG. 5, in one embodiment, it further includes a limit attribute
根据限额更新后的最大允许额度与用户设置额度,更新限额属性参数。Update the limit attribute parameter according to the updated maximum allowable limit and the user-set limit.
本发明实施例还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述交易处理方法。An embodiment of 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, where the processor implements the above transaction processing method when the computer program is executed.
本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质存储有执行上述交易处理方法的计算机程序。An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for executing the above transaction processing method.
综上所述,本发明实施例通过:接收交易请求,确定交易请求中账户信息对应的限额属性参数,其中,限额属性参数是根据限额的最大允许额度和用户设置额度确定的;在限额的最大允许额度更新时,根据限额属性参数,确定限额额度;根据限额额度、限额周期内的已用额度,以及交易请求中的额度,处理交易请求或拒绝交易请求。与现有技术在限额的最大允许额度更新时需要编写一次性脚本并批量下发逐一更新限额额度相比,本发明在限额的最大允许额度更新时,可以在用户持卡交易的过程中,根据交易请求中账户信息对应的限额属性参数确定限额额度,减少了开发脚本的成本,提高了限额的更新效率,规避了批量更新的带来的风险。To sum up, the embodiment of the present invention determines the limit attribute parameter corresponding to the account information in the transaction request by receiving the transaction request, wherein the limit attribute parameter is determined according to the maximum allowable limit of the limit and the limit set by the user; When the allowable quota is updated, the quota is determined according to the attribute parameter of the quota; the transaction request is processed or rejected according to the quota, the used quota in the quota period, and the quota in the transaction request. Compared with the prior art, when the maximum allowable limit of the limit is updated, a one-time script needs to be written and the limit is updated one by one in batches. The limit attribute parameter corresponding to the account information in the transaction request determines the limit limit, which reduces the cost of developing scripts, improves the update efficiency of the limit, and avoids the risks brought by batch updates.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product 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 present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a 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 function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
以上仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明实施例可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, various modifications and changes may be made to the embodiments of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010320518.9A CN111523998A (en) | 2020-04-22 | 2020-04-22 | Transaction processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010320518.9A CN111523998A (en) | 2020-04-22 | 2020-04-22 | Transaction processing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111523998A true CN111523998A (en) | 2020-08-11 |
Family
ID=71911034
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010320518.9A Pending CN111523998A (en) | 2020-04-22 | 2020-04-22 | Transaction processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111523998A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113283907A (en) * | 2021-05-31 | 2021-08-20 | 中国民航信息网络股份有限公司 | Order request processing method, related device and storage medium |
CN114066465A (en) * | 2021-11-17 | 2022-02-18 | 中国银行股份有限公司 | System transaction quota control method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951977A (en) * | 2015-06-04 | 2015-09-30 | 中国银行股份有限公司 | Cumulative balance based bank card utilization method and cumulative balance based bank card utilization device |
US20160203484A1 (en) * | 2015-01-12 | 2016-07-14 | Mastercard International Incorporated | Method and system for retry processing of controlled payment transactions |
CN108846675A (en) * | 2018-07-18 | 2018-11-20 | 阿里巴巴集团控股有限公司 | A kind of payment limit method of adjustment and device |
CN109409865A (en) * | 2018-09-18 | 2019-03-01 | 平安科技(深圳)有限公司 | Pay limit synchronization adjustment method, device, computer equipment and storage medium |
-
2020
- 2020-04-22 CN CN202010320518.9A patent/CN111523998A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160203484A1 (en) * | 2015-01-12 | 2016-07-14 | Mastercard International Incorporated | Method and system for retry processing of controlled payment transactions |
CN104951977A (en) * | 2015-06-04 | 2015-09-30 | 中国银行股份有限公司 | Cumulative balance based bank card utilization method and cumulative balance based bank card utilization device |
CN108846675A (en) * | 2018-07-18 | 2018-11-20 | 阿里巴巴集团控股有限公司 | A kind of payment limit method of adjustment and device |
CN109409865A (en) * | 2018-09-18 | 2019-03-01 | 平安科技(深圳)有限公司 | Pay limit synchronization adjustment method, device, computer equipment and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113283907A (en) * | 2021-05-31 | 2021-08-20 | 中国民航信息网络股份有限公司 | Order request processing method, related device and storage medium |
CN113283907B (en) * | 2021-05-31 | 2024-05-03 | 中国民航信息网络股份有限公司 | Order request processing method, related device and storage medium |
CN114066465A (en) * | 2021-11-17 | 2022-02-18 | 中国银行股份有限公司 | System transaction quota control method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103391311B (en) | A kind of multi-platform between the method and system of consistency verification of data | |
CN110046980B (en) | Financial data generation system and method | |
CN112288439A (en) | Risk assessment method and device, electronic equipment and readable storage medium | |
US11144536B2 (en) | Systems and methods for real-time analytics detection for a transaction utilizing synchronously updated statistical aggregation data | |
CN111523998A (en) | Transaction processing method and device | |
CN109949144A (en) | Entry processing method, apparatus, device and computer-readable storage medium | |
CN111754330A (en) | Interest calculation device and method for early withdrawal of fixed account | |
CN113569536A (en) | Account checking processing method and device and electronic equipment | |
CN109447777B (en) | Financial data processing method and device, electronic equipment and readable medium | |
CN114169997A (en) | A debit method and device | |
CN113064837A (en) | Database benchmark test method and device based on transaction scene | |
CN111681008A (en) | Risk control method, device, equipment and storage medium | |
CN111461864A (en) | Transaction processing method and device | |
US9652766B1 (en) | Managing data stored in memory locations having size limitations | |
CN110852679A (en) | Document adjusting method, device and equipment | |
CN116975079A (en) | Hot account high concurrent payment processing method, medium and device based on redis | |
CN112035503B (en) | Transaction data updating method and device | |
CN116069797A (en) | Method, device, equipment and storage medium for generating timestamp of multi-version database | |
WO2020034752A1 (en) | Floating income calculation method, apparatus and device, and computer-readable storage medium | |
CN111192088A (en) | Method and apparatus for determining settlement target of point and computer readable storage medium | |
CN110377662A (en) | A kind of distributed data processing method and system | |
US10867288B1 (en) | Blockchain payment notification system | |
CN115357346B (en) | Transaction processing method and device based on block chain, electronic equipment and medium | |
JP6890753B1 (en) | Pooling management system, pooling management method and pooling management program | |
CN116188132A (en) | Uninterrupted running day-end processing method, device, equipment and medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200811 |
|
RJ01 | Rejection of invention patent application after publication |