[go: up one dir, main page]

CN109949144A - Entry processing method, apparatus, device and computer-readable storage medium - Google Patents

Entry processing method, apparatus, device and computer-readable storage medium Download PDF

Info

Publication number
CN109949144A
CN109949144A CN201910225550.6A CN201910225550A CN109949144A CN 109949144 A CN109949144 A CN 109949144A CN 201910225550 A CN201910225550 A CN 201910225550A CN 109949144 A CN109949144 A CN 109949144A
Authority
CN
China
Prior art keywords
accounts
transaction
user account
account
accounting data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910225550.6A
Other languages
Chinese (zh)
Inventor
周青
侯向辉
廖博
李斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910225550.6A priority Critical patent/CN109949144A/en
Publication of CN109949144A publication Critical patent/CN109949144A/en
Pending legal-status Critical Current

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

It keeps accounts processing method the invention discloses one kind, this method comprises: when receiving the financial transaction order triggered based on a certain user account, according to preset accounting processing rule, the accounting data of the user account saved in account system database is updated;It obtains corresponding with the financial transaction order wait the transaction that keeps accounts;According to described wait keep accounts transaction and the updated accounting data real-time deal that executes the user account keeps accounts operation.It keeps accounts processing unit, equipment and a kind of computer readable storage medium the invention also discloses one kind.It is to meet 7*24 hours service characteristics that the present invention, which solves existing billing and accounting system, it is necessary to do human cost and the higher technical problem of time cost caused by business packaging.

Description

入账处理方法、装置、设备及计算机可读存储介质Entry processing method, apparatus, device and computer-readable storage medium

技术领域technical field

本发明涉及金融科技(Fintech)技术领域,尤其涉及入账处理方法、装置、设备及计算机可读存储介质。The present invention relates to the technical field of financial technology (Fintech), and in particular, to an account entry processing method, apparatus, device, and computer-readable storage medium.

背景技术Background technique

近年来,随着金融科技的不断发展,对银行业务系统提出了越来越高的要求。比如,对于贷款账务系统,要求提供7*24小时全天候贷款服务,且查询的贷款数据必须是准确无误的,这些数据包括额度、还款计划、借还款记录等页面展示数据,计算出来的金额差一分钱也会被银监会问责。In recent years, with the continuous development of financial technology, higher and higher requirements have been placed on the banking system. For example, for the loan accounting system, it is required to provide 7*24 hours all-weather loan services, and the loan data inquired must be accurate. These data include page display data such as quota, repayment plan, loan and repayment records, etc. The calculated A penny difference in the amount will also be held accountable by the CBRC.

传统的贷款账务系统一般都是白天处理正常放还款和冲正(对错误的转账、汇款业务进行纠正)联机交易,同时记录交易流水,等到晚上做批量操作,批量操作包括两个部分:日切和跑批。日切是指全局将交易时间由昨天改到今天,而不是以机器时间作为真实的交易时间;跑批包括计息、账龄更新、结转、结息和入账等步骤。The traditional loan accounting system generally processes online transactions during the day for normal repayment and reversal (correcting wrong transfers and remittances), while recording the transaction flow, and waiting for batch operations at night. Batch operations include two parts: Day cut and run batch. Daily cut refers to changing the transaction time from yesterday to today, rather than using machine time as the real transaction time; batch running includes steps such as interest calculation, aging update, carry-over, interest settlement and account entry.

上述贷款账务系统的缺陷在于:不能保证数据的实时性,都是在批后更新余额,在日间到跑批这段时间,需要通过非金融系统(一个提供账务数据查询的接口系统)做业务包装来满足7*24小时服务特性,然而,非金融系统的业务包装是非常复杂的,需要在原有工程代码上去接入新的业务,人力成本和时间成本都较高。The shortcomings of the above loan accounting system are: the real-time data cannot be guaranteed, and the balance is updated after the batch. During the period from the day to the batch, a non-financial system (an interface system that provides accounting data query) is required. To do business packaging to meet the 7*24-hour service characteristics, however, the business packaging of non-financial systems is very complex, requiring access to new services in the original engineering code, and the labor cost and time cost are high.

发明内容SUMMARY OF THE INVENTION

本发明的主要目的在于提出一种入账处理方法、装置、设备及计算机可读存储介质,旨在解决现有的账务系统为满足7*24小时服务特性,必须做业务包装而导致的人力成本和时间成本较高的技术问题。The main purpose of the present invention is to provide an account entry processing method, device, equipment and computer-readable storage medium, which aims to solve the labor cost caused by the need for business packaging in the existing accounting system in order to meet the 7*24-hour service characteristics and technical problems with high time cost.

为实现上述目的,本发明提供一种入账处理方法,所述入账处理方法包括如下步骤:In order to achieve the above purpose, the present invention provides an account entry processing method, and the account entry processing method includes the following steps:

当接收到基于某一用户账户所触发的金融交易指令时,根据预设的账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新;When receiving a financial transaction instruction triggered based on a certain user account, update the accounting data of the user account stored in the accounting system database according to preset accounting processing rules;

获取与所述金融交易指令对应的待入账交易;obtaining the transaction to be credited corresponding to the financial transaction instruction;

根据所述待入账交易和更新后的所述账务数据执行所述用户账户的实时交易入账操作。The real-time transaction crediting operation of the user account is performed according to the transaction to be credited and the updated account data.

优选地,所述根据所述待入账交易和更新后的所述账务数据执行所述用户账户的实时交易入账操作的步骤之后,还包括:Preferably, after the step of performing the real-time transaction crediting operation of the user account according to the transaction to be credited and the updated account data, the method further includes:

当接收到基于所述用户账户所触发的账务数据查询指令时,判断所述用户账户的账务数据是否在预定时间段内进行过更新;When receiving an accounting data query instruction triggered based on the user account, determine whether the accounting data of the user account has been updated within a predetermined time period;

若所述用户账户的账务数据在预定时间段内进行过更新,则查询更新后的所述账务数据;If the accounting data of the user account has been updated within a predetermined time period, query the updated accounting data;

若所述用户账户的账务数据在预定时间段内未进行过更新,则根据所述账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新,并查询更新后的所述账务数据。If the accounting data of the user account has not been updated within a predetermined period of time, update the accounting data of the user account saved in the accounting system database according to the accounting processing rules, and query and update The following accounting data.

优选地,所述入账处理方法还包括:Preferably, the account entry processing method further includes:

在指定时间点,获取所述预定时间段内既未接受到金融交易指令也未接收到账务数据查询指令的用户账户;At a specified time point, obtain user accounts that have neither received financial transaction instructions nor accounting data query instructions within the predetermined time period;

对账务系统数据库中保存的所述既未接受到金融交易指令也未接收到账务数据查询指令的用户账户的账务数据进行更新。The accounting data of the user account that has neither received the financial transaction instruction nor the accounting data query instruction stored in the accounting system database is updated.

优选地,所述根据所述待入账交易和更新后的所述账务数据执行所述用户账户的实时交易入账操作的步骤包括:Preferably, the step of performing the real-time transaction crediting operation of the user account according to the transaction to be credited and the updated account data includes:

在所述实时交易入账过程中,判断是否发生乐观锁冲突;During the real-time transaction entry process, determine whether an optimistic locking conflict occurs;

若发生乐观锁冲突,则执行乐观锁重试操作;If an optimistic lock conflict occurs, perform an optimistic lock retry operation;

当连续执行乐观锁重试操作超过预设次数时,输出提示信息以提示当前服务繁忙,并将所述待入账交易标记为入账未成功。When the optimistic lock retry operation is continuously performed for more than a preset number of times, prompt information is output to indicate that the current service is busy, and the transaction to be credited is marked as unsuccessful.

优选地,所述入账处理方法还包括:Preferably, the account entry processing method further includes:

根据预设的轮询线程定期轮询入账未成功的交易;Periodically poll the unsuccessful transactions according to the preset polling thread;

将所述入账未成功的交易提交至预设的联机交易处理线程,以使所述联机交易处理线程对所述入账未成功的交易进行再入账处理。Submitting the transaction that has not been successfully entered into the account to a preset online transaction processing thread, so that the online transaction processing thread can perform re-entry processing on the transaction that has not been successfully entered into the account.

优选地,所述将所述入账未成功的交易提交至预设的联机交易处理线程,以使所述联机交易处理线程对所述入账未成功的交易进行再入账处理的步骤之后,还包括:Preferably, after the step of submitting the unsuccessful transaction to the account to a preset online transaction processing thread, so that the online transaction processing thread re-credits the unsuccessful transaction, the method further includes:

获取轮询阶段再入账未成功的交易,将所述再入账未成功的交易展示在前端页面,并发出入账失败的提示信息。Acquire the unsuccessful re-entry transactions in the polling stage, display the unsuccessful re-entry transactions on the front-end page, and issue a prompt message that the re-entry failed.

此外,为实现上述目的,本发明还提供一种入账处理装置,所述入账处理装置包括:In addition, in order to achieve the above purpose, the present invention also provides an account entry processing device, the account entry processing device includes:

第一更新模块,用于当接收到基于某一用户账户所触发的金融交易指令时,根据预设的账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新;The first update module is used to update the accounting data of the user account stored in the accounting system database according to preset accounting processing rules when receiving a financial transaction instruction triggered based on a certain user account ;

第一获取模块,用于获取与所述金融交易指令对应的待入账交易;a first acquisition module, configured to acquire transactions to be credited corresponding to the financial transaction instructions;

入账模块,用于根据所述待入账交易和更新后的所述账务数据执行所述用户账户的实时交易入账操作。An account entry module, configured to perform a real-time transaction entry operation of the user account according to the transaction to be entered into the account and the updated account data.

优选地,所述入账处理装置还包括:Preferably, the account entry processing device further includes:

判断模块,用于当接收到基于所述用户账户所触发的账务数据查询指令时,判断所述用户账户的账务数据是否在预定时间段内进行过更新;a judgment module, configured to judge whether the account data of the user account has been updated within a predetermined time period when receiving the account data query instruction triggered based on the user account;

第一查询模块,用于若所述用户账户的账务数据在预定时间段内进行过更新,则查询更新后的所述账务数据;a first query module, configured to query the updated accounting data if the accounting data of the user account has been updated within a predetermined time period;

第二查询模块,用于若所述用户账户的账务数据在预定时间段内未进行过更新,则根据所述账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新,并查询更新后的所述账务数据。The second query module is configured to, if the accounting data of the user account has not been updated within a predetermined period of time, according to the accounting processing rules, query the accounting data of the user account saved in the accounting system database The data is updated, and the updated accounting data is queried.

优选地,所述入账处理装置还包括:Preferably, the account entry processing device further includes:

第二获取模块,用于在指定时间点,获取所述预定时间段内既未接受到金融交易指令也未接收到账务数据查询指令的用户账户;The second acquisition module is configured to acquire, at a specified time point, user accounts that have neither received financial transaction instructions nor received accounting data query instructions within the predetermined time period;

第二更新模块,用于对账务系统数据库中保存的所述既未接受到金融交易指令也未接收到账务数据查询指令的用户账户的账务数据进行更新。The second update module is configured to update the accounting data of the user account that has neither received financial transaction instructions nor received accounting data query instructions stored in the accounting system database.

优选地,所述入账模块还用于:Preferably, the account entry module is also used for:

在所述实时交易入账过程中,判断是否发生乐观锁冲突;During the real-time transaction entry process, determine whether an optimistic locking conflict occurs;

若发生乐观锁冲突,则执行乐观锁重试操作;If an optimistic lock conflict occurs, perform an optimistic lock retry operation;

当连续执行乐观锁重试操作超过预设次数时,输出提示信息以提示当前服务繁忙,并将所述待入账交易标记为入账未成功。When the optimistic lock retry operation is continuously performed for more than a preset number of times, prompt information is output to indicate that the current service is busy, and the transaction to be credited is marked as unsuccessful.

优选地,所述入账处理装置还包括:Preferably, the account entry processing device further includes:

轮询模块,用于根据预设的轮询线程定期轮询入账未成功的交易;The polling module is used to periodically poll the unsuccessful transactions according to the preset polling thread;

提交模块,用于将所述入账未成功的交易提交至预设的联机交易处理线程,以使所述联机交易处理线程对所述入账未成功的交易进行再入账处理。The submission module is configured to submit the transaction that is not successfully entered into the account to a preset online transaction processing thread, so that the online transaction processing thread performs re-entry processing on the transaction that is unsuccessful in the entry into the account.

优选地,所述入账处理装置还包括:Preferably, the account entry processing device further includes:

展示模块,用于获取轮询阶段再入账未成功的交易,将所述再入账未成功的交易展示在前端页面,并发出入账失败的提示信息。The display module is used to obtain the unsuccessful transactions of re-entry in the polling stage, display the unsuccessful transactions of re-entry on the front-end page, and issue a prompt message of unsuccessful entry.

此外,为实现上述目的,本发明还提供一种入账处理设备,所述入账处理设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的入账处理程序,所述入账处理程序被所述处理器执行时实现如上所述的入账处理方法的步骤。In addition, in order to achieve the above object, the present invention also provides an account entry processing device, the account entry processing device includes: a memory, a processor, and an account entry processing program stored in the memory and running on the processor. When the credit processing program is executed by the processor, the steps of the credit processing method described above are implemented.

此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有入账处理程序,所述入账处理程序被处理器执行时实现如上所述的入账处理方法的步骤。In addition, in order to achieve the above purpose, the present invention also provides a computer-readable storage medium on which an account entry processing program is stored, and when the account entry processing program is executed by the processor, the above-mentioned account entry processing is realized steps of the method.

本发明提出的入账处理方法,当接收到基于某一用户账户所触发的金融交易指令时,根据预设的账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新;获取与所述金融交易指令对应的待入账交易;根据所述待入账交易和更新后的所述账务数据执行所述用户账户的实时交易入账操作。通过这种方式,保证了账务系统对接收到的每一笔金融交易进行实时入账,而非等到晚上做批量操作时再入账,当后续查询该用户账户的当前账务数据时,可以直接从账务系统数据库中读取,从而本发明实现了在无需业务包装的前提下,满足7*24小时服务特性,避免了由于业务包装而导致的人力成本和时间成本。According to the account entry processing method proposed by the present invention, when a financial transaction instruction triggered based on a certain user account is received, the accounting data of the user account stored in the accounting system database is processed according to preset accounting processing rules. updating; acquiring the transaction to be credited corresponding to the financial transaction instruction; and executing the real-time transaction crediting operation of the user account according to the transaction to be credited and the updated accounting data. In this way, it is ensured that the accounting system will record each financial transaction received in real time, instead of waiting for the batch operation at night, and when subsequently querying the current accounting data of the user account, you can directly access the account from the account. Therefore, the present invention can meet the service characteristics of 7*24 hours without business packaging, and avoid labor cost and time cost caused by business packaging.

附图说明Description of drawings

图1是本发明实施例方案涉及的硬件运行环境的设备结构示意图;1 is a schematic diagram of a device structure of a hardware operating environment involved in an embodiment of the present invention;

图2为本发明入账处理方法第一实施例的流程示意图。FIG. 2 is a schematic flowchart of the first embodiment of the account entry processing method according to the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

如图1所示,图1是本发明实施例方案涉及的硬件运行环境的设备结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of a device structure of a hardware operating environment involved in an embodiment of the present invention.

本发明实施例入账处理设备可以是PC机或服务器设备。The account entry processing device in the embodiment of the present invention may be a PC or a server device.

如图1所示,该入账处理设备可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the account entry processing device may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 . Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface). The memory 1005 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .

本领域技术人员可以理解,图1中示出的设备结构并不构成对设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the device structure shown in FIG. 1 does not constitute a limitation on the device, and may include more or less components than the one shown, or combine some components, or arrange different components.

如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及入账处理程序。As shown in FIG. 1 , the memory 1005, which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and an account processing program.

在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的入账处理程序,并执行下述入账处理方法各个实施例中的操作。In the terminal shown in FIG. 1 , the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (client) and perform data communication with the client; and the processor 1001 can be used to call the account entry processing program stored in the memory 1005, and perform the operations in various embodiments of the account entry processing method described below.

基于上述硬件结构,提出本发明入账处理方法实施例。Based on the above hardware structure, an embodiment of the account entry processing method of the present invention is proposed.

参照图2,图2为本发明入账处理方法第一实施例的流程示意图,所述方法包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart of the first embodiment of the account entry processing method of the present invention. The method includes:

步骤S10,当接收到基于某一用户账户所触发的金融交易指令时,根据预设的账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新;Step S10, when receiving a financial transaction instruction triggered based on a certain user account, update the accounting data of the user account stored in the accounting system database according to preset accounting processing rules;

本实施例入账处理方法应用于入账处理设备,该入账处理设备上搭载有账务系统,该账务系统用于处理和记录指定类型的金融交易(如贷款、基金、保险、信托等)所产生的账务数据,且能够提供实时交易入账功能和实时账务数据查询功能。The account entry processing method of this embodiment is applied to an account entry processing device, and the account entry processing device is equipped with an accounting system, and the accounting system is used to process and record financial transactions of a specified type (such as loans, funds, insurance, trust, etc.) It can provide real-time transaction entry function and real-time accounting data query function.

在本实施例中,当账务系统接收到基于某一用户账户所触发的金融交易指令时,即触发首笔,该首笔指的是,根据预设的账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新,其中,账务数据为自金融交易产生每天都要进行更新的业务相关数据。In this embodiment, when the accounting system receives a financial transaction instruction triggered based on a certain user account, the first transaction is triggered. The accounting data of the user account stored in the database is updated, wherein the accounting data is business-related data that needs to be updated every day since financial transactions are generated.

以账务系统为贷款账务系统为例,对于贷款业务,其账务数据包括但不限于利息、账龄、借据的欠款金额和已还金额、还款计划等数据,对应的账务数据更新可以包括如下步骤:Taking the accounting system as the loan accounting system as an example, for the loan business, the accounting data includes but not limited to the interest, the age of the account, the owed amount and the repaid amount of the IOU, the repayment plan and other data, and the corresponding accounting data An update can include the following steps:

(1)调账交易入账:处理前一天运维人员在运维系统上传的人工调账交易,如借贷调交易、还款和放款撤销等调账交易,并做入账处理。(1) Account adjustment transaction entry: Process the manual account adjustment transactions uploaded by the operation and maintenance personnel in the operation and maintenance system on the previous day, such as loan adjustment transactions, repayment and loan cancellation and other account adjustment transactions, and record them into the account.

(2)溢缴款转出:溢缴款是指用户的钱还多了,需要导出溢缴款记录给运营人员做退款操作。(2) Transfer out of overpayment: Overpayment means that the user has more money, and the overpayment record needs to be exported to the operator for refund operation.

(3)计息:是指每天按照本金累计利息和罚息,出相应的利息计提和冲销会计流水。(3) Interest accrual: refers to the accrual of interest and penalty interest based on the principal every day, and the corresponding interest accrual and offset accounting flow.

(4)账龄更新和结转:账龄反映的是贷款逾期的期数,如果用户账龄发生改变,需要生成账龄转入和转出会计流水,账龄变化反映的是资产形态的变化。(4) Age update and carry-over: Account age reflects the number of overdue loan periods. If the user’s account age changes, it is necessary to generate an accounting flow for the transfer in and out of the account. The change in the age of the account reflects the change in the form of the asset. .

(5)日切备份:是指备份前一天账户、借据和还款计划的状态数据,大数据抽数只需要抽取备份表的数据。(5) Daily-cut backup: refers to backing up the status data of the account, IOU and repayment plan on the previous day. Big data extraction only needs to extract the data of the backup table.

(6)结转:是指账单日当天需要把未出账单的本金和利息出账单,变成当期应还本金和利息。(6) Carry-over: It means that the principal and interest that have not been billed need to be billed on the day of the bill, and become the principal and interest that should be repaid in the current period.

需要说明的是,上述首笔操作是通过账务系统的联机功能实现的,通过账务数据更新,保证了账务系统数据库中保存的用户账户的账务数据是当天最新的账务数据,而非是前一天的账务数据,从而保证了后续交易实时入账的数据准确性。此外需要说明的是,在本实施例中,账务系统在接收到基于某一用户账户所触发的金融交易指令时,即对账务系统数据库中保存的所述用户账户的账务数据进行更新,相当于将现有的夜晚批量操作分摊到了白天的每笔交易上,从而减少了夜晚批量操作的整体耗时。It should be noted that the above-mentioned first operation is realized through the online function of the accounting system. Through the update of the accounting data, it is ensured that the accounting data of the user account saved in the database of the accounting system is the latest accounting data of the day. It is not the accounting data of the previous day, thus ensuring the accuracy of the data recorded in real time for subsequent transactions. In addition, it should be noted that, in this embodiment, when the accounting system receives a financial transaction instruction triggered based on a certain user account, it updates the accounting data of the user account saved in the accounting system database. , which is equivalent to allocating the existing night batch operations to each transaction during the day, thereby reducing the overall time-consuming of night batch operations.

步骤S20,获取与所述金融交易指令对应的待入账交易;Step S20, acquiring the transaction to be credited corresponding to the financial transaction instruction;

该步骤中,账务系统获取与上述接收到的金融交易指令对应的待入账交易。比如对于贷款业务,其待入账交易可以包括放款交易和还款交易,其中放款交易可以包括放款对象、放款时间、放款金额、利息、还款计划等数据,还款交易可以包括还款对象、还款时间、还款金额等数据。In this step, the accounting system obtains the transactions to be credited corresponding to the financial transaction instructions received above. For example, for a loan business, the transactions to be entered into the account may include loan transactions and repayment transactions, wherein the loan transactions may include loan objects, loan time, loan amount, interest, repayment plan and other data, and repayment transactions may include repayment objects, repayment Payment time, repayment amount and other data.

步骤S30,根据所述待入账交易和更新后的所述账务数据执行所述用户账户的实时交易入账操作。Step S30, performing a real-time transaction entry operation of the user account according to the transaction to be entered into the account and the updated accounting data.

在获取到与金融交易指令对应的待入账交易后,即根据该待入账交易和上述更新后的账务数据执行对应用户账户的实时交易入账操作,即,将本次金融交易所产生的交易数据实时写入至账务系统数据库中。After obtaining the pending transaction corresponding to the financial transaction instruction, the real-time transaction entry operation corresponding to the user's account is performed according to the pending transaction and the above-mentioned updated accounting data, that is, the transaction data generated by this financial transaction is stored. Write to the accounting system database in real time.

在本实施例中,当接收到基于某一用户账户所触发的金融交易指令时,根据预设的账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新;获取与所述金融交易指令对应的待入账交易;根据所述待入账交易和更新后的所述账务数据执行所述用户账户的实时交易入账操作。通过这种方式,保证了账务系统对接收到的每一笔金融交易进行实时入账,而非等到晚上做批量操作时再入账,当后续查询该用户账户的当前账务数据时,可以直接从账务系统数据库中读取,从而本实施例实现了在无需业务包装的前提下,满足7*24小时服务特性,避免了由于业务包装而导致的人力成本和时间成本。In this embodiment, when a financial transaction instruction triggered based on a certain user account is received, the accounting data of the user account stored in the accounting system database is updated according to a preset accounting processing rule; Acquiring a transaction to be credited corresponding to the financial transaction instruction; and performing a real-time transaction crediting operation of the user account according to the transaction to be credited and the updated accounting data. In this way, it is ensured that the accounting system will record each financial transaction received in real time, instead of waiting for the batch operation at night, and when subsequently querying the current accounting data of the user account, you can directly access the account from the account. Therefore, in this embodiment, the service characteristics of 7*24 hours are satisfied without the need for business packaging, and labor costs and time costs caused by business packaging are avoided.

进一步地,基于本发明入账处理方法第一实施例,提出本发明入账处理方法第二实施例。Further, based on the first embodiment of the account entry processing method of the present invention, a second embodiment of the account entry processing method of the present invention is proposed.

在本实施例中,上述步骤S30之后,还可以包括:当接收到基于所述用户账户所触发的账务数据查询指令时,判断所述用户账户的账务数据是否在预定时间段内进行过更新;若所述用户账户的账务数据在预定时间段内进行过更新,则查询更新后的所述账务数据;若所述用户账户的账务数据在预定时间段内未进行过更新,则根据所述账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新,并查询更新后的所述账务数据。In this embodiment, after the above step S30, the method may further include: when receiving an accounting data query instruction triggered based on the user account, judging whether the accounting data of the user account has been processed within a predetermined period of time. update; if the accounting data of the user account has been updated within a predetermined time period, query the updated accounting data; if the accounting data of the user account has not been updated within the predetermined time period, Then, according to the accounting processing rules, the accounting data of the user account stored in the accounting system database is updated, and the updated accounting data is queried.

在本实施例中,当账务系统任一时刻接收到基于上述用户账户所触发的账务数据查询指令时,首先判断该用户账户的账务数据是否在预定时间段内进行过更新,其中预定时间段可以灵活设置,比如设置为当天零时至23时;若进行过更新,则直接查询更新后的账务数据,否则,根据预设的账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新,并查询更新后的所述账务数据。也即,在预定时间段内,只要账务系统接收到基于某一用户账户所触发的金融交易指令或账务数据查询指令,都会触发更新该用户账户的账务数据,如此既保证了查询到的账户数据是实时的,满足了实际应用场景中对账务数据的7*24小时的查询需求,也将现有的夜晚批量操作分摊到了白天的每笔交易或账务查询上,从而减少了夜晚批量操作的整体耗时。In this embodiment, when the accounting system receives an accounting data query instruction triggered based on the user account at any time, it first determines whether the accounting data of the user account has been updated within a predetermined time period, wherein the predetermined The time period can be set flexibly, for example, from 0:00 to 23:00 on the same day; if it has been updated, the updated accounting data will be directly queried; otherwise, according to the preset accounting processing rules, the data stored in the accounting system database will be checked The accounting data of the user account is updated, and the updated accounting data is queried. That is, within a predetermined period of time, as long as the accounting system receives a financial transaction instruction or an accounting data query instruction triggered by a certain user account, it will trigger the update of the accounting data of the user account. The account data is real-time, which meets the 7*24-hour query requirements for accounting data in practical application scenarios, and also allocates the existing batch operations at night to each transaction or accounting query during the day, thereby reducing the need for The overall time spent in batch operations at night.

进一步地,基于本发明入账处理方法第二实施例,提出本发明入账处理方法第三实施例。Further, based on the second embodiment of the account entry processing method of the present invention, a third embodiment of the account entry processing method of the present invention is proposed.

在本实施例中,所述入账处理方法还包括:在指定时间点,获取所述预定时间段内既未接受到金融交易指令也未接收到账务数据查询指令的用户账户;对账务系统数据库中保存的所述既未接受到金融交易指令也未接收到账务数据查询指令的用户账户的账务数据进行更新。In this embodiment, the account entry processing method further includes: at a specified time point, acquiring a user account that has neither received a financial transaction instruction nor an account data query instruction within the predetermined time period; The account data of the user account that has neither received the financial transaction instruction nor the account data query instruction stored in the database is updated.

在本实施例中,对于在预定时间段内既未接受到金融交易指令也未接收到账务数据查询指令的用户账户,需要在指定时间点通过账务系统的批量功能做一次首笔来兜底,批量的首笔处理和联机的首笔处理逻辑一致,也即,根据预设的账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新。比如,对于在白天既未接受到金融交易指令也未接收到账务数据查询指令的用户账户,可以在晚上指定时间点做一次首笔来兜底。需要说明的是,账务系统的批量功能除了执行首笔外,还可以执行自扣处理、短信提醒、借据同步、过期数据清理、锁定码同步、额度续期、失败交易清理、自扣回盘处理等功能。对于某一用户账户,如果预定时间段内联机没有做首笔处理,则指定时间点批量会做一次,否则不做,如此能够满足每天的账务数据更新需求。In this embodiment, for a user account that has neither received a financial transaction instruction nor an accounting data query instruction within a predetermined period of time, it is necessary to make a first transaction through the batch function of the accounting system at a specified time point to get the bottom line , the first batch processing and the online first processing have the same logic, that is, according to the preset accounting processing rules, the accounting data of the user account stored in the accounting system database is updated. For example, for a user account that has neither received a financial transaction instruction nor an accounting data query instruction during the day, it is possible to make a first transaction at a designated time in the evening to get the bottom line. It should be noted that in addition to executing the first transaction, the batch function of the accounting system can also perform self-deduction processing, SMS reminder, IOU synchronization, expired data clearing, lock code synchronization, quota renewal, failed transaction clearing, and self-deducting rebates. processing, etc. For a certain user account, if the first transaction is not processed online within a predetermined time period, the batch will be processed once at the specified time point, otherwise it will not be processed, which can meet the daily accounting data update requirements.

进一步地,基于本发明入账处理方法第一、第二和第三实施例,提出本发明入账处理方法第四实施例。Further, based on the first, second and third embodiments of the account entry processing method of the present invention, a fourth embodiment of the account entry processing method of the present invention is proposed.

在本实施例中,上述步骤S30可以包括:在所述实时交易入账过程中,判断是否发生乐观锁冲突;若发生乐观锁冲突,则执行乐观锁重试操作;当连续执行乐观锁重试操作超过预设次数时,输出提示信息以提示当前服务繁忙,并将所述待入账交易标记为入账未成功。In this embodiment, the above step S30 may include: during the real-time transaction entry process, judging whether an optimistic lock conflict occurs; if an optimistic lock conflict occurs, performing an optimistic lock retry operation; when the optimistic lock retry operation is continuously performed When the preset number of times is exceeded, prompt information is output to remind that the current service is busy, and the transaction to be credited is marked as unsuccessful.

在本实施例中,为满足高并发访问需求,实时交易入账过程可以采用乐观锁机制。乐观锁假定当前事务操纵数据资源时,不会有其他事务同时访问该数据资源,能保证多个事务并发访问数据,但是在更新时会判断其他线程在这之前是否对数据资源进行过修改,如果是,则会产生并发冲突,即乐观锁冲突。具体地,在实时交易入账过程中,账务系统可以检测是否发生乐观锁冲突,若是,则执行乐观锁重试操作,即重新发起入账请求;当连续执行乐观锁重试操作超过预设次数(可以灵活设置,比如3次)时,输出提示信息以提示当前服务繁忙,并将当前待入账交易标记为入账未成功,如此能够避免某一入账任务一直占用系统资源。In this embodiment, in order to meet high concurrent access requirements, an optimistic locking mechanism may be used in the real-time transaction entry process. Optimistic locking assumes that when the current transaction manipulates the data resource, no other transactions will access the data resource at the same time, which ensures that multiple transactions can access the data concurrently, but when updating, it will determine whether other threads have modified the data resource before this, if Yes, there will be a concurrency conflict, that is, an optimistic locking conflict. Specifically, in the process of real-time transaction entry, the accounting system can detect whether an optimistic lock conflict occurs, and if so, execute an optimistic lock retry operation, that is, re-initiate the account entry request; when the optimistic lock retry operation is continuously performed for more than a preset number of times ( It can be set flexibly, such as 3 times), output a prompt message to remind that the current service is busy, and mark the current transaction to be credited as unsuccessful, so as to prevent a crediting task from occupying system resources all the time.

进一步地,基于本发明入账处理方法第四实施例,提出本发明入账处理方法第五实施例。Further, based on the fourth embodiment of the account entry processing method of the present invention, a fifth embodiment of the account entry processing method of the present invention is proposed.

在本实施例中,所述入账处理方法还包括:根据预设的轮询线程定期轮询入账未成功的交易;将所述入账未成功的交易提交至预设的联机交易处理线程,以使所述联机交易处理线程对所述入账未成功的交易进行再入账处理。In this embodiment, the account entry processing method further includes: periodically polling transactions that have not been successfully entered into the account according to a preset polling thread; submitting the unsuccessful transactions to the preset online transaction processing thread, so that The online transaction processing thread performs re-entry processing on the transaction that is not successfully entered into the account.

进一步地,所述将所述入账未成功的交易提交至预设的联机交易处理线程,以使所述联机交易处理线程对所述入账未成功的交易进行再入账处理的步骤之后,还可以包括:获取轮询阶段再入账未成功的交易,将所述再入账未成功的交易展示在前端页面,并发出入账失败的提示信息。Further, after the step of submitting the unsuccessful transaction to the account to a preset online transaction processing thread, so that the online transaction processing thread re-credits the transaction that is unsuccessful in the account, it may also include: : Obtain the unsuccessful transactions in the polling stage, display the unsuccessful transactions in the re-entry on the front-end page, and issue a prompt message that the re-entry failed.

具体地,账务系统在执行实时入账时,可以启用一个轮询线程来定期轮询入账未成功的交易,比如,可以每隔5s获取在过去1分钟内入账未成功的交易;之后,将获取到的入账未成功的交易提交至预设的联机交易处理线程,以使该联机交易处理线程对入账未成功的交易进行再入账处理。Specifically, when the accounting system performs real-time account entry, a polling thread can be enabled to periodically poll the unsuccessful transactions. For example, the unsuccessful transactions that have been entered into the account in the past 1 minute can be obtained every 5s; The received transactions that have not been successfully entered into the account are submitted to a preset online transaction processing thread, so that the online transaction processing thread can re-enter the account for the transactions that have not been successfully entered into the account.

需要说明的是,交易入账未成功的条件可以预先进行灵活设置,其并不限于上述乐观锁冲突次数超过预设次数的情况。比如,当系统临时交易量过大时,可以将超过系统处理能力的待入账交易判定为入账未成功;又如,当待入账交易为在途交易时,也可以将该待入账交易判定为入账未成功。It should be noted that the condition for unsuccessful transaction entry can be flexibly set in advance, which is not limited to the above-mentioned situation where the number of optimistic locking conflicts exceeds the preset number. For example, when the temporary transaction volume of the system is too large, the transaction to be entered that exceeds the processing capacity of the system can be judged as unsuccessful entry; for another example, when the transaction to be entered is an in-transit transaction, the transaction to be entered can also be judged as unsuccessful. success.

在本实施例中,通过轮询线程定期轮询入账未成功的交易,并做再入账处理,确保了入账没有成功的交易能够继续入账,提高了系统的可用性和健壮性;对于在轮询阶段再入账失败的交易,系统将其展示在前端页面,并发出入账失败的提示信息,以便于人工介入处理。In this embodiment, the polling thread periodically polls the unsuccessful transactions, and performs re-entry processing, which ensures that the unsuccessful transactions can continue to be recorded, and improves the usability and robustness of the system; For transactions that fail to be re-entered, the system will display them on the front-end page, and issue a prompt message of failure to enter the account to facilitate manual intervention.

本发明还提供一种入账处理装置。本发明入账处理装置包括:The invention also provides an account entry processing device. The account entry processing device of the present invention includes:

第一更新模块,用于当接收到基于某一用户账户所触发的金融交易指令时,根据预设的账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新;The first update module is used to update the accounting data of the user account stored in the accounting system database according to preset accounting processing rules when receiving a financial transaction instruction triggered based on a certain user account ;

第一获取模块,用于获取与所述金融交易指令对应的待入账交易;a first acquisition module, configured to acquire transactions to be credited corresponding to the financial transaction instructions;

入账模块,用于根据所述待入账交易和更新后的所述账务数据执行所述用户账户的实时交易入账操作。An account entry module, configured to perform a real-time transaction entry operation of the user account according to the transaction to be entered into the account and the updated account data.

进一步地,所述入账处理装置还包括:Further, the account entry processing device also includes:

判断模块,用于当接收到基于所述用户账户所触发的账务数据查询指令时,判断所述用户账户的账务数据是否在预定时间段内进行过更新;a judgment module, configured to judge whether the account data of the user account has been updated within a predetermined time period when receiving the account data query instruction triggered based on the user account;

第一查询模块,用于若所述用户账户的账务数据在预定时间段内进行过更新,则查询更新后的所述账务数据;a first query module, configured to query the updated accounting data if the accounting data of the user account has been updated within a predetermined time period;

第二查询模块,用于若所述用户账户的账务数据在预定时间段内未进行过更新,则根据所述账务处理规则,对账务系统数据库中保存的所述用户账户的账务数据进行更新,并查询更新后的所述账务数据。The second query module is configured to, if the accounting data of the user account has not been updated within a predetermined period of time, according to the accounting processing rules, query the accounting data of the user account saved in the accounting system database The data is updated, and the updated accounting data is queried.

进一步地,所述入账处理装置还包括:Further, the account entry processing device also includes:

第二获取模块,用于在指定时间点,获取所述预定时间段内既未接受到金融交易指令也未接收到账务数据查询指令的用户账户;The second acquisition module is configured to acquire, at a specified time point, user accounts that have neither received financial transaction instructions nor received accounting data query instructions within the predetermined time period;

第二更新模块,用于对账务系统数据库中保存的所述既未接受到金融交易指令也未接收到账务数据查询指令的用户账户的账务数据进行更新。The second update module is configured to update the accounting data of the user account that has neither received financial transaction instructions nor received accounting data query instructions stored in the accounting system database.

进一步地,所述入账模块还用于:Further, the account entry module is also used for:

在所述实时交易入账过程中,判断是否发生乐观锁冲突;During the real-time transaction entry process, determine whether an optimistic locking conflict occurs;

若发生乐观锁冲突,则执行乐观锁重试操作;If an optimistic lock conflict occurs, perform an optimistic lock retry operation;

当连续执行乐观锁重试操作超过预设次数时,输出提示信息以提示当前服务繁忙,并将所述待入账交易标记为入账未成功。When the optimistic lock retry operation is continuously performed for more than a preset number of times, prompt information is output to indicate that the current service is busy, and the transaction to be credited is marked as unsuccessful.

进一步地,所述入账处理装置还包括:Further, the account entry processing device also includes:

轮询模块,用于根据预设的轮询线程定期轮询入账未成功的交易;The polling module is used to periodically poll the unsuccessful transactions according to the preset polling thread;

提交模块,用于将所述入账未成功的交易提交至预设的联机交易处理线程,以使所述联机交易处理线程对所述入账未成功的交易进行再入账处理。The submission module is configured to submit the transaction that is not successfully entered into the account to a preset online transaction processing thread, so that the online transaction processing thread performs re-entry processing on the transaction that is unsuccessful in the entry into the account.

进一步地,所述入账处理装置还包括:Further, the account entry processing device also includes:

展示模块,用于获取轮询阶段再入账未成功的交易,将所述再入账未成功的交易展示在前端页面,并发出入账失败的提示信息。The display module is used to obtain the unsuccessful transactions of re-entry in the polling stage, display the unsuccessful transactions of re-entry on the front-end page, and issue a prompt message of unsuccessful entry.

上述各程序模块所执行的操作可参照本发明入账处理方法实施例,此处不再赘述。For the operations performed by the above program modules, reference may be made to the embodiments of the method for processing an account entry of the present invention, and details are not described herein again.

本发明还提供一种计算机可读存储介质。The present invention also provides a computer-readable storage medium.

本发明计算机可读存储介质上存储有入账处理程序,所述入账处理程序被处理器执行时实现如上所述的入账处理方法的步骤。The computer-readable storage medium of the present invention stores an account entry processing program, and when the account entry processing program is executed by the processor, implements the steps of the account entry processing method described above.

其中,在所述处理器上运行的入账处理程序被执行时所实现的方法可参照本发明入账处理方法各个实施例,此处不再赘述。For the method implemented when the account entry processing program running on the processor is executed, reference may be made to the various embodiments of the account entry processing method of the present invention, which will not be repeated here.

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

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present invention.

以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.

Claims (14)

  1. The processing method 1. one kind keeps accounts, which is characterized in that the processing method that keeps accounts includes the following steps:
    It is right according to preset accounting processing rule when receiving the financial transaction order triggered based on a certain user account The accounting data of the user account saved in billing and accounting system database is updated;
    It obtains corresponding with the financial transaction order wait the transaction that keeps accounts;
    According to described wait keep accounts transaction and the updated accounting data real-time deal that executes the user account keeps accounts behaviour Make.
  2. 2. keeping accounts processing method as described in claim 1, which is characterized in that it is described according to wait the transaction and after updating of keeping accounts The accounting data execute the real-time deal of the user account and keep accounts after the step of operating, further includes:
    When receiving the accounting data inquiry instruction triggered based on the user account, the account of the user account is judged Whether data carried out update within a predetermined period of time;
    If the accounting data of the user account carried out update within a predetermined period of time, the updated account number is inquired According to;
    If the accounting data of the user account did not carried out update within a predetermined period of time, advised according to the accounting processing Then, the accounting data of the user account saved in account system database is updated, and inquired updated described Accounting data.
  3. 3. keep accounts processing method as claimed in claim 2, which is characterized in that the processing method that keeps accounts further include:
    At the specified time point, it obtains and had not both received financial transaction order in the predetermined amount of time or do not received accounting data The user account of inquiry instruction;
    To both not received financial transaction order described in saving in account system database or do not received accounting data inquiry The accounting data of the user account of instruction is updated.
  4. 4. keeping accounts processing method as claimed any one in claims 1 to 3, which is characterized in that it is described according to wait keep accounts Transaction and the updated accounting data real-time deal that executes the user account the step of the operating that keep accounts include:
    During the real-time deal keeps accounts, judge whether that optimistic lock conflict occurs;
    If optimistic lock conflict occurs, executes optimistic locking and retry operation;
    When continuously perform optimistic locking retry operation be more than preset times when, export prompt information to prompt current service busy, and It is to keep accounts not successfully by the transactional marking to be kept accounts.
  5. 5. keep accounts processing method as claimed in claim 4, which is characterized in that the processing method that keeps accounts further include:
    It is kept accounts failed transaction according to preset poll thread periodic polling;
    The failed transaction that keeps accounts is committed to preset on-line transaction processing thread, so that the on-line transaction handles line Journey carries out the failed transaction that keeps accounts to reenter account processing.
  6. 6. keep accounts processing method as claimed in claim 5, which is characterized in that described to submit the transaction for keeping accounts failed Thread is handled to preset on-line transaction, so that the on-line transaction handles thread and carries out again to the transaction for keeping accounts failed It keeps accounts after the step of handling, further includes:
    It obtains poll phase to keep accounts again failed transaction, the transaction for keeping accounts again failed is shown in front end page, and Issue the prompt information for the failure that keeps accounts.
  7. The processing unit 7. one kind keeps accounts, which is characterized in that the processing unit that keeps accounts includes:
    First update module, for when receiving the financial transaction order triggered based on a certain user account, according to default Accounting processing rule, the accounting data of the user account saved in account system database is updated;
    First obtains module, corresponding with the financial transaction order wait the transaction that keeps accounts for obtaining;
    Keep accounts module, for according to the reality for executing the user account wait keep accounts transaction and the updated accounting data When transaction keep accounts operation.
  8. 8. keep accounts processing unit as claimed in claim 7, which is characterized in that the processing unit that keeps accounts further include:
    Judgment module, for when receiving the accounting data inquiry instruction triggered based on the user account, described in judgement Whether the accounting data of user account carried out update within a predetermined period of time;
    First enquiry module is inquired if the accounting data for the user account carried out update within a predetermined period of time The updated accounting data;
    Second enquiry module, if the accounting data for the user account did not carried out update, root within a predetermined period of time According to the accounting processing rule, the accounting data of the user account saved in account system database is updated, and Inquire the updated accounting data.
  9. 9. keep accounts processing unit as claimed in claim 8, which is characterized in that the processing unit that keeps accounts further include:
    Second obtains module, at the specified time point, obtaining in the predetermined amount of time and both not receiving financial transaction order The user account of accounting data inquiry instruction is not received yet;
    Second update module, for both not received financial transaction order described in saving in account system database or do not connect The accounting data for receiving the user account of accounting data inquiry instruction is updated.
  10. 10. the processing unit that keeps accounts as described in any one of claim 7 to 9, which is characterized in that the module that keeps accounts also is used In:
    During the real-time deal keeps accounts, judge whether that optimistic lock conflict occurs;
    If optimistic lock conflict occurs, executes optimistic locking and retry operation;
    When continuously perform optimistic locking retry operation be more than preset times when, export prompt information to prompt current service busy, and It is to keep accounts not successfully by the transactional marking to be kept accounts.
  11. 11. keep accounts processing unit as claimed in claim 10, which is characterized in that the processing unit that keeps accounts further include:
    Poller module, for being kept accounts failed transaction according to preset poll thread periodic polling;
    Module is submitted, thread is handled for the failed transaction that keeps accounts to be committed to preset on-line transaction, so that described On-line transaction handles thread and carries out reentering account processing to the failed transaction that keeps accounts.
  12. 12. keep accounts processing unit as claimed in claim 11, which is characterized in that the processing unit that keeps accounts further include:
    Display module keeps accounts failed transaction again for obtaining poll phase, and the transaction for keeping accounts again failed is shown In front end page, and issue the prompt information for the failure that keeps accounts.
  13. The processing equipment 13. one kind keeps accounts, which is characterized in that the processing equipment that keeps accounts includes: memory, processor and is stored in On the memory and the processing routine that keeps accounts that can run on the processor, the processing routine that keeps accounts is by the processor When execution realize as it is described in any one of claims 1 to 6 keep accounts processing method the step of.
  14. 14. a kind of computer readable storage medium, which is characterized in that be stored with the place that keeps accounts on the computer readable storage medium Program is managed, such as the processing described in any one of claims 1 to 6 that keeps accounts is realized when the processing routine that keeps accounts is executed by processor The step of method.
CN201910225550.6A 2019-03-22 2019-03-22 Entry processing method, apparatus, device and computer-readable storage medium Pending CN109949144A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910225550.6A CN109949144A (en) 2019-03-22 2019-03-22 Entry processing method, apparatus, device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910225550.6A CN109949144A (en) 2019-03-22 2019-03-22 Entry processing method, apparatus, device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN109949144A true CN109949144A (en) 2019-06-28

Family

ID=67011642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910225550.6A Pending CN109949144A (en) 2019-03-22 2019-03-22 Entry processing method, apparatus, device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN109949144A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111192137A (en) * 2019-12-24 2020-05-22 天阳宏业科技股份有限公司 Multi-dimensional balance management method and system based on service scene
CN111400283A (en) * 2020-03-19 2020-07-10 中国建设银行股份有限公司 Data processing method, system, electronic equipment and storage medium
CN112446773A (en) * 2019-09-02 2021-03-05 顺丰科技有限公司 Business non-charge data management method, device, equipment and storage medium
CN113487417A (en) * 2021-07-27 2021-10-08 中国银行股份有限公司 Accounting data processing method and device
CN114092203A (en) * 2021-09-27 2022-02-25 北京理房通支付科技有限公司 Method, device, storage medium and computer program product for checking and debiting
CN114971831A (en) * 2022-06-10 2022-08-30 中国银行股份有限公司 An accounting method and system

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040002807A (en) * 2003-07-12 2004-01-07 주식회사 조흥은행 System for managing account aggregation being used in transaction of bank and method therefor
CN101393668A (en) * 2007-09-20 2009-03-25 中国银联股份有限公司 A transaction data processing method and system for arriving on the same day
CN103646111A (en) * 2013-12-25 2014-03-19 普元信息技术股份有限公司 System and method for realizing real-time data association in big data environment
CN104081425A (en) * 2011-12-30 2014-10-01 我的合伙人和全球星投资(Mp&Gsi)有限公司 Payment System Based on Electronic Check
CN104182898A (en) * 2014-08-13 2014-12-03 中国银行股份有限公司 Additional recording method of on-line transaction during night mode for bank system
CN104317953A (en) * 2014-11-13 2015-01-28 中国建设银行股份有限公司 Sectional data backup method and system
CN105849760A (en) * 2013-09-23 2016-08-10 飒乐有限公司 Systems for access control and system integration
CN106021597A (en) * 2016-06-07 2016-10-12 中国建设银行股份有限公司 Data sheet updating method and system for account transactions
CN106919441A (en) * 2017-02-08 2017-07-04 武汉奇米网络科技有限公司 A kind of processing method and system of e-commerce platform high concurrent event
CN106934025A (en) * 2017-03-13 2017-07-07 广州爱九游信息技术有限公司 A kind of account data management method, device and server
CN107273451A (en) * 2017-05-31 2017-10-20 深圳市长亮科技股份有限公司 Balance data update method and system
CN107273452A (en) * 2017-05-31 2017-10-20 深圳市长亮科技股份有限公司 Data-updating method and system
CN107545031A (en) * 2017-07-17 2018-01-05 招商银行股份有限公司 Account comprehensive inquiry service, system and computer-readable recording medium
CN108256994A (en) * 2018-01-04 2018-07-06 中国银行股份有限公司 The generation method and device of bank's account
CN108683718A (en) * 2018-04-27 2018-10-19 五八同城信息技术有限公司 Method, apparatus, electronic equipment and the storage medium that data increment synchronizes
CN108830705A (en) * 2018-04-09 2018-11-16 阿里巴巴集团控股有限公司 A kind of method of summary of transaction data, device and equipment
CN109377355A (en) * 2018-12-07 2019-02-22 中国银行股份有限公司 Transaction data processing method and device
CN109493210A (en) * 2018-09-27 2019-03-19 深圳壹账通智能科技有限公司 Refund account checking method, device, equipment and readable storage medium storing program for executing based on block chain

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040002807A (en) * 2003-07-12 2004-01-07 주식회사 조흥은행 System for managing account aggregation being used in transaction of bank and method therefor
CN101393668A (en) * 2007-09-20 2009-03-25 中国银联股份有限公司 A transaction data processing method and system for arriving on the same day
CN104081425A (en) * 2011-12-30 2014-10-01 我的合伙人和全球星投资(Mp&Gsi)有限公司 Payment System Based on Electronic Check
CN105849760A (en) * 2013-09-23 2016-08-10 飒乐有限公司 Systems for access control and system integration
CN103646111A (en) * 2013-12-25 2014-03-19 普元信息技术股份有限公司 System and method for realizing real-time data association in big data environment
CN104182898A (en) * 2014-08-13 2014-12-03 中国银行股份有限公司 Additional recording method of on-line transaction during night mode for bank system
CN104317953A (en) * 2014-11-13 2015-01-28 中国建设银行股份有限公司 Sectional data backup method and system
CN106021597A (en) * 2016-06-07 2016-10-12 中国建设银行股份有限公司 Data sheet updating method and system for account transactions
CN106919441A (en) * 2017-02-08 2017-07-04 武汉奇米网络科技有限公司 A kind of processing method and system of e-commerce platform high concurrent event
CN106934025A (en) * 2017-03-13 2017-07-07 广州爱九游信息技术有限公司 A kind of account data management method, device and server
CN107273451A (en) * 2017-05-31 2017-10-20 深圳市长亮科技股份有限公司 Balance data update method and system
CN107273452A (en) * 2017-05-31 2017-10-20 深圳市长亮科技股份有限公司 Data-updating method and system
CN107545031A (en) * 2017-07-17 2018-01-05 招商银行股份有限公司 Account comprehensive inquiry service, system and computer-readable recording medium
CN108256994A (en) * 2018-01-04 2018-07-06 中国银行股份有限公司 The generation method and device of bank's account
CN108830705A (en) * 2018-04-09 2018-11-16 阿里巴巴集团控股有限公司 A kind of method of summary of transaction data, device and equipment
CN108683718A (en) * 2018-04-27 2018-10-19 五八同城信息技术有限公司 Method, apparatus, electronic equipment and the storage medium that data increment synchronizes
CN109493210A (en) * 2018-09-27 2019-03-19 深圳壹账通智能科技有限公司 Refund account checking method, device, equipment and readable storage medium storing program for executing based on block chain
CN109377355A (en) * 2018-12-07 2019-02-22 中国银行股份有限公司 Transaction data processing method and device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112446773A (en) * 2019-09-02 2021-03-05 顺丰科技有限公司 Business non-charge data management method, device, equipment and storage medium
CN111192137A (en) * 2019-12-24 2020-05-22 天阳宏业科技股份有限公司 Multi-dimensional balance management method and system based on service scene
CN111192137B (en) * 2019-12-24 2023-10-20 天阳宏业科技股份有限公司 Multi-dimensional balance management method and system based on business scene
CN111400283A (en) * 2020-03-19 2020-07-10 中国建设银行股份有限公司 Data processing method, system, electronic equipment and storage medium
CN111400283B (en) * 2020-03-19 2024-02-06 中国建设银行股份有限公司 Data processing method, system, electronic equipment and storage medium
CN113487417A (en) * 2021-07-27 2021-10-08 中国银行股份有限公司 Accounting data processing method and device
CN113487417B (en) * 2021-07-27 2025-04-22 中国银行股份有限公司 Accounting data processing method and device
CN114092203A (en) * 2021-09-27 2022-02-25 北京理房通支付科技有限公司 Method, device, storage medium and computer program product for checking and debiting
CN114971831A (en) * 2022-06-10 2022-08-30 中国银行股份有限公司 An accounting method and system

Similar Documents

Publication Publication Date Title
CN109949144A (en) Entry processing method, apparatus, device and computer-readable storage medium
US7734536B2 (en) System, method and computer program product for workflow-based data processing
US20120131582A1 (en) System and Method for Real-Time Batch Account Processing
CN107358425B (en) Transaction fee calculation and payment method and device, transaction platform and storage medium
CN111028074B (en) Method, system, server and storage medium for updating and inquiring overdue bill
CN111125106B (en) Batch running task execution method, device, server and storage medium
CN113723959A (en) Account cancellation management method, system, device, equipment and medium
US20210224895A1 (en) Settlement management system and settlement management method
CN110889687A (en) Method and device for processing account balance under distributed architecture
JP2003050910A (en) Business processing management method and system
CN114169997A (en) A debit method and device
CN111444213B (en) Ledger clearing system and method based on credit business
JP2009110125A (en) Inter-account settlement processing apparatus using electronic record receivable and inter-account settlement processing method
CN111400283B (en) Data processing method, system, electronic equipment and storage medium
CN112634013A (en) Management system, method, equipment and storage medium for processing public accumulation fund repayment batch
JP2003178242A (en) Transaction processing method and transaction processing system
US20170076367A1 (en) Systems, Methods, and Software For Lien Payoff and Transfer of Title
WO2020006936A1 (en) Fund management method and apparatus, computer device, and computer-readable storage medium
US8285612B2 (en) Systems and methods for data processing
CN115526699A (en) Payment fund reconciliation method, device, equipment and computer-readable storage medium
CN115456747A (en) Automatic intelligent account settling method and device for ERP system and storage medium
CN115274085A (en) Network diagnosis and treatment expense settlement method, device, platform, equipment and medium
CN114202324A (en) Virtual product recharging method
CN112634010A (en) Fund preallocation processing method, device, electronic equipment and medium
CN114186267A (en) A virtual asset data processing method, device and computer-readable storage 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: 20190628

RJ01 Rejection of invention patent application after publication