WO2019157776A1 - 一种对账差异处理方法和系统 - Google Patents

一种对账差异处理方法和系统 Download PDF

Info

Publication number
WO2019157776A1
WO2019157776A1 PCT/CN2018/083063 CN2018083063W WO2019157776A1 WO 2019157776 A1 WO2019157776 A1 WO 2019157776A1 CN 2018083063 W CN2018083063 W CN 2018083063W WO 2019157776 A1 WO2019157776 A1 WO 2019157776A1
Authority
WO
WIPO (PCT)
Prior art keywords
reconciliation
file
merchant
accounting book
data
Prior art date
Application number
PCT/CN2018/083063
Other languages
English (en)
French (fr)
Inventor
韦游领
刘潜
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019157776A1 publication Critical patent/WO2019157776A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting

Definitions

  • the present application relates to the field of computer service technologies, and in particular, to a method and system for processing a reconciliation difference.
  • Reconciliation refers to the process of checking the transaction information of the previous liquidation cycle to confirm the consistency and correctness of the transaction information.
  • the relevant figures, monetary funds, securities units or individuals of the accounting books should be checked against each other regularly to ensure that the accounts are consistent, the accounts are consistent, and the accounts are consistent.
  • the accounting reconciliation has also been automatically reconciled by traditional manual reconciliation and transferred to the network and computer.
  • the data between the accounting books at the time of reconciliation is different.
  • the difference of the reconciliation results is called the difference account.
  • the reconciliation system on the market for different accounting book accessors, the data interaction degree is too high and too complicated, which leads to the actual reconciliation solution can not meet the reconciliation requirements of different access parties.
  • the payment methods are different, which makes the data have great differences.
  • different accessing parties have different ways of interacting with each other, different ways of adding encryption, different reconciliation elements, and different requirements for reconciliation results, so that a reconciliation system and a differential account processing system must meet the aforementioned differences. It is required that the degree of mutual coupling of its data is too high.
  • a method for processing a reconciliation difference including the following steps:
  • Step 1 Obtain the merchant accounting book file and retrieve the local accounting book file from the local system
  • Step 2 Reconcile the merchant accounting book file with a local accounting book file, and generate a reconciliation result file; wherein, in the reconciliation result file, all reconciliation results include a reconciliation description parameter, the parameter For describing whether the reconciliation result is a flat account, if the reconciliation result is a flat account, the reconciliation description parameter is set to “flat”, and if the reconciliation result is a difference, the reconciliation The description parameters are all set to "Differential Account";
  • Step 3 Determine whether the reconciliation result file is empty, if yes, the system sends the warning information to the front end, and ends the method; otherwise, step 4 is performed;
  • Step 4 Extract all reconciliation result information of the reconciliation description parameter as “differential account”, and generate a difference account data file;
  • Step 5 Determine the reason for the difference account according to the difference account data file.
  • a route distribution control reconciliation system including a data extraction module, a data processing module, a file downloading module, a reconciliation module, and a system general module.
  • the data extraction module is configured to extract and/or acquire data in a table and a task, and perform query in other tables according to the extracted data, and extract corresponding information;
  • the data extraction module includes:
  • a query module for querying data in a table
  • An extraction module for extracting and/or obtaining data and information in a form
  • the data processing module is configured to determine, according to the task information extracted by the data extraction module, whether the local accounting book file is normally stored in the database, and is used for parsing the accounting book file;
  • the data processing module includes:
  • a judging module for judging whether a local accounting book file is stored in a database
  • the file downloading module is configured to download an accounting book file according to the reconciliation file interaction information extracted by the data extraction module, and include a download component;
  • the reconciliation module is configured to reconcile the merchant accounting book file with the local accounting book file according to the reconciliation element of the merchant acquired by the data extraction module, and generate a reconciliation result file, and at the same time, Performing a secondary screening process on the reconciliation result file; and generating a difference account according to the difference data extracted by the extraction module in the reconciliation result file;
  • the system universal module is configured to schedule all timed tasks, time and determine whether to initiate a reconciliation task
  • the system universal module is configured to schedule all timed tasks, time and determine whether to initiate a reconciliation task, and is used by the storage system to execute all data of the method and the accounting book file;
  • the system universal module includes:
  • a scheduling module for scheduling all scheduled tasks and determining and initiating reconciliation tasks
  • a timer module for performing all timing and timing operations
  • a database used by the storage system to perform all of the data for this method, as well as accounting book files.
  • a computer readable storage medium having stored thereon a program for executing a reconciliation difference processing method, when executed by a processor, executing The method for processing a reconciliation difference includes the following steps:
  • Step 1 Obtain the merchant accounting book file and retrieve the local accounting book file from the local system
  • Step 2 Reconcile the merchant accounting book file with a local accounting book file, and generate a reconciliation result file; wherein, in the reconciliation result file, all reconciliation results include a reconciliation description parameter, the pair
  • the account description parameter is used to describe whether the reconciliation result is a flat account, and if the reconciliation result is a flat account, the reconciliation description parameter is set to “flat”, and if the reconciliation result is different, then The reconciliation description parameter is set to "differential account";
  • Step 3 Determine whether the reconciliation result file is empty, if yes, send the warning information to the front end, and end the method; otherwise, perform step 4;
  • Step 4 Extract all reconciliation result information of the reconciliation description parameter as “differential account”, and generate a difference account data file;
  • Step 5 Determine the reason for the difference account according to the difference account data file.
  • the beneficial effects of the present application are mainly: simplifying the processing and maintenance of the reconciliation operations of different access parties in different transaction scenarios, realizing different data interaction modes, avoiding high coupling of codes, improving technical compatibility, and efficiently and safely.
  • the parameterization and routing of reconciliations in different scenarios of different merchants greatly facilitate the processing and statistics of transaction information flows of different payment scenarios, thereby improving customer experience and satisfaction. At the same time, it reduces the special processing cases caused by different access requirements of different access parties, greatly reducing development costs and improving the usability and stability of the receipt function.
  • FIG. 1 is a schematic flow chart of a method for processing a reconciliation difference according to an embodiment of the present application
  • step S100 is a schematic flowchart of step S100 in a method for processing a reconciliation difference according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of a pre-sequence flow of S200 in a method for processing a reconciliation difference according to an embodiment of the present application;
  • FIG. 4 is a schematic flowchart of determining whether a current time of a system meets a startup date of a reconciliation task in a reconciliation difference processing method according to an embodiment of the present application;
  • FIG. 5 is a schematic flowchart of retrieving a local accounting book file from a local system in step S100 in a method for processing a reconciliation difference according to an embodiment of the present application;
  • step ii of a method for processing a reconciliation difference according to an embodiment of the present application
  • FIG. 7 is a schematic structural diagram of a reconciliation difference processing system according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an operating environment of a system in which an application is installed, in accordance with an embodiment of the present application.
  • the application relies on Mongodb's text data storage function, Oracle's efficient read and write performance, redis cache lock, and MQ message middleware for the reconciliation of different accounting book access data.
  • Asymmetric information interaction is realized to avoid high coupling of code functions.
  • PAFA5 Combined with the technical framework PAFA5, a set of effective reconciliation difference processing solutions using routing information is summarized.
  • routing information parameter tables there is an indirect or indirect association between the tables and the tables, and a program is used to establish a usage relationship between the tables and the tables, and the plurality of flexible combinations are performed through routing reconciliation. Routing to achieve sub-control reconciliation processing, and at the same time establish relevant routing control information to obtain the reconciliation period, reconciliation data original format, reconciliation start date and reconciliation elements of different merchants in different transaction scenarios, etc. The aforementioned data and information to complete the reconciliation operation. At the same time, through the automatic reconciliation, the difference account is generated, and the manual is reviewed according to the reason of the difference account, and the subsequent processing is performed.
  • the embodiment of the present application proposes to effectively reduce the data interaction. Coupling degree, and a method of dealing with reconciliation differences that supports cross-platform reconciliation and multi-mode hybrid reconciliation fast secure access scheme.
  • a method for processing a reconciliation difference mainly includes the following steps:
  • the system starts the download of the merchant accounting book file through the timed task, and through the routing configuration and flexible parameter combination, the system can obtain the merchant accounting book file through the routing setting.
  • the merchant configuration information it is judged whether the local accounting book file is normally stored in the database, and if so, the local accounting book file is retrieved from the local system; otherwise, the system continues to wait for a certain period of time, and then continues to judge to determine whether the local accounting book file is normal. Deposited into the database;
  • the system continues to perform polling, and if the polling reaches the latest execution time of the timed task recorded in the local accounting book file storage time task parameter table, the timed task If it has not been started, the system records the timeout log, and the following reconciliation tasks are no longer performed on this date.
  • the local accounting book file is a system that extracts the payment flow data related to the merchant in the local payment flow water according to the merchant configuration information, and summarizes the generated local accounting book files related to the merchant. Different merchants have different local accounting book files generated by them.
  • S200 Reconcile the merchant accounting book file with a local accounting book file, and generate a reconciliation result file; wherein, in the reconciliation result file, all reconciliation results include a reconciliation description parameter, and the parameter is used by the parameter Determining whether the reconciliation result is a flat account, if the reconciliation result is a flat account, the reconciliation description parameter is set to "flat", and if the reconciliation result is a difference, the reconciliation description Set the parameters to “Differential Account” and execute S300.
  • the system judges the reconciliation results one by one. If the reconciliation result is a flat account, the reconciliation description parameter of the reconciliation result is set to “at the same time as the reconciliation result file is recorded”. "Balance”, if there is any difference in the reconciliation result, as the difference account, the reconciliation description parameter of the reconciliation result is set to "differential account”.
  • the so-called flat account means that the amount of the account and other items are equal to the account amount and other items reconciled, that is, the “accounts are consistent”. If the mutual accounting is not equal, and the accounting between the account and the account is different, it is collectively referred to as the “differential account”.
  • the non-flat account needs to set the reconciliation description parameter to "Differential Account"; otherwise, it is a flat account, and the reconciliation description parameter needs to be set to "flat".
  • the system extracts the merchant's accounting element by extracting the merchant information corresponding to the merchant, and retrieves the merchant management information table according to the merchant information, and according to the merchant's reconciliation element, the merchant's accounting book file (ie, merchant accounting)
  • the book file is reconciled with the local accounting book file to generate a reconciliation result file containing only the reconciliation elements that the merchant needs to reconcile.
  • the system performs the reconciliation operation by polling the regular reconciliation task every 5 minutes.
  • the interval between the foregoing reconciliation tasks may be 5 minutes or 10 minutes, and may be any time preset by a manual.
  • 5 minutes is the preferred interval of the system.
  • step S100 it is preferable to perform parallel execution between step S100 and step S200.
  • the system sends the warning information to the front end, and ends the method
  • step S400 when the reconciliation result file is empty, it indicates that the system runs in the previous file downloading step, the file warehousing and parsing step, the local accounting book file generation step, etc., an error/abnormality, or reconciliation An exception occurred in the process, which prevented the system from generating a reconciliation result file.
  • the system needs to send the warning information/mail to the front end, and inform the front end of the abnormal information, and manually process it.
  • the difference account data file is based on the comparison of each reconciliation result in the reconciliation result file, and the data having the difference in each reconciliation result is extracted, and the reconciliation description parameter is set as “difference” Accounts, and all the data of the reconciliation description parameter is “Differential Account”, and the difference account data file.
  • the system ends the processing of the reconciliation result file, and after the system ends the method, the next merchant accounting book file is obtained, and the local accounting book file is continuously retrieved from the local system, and the execution continues.
  • the next reconciliation operation and the difference account processing operation is performed.
  • the merchant payment table, the bulk payment table and the order table are viewed according to the order number in the difference account data file, and the business type of the transaction corresponding to the order number and the influence generated are determined.
  • the background labor generally checks the merchant payment table, the bulk payment table, and the order form through the order number in the local accounting book file, and determines the business type of the reconciliation result information whose reconciliation result parameter is “difference”, and The impact of the difference trading.
  • the order number is generally the bank serial number.
  • the acquiring the merchant accounting book file in S100 of the foregoing method for processing the difference of reconciliation specifically includes the following steps:
  • the system polls the scheduled file download task every 5 minutes, that is, the system starts and executes the file download task every 5 minutes.
  • the interval of the file download task may be 5 minutes or 10 minutes, and may be any time preset by a manual.
  • 5 minutes is the preferred interval of the system.
  • the merchant configuration information includes the merchant account number and the merchant's reconciliation date;
  • step S102 can be refined into the following steps:
  • the basic task parameter table includes the task name of all the timed tasks, the task execution mode, the task reconciliation date, the task startup time, the latest task execution time, and the file storage directory.
  • the system can obtain the basic parameters of the scheduled file download task (including all the parameters included in the table) by querying the basic parameter table of the scheduled task.
  • the merchant routing information table is composed of different parameters. When a new merchant is created, the different parameters of the merchant are combined, and the corresponding parameters of the merchant are added into the merchant routing information table, which is mainly used for recording the merchant information, and Record all transaction channel numbers (transaction IDs), task names, and corresponding settlement rules for the merchant.
  • the system can query the merchant information corresponding to the task name in the merchant routing information table by using the task name.
  • the merchant management information table refers to a table containing all the basic information of all merchants, including the merchant's reconciliation date, merchant description, clearing cycle, whether to perform order reconciliation, actual reconciliation mode, file interaction mode, and file download mode. And other information.
  • the merchant configuration information refers to the information necessary for the specific single merchant to perform the reconciliation task recorded in the merchant management information table, such as the merchant number, the transaction ID, the reconciliation date, the merchant description, whether the order reconciliation is performed, and the document basic Information such as download method and actual reconciliation mode.
  • timetable task basic parameter table The aforementioned timetable task basic parameter table, merchant routing information table, merchant management information table and other form files are stored in the form of a table file in the database of the system general module.
  • the system matches the merchant information (including the merchant name, the merchant ID, the channel number, and the like) with the merchant management information table, finds the corresponding merchant from the merchant management information table, and obtains the configuration information of the merchant.
  • the reconciliation file interaction routing information table includes specific downloading manners of reconciliation files in all transaction scenarios of all merchants, including merchant number, transaction ID, IP address, user name, password, port number, and target server address.
  • the file reconciliation information refers to the specific reconciliation file download information of a single merchant in a single scenario, including the download address, port number, target server address, and file name of the reconciliation file.
  • the foregoing reconciliation file interactive routing information table is stored in the database in the form of a form file.
  • the merchant number and the transaction ID in the system merchant configuration information, and the specific reconciliation file download information corresponding to the merchant in the scenario (ie, the reconciliation file interaction information) is found in the reconciliation file interaction routing information table, and according to the reconciliation The file interaction information is used to download the corresponding accounting book file (ie, the reconciliation file).
  • the system download component downloads the required accounting book file in the target server of the merchant according to the file name, IP address, port number, user name, password, and target server address in the transaction file of the merchant's reconciliation file.
  • the method further includes the following steps:
  • the total scheduling task is polled by the system at regular intervals, and is executed concurrently with the foregoing steps S101-S105.
  • the total scheduled task is polled by the system every 10 minutes.
  • the system controls the start time of the scheduled task through the total scheduling task. Specifically, the system general scheduling task performs polling every 10 minutes to obtain the basic parameters of all loaded timing tasks in the total scheduled task. The system polls to determine whether the scheduled reconciliation task in the scheduled task is started.
  • the total scheduling task determines the startup time of the scheduled task, which specifically includes the following processes:
  • the total scheduling task starts, queries the basic parameter table of the timing task, obtains the basic parameters of the reconciliation task from the basic parameter table of the timing task, and determines whether the timing task is started according to the timing task startup time in the basic parameters of the timing task, if When the time condition is met, the scheduled task is started.
  • the basic task parameter table of the timing task provides basic parameters of all timing tasks.
  • the basic task parameter table includes the task name of all the timed tasks, the task execution mode, the task reconciliation date, the task startup time, the task execution time, and the file storage directory.
  • the basic parameters of the reconciliation task include Reconciliation task name, reconciliation task execution mode, reconciliation task start date, reconciliation task latest execution time, and reconciliation file storage directory.
  • S203 Determine, according to the merchant configuration information, whether the current date of the system meets the activation date of the reconciliation task. If yes, execute S200; otherwise, end the method.
  • the determining whether the current date of the system meets the reconciliation task activation date means that after the merchant configuration information, the system extracts the reconciliation date parameter in the merchant configuration information, and compares the current date of the system with the reconciliation date parameter. Specifically, in the reconciliation task, the system compares the current date with the reconciliation date of the merchant configuration information, and if the current date meets the reconciliation task activation date, executes S200; otherwise, the method ends.
  • a determines whether the merchant's reconciliation date is set to a working day, and if so, execute b; otherwise, execute c;
  • the method for processing the reconciliation difference further includes: before the step S100 is executed, creating a new merchant information management table in the system database, and inputting basic information and configuration information of all the merchants.
  • step of retrieving the local accounting book file from the local system in step S100 specifically includes the following steps:
  • the step ii specifically includes the following steps:
  • Iii-1 determines whether the current time of the system has exceeded the latest execution time of the reconciliation task, and if so, execute ii-2; otherwise, execute ii-3;
  • the system obtains the latest execution time of the timed task by querying the basic parameter table of the timed task, and compares the current time with the latest execution time. If the current time has exceeded the latest execution time of the timed task, The system records the timeout log (ie ii-2), and the reconciliation task is no longer executed on this date; if the current time has not exceeded the latest execution time of the scheduled task, the system can continue to poll (ie ii-3). It should be noted that the task start time and the latest task execution time of the reconciliation task of all merchants are the same. Therefore, the system only needs to query the basic parameter list of the timed task and obtain the basic parameters of the reconciliation task to determine this step.
  • the certain time may be one day, or two days, and the specific time is preset by the manual according to the system reconciliation requirement and the daily operation requirements.
  • Ii-3 After the system continues to wait for a certain period of time, i is executed; wherein the certain time is 5 minutes.
  • the certain time that the system waits for may be any manually set time, which may be 5 seconds or 5 minutes, and the specific time is manually based on the needs of the system reconciliation and daily.
  • the requirements for the operation are preset.
  • the certain time during which the system continues to wait is set to 5 minutes.
  • step i may be performed concurrently with step S100, and the system continuously polls the reconciliation task (every 5 minutes), and if the file is stored in the database is normal, then S100 is continued; otherwise, the system is separated by After a certain period of time, continue to poll.
  • the certain time that the system waits may be any manually set time, which may be 5 seconds or 5 minutes, and the specific time is manually based on the needs of the system reconciliation and daily operation. Requires a preset. Preferably, the certain time during which the system continues to wait is set to 5 minutes.
  • the method for determining the difference account according to the difference account data file in the foregoing method for processing the difference in reconciliation includes the following steps:
  • the method further includes:
  • the post management personnel may need to perform data screening on the reconciliation result file based on different requirements during the review.
  • the system provides a reconciliation processing logic control table for different post management. The different needs of personnel, different logical processing information for different reconciliations are processed, and the data is filtered to facilitate post-processing personnel to process data.
  • the present application implements configurability of information and parameters through various forms such as a timed task basic parameter table, a merchant routing information table, a merchant management information table, and a reconciliation file interaction routing information table. Only some information such as merchant ID, transaction ID, etc. are contacted, and other elements are stored according to the functions of different forms. Therefore, in the post-maintenance, through flexible combination of parameters such as reconciliation mode and transaction scenario, multiple routes can be configured to implement sub-control reconciliation processing.
  • the interaction of the merchant files is basically through the MQ between the system components for message delivery, and the specific file download is implemented in the download component. Therefore, the tasks between the various modules of the system, such as file download tasks, reconciliation tasks, file warehousing tasks, and local file/bill generation tasks, can be executed concurrently so that the tasks of the system are independent of each other. Achieve high efficiency of the system, enabling the system to provide the best and fastest reconciliation solution.
  • a reconciliation difference processing system mainly includes a data extraction module 10, a data processing module 20, a file downloading module 30, a reconciliation module 40, and a system general module 50, according to an embodiment of the present application.
  • the data extraction module 10 includes:
  • An extraction module 102 for extracting and/or obtaining data and information in a table
  • the data processing module 20 is configured to determine, according to the task information extracted by the data extraction module, whether the local accounting book file is normally stored in the database, and is used for parsing the accounting book file;
  • the data processing module 20 includes:
  • a judging module 201 for judging whether a local accounting book file is stored in a database
  • parsing module 202 for parsing the accounting book
  • the file downloading module 30 is configured to download the accounting book file according to the reconciliation file interaction information extracted by the data extraction module, and include a download component 301;
  • the reconciliation module 40 is configured to reconcile the merchant accounting book file with the local accounting book file according to the reconciliation element of the merchant acquired by the data extraction module, and generate a reconciliation result file, and at the same time, Performing a secondary screening process on the reconciliation result file; and generating a difference account according to the difference data extracted by the extraction module in the reconciliation result file;
  • the system general module 50 is configured to schedule all timed tasks, time and determine whether to initiate a reconciliation task, and is used by the storage system to execute all data of the method and the accounting book file;
  • the system universal module 50 includes:
  • a scheduling module 501 for scheduling all scheduled tasks and determining and initiating a reconciliation task
  • a database used by the storage system to perform all of the data for this method, as well as accounting book files.
  • FIG. 8 there is shown an operating environment of a system in which an application is installed, in accordance with an embodiment of the present application.
  • the system for installing the application is installed and runs in the electronic device.
  • the electronic device may be a computing device such as a desktop computer, a notebook, a palmtop computer, or a server.
  • the electronic device can include, but is not limited to, a memory, a processor, and a display.
  • Figure 8 shows only the electronic device with the above components, but it should be understood that not all illustrated components may be implemented, and more or fewer components may be implemented instead.
  • the method in the foregoing embodiment can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware, but in many cases.
  • the former is a better implementation.
  • the technical solution of the present application in essence or the contribution to the prior art can be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic
  • the disc, the optical disc includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the various embodiments of the present application.
  • a computer readable storage medium having stored thereon a program for executing a reconciliation difference processing method, the program being processed by a processor At the time of execution, the steps of the reconciliation difference processing method according to the embodiment of the present application are executed.

Landscapes

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

Abstract

本申请涉及一种对账差异处理方法和系统,所述方法包括:步骤1、获取商户会计账簿文件,同时从本地系统中调取本地会计账簿文件;步骤2、将商户会计账簿文件与本地会计账簿文件进行对账,并生成对账结果文件;其中,对账结果文件中,所有对账结果均包含有对账描述参数,其用于描述对账结果是否为平账,若对账结果为平账,则对账描述参数设置为"平账",若对账结果为所差异,则对账描述参数均设置为"差异账";步骤3、判断对账结果文件是否为空,若是,则由系统向前端发送预警信息,并结束本方法;否则执行步骤4;步骤4、提取所有对账描述参数为"差异账"的对账结果信息,并生成差异账数据文件;步骤5、根据差异账数据文件确定差异账原因。

Description

一种对账差异处理方法和系统
本申请申明享有2018年2月13日递交的申请号为201810148329.0名称为“一种对账差异处理方法和系统”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。
技术领域
本申请涉及计算机服务技术领域,尤其涉及一种对账差异处理方法和系统。
背景技术
对账,是指对前一个清算周期的交易信息进行核对,以确认交易信息的一致性和正确性的过程。应当定期将会计账簿记录的有关数字、货币资金、有价证券往来单位或个人等进行相互核对,保证账证相符、账账相符、账实相符。
随着互联网以及计算机的发展,众多业务已经由原先传统地在线下进行转为通过网络进行线上以及线下的操作。而会计对账,亦已由传统地人工对账,转由通过网络以及计算机,进行自动对账。在对账的过程中,由于一些系统、数据传输等问题,使对账时会计账簿之间的数据有所差异,此时,则将有所差异的对账结果称为差异账。
目前市面上的对账系统,针对不同的会计账簿接入方,其数据的交互耦合度过高,也过于复杂,从而导致实际对账的解决方案并无法满足不同接入方的对账需求。同时,由于接入方的不同,其支付方式不同,使得数据之间具有很大的差异性,这就使得现有的对账系统在差异账的处理方面难以支持大量的支付通道的数据处理,这大大局限了企业业务的拓展和市场竞争力。比如,不同的接入方对账数据交互方式不同、加签加密的方式不同、对账要素的不同、对账结果数据要求的不同,使得一款对账系统和差异账处理系统要满足前述不同要求,其数据的交互耦合度过高。这样高耦合的对账方式直接导致系统业务扩展和功能扩展存在极大的局限性,其不能及时地提供快速并且稳定的对接方案,严重地影响企业的业务拓展。此外,这样高耦合的对账以及差异账处理方式,亦会造成很多重复的工作量,亦不利于运营管理和事件的响应。
发明内容
基于此,有必要针对上述技术问题,提供一种对账差异处理的方法,其通过建立多个路由信息参数表,使表与表之间存在之间或者间接的关联,并利用程序建立表与表之间的使用关系,通过路由化对账,灵活组合多个路由来实现分控对账处理,同时通过建立相关路由控制信息来获取不同商户在不同交易场景下的对账周期、对账数据原格式、对账启动日期以及对账要素等 等数据,从而依据前述数据与信息,来完成对账操作。同时,在对账后,生成差异账。
根据本申请的实施例,提供了一种对账差异处理方法,包括以下步骤:
步骤1、获取商户会计账簿文件,同时从本地系统中调取本地会计账簿文件;
步骤2、将所述商户会计账簿文件与本地会计账簿文件进行对账,并生成对账结果文件;其中,所述对账结果文件中,所有对账结果均包含有对账描述参数,该参数用于描述对账结果是否为平账,若所述对账结果为平账,则所述对账描述参数设置为“平账”,若所述对账结果为所差异,则所述对账描述参数均设置为“差异账”;
步骤3、判断所述对账结果文件是否为空,若是,则由系统向前端发送预警信息,并结束本方法;否则执行步骤4;
步骤4、提取所有对账描述参数为“差异账”的对账结果信息,并生成差异账数据文件;
步骤5、根据所述差异账数据文件确定差异账原因。
根据本申请的实施例,提供了一种路由分控对账系统,包括数据提取模块、数据处理模块、文件下载模块、对账模块以及系统通用模块,
所述数据提取模块,用于提取和/或获取表格以及任务中的数据,并根据所提取的数据,在其他表格中进行查询,并提取相应信息;
所述数据提取模块包括:
用于在表格中查询数据的查询模块;以及
用于在表格中提取和/或获取数据以及信息的提取模块;
所述数据处理模块,用于根据数据提取模块所提取出来的任务信息,判断本地会计账簿文件是否正常存入数据库,同时,用于对会计账簿文件进行解析;
所述数据处理模块包括:
用于判断本地会计账簿文件是否存入数据库的判断模块;以及
用于对会计账簿进行解析的解析模块;
所述文件下载模块,用于根据所述数据提取模块提取出来的对账文件交互信息,下载会计账簿文件,包含下载组件;
所述对账模块,用于根据所述数据提取模块所获取的商户的对账要素,将商户会计账簿文件与本地会计账簿文件进行对账,并生成对账结果文件,同时,用于将所述对账结果文件进行二次筛选处理;用于根据所述对账结果文件中提取模块所提取出的差异数据,生成差异账;
所述系统通用模块,用于调度所有定时任务,计时并判断是否启动对账任务;
所述系统通用模块,用于调度所有定时任务,计时并判断是否启动对账任务,并用于存储系统执行本方法所有数据以及会计账簿文件;
所述系统通用模块包括:
用于调度所有定时任务,并判断和启动对账任务的调度模块;以及
用于进行所有定时、计时操作的定时器模块;以及
用于存储系统执行本方法所有数据以及会计账簿文件的数据库。
根据本申请的实施例,提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有用于执行一种对账差异处理方法的程序,所述程序被处理器执行时,执行所述对账差异处理方法,其包括如下步骤:
步骤1、获取商户会计账簿文件,同时从本地系统中调取本地会计账簿文件;
步骤2、将所述商户会计账簿文件与本地会计账簿文件进行对账,并生成对账结果文件;其中,所述对账结果文件中,所有对账结果均包含有对账描述参数,该对账描述参数用于描述对账结果是否为平账,若所述对账结果为平账,则所述对账描述参数被设置为“平账”,若所述对账结果为有差异,则所述对账描述参数被设置为“差异账”;
步骤3、判断所述对账结果文件是否为空,若是,则向前端发送预警信息,并结束本方法;否则执行步骤4;
步骤4、提取所有对账描述参数为“差异账”的对账结果信息,并生成差异账数据文件;
步骤5、根据所述差异账数据文件确定差异账原因。
本申请的有益效果主要在于:既简便不同接入方在不同交易场景下对账操作的处理与维护,实现不同的数据交互方式,避免代码的高耦合,提高技术的兼容性,高效且安全地处理和存储对账结果数据,并实现对账代码及数据库平台的无关迁移;同时,亦方便用户进行相关路由信息表的数据维护,提升用户体验。此外,使用本申请的对账差异处理方法,通过对不同商户不同场景下的对账参数化、路由化,极大地易化不同的支付场景的交易信息流的处理和统计,提升客户体验和满意度,同时,减少了因不同接入方业务需求不同导致的特殊化处理案例,大大降低了开发成本,提高了凭条功能的可用性和稳定性。
附图说明
图1为根据本申请的实施例的一种对账差异处理方法的流程示意图;
图2为根据本申请的实施例的一种对账差异处理方法中步骤S100的流程示意图;
图3为根据本申请的实施例的一种对账差异处理方法中S200的前序流程示意图;
图4为根据本申请的实施例的一种对账差异处理方法中判断系统当前时间是否符合对账任务启动日期的流程示意图;
图5为根据本申请的实施例的一种对账差异处理方法中步骤S100中从 本地系统中调取本地会计账簿文件的流程示意图;
图6为根据本申请的实施例的一种对账差异处理方法的步骤ii详细流程示意图;
图7为根据本申请的实施例的一种对账差异处理系统的架构示意图;
图8为根据本申请的实施例的安装了应用程序的系统的运行环境的示意图。
具体实施方式
下面,结合附图对技术方案的实施作进一步的详细描述。
下文中,将描述用于进行本申请的实施例。注意,将以下面的次序给出描述:1、发明构思的概要;2、一种对账差异处理方法(图1-图6);3、一种对账差异处理系统(图7);4、根据本申请的实施例的安装了应用程序的系统、 以及存储所述应用程序的计算机可读介质(图8)。
1、发明构思的概要
针对市面上不同的会计账簿接入方数据交互耦合度过高的对账方式,本申请依赖Mongodb的文本数据存储功能、Oracle高效的读写性能、redis的缓存锁、MQ消息中间件的优势,实现异步信息交互,避免代码功能高耦合;结合技术框架PAFA5,总结出一套行之有效的利用路由化信息的对账差异处理解决方案。
具体说来,通过建立多个路由信息参数表,使表与表之间存在之间或者间接的关联,并利用程序建立表与表之间的使用关系,通过路由化对账,灵活组合多个路由来实现分控对账处理,同时通过建立相关路由控制信息来获取不同商户在不同交易场景下的对账周期、对账数据原格式、对账启动日期以及对账要素等等数据,从而依据前述数据与信息,来完成对账操作。同时,通过自动对账,生成差异账,由人工根据差异账的产生原因进行审核,并进行后续处理。
2、一种对账差异处理方法(图1-图6)
鉴于现有技术中系统数据交互耦合度过高,导致实际对账解决方案无法满足不同接入方的对账需求,具有较大局限性的问题,本申请的实施例提出了有效地降低数据交互耦合度,且支持跨平台对账以及多模式混合对账快速安全接入方案的一种对账差异处理方法。
如图1所示,一种对账差异处理方法主要包括以下步骤:
S100、获取商户会计账簿文件,同时从本地系统中调取本地会计账簿文件,执行S200;
其中,在该步骤中,系统通过定时任务来启动商户会计账簿文件的下载,通过路由化的配置、灵活地参数组合,使得系统可以通过路由化的设置来获取商户会计账簿文件。
需要说明的是,在从本地系统中调取本地会计账簿文件前,系统还需要执行如下步骤:
根据商户配置信息,判断本地会计账簿文件是否正常存入数据库,若是,则从本地系统中调取本地会计账簿文件;否则,系统继续等待一定时间后,继续进行判断,判断本地会计账簿文件是否正常存入数据库;
优选地,若本地会计账簿文件存入数据库不正常,则系统继续进行轮询,若轮询到本地会计账簿文件入库定时任务参数表中所记载的该定时任务最晚执行时间,该定时任务还未启动,则由系统记录超时日志,该日期不再执行下述对账任务。
其中,需要说明的是,本地会计账簿文件,是系统根据商户配置信息,在本地支付流水中将与商户有关的支付流水数据抽取出来,汇总生成的与商户有关的本地会计账簿文件。不同商户其所对应生成的本地会计账簿文件均有所不同。
S200、将所述商户会计账簿文件与本地会计账簿文件进行对账,并生成对账结果文件;其中,所述对账结果文件中,所有对账结果均包含有对账描述参数,该参数用于描述对账结果是否为平账,若所述对账结果为平账,则所述对账描述参数设置为“平账”,若所述对账结果为所差异,则所述对账描述参数均设置为“差异账”,执行S300;
其中,系统在对账的过程中,即对对账结果逐一进行判断,若对账结果为平账,则在记录对账结果文件的同时,将该对账结果的对账描述参数设置为“平账”,若对账结果有任何不同,则作为差异账,将该对账结果的对账描述参数设置为“差异账”。所谓平账,是指账户的金额以及其他项目与其所对账的账户金额以及其他项目相互核算相等,即“账账相符”。若相互核算不相等,账户与账户之间核算有所差异,则统称为“差异账”。
其中,判断所述对账结果文件中的对账结果是否为平账的具体步骤为:
依次对所述对账结果文件中所有的对账结果进行比对;
若所述对账结果有差异,即商户会计账簿文件中的某一数据与本地会计账簿文件中某一对应数据之间有所差异,则非平账,需要将所述对账描述参数设置为“差异账”;否则,即为平账,需要将所述对账描述参数设置为“平账”。
优选地,系统通过提取商户所对应的商户信息,并根据商户信息检索商户管理信息表,提取该商户的对账要素,并根据该商户的对账要素,将商户的会计账簿文件(即商户会计账簿文件)与本地会计账簿文件进行对账,生成仅包含该商户需要进行对账的对账要素的对账结果文件。
需要说明的是,系统执行对账操作,是通过系统每隔5分钟对定时对账任务进行轮询来操作的。其中,前述对账任务的间隔时间可以是5分钟,也可以是10分钟,可以是任何一个由人工进行预设的时间。对于本实施例来说,5分钟为系统优选的间隔时间。
即步骤S100与步骤S200之间优选为并行执行。
S300、判断所述对账结果文件是否为空,若是,则执行S400;否则执行S500;
S400、由系统向前端发送预警信息,并结束本方法;
其中步骤S400中,当对账结果文件为空时,说明系统的运行在前面文件下载步骤、文件入库并解析步骤、本地会计账簿文件生成等步骤中出现错误/异常,亦或是对账的过程出现异常,从而使系统无法正常生成对账结果文件。此时,需要系统对前端发送预警信息/邮件,告知前端前述异常信息,由人工进行处理。
S500、提取所有对账描述参数为“差异账”的对账结果信息,并生成差异账数据文件;
其中,所述差异账数据文件,是根据对账结果文件中对每一个对账结果的比对,将每一个对账结果中具有差异的数据提取出来,将其对账描述参数设置为“差异账”,并将所有对账描述参数为“差异账”的数据进行汇总,所的出来的差异账数据文件。
优选地,在S500结束后,系统针对此对账结果文件的处理告一段落,系统结束本方法后,将会获取下一个商户会计账簿文件,并继续从本地系统调取本地会计账簿文件,继续执行下一个对账操作以及差异账处理操作。
S600、根据差异账数据文件确定差异账原因;
优选地,根据差异账数据文件中的订单号查看商户支付表、批量支付表和订单表,判断该订单号所对应的交易的业务类型及产生的影响。
需要说明的是,后台人工一般通过本地会计账簿文件中的订单号,查看商户支付表、批量支付表和订单表,来判断对账结果参数为“差异”的对账结果信息的业务类型,以及该笔差异交易所产生的影响。其中,订单号一般是银行流水号。
在本实施例中,如图2所示,上述一种对账差异处理方法的S100中获取商户会计账簿文件具体包括如下步骤:
S101、启动定时文件下载任务,所述定时文件下载任务周期性被轮询;
其中,系统每隔5分钟对定时文件下载任务进行轮询,即,系统每隔5分钟启动并执行文件下载任务。
需要说明的是,上述文件下载任务的间隔时间可以是5分钟,也可以是10分钟,可以是任何一个由人工进行预设的时间。对于本实施例来说,5分钟为系统优选的间隔时间。
S102、根据定时文件下载任务的任务名称,查询数据库中的商户管理信息表,获取商户配置信息;所述商户配置信息中包含有商户号、商户的对账日期;
其中,步骤S102可以细化为如下步骤:
查询数据库中的定时任务基本参数表,获取所述文件下载任务中的任务 名称,根据所述任务名称,查询商户路由信息表,获取所述对账任务中的商户信息,根据所述商户信息,查询商户管理信息表,获取商户配置信息。
需要说明的是,所述定时任务基本参数表中包括所有定时任务的任务名称、任务执行方式、任务对账日期、任务启动时间、任务最晚执行时间和文件存储目录。系统通过查询定时任务基本参数表,可以获取定时文件下载任务的相关基本参数(包括表中所包含的所有参数)。
商户路由信息表由不同参数构成,在创建新商户时,对该商户的不同参数进行组合,将该商户的对应各项参数添加进商户路由信息表中,该表主要用于记录商户信息,并记录该商户涉及的所有交易渠道号(交易ID),任务名称以及所对应的清结算规则等。系统可以通过任务名称,在商户路由信息表中查询该任务名称所对应的商户信息。
同时,商户管理信息表指的是包含所有商户的所有基本信息的表格,包括商户的对账日期、商户描述、清算周期、是否进行订单对账、实际对账模式、文件交互方式、文件下载方式等信息。而商户配置信息则是指在商户管理信息表中所记载的具体单一商户执行对账任务所必须的信息,如商户号、交易ID、对账日期、商户描述、是否进行订单对账、文件基本下载方式、实际对账模式等信息。
前述定时任务基本参数表、商户路由信息表、商户管理信息表等表格文件,均以表格文件的形式存储在系统通用模块的数据库中。
系统通过将商户信息(包含商户名称、商户ID、渠道号等)与商户管理信息表中进行匹配,从商户管理信息表中找到对应的商户,并获取商户的配置信息。
S103、根据所述商户配置信息,查询所述数据库中的对账文件交互路由信息表,获取商户的对账文件交互信息;
其中,所述对账文件交互路由信息表中包含有所有商户的所有交易场景下对账文件的具体下载方式,包括商户号、交易ID、IP地址、用户名、密码、端口号、目标服务器地址、文件名等;而对账文件交互信息是指单一商户在单一场景下的具体对账文件下载信息,包括对账文件的下载地址、端口号、目标服务器地址、文件名等。前述对账文件交互路由信息表是以表格文件的方式存储在数据库中。
系统商户配置信息中的商户号和交易ID,在对账文件交互路由信息表中找到对应该商户在该场景下的具体对账文件下载信息(即对账文件交互信息),并依据该对账文件交互信息来下载对应的会计账簿文件(即对账文件)。
S104、根据所述对账文件交互信息,调用下载组件;
S105、下载商户会计账簿文件并解析存入数据库。
其中,系统下载组件根据商户的对账文件交互信息中的文件名称、IP地址、端口号、用户名、密码、目标服务器地址等信息,在商户的目标服务器中下载所需的会计账簿文件。
其中,在会计账簿文件下载完成后,系统文件下载结果进行记录,以便后续系统查询文件下载是否成功。
在本实施例中,如图3所示,上述一种对账差异处理方法的S200在执行之前,还包括如下步骤:
S201、启动总调度任务;
其中,优选地,总调度任务由系统每隔一定时间轮询一次,与前述步骤S101-S105之间为并发执行。优选地,总调度任务由系统每隔10分钟轮询一次。
系统通过总调度任务来控制判断定时任务的启动时间,具体说来,系统总调度任务每隔10分钟进行轮询,获取总调度任务中所有加载的定时任务的基本参数。系统通过轮询,判断定时任务中的定时对账任务是否启动。
总调度任务判断定时任务启动时间,具体包括如下过程:
总调度任务启动,查询定时任务基本参数表,从该定时任务基本参数表中获取对账任务的基本参数,并根据定时任务基本参数中的定时任务启动时间,来判断该定时任务是否启动,若符合时间条件,则启动定时任务。
其中,该定时任务基本参数表提供所有定时任务的基本参数。
S202、查询定时任务基本参数表,获取对账任务基本参数;
其中,所述定时任务基本参数表中包括所有定时任务的任务名称、任务执行方式、任务对账日期、任务启动时间、任务最晚执行时间和文件存储目录等;所述对账任务基本参数包括对账任务名称、对账任务执行方式、对账任务启动日期、对账任务最晚执行时间和对账文件存储目录等。
S203、根据所述商户配置信息,判断系统当前日期是否符合对账任务启动日期,若符合,则执行S200;否则,结束本方法。
所述判断系统当前日期是否符合对账任务启动日期是指,系统在商户配置信息后,提取该商户配置信息中的对账日期参数,并将系统当前日期与该对账日期参数进行比对。具体到本对账任务,则是,系统将当前日期与该商户配置信息的对账日期进行比对,若当前日期符合对账任务启动日期,则执行S200;否则,结束本方法。
需要说明的是,如图4所示,上述判断系统当前日期是否符合对账任务启动日期的具体步骤如下:
a、根据所述商户配置信息,判断所述商户的对账日期是否设定为工作日,若是,则执行b;否则,执行c;
b、判断当前日期是否为工作日,若是,执行S200;否则,结束本方法;
c、判断当前日期是否为工作日,若是,结束本方法;否则,执行S200。
在本实施例中,上述一种对账差异处理方法还包括,在步骤S100执行之前,在系统数据库中新建商户信息管理表,录入所有商户的基本信息、配置信息。
在本实施例中,所述步骤S100中从本地系统中调取本地会计账簿文件 具体包括如下步骤:
i、根据所述对账任务的任务名称,判断本地会计账簿文件是否正常存入数据库,若是,则执行iii;否则,执行ii;
ii、系统继续等待一定时间后,执行i;
在本实施例中,如图5所示,所述步骤ii具体包括如下步骤:
ii-1、根据所述对账任务基本参数,判断系统当前时间是否已经超过所述对账任务最晚执行时间,若是,则执行ii-2;否则,执行ii-3;
其中,系统通过查询定时任务基本参数表,获取该定时任务的最晚执行时间,并用当前时间与所述最晚执行时间进行对比,若当前时间已经超过了该定时任务的最晚执行时间,则系统记录超时日志(即ii-2),该日期不再执行该对账任务;若当前时间还没有超过定时任务最晚执行时间,则系统还可以继续进行轮询(即ii-3)。需要说明的是,所有商户的对账任务的任务启动时间和任务最晚执行时间都是相同的,故系统仅需要查询定时任务基本参数表,获取对账任务的基本参数即可判断本步骤。
ii-2、将当前对账任务记录超时日志,同时结束本方法;
其中,若系统当前时间已经超过所述对账任务最晚执行时间时,说明本地会计账簿文件一直无法正常存入数据库,此时,需要系统记录该错误,并放弃执行对账任,并于一定时间后,重新开始新的轮询与对账操作。
所述一定时间,可以是一天,可以是两天,具体时间由人工根据系统对账需求以及日常运行的要求进行预先设置。
ii-3、系统继续等待一定时间后,执行i;其中,所述一定时间为5分钟。
其中,需要说明的是,系统所等待的所述一定时间,可以是任何由人工设定的时间,可以是5秒,也可以是5分钟,具体的时间由人工根据系统对账的需求以及日常运行的要求进行预先设置。优选地,这里系统继续等待的一定时间设置为5分钟。
iii、从所述数据库获取所述本地会计账簿文件,并执行S200;
需要说明的是,步骤i可以与步骤S100并发执行,由系统不断对该对账子任务进行轮询(每隔5分钟),若文件存入数据库正常,则继续执行S100;否则,由系统间隔一定时间后,继续进行轮询。
需要说明的是,系统所等待的所述一定时间,可以是任何由人工设定的时间,可以是5秒,也可以是5分钟,具体的时间由人工根据系统对账的需求以及日常运行的要求进行预先设置。优选地,这里系统继续等待的一定时间设置为5分钟。
在本实施例中,上述一种对账差异处理方法中S600根据差异账数据文件确定差异账原因具体包括如下步骤:
S600、若商户会计账簿文件的交易流水中存在的数据,而本地会计账簿文件的支付流水中不存在,或所述数据在本地会计账簿文件的支付流水中存在,而商户会计账簿文件的交易流水中不存在,则所述数据以所述商户会计 账簿文件的交易流水为准;如果所述数据在商户会计账簿文件的交易流水以及本地会计账簿文件的支付流水中都存在,但是所述数据所记载的账号、金额亦或是业务类型不一致,则所述数据以本地会计账簿文件的支付流水为准;其他异常则以商户会计账簿文件的交易流水为准。
在本实施例中,上述一种对账差异处理方法中S200之后,还包括:
S2001、根据所述商户的配置信息,获取所述商户对账处理逻辑控制信息,根据所述对账处理逻辑控制信息,对所述对账结果文件中的数据进行筛选,并生成第二对账结果文件。
其中,当系统生成对账结果文件后,由于后管人员在审查时,可能基于不同的需求对对账结果文件需要进行数据筛选,为此,系统提供对账处理逻辑控制表,为不同后管人员的不同需求,规定不同的对账处理逻辑控制信息,对数据进行筛选,以方便后管人员后期处理数据。
需要说明的是,本申请通过定时任务基本参数表、商户路由信息表、商户管理信息表、对账文件交互路由信息表等多种表格,来实现信息、参数的可配置化,各个表格之间仅仅通过商户ID、交易ID等部分信息联系,其他要素则根据不同表格的功能进行数据存储。因此,在后期维护时,通过对对账模式、交易场景等参数的灵活组合,可以配置出多个路由来实现分控对账处理。
另外,在本实施例中,商户文件的交互基本都是通过系统组件之间的MQ进行消息传递,并在下载组件中实现具体的文件下载。因此,系统各个模块间的定时任务,如文件下载任务、对账任务、文件入库任务以及本地文件/账单生成任务等任务,都是可以进行并发执行,以便系统的任务之间相互独立,从而实现系统的高效率化,使系统能够提供最优最快捷的对账解决方案。
3、一种路由分控对账系统(图7)
参照图7,根据本申请的实施例,一种对账差异处理系统主要包括数据提取模块10、数据处理模块20、文件下载模块30、对账模块40以及系统通用模块50,
所述数据提取模块10包括:
用于在表格中查询数据的查询模块101;以及
用于在表格中提取和/或获取数据以及信息的提取模块102;
所述数据处理模块20,用于根据数据提取模块所提取出来的任务信息,判断本地会计账簿文件是否正常存入数据库,同时,用于对会计账簿文件进行解析;
所述数据处理模块20包括:
用于判断本地会计账簿文件是否存入数据库的判断模块201;以及
用于对会计账簿进行解析的解析模块202;
所述文件下载模块30,用于根据所述数据提取模块提取出来的对账文件交互信息,下载会计账簿文件,包含下载组件301;
所述对账模块40,用于根据所述数据提取模块所获取的商户的对账要素,将商户会计账簿文件与本地会计账簿文件进行对账,并生成对账结果文件,同时,用于将所述对账结果文件进行二次筛选处理;用于根据所述对账结果文件中提取模块所提取出的差异数据,生成差异账;
所述系统通用模块50,用于调度所有定时任务,计时并判断是否启动对账任务,并用于存储系统执行本方法所有数据以及会计账簿文件;
所述系统通用模块50包括:
用于调度所有定时任务,并判断和启动对账任务的调度模块501;以及
用于进行所有定时、计时操作的定时器模块502;以及
用于存储系统执行本方法所有数据以及会计账簿文件的数据库。
4、根据本申请的实施例的安装了应用程序的系统(图8)
参照图8,其示出了根据本申请的实施例的安装了应用程序的系统的运行环境。
在本实施例中,所述的安装应用程序的系统安装并运行于电子装置中。所述电子装置可以是桌上型计算机、笔记本、掌上电脑及服务器等计算设备。该电子装置可包括但不限于存储器、处理器及显示器。图8仅示出了具有上述组件的电子装置,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解,上述实施方式中的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请本申请各个实施例所述的方法。
也就是说,根据本申请的实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有用于执行一种对账差异处理方法的程序,所述程序被处理器执行时,执行根据本申请的实施例的对账差异处理方法的步骤。
本领域的技术人员将理解,流程图步骤中所绘出或这里描述的操作和例程可以多种方式变化。

Claims (20)

  1. 一种对账差异处理方法,其特征在于,所述方法包括如下步骤:
    步骤1、获取商户会计账簿文件,同时从本地系统中调取本地会计账簿文件;
    步骤2、将所述商户会计账簿文件与本地会计账簿文件进行对账,并生成对账结果文件;其中,所述对账结果文件中,所有对账结果均包含有对账描述参数,该对账描述参数用于描述对账结果是否为平账,若所述对账结果为平账,则所述对账描述参数被设置为“平账”,若所述对账结果为有差异,则所述对账描述参数被设置为“差异账”;
    步骤3、判断所述对账结果文件是否为空,若是,则向前端发送预警信息,并结束本方法;否则执行步骤4;
    步骤4、提取所有对账描述参数为“差异账”的对账结果信息,并生成差异账数据文件;
    步骤5、根据所述差异账数据文件确定差异账原因。
  2. 根据权利要求1所述的一种对账差异处理方法,其特征在于,所述步骤1中,定时获取商户会计账簿文件,具体包括如下步骤:
    步骤101、启动定时文件下载任务,所述定时文件下载任务周期性被轮询;
    步骤102、根据定时文件下载任务的任务名称,查询数据库中的商户管理信息表,获取商户配置信息;所述商户配置信息中包含有商户号、商户的对账日期;
    步骤103、根据所述商户配置信息,查询所述数据库中的对账文件交互路由信息表,获取商户的对账文件交互信息;
    步骤104、根据所述对账文件交互信息,调用下载组件;
    步骤105、下载商户会计账簿文件并解析存入数据库。
  3. 根据权利要求2所述的一种对账差异处理方法,其特征在于,所述步骤2执行前,还具体包括如下步骤:
    步骤201、启动总调度任务;
    步骤202、查询定时任务基本参数表,所述定时任务基本参数表中包括所有商户对账任务名称、对账任务启动日期、对账任务最晚执行时间;
    步骤203、根据所述商户配置信息,判断系统当前日期是否符合对账任务启动日期,若符合,则执行步骤2;否则,结束本方法。
  4. 根据权利要求3所述的一种对账差异处理方法,其特征在于,所述判断系统当前日期是否符合对账任务启动日期具体包括如下步骤:
    a、根据所述商户配置信息,判断所述商户的对账日期是否设定为工作日,若是,则执行b;否则,执行c;
    b、判断当前日期是否为工作日,若是,执行步骤2;否则,结束本方法;
    c、判断当前日期是否为工作日,若是,结束本方法;否则,执行步骤2。
  5. 根据权利要求3所述的一种对账差异处理方法,其特征在于,所述步骤1中从本地系统中调取本地会计账簿文件具体包括如下步骤:
    i、根据所述商户配置信息,判断本地会计账簿文件是否正常存入数据库,若是,则从所述数据库获取所述本地会计账簿文件,并执行步骤2;否则,执行ii;
    ii、系统继续等待一定时间后,执行i。
  6. 根据权利要求5所述的一种对账差异处理方法,其特征在于,所述步骤ii具体包括如下步骤:
    判断系统当前时间是否已经超过所述对账任务最晚执行时间,若是,将当前对账任务记录超时日志,同时结束本方法,否则,系统继续等待一定时间后,返回执行步骤i;其中,所述一定时间为5分钟。
  7. 根据权利要求1所述的一种对账差异处理方法,其特征在于,所述步骤5包括如下步骤:
    若商户会计账簿文件的交易流水中存在的数据,而本地会计账簿文件的支付流水中不存在,则所述数据以所述商户会计账簿文件的交易流水为准。
  8. 根据权利要求7所述的一种对账差异处理方法,其特征在于,所述步骤5包括如下步骤:
    若所述数据在本地会计账簿文件的支付流水中存在,而商户会计账簿文件的交易流水中不存在,则所述数据以所述商户会计账簿文件的交易流水为准。
  9. 根据权利要求8所述的一种对账差异处理方法,其特征在于,所述步骤5还包括如下步骤:
    如果所述数据在商户会计账簿文件的交易流水以及本地会计账簿文件的支付流水中都存在,但是所述数据所记载的账号、金额亦或是业务类型不一致,则所述数据以本地会计账簿文件的支付流水为准;其他异常则以商户会计账簿文件的交易流水为准。
  10. 根据权利要求1所述的一种对账差异处理方法,其特征在于,所述步骤2之后,还包括:
    根据所述商户的配置信息,获取所述商户对账处理逻辑控制信息,根据所述对账处理逻辑控制信息,对所述对账结果文件中的数据进行筛选,并生成第二对账结果文件。
  11. 一种对账差异处理系统,其特征在于,所述系统包括数据提取模块、数据处理模块、文件下载模块、对账模块以及系统通用模块,
    所述数据提取模块,用于提取和/或获取表格以及任务中的数据,并根据所提取的数据,在其他表格中进行查询,并提取相应信息;
    所述数据提取模块包括:
    用于在表格中查询数据的查询模块;以及
    用于在表格中提取和/或获取数据以及信息的提取模块;
    所述数据处理模块,用于根据数据提取模块所提取出来的任务信息,判断本地会计账簿文件是否正常存入数据库,同时,用于对会计账簿文件进行解析;
    所述数据处理模块包括:
    用于判断本地会计账簿文件是否存入数据库的判断模块;以及
    用于对会计账簿进行解析的解析模块;
    所述文件下载模块,用于根据所述数据提取模块提取出来的对账文件交互信息,下载会计账簿文件,包含下载组件;
    所述对账模块,用于根据所述数据提取模块所获取的商户的对账要素,将商户会计账簿文件与本地会计账簿文件进行对账,并生成对账结果文件,同时,用于将所述对账结果文件进行二次筛选处理;用于根据所述对账结果文件中提取模块所提取出的差异数据,生成差异账;
    所述系统通用模块,用于调度所有定时任务,计时并判断是否启动对账任务,并用于存储系统执行本方法所有数据以及会计账簿文件;
    所述系统通用模块包括:
    用于调度所有定时任务,并判断和启动对账任务的调度模块;以及
    用于进行所有定时、计时操作的定时器模块;以及
    用于存储系统执行本方法所有数据以及会计账簿文件的数据库。
  12. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有用于执行一种对账差异处理方法的程序,所述程序被处理器执行时,执行所述对账差异处理方法,其包括如下步骤:
    步骤1、获取商户会计账簿文件,同时从本地系统中调取本地会计账簿文件;
    步骤2、将所述商户会计账簿文件与本地会计账簿文件进行对账,并生成对账结果文件;其中,所述对账结果文件中,所有对账结果均包含有对账描述参数,该对账描述参数用于描述对账结果是否为平账,若所述对账结果为平账,则所述对账描述参数被设置为“平账”,若所述对账结果为有差异,则所述对账描述参数被设置为“差异账”;
    步骤3、判断所述对账结果文件是否为空,若是,则向前端发送预警信息,并结束本方法;否则执行步骤4;
    步骤4、提取所有对账描述参数为“差异账”的对账结果信息,并生成差异账数据文件;
    步骤5、根据所述差异账数据文件确定差异账原因。
  13. 根据权利要求12所述的计算机可读存储介质,其特征在于,所述步骤1中,定时获取商户会计账簿文件,具体包括如下步骤:
    步骤101、启动定时文件下载任务,所述定时文件下载任务周期性被轮询;
    步骤102、根据定时文件下载任务的任务名称,查询数据库中的商户管理信息表,获取商户配置信息;所述商户配置信息中包含有商户号、商户的对账日期;
    步骤103、根据所述商户配置信息,查询所述数据库中的对账文件交互路由信息表,获取商户的对账文件交互信息;
    步骤104、根据所述对账文件交互信息,调用下载组件;
    步骤105、下载商户会计账簿文件并解析存入数据库。
  14. 根据权利要求13所述的计算机可读存储介质,其特征在于,所述步骤2执行前,还具体包括如下步骤:
    步骤201、启动总调度任务;
    步骤202、查询定时任务基本参数表,所述定时任务基本参数表中包括所有商户对账任务名称、对账任务启动日期、对账任务最晚执行时间;
    步骤203、根据所述商户配置信息,判断系统当前日期是否符合对账任务启动日期,若符合,则执行步骤2;否则,结束本方法。
  15. 根据权利要求14所述的计算机可读存储介质,其特征在于,所述判断系统当前日期是否符合对账任务启动日期具体包括如下步骤:
    a、根据所述商户配置信息,判断所述商户的对账日期是否设定为工作日,若是,则执行b;否则,执行c;
    b、判断当前日期是否为工作日,若是,执行步骤2;否则,结束本方法;
    c、判断当前日期是否为工作日,若是,结束本方法;否则,执行步骤2。
  16. 根据权利要求14所述的计算机可读存储介质,其特征在于,所述步骤1中从本地系统中调取本地会计账簿文件具体包括如下步骤:
    i、根据所述商户配置信息,判断本地会计账簿文件是否正常存入数据库,若是,则从所述数据库获取所述本地会计账簿文件,并执行步骤2;否则,执行ii;
    ii、系统继续等待一定时间后,执行i。
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述步骤ii具体包括如下步骤:
    判断系统当前时间是否已经超过所述对账任务最晚执行时间,若是,将当前对账任务记录超时日志,同时结束本方法,否则,系统继续等待一定时间后,返回执行步骤i;其中,所述一定时间为5分钟。
  18. 根据权利要求12所述的计算机可读存储介质,其特征在于,所述步骤5包括如下步骤:
    若商户会计账簿文件的交易流水中存在的数据,而本地会计账簿文件的支付流水中不存在,则所述数据以所述商户会计账簿文件的交易流水为准;
    或者,若所述数据在本地会计账簿文件的支付流水中存在,而商户会计账簿文件的交易流水中不存在,则所述数据以所述商户会计账簿文件的交易流水为准。
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述步骤5还包括如下步骤:
    如果所述数据在商户会计账簿文件的交易流水以及本地会计账簿文件的支付流水中都存在,但是所述数据所记载的账号、金额亦或是业务类型不一致,则所述数据以本地会计账簿文件的支付流水为准;其他异常则以商户会计账簿文件的交易流水为准。
  20. 根据权利要求12所述的计算机可读存储介质,其特征在于,所述步骤2之后,还包括:
    根据所述商户的配置信息,获取所述商户对账处理逻辑控制信息,根据所述对账处理逻辑控制信息,对所述对账结果文件中的数据进行筛选,并生成第二对账结果文件。
PCT/CN2018/083063 2018-02-13 2018-04-13 一种对账差异处理方法和系统 WO2019157776A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810148329.0 2018-02-13
CN201810148329.0A CN108376363A (zh) 2018-02-13 2018-02-13 一种对账差异处理方法和系统

Publications (1)

Publication Number Publication Date
WO2019157776A1 true WO2019157776A1 (zh) 2019-08-22

Family

ID=63017964

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/083063 WO2019157776A1 (zh) 2018-02-13 2018-04-13 一种对账差异处理方法和系统

Country Status (2)

Country Link
CN (1) CN108376363A (zh)
WO (1) WO2019157776A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450979B (zh) * 2018-10-10 2020-12-04 广州华多网络科技有限公司 一种分布式动态任务执行方法及相关装置
CN109636300A (zh) * 2018-10-16 2019-04-16 深圳壹账通智能科技有限公司 账单的检测方法、装置、终端及计算机可读存储介质
CN110060140A (zh) * 2019-03-15 2019-07-26 深圳壹账通智能科技有限公司 海量数据对账方法、装置、介质和计算机设备
CN110443690A (zh) * 2019-08-15 2019-11-12 深圳乐信软件技术有限公司 一种差异数据对账的方法、装置、服务器和存储介质
CN111125243A (zh) * 2019-11-12 2020-05-08 望海康信(北京)科技股份公司 数据一致性校验系统及方法
CN111861530A (zh) * 2019-11-19 2020-10-30 北京嘀嘀无限科技发展有限公司 一种订单数据处理方法、装置、电子设备及可读存储介质
CN111143434A (zh) * 2019-12-19 2020-05-12 深圳壹账通智能科技有限公司 数据智能核对方法、装置、设备及存储介质
CN111784318A (zh) * 2020-06-29 2020-10-16 京东数字科技控股有限公司 数据处理方法、装置、电子设备及存储介质
CN112862578B (zh) * 2020-12-14 2022-08-02 苏宁消费金融有限公司 一种对账方法及装置
CN113781190A (zh) * 2021-01-13 2021-12-10 北京沃东天骏信息技术有限公司 账单数据的处理方法、系统、计算机系统和介质
CN113205402A (zh) * 2021-05-29 2021-08-03 长沙市到家悠享家政服务有限公司 对账方法、装置、电子设备及计算机可读介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609402A (zh) * 2009-07-07 2009-12-23 中兴通讯股份有限公司 一种文件对账方法和系统
CN105405007A (zh) * 2015-11-19 2016-03-16 成都连银信息技术有限公司 支持多种支付通道的统一账务处理系统
CN106447246A (zh) * 2015-08-06 2017-02-22 阿里巴巴集团控股有限公司 库存数据对账方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609402A (zh) * 2009-07-07 2009-12-23 中兴通讯股份有限公司 一种文件对账方法和系统
CN106447246A (zh) * 2015-08-06 2017-02-22 阿里巴巴集团控股有限公司 库存数据对账方法及装置
CN105405007A (zh) * 2015-11-19 2016-03-16 成都连银信息技术有限公司 支持多种支付通道的统一账务处理系统

Also Published As

Publication number Publication date
CN108376363A (zh) 2018-08-07

Similar Documents

Publication Publication Date Title
WO2019157776A1 (zh) 一种对账差异处理方法和系统
US6990466B1 (en) Method and system for integrating core banking business processes
US6874010B1 (en) Base service architectures for netcentric computing systems
US20170004478A1 (en) System for Point of Sale Data Capture, Reporting and Analysis for the Auditing of Sales Taxes
WO2019157777A1 (zh) 一种路由分控对账方法和系统
US20030065759A1 (en) Event driven storage resource metering
US10949413B2 (en) Method and system for supporting data consistency on an active standby database after DML redirection to a primary database
US10747732B2 (en) Virtual database administrator
WO2019196242A1 (zh) 批量文件审核代付方法和系统
CN110321339B (zh) 一种数据迁移方法、装置、设备和存储介质
CN110717825A (zh) 一种基于区块链的分布式数据交易记账系统
CN111127009B (zh) 一种应用于自助设备的错账定位方法和装置
US20100057744A1 (en) Method and system for cascading a middleware to a data orchestration engine
US11526406B2 (en) Method and system for implementing a backup validation engine
US20110099503A1 (en) User interface display for monitoring a database load engine
US11913811B2 (en) Enhanced meter management solution
US20090299793A1 (en) System and method for automating a business process of a service provider
US7925556B1 (en) Streaming conversion
CN108520408A (zh) 一种基于基金份额赎转付日常缴费的自动代扣方法及系统
CN115858489A (zh) 基于数据迁移的交易处理方法、装置、计算机设备及介质
CN115293755A (zh) 账单的对账处理方法、装置、设备及存储介质
CN113706107A (zh) 公积金缴存方法、装置、电子设备及计算机可读介质
CN112232911A (zh) 一种权益订购异步处理方法及系统
JP2006107272A (ja) 請求支払い支援システム、前記システムに使用または利用される請求側端末、前記システムに使用または利用される支払側端末、および、請求支払い支援のためのコンピュータプログラム
CN111831698A (zh) 一种数据稽核方法、系统和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18906033

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 12/11/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18906033

Country of ref document: EP

Kind code of ref document: A1