WO2019227634A1 - Batch file partial return processing method and system - Google Patents

Batch file partial return processing method and system Download PDF

Info

Publication number
WO2019227634A1
WO2019227634A1 PCT/CN2018/096478 CN2018096478W WO2019227634A1 WO 2019227634 A1 WO2019227634 A1 WO 2019227634A1 CN 2018096478 W CN2018096478 W CN 2018096478W WO 2019227634 A1 WO2019227634 A1 WO 2019227634A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
status
return
batch
disk
Prior art date
Application number
PCT/CN2018/096478
Other languages
French (fr)
Chinese (zh)
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 WO2019227634A1 publication Critical patent/WO2019227634A1/en

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/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/407Cancellation of a transaction

Definitions

  • the present application relates to the technical field of Internet services, and in particular, to a method and a system for processing a part of a batch of files.
  • the present application provides a method for processing a batch of files in a batch and a system for performing the method.
  • the method obtains a return file from an access party (access party)
  • access party access party
  • It will not wait for the entire batch to be processed before returning it to the disk. Instead, it will return the disk to the accessor as much as it is processed.
  • the accessor will return the file according to the batch.
  • the system receives the file for analysis and updates the record to In the state of waiting for return, the timed job obtains the data of waiting for return in batches according to the batch, generates a file, and returns it to the accessor.
  • the record without returning it continues to wait for the returning document of the accessor, as described above. Same treatment.
  • a method for processing a batch of documents in part in which an access party providing a transaction service accesses a system for processing the documents in part in a batch, and the system for processing the documents in part in a batch Processing the business request of the access party, wherein the batch file partial discarding processing system is connected to a network storage and a database, and the access party uses a payment channel when conducting a transaction, and the database stores the access party Transaction-related records,
  • Step 1 Perform periodic polling on the payment channel to obtain a first return file, and the first return file includes records related to the need to return to the access party;
  • Step 2 Import the records in the first disk file into the database
  • Step 3 Extract from the database the records that need to be returned to the access party as the current records and summarize them into a second return file;
  • Step 4 Push the second disc file to the access party and obtain the push status.
  • Step 5 Update the status of the current record in the database according to the push status.
  • a batch file partial return processing system for performing the above method, which is characterized by including a file transfer module, a return module, and an asynchronous processing module.
  • the file transfer module is used as a gateway for downloading the first disk-backed file from the first network storage and uploading the second disk-backed file to the second network storage,
  • the check-back module is configured to perform periodic polling on the payment channel, obtain a first check-back file through the file transfer module, import records in the first check-back file into the database, and generate a second check-back file;
  • the return module is further configured to push a second return file to the access party through the file transfer module, and obtain a push status, and update the status of the current record in the database according to the push status,
  • the asynchronous processing module is configured to perform asynchronous processing on the download of the first disk-backed file and / or the upload of the second disk-backed file in response to the call of the disk-backup module.
  • a computer-readable storage medium stores a program for executing the method, and when the program is executed by a processor, the following steps are performed: Operation:
  • Step 1 Perform periodic polling on the payment channel to obtain a first return file, and the first return file includes records related to the need to return to the access party;
  • Step 2 Import the records in the first disk file into the database
  • Step 3 Extract from the database the records that need to be returned to the access party as the current records and summarize them into a second return file;
  • Step 4 Push the second disc file to the access party and obtain the push status.
  • Step 5 Update the status of the current record in the database according to the push status.
  • the beneficial effects of this application are mainly that it can easily distinguish the accounts of the return of funds, so that all links can be controlled, and the transaction can be carried out smoothly, real-time and user experience can be improved.
  • For operation and maintenance it is possible to detect some abnormally failed transactions early, improve the effective utilization of funds, improve the operation experience and user experience, and be more efficient and maintainable for operation and maintenance.
  • FIG. 1 is a schematic diagram of a logical architecture of a batch file partial check-back processing system according to an embodiment of the present application
  • FIG. 2 is a partial flowchart of a method for processing a batch of files in a batch according to an embodiment of the present application
  • FIG. 3 is a partial flowchart of a method for processing a batch file in part according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of an operating environment of a system in which an application is installed according to an embodiment of the present application.
  • the idea of this application is mainly because when reviewing batch business requests, it is necessary to ensure the status of funds in the merchant and the flow of funds for this batch transaction, and the accuracy of the review needs to be improved. Conducive to the processing efficiency of concurrent business. Therefore, according to the embodiment of the present application, through the application of asynchronous processing, by setting and updating the batch status, detailed status, etc., the discarding files are screened, the discarding is performed in real time to the access party, and the discarding result is tracked. That is, by setting up a batch table, a detailed list, and batch loading, detailed status and other operations, the disks are periodically reviewed, and the returned files are filtered to achieve the purpose of processing the returned files in real time.
  • FIG. 1 is a schematic diagram of a logical architecture of a batch file partial check-back processing system according to an embodiment of the present application.
  • the batch file partial disk return processing system mainly includes a file transfer module, a disk return module, and an asynchronous processing module.
  • the accessing party refers to the entity that interacts with the system and conducts transactions (for example, financial transactions) with the user through the system.
  • the payment channel refers to the payment channel used by the accessing party to conduct transactions through the system, which is generally a third-party payment. Channels, that is, independent of the system and the access party.
  • FIG. 1 is only a schematic diagram of the general logical functions of a batch file partial disc processing system, which is drawn in combination with actual business processes. Among them, the division of each module is not strictly precise because this system And modules do not mean hardware implementation, but also involve software-level concepts. There is a cross-call relationship between modules. In the strict sense, they do not work independently. In fact, it is difficult to map each module to each step in the business process. Therefore, those skilled in the art can fully understand that FIG. 1 is only used to help understand the concept outline of the present application, and is not used to limit the scope of the present application and its embodiments. The specific technical solutions of the embodiments of the present application are described in the description. The text description shall prevail.
  • the file transmission module is used as a gateway and is responsible for transmitting the disk-backed file, including downloading the first disk-backed file from the network storage, and uploading the second disk-backed file to the network storage.
  • the recall module is used to: periodically initiate a batch of document processing tasks for batch processing, periodically poll the payment channel, and query a list of downloadable files (that is, a list of downloadable recall files received from the payment channel).
  • a list of downloadable files that is, a list of downloadable recall files received from the payment channel.
  • the recall module is further configured to scan and extract all records in the database with a batch status of "to be returned to the access party" and a detailed status of "returned from the payment channel” as the current return record. Generate a second disk file.
  • the database is managed by the system, and the record has a batch table.
  • the batch table records multiple batches, and each batch has a corresponding batch status, such as "to be returned to the access party", " “Successful return to the access party”, which indicates the collective status of multiple return records belonging to a batch;
  • the database also has a detailed record in the database, and the detailed record records the return status of each specific record in a file .
  • the database also has a status table (ext table) that records all status values, such as the processing status of each disc record, the number of times the system pushes files to network storage, and so on.
  • a status table (ext table) that records all status values, such as the processing status of each disc record, the number of times the system pushes files to network storage, and so on.
  • the return module is further configured to record the file number of the second return file, modify the detailed status of the current return record to "successful return to the access party", and asynchronously call the file transmission A push file interface of the module, and receive push file acceptance information from the file transfer module, and then, according to the file number of the second return file, download the second return disk from the network storage through the file transfer module File, and encrypt, sign, and compress the second disk file, generate an encrypted disk file, upload the encrypted disk file to the network storage, and push the upload result to the asynchronous queue. Result judgment.
  • the asynchronous queue refers to a consumer message queue (MQ) for asynchronous execution.
  • the asynchronous processing module is configured to perform asynchronous processing on tasks that need to be performed asynchronously (for example, file download, file push).
  • different embodiments of the present application may also be implemented by means of software modules or computer-readable instructions stored on one or more computer-readable media, where the computer-readable instructions are used as processors or device components. When executed, the different embodiments described in this application are executed. Similarly, any combination of software modules, computer-readable media, and hardware components is contemplated by this application.
  • the software module may be stored on any type of computer-readable storage medium, such as RAM, EPROM, EEPROM, flash memory, registers, hard disk, CD-ROM, DVD, and so on.
  • a method for processing a batch of files in part is provided.
  • the above system is the main body that executes the method, and the accessing party refers to the system that is connected to the system.
  • Receiving the body of the return file sent by the system the method includes the following steps:
  • Step S100 Perform periodic polling on the payment channel to obtain a first return file
  • a period for starting a resumption task can be set in advance, that is, an interval time between each start of the task, for example, the interval time is one hour,
  • the first return file is a return file that is returned to the system by the payment channel (and then returned to the access party), and then the system summarizes the records in the received return file to the access party.
  • Step S200 Import the records in the first return file into the database, record the detailed status of each record in the first return file as "returned from the payment channel", and record the batch status as "to be returned to Access party ";
  • the detailed status of the record includes "not returned from the payment channel”, “returned from the payment channel”, “successful return to the access party”, “failed to return the access party”, and the database records A record of all transactions that occurred in the system,
  • the "batch status" of the record includes “successful return to the accessor", “to be returned to the accessor", and “successful return to the accessor” indicates that the batch to which the record belongs has been returned to the accessor.
  • Party uccessful pushing of the second disk response file corresponding to the batch
  • "to be returned to the access party” indicates that the batch to which the record belongs has not been completely returned to the access party;
  • the second disk file has a processing status, including "notified push file”, “push file to be notified”, and “failed to push file” indicate the push status of the second disk file corresponding to the batch, which will be performed later Elaborate.
  • Step S300 Query and extract from the database a batch with a status of "to be returned to the access party" and a detailed status of "returned from the payment channel” as the current return record, and generate a second return file And upload it to the first network storage;
  • Step S400 Record the file number of the second disc file, and modify the processing status of the second disc file to "Push file to be notified";
  • Step S500 Invoke the push file interface of the file transfer module to transfer the file number of the second disc file to the file transfer module;
  • Step S600 The file transfer module downloads the second disk file from the first network storage according to the received file number of the second disk file.
  • Step S700 Upload the downloaded second disk file to the second network storage, and obtain the upload status to complete the disk disk.
  • the second network storage is a network storage shared between the access party and the system
  • the method further includes:
  • Step S800 If the upload status is "successful", change the batch status of all records in the second disk return file to "successful return to the access party";
  • Step S900 If the upload status is "failed", the number of upload failures currently recorded is accumulated and recorded in the database;
  • Step S1000 If the number of failed uploads of one or some records of the second disk file exceeds a predetermined threshold, change the batch status of the corresponding records in the second disk file to "Failed to disk the access party" .
  • the background administrator of the system can view all the records of "Failure of returning to the access party" at any time for manual intervention (review).
  • the "invoke the push file interface of the file transfer module" in step S500 may be performed asynchronously, that is, in the asynchronous case, the system may call all the second disk files whose processing status is "push file to be notified".
  • File number of which there may be multiple second return files
  • the file transfer module may obtain multiple file numbers, download multiple second return files from the network storage, and upload multiple second return files to the access party After that, multiple upload statuses can be obtained, where each second disc file corresponds to one upload status;
  • step S100 can also be performed in an asynchronous manner.
  • the system can filter out the first disk file whose processing status is "obtaining a file to be notified.”
  • the transmission module obtains and downloads one or more first disk files from the first network storage.
  • step S1000 if the number of failed uploads of the second disc file does not exceed a predetermined threshold, the process returns to step S700 and the upload is performed again.
  • step S100 includes the following steps:
  • Step S101 Perform periodic polling on a payment channel to query a list of downloadable files
  • the downloadable file list records a file number of a file available for system download
  • Step S102 Filter out undownloaded files according to the list of downloadable files, and obtain a file number of the undownloaded files.
  • the downloadable file list includes all files that need to be returned to the disk and have been downloaded and files that need to be returned to the disk but are not downloaded. In this step, those files that need to be returned to the disk and have been downloaded need to be filtered out;
  • Step S103 Download the first disk file from the first network storage according to the file number, and import the records in the first disk file into the database.
  • the system when the system generates different second disk files in succession (according to the system call rules), it can contain completely different records, or it can contain some of the same records. Some of the same records mean that these records are in The previous batch has tried to return to the access party, but the return was not successful, and the number of return attempts of each record can be controlled by the number of return failures, which enables more flexible and efficient batch return. deal with.
  • FIG. 4 a running environment of a system in which an application is installed according to an embodiment of the present application is shown.
  • the system for installing an application program is installed and run in an electronic device.
  • the electronic device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a server.
  • the electronic device may include, but is not limited to, a memory, a processor, and a display.
  • FIG. 4 only shows the electronic device having the above components, but it should be understood that it is not required to implement all the illustrated components, and more or fewer components may be implemented instead.
  • the memory may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device.
  • the memory may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), and a Secure Digital , SD) card, Flash card, etc.
  • the memory may include both an internal storage unit and an external storage device of the electronic device.
  • the memory is used to store application software and various types of data installed on the electronic device, such as program code of the system in which the application program is installed.
  • the memory may also be used to temporarily store data that has been or will be output.
  • the processor may be a central processing unit (CPU), a microprocessor, or other data processing chip, and is configured to run program code or process data stored in the memory, for example, to execute the processor.
  • CPU central processing unit
  • microprocessor microprocessor
  • the processor may be a central processing unit (CPU), a microprocessor, or other data processing chip, and is configured to run program code or process data stored in the memory, for example, to execute the processor.
  • the display may be an LED display, a liquid crystal display, a touch-type liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like.
  • the display is used to display information processed in the electronic device and to display a visualized client interface, such as an application menu interface, an application icon interface, and the like.
  • the components of the electronic device communicate with each other through a system bus.
  • a computer-readable storage medium stores a program for executing the method, and when the program is executed by a processor, the program is executed. Steps of the method according to an embodiment of the application.

Abstract

The present application relates to a batch file partial return processing method and system. The method comprises the following steps: step 1, performing regular polling on a payment channel, and acquiring a first return file, wherein the first return file contains records needing to be returned to an access party; step 2, importing the records in the first return file into a database; step 3, extracting the records needing to be returned to the access party from the database, as current records, and gathering the current records to form a second return file; step 4, pushing the second return file to the access party and acquiring a pushing state; and step 5, updating states of the current records in the database according to the pushing state. The present application can ensure the smooth progress of a transaction, improve effective utilization of funds, and improve operating efficiency and the user experience.

Description

批量文件部分回盘处理方法和系统Processing method and system for batch file partial disc recall
本申请申明享有2018年5月30日递交的申请号为201810537969.0、名称为“批量文件部分回盘处理方法和系统”的中国专利申请的优先权,该中国专利申请的整体内容以参考的方式结合在本申请中。This application affirms the priority of a Chinese patent application filed on May 30, 2018 with an application number of 201810537969.0 and entitled "Method and System for Partial Review of Batch Documents". The entire content of the Chinese patent application is incorporated by reference. In this application.
技术领域Technical field
本申请涉及互联网服务技术领域,尤其涉及一种批量文件部分回盘处理方法和系统。The present application relates to the technical field of Internet services, and in particular, to a method and a system for processing a part of a batch of files.
背景技术Background technique
随着互联网领域的蓬勃发展,各类资金产品以及各类支付渠道日益增多,使得现今商品交易的流程设置已经逐渐跟不上资金产品以及支付渠道的快速发展。特别是当商城平台发起批量请求时,往往需要跟踪商户内资金的情况以及本次批量交易的资金流向、所涉及到的产品以及支付通道,以保证资金的有效利用。但是,由于整个交易流程较为复杂,一旦系统在初期配置上有所失误,运维人员后期往往很难发现问题。With the vigorous development of the Internet field, various types of capital products and various payment channels are increasing, making the current process setting of commodity transactions gradually unable to keep up with the rapid development of capital products and payment channels. Especially when the mall platform initiates a batch request, it is often necessary to track the situation of the funds in the merchant and the capital flow of the batch transaction, the products involved and the payment channel to ensure the effective use of funds. However, due to the complexity of the entire transaction process, once the system has made mistakes in the initial configuration, it is often difficult for operation and maintenance personnel to detect problems in the later stages.
在复杂的业务场景下,业务方运营人员需要跟进商户以便进行资金管理,由此保证业务批量顺序自动执行的成功率。各级人员关注商户资金、产品、通道的维度往往不一样。各级人员在查看资金分布、产品类别、通道归属等信息后,对入账资金手动分批放行。在以往的技术中,对于批量的文件处理,都是等待整个批量文件处理完成之后,才进行后续的处理工作,这样使得系统的效率很低。In complex business scenarios, business operators need to follow up with merchants for fund management, thereby guaranteeing a success rate of automatic batch execution of business orders. People at all levels pay attention to the dimensions of merchant funds, products and channels. After checking information on fund distribution, product categories, and channel ownership, personnel at all levels manually release the accounted funds in batches. In the prior art, for batch file processing, the entire batch file processing is waited before the subsequent processing is performed, which makes the system inefficient.
发明内容Summary of the Invention
考虑到现有技术中的上述情况,本申请提供了一种批量文件部分回盘处 理方法和执行所述方法的系统,所述方法在获取到接入方(接入方)的返回文件时候,不会等待整个批次全部处理完成才回盘,而是处理完成多少,就回盘给接入方多少,之后,接入方按照批次回盘文件,系统接收到文件进行解析,更新记录到待回盘状态,定时作业按照批次获取待回盘状态数据,生成文件,回盘给接入方;此外,对于没有回盘的记录,继续等待节接入方的回盘文件,如上所述相同处理。In view of the foregoing circumstances in the prior art, the present application provides a method for processing a batch of files in a batch and a system for performing the method. When the method obtains a return file from an access party (access party), It will not wait for the entire batch to be processed before returning it to the disk. Instead, it will return the disk to the accessor as much as it is processed. After that, the accessor will return the file according to the batch. The system receives the file for analysis and updates the record to In the state of waiting for return, the timed job obtains the data of waiting for return in batches according to the batch, generates a file, and returns it to the accessor. In addition, for the record without returning, it continues to wait for the returning document of the accessor, as described above. Same treatment.
根据本申请的实施例,提供了一种批量文件部分回盘处理方法,其中,由提供交易业务的接入方接入批量文件部分回盘处理系统,并由所述批量文件部分回盘处理系统处理所述接入方的业务请求,其中,所述批量文件部分回盘处理系统连接到网络存储器和数据库,所述接入方进行交易时使用支付通道,所述数据库中存储有与接入方的交易相关的记录,According to an embodiment of the present application, a method for processing a batch of documents in part is provided, in which an access party providing a transaction service accesses a system for processing the documents in part in a batch, and the system for processing the documents in part in a batch Processing the business request of the access party, wherein the batch file partial discarding processing system is connected to a network storage and a database, and the access party uses a payment channel when conducting a transaction, and the database stores the access party Transaction-related records,
其特征在于,所述方法包括由所述批量文件部分回盘处理系统进行的以下步骤:It is characterized in that the method includes the following steps performed by the batch file partial disc processing system:
步骤1、向所述支付通道进行定时轮询,获取第一回盘文件,第一回盘文件中包含与需要向接入方回盘的记录;Step 1. Perform periodic polling on the payment channel to obtain a first return file, and the first return file includes records related to the need to return to the access party;
步骤2、将第一回盘文件中的记录导入所述数据库;Step 2. Import the records in the first disk file into the database;
步骤3、从数据库中提取需要向接入方回盘的记录,作为当前记录,汇总为第二回盘文件;Step 3: Extract from the database the records that need to be returned to the access party as the current records and summarize them into a second return file;
步骤4、向接入方推送第二回盘文件,并获取推送状态;Step 4. Push the second disc file to the access party and obtain the push status.
步骤5、根据推送状态,更新所述当前记录在数据库中的状态。Step 5. Update the status of the current record in the database according to the push status.
根据本申请的实施例,提供了一种用于执行上述方法的批量文件部分回盘处理系统,其特征在于包括文件传送模块、回盘模块、以及异步处理模块,According to an embodiment of the present application, there is provided a batch file partial return processing system for performing the above method, which is characterized by including a file transfer module, a return module, and an asynchronous processing module.
所述文件传送模块用作网关,用于从第一网络存储器下载第一回盘文件、以及将第二回盘文件上传到第二网络存储器,The file transfer module is used as a gateway for downloading the first disk-backed file from the first network storage and uploading the second disk-backed file to the second network storage,
所述回盘模块用于向所述支付通道进行定时轮询,通过所述文件传送模块获取第一回盘文件,将第一回盘文件中的记录导入所述数据库,并生成第 二回盘文件;The check-back module is configured to perform periodic polling on the payment channel, obtain a first check-back file through the file transfer module, import records in the first check-back file into the database, and generate a second check-back file;
所述回盘模块还用于通过所述文件传送模块向接入方推送第二回盘文件,并获取推送状态,并根据推送状态,更新所述当前记录在数据库中的状态,The return module is further configured to push a second return file to the access party through the file transfer module, and obtain a push status, and update the status of the current record in the database according to the push status,
其中,所述异步处理模块用于响应于所述回盘模块的调用,对第一回盘文件的下载和/或第二回盘文件的上传进行异步处理。Wherein, the asynchronous processing module is configured to perform asynchronous processing on the download of the first disk-backed file and / or the upload of the second disk-backed file in response to the call of the disk-backup module.
根据本申请的实施例,还提供了一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有用于执行所述方法的程序,所述程序被处理器执行时,执行以下步骤的操作:According to an embodiment of the present application, a computer-readable storage medium is further provided, wherein the computer-readable storage medium stores a program for executing the method, and when the program is executed by a processor, the following steps are performed: Operation:
步骤1、向所述支付通道进行定时轮询,获取第一回盘文件,第一回盘文件中包含与需要向接入方回盘的记录;Step 1. Perform periodic polling on the payment channel to obtain a first return file, and the first return file includes records related to the need to return to the access party;
步骤2、将第一回盘文件中的记录导入所述数据库;Step 2. Import the records in the first disk file into the database;
步骤3、从数据库中提取需要向接入方回盘的记录,作为当前记录,汇总为第二回盘文件;Step 3: Extract from the database the records that need to be returned to the access party as the current records and summarize them into a second return file;
步骤4、向接入方推送第二回盘文件,并获取推送状态;Step 4. Push the second disc file to the access party and obtain the push status.
步骤5、根据推送状态,更新所述当前记录在数据库中的状态。Step 5. Update the status of the current record in the database according to the push status.
本申请的有益效果主要在于:能够方便区分资金回流的账户,使各个环节都可以控制,并保证交易的顺利进行,提高实时性,提升用户体验。对于运维来说,可以提早发现一些异常失败的交易,提高资金的有效利用率,提升运营体验和用户体验,对于运维来说更加高效、可维护性强。The beneficial effects of this application are mainly that it can easily distinguish the accounts of the return of funds, so that all links can be controlled, and the transaction can be carried out smoothly, real-time and user experience can be improved. For operation and maintenance, it is possible to detect some abnormally failed transactions early, improve the effective utilization of funds, improve the operation experience and user experience, and be more efficient and maintainable for operation and maintenance.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为根据本申请的实施例的一种批量文件部分回盘处理系统的逻辑架构示意图;FIG. 1 is a schematic diagram of a logical architecture of a batch file partial check-back processing system according to an embodiment of the present application; FIG.
图2为根据本申请的实施例的一种批量文件部分回盘处理方法的部分流程示意图;FIG. 2 is a partial flowchart of a method for processing a batch of files in a batch according to an embodiment of the present application; FIG.
图3为根据本申请的实施例的一种批量文件部分回盘处理方法的部分流程示意图;FIG. 3 is a partial flowchart of a method for processing a batch file in part according to an embodiment of the present application; FIG.
图4为根据本申请实施例的安装了应用程序的系统的运行环境的示意图。FIG. 4 is a schematic diagram of an operating environment of a system in which an application is installed according to an embodiment of the present application.
具体实施方式Detailed ways
下面,结合附图对技术方案的实施作进一步的详细描述。Hereinafter, the implementation of the technical solution will be described in further detail with reference to the accompanying drawings.
本领域的技术人员能够理解,尽管以下的说明涉及到有关本申请的实施例的很多技术细节,但这仅为用来说明本申请的原理的示例、而不意味着任何限制。本申请能够适用于不同于以下例举的技术细节之外的场合,只要它们不背离本申请的原理和精神即可。Those skilled in the art can understand that although the following description involves many technical details about the embodiments of the present application, this is only an example for explaining the principle of the present application, and does not imply any limitation. This application can be applied to situations other than the technical details exemplified below, as long as they do not depart from the principle and spirit of this application.
另外,为了避免使本说明书的描述限于冗繁,在本说明书中的描述中,可能对可在现有技术资料中获得的部分技术细节进行了省略、简化、变通等处理,这对于本领域的技术人员来说是可以理解的,并且这不会影响本说明书的公开充分性。In addition, in order to avoid restricting the description of this specification to tediousness, in the description of this specification, some technical details that can be obtained in the prior art materials may be omitted, simplified, and modified, which is a problem for the technology in this field. It is understandable to personnel, and this will not affect the sufficiency of disclosure of this specification.
下文中,将描述用于进行本申请的实施例。注意,将以下面的次序给出描述:1、发明构思的概要;2、一种批量文件部分回盘处理系统(图1);3、一种批量文件部分回盘处理方法(图2、3);6、根据本申请的实施例的安装了应用程序的系统、以及存储所述应用程序的计算机可读介质(图4)。Hereinafter, embodiments for carrying out the present application will be described. Note that the description will be given in the following order: 1. An outline of the inventive concept; 2. A batch file partial disk processing system (Figure 1); 3. A batch file partial disk processing method (Figures 2 and 3) ); 6. A system installed with an application program according to an embodiment of the present application, and a computer-readable medium storing the application program (FIG. 4).
1、发明构思的概要1. Summary of the inventive concept
本申请的构思主要在于,由于在审核批量业务请求时,需要保证商户内资金状况以及本次批量交易的资金流向,需要提高审核的准确性,在确保资金流转的有效性和安全性的同时,有利于并发业务的处理效率。由此,根据本申请的实施例,通过对异步处理的应用,通过设置并更新批次状态、明细状态等,筛选回盘文件,实时回盘给接入方,并跟踪回盘结果。即,通过设置批次表、明细表以及批次装填、明细状态等操作,定时进行回盘,筛选回 盘文件,以便达到实时处理回盘文件的目的。The idea of this application is mainly because when reviewing batch business requests, it is necessary to ensure the status of funds in the merchant and the flow of funds for this batch transaction, and the accuracy of the review needs to be improved. Conducive to the processing efficiency of concurrent business. Therefore, according to the embodiment of the present application, through the application of asynchronous processing, by setting and updating the batch status, detailed status, etc., the discarding files are screened, the discarding is performed in real time to the access party, and the discarding result is tracked. That is, by setting up a batch table, a detailed list, and batch loading, detailed status and other operations, the disks are periodically reviewed, and the returned files are filtered to achieve the purpose of processing the returned files in real time.
2、批量文件部分回盘处理系统2. Batch file partial disk processing system
图1为根据本申请的实施例的一种批量文件部分回盘处理系统的逻辑架构示意图。如图1所示,所述批量文件部分回盘处理系统主要包括文件传送模块、回盘模块以及异步处理模块。其中,接入方是指与系统进行交互并通过系统与用户进行交易(例如,金融交易)的主体,支付通道是指接入方通过系统进行交易所使用的支付通道,其一般为第三方支付通道,即,分别独立于系统和接入方。FIG. 1 is a schematic diagram of a logical architecture of a batch file partial check-back processing system according to an embodiment of the present application. As shown in FIG. 1, the batch file partial disk return processing system mainly includes a file transfer module, a disk return module, and an asynchronous processing module. Among them, the accessing party refers to the entity that interacts with the system and conducts transactions (for example, financial transactions) with the user through the system. The payment channel refers to the payment channel used by the accessing party to conduct transactions through the system, which is generally a third-party payment. Channels, that is, independent of the system and the access party.
需要说明的是,图1仅为批量文件部分回盘处理系统的一般性逻辑功能的示意图,其结合了实际业务流程而绘制,其中,各个模块的划分并不严格精确,这是因为所述系统及模块不意味着硬件实现,也可涉及软件层面的概念,各个模块之间存在交叉调用关系,严格意义上并非独立工作,实际上也难以将各个模块与业务流程中的各个步骤一一对应。因此,本领域的技术人员完全可以理解,图1仅用来帮助理解本申请的构思概要,而非用于限制本申请及其实施例的范围,本申请的实施例的具体技术方案以说明书的文字描述为准。It should be noted that FIG. 1 is only a schematic diagram of the general logical functions of a batch file partial disc processing system, which is drawn in combination with actual business processes. Among them, the division of each module is not strictly precise because this system And modules do not mean hardware implementation, but also involve software-level concepts. There is a cross-call relationship between modules. In the strict sense, they do not work independently. In fact, it is difficult to map each module to each step in the business process. Therefore, those skilled in the art can fully understand that FIG. 1 is only used to help understand the concept outline of the present application, and is not used to limit the scope of the present application and its embodiments. The specific technical solutions of the embodiments of the present application are described in the description. The text description shall prevail.
其中,所述文件传送模块用作网关,负责回盘文件的传送,包括从网络存储器中下载第一回盘文件、以及将第二回盘文件上传到网络存储器。The file transmission module is used as a gateway and is responsible for transmitting the disk-backed file, including downloading the first disk-backed file from the network storage, and uploading the second disk-backed file to the network storage.
所述回盘模块用于:定期启动批量文件处理部分回盘任务,向支付通道进行定时轮询,查询可下载文件列表(即,从支付通道接收可下载的回盘文件列表),在所述文件传送模块下载第一回盘文件之后,将第一回盘文件中的记录导入数据库中,其中,在所述数据库中记录有已回盘的全部记录,之后在数据库中将所述第一回盘文件中的每条记录的明细状态变更为“已从支付通道回盘”。The recall module is used to: periodically initiate a batch of document processing tasks for batch processing, periodically poll the payment channel, and query a list of downloadable files (that is, a list of downloadable recall files received from the payment channel). After the file transfer module downloads the first disk file, the records in the first disk file are imported into a database, where all the records that have been diskized are recorded in the database, and then the first disk file is imported in the database. The detailed status of each record in the inventory file is changed to "Returned from the payment channel".
所述回盘模块还用于:在数据库中扫描并提取所有批次状态为“待回盘 给接入方”且明细状态为“已从支付通道回盘”的记录,作为当前回盘记录,生成第二回盘文件。The recall module is further configured to scan and extract all records in the database with a batch status of "to be returned to the access party" and a detailed status of "returned from the payment channel" as the current return record. Generate a second disk file.
其中,所述数据库由系统管理,其中记录具有批次表,批次表中记录有多个批次,每个批次具有对应的批次状态,如“待回盘给接入方”、“回盘给接入方成功”,其表示属于一个批次的多个回盘记录的集体状态;数据库中还中记录具有明细表,明细表中记录有一个文件中的各个具体记录的回盘状态。The database is managed by the system, and the record has a batch table. The batch table records multiple batches, and each batch has a corresponding batch status, such as "to be returned to the access party", " "Successful return to the access party", which indicates the collective status of multiple return records belonging to a batch; the database also has a detailed record in the database, and the detailed record records the return status of each specific record in a file .
此外,数据库中还有记录所有状态值的状态表(ext表),其中例如记录有每个回盘记录的处理状态、系统向网络存储器推送文件的次数,等等。In addition, the database also has a status table (ext table) that records all status values, such as the processing status of each disc record, the number of times the system pushes files to network storage, and so on.
所述回盘模块还用于:记录所述第二回盘文件的文件号,并将所述当前回盘记录的明细状态修改为“回盘给接入方成功”,异步调用所述文件传送模块的推送文件接口,并从所述文件传送模块接收推送文件受理信息,之后,根据所述第二回盘文件的文件号,通过所述文件传送模块从网络存储器上下载所述第二回盘文件,并对所述第二回盘文件进行加密、签名、压缩等操作,生成加密回盘文件,将所述加密回盘文件上传给网络存储器,并将上传结果推送至异步队列,由异步队列进行结果判断。其中,所述异步队列是指进行异步执行的消费者消息队列(MQ)。The return module is further configured to record the file number of the second return file, modify the detailed status of the current return record to "successful return to the access party", and asynchronously call the file transmission A push file interface of the module, and receive push file acceptance information from the file transfer module, and then, according to the file number of the second return file, download the second return disk from the network storage through the file transfer module File, and encrypt, sign, and compress the second disk file, generate an encrypted disk file, upload the encrypted disk file to the network storage, and push the upload result to the asynchronous queue. Result judgment. The asynchronous queue refers to a consumer message queue (MQ) for asynchronous execution.
其中,所述异步处理模块用于对需要异步执行的任务(例如,文件下载、文件推送)进行异步处理。The asynchronous processing module is configured to perform asynchronous processing on tasks that need to be performed asynchronously (for example, file download, file push).
此外,本申请的不同实施例也可以通过软件模块或存储在一个或多个计算机可读介质上的计算机可读指令的方式实现,其中,所述计算机可读指令是当被处理器或设备组件执行时,执行本申请所述的不同的实施例。类似地,软件模块、计算机可读介质和硬件部件的任意组合都是本申请预期的。所述软件模块可以被存储在任意类型的计算机可读存储介质上,例如RAM、EPROM、EEPROM、闪存、寄存器、硬盘、CD-ROM、DVD等等。In addition, different embodiments of the present application may also be implemented by means of software modules or computer-readable instructions stored on one or more computer-readable media, where the computer-readable instructions are used as processors or device components. When executed, the different embodiments described in this application are executed. Similarly, any combination of software modules, computer-readable media, and hardware components is contemplated by this application. The software module may be stored on any type of computer-readable storage medium, such as RAM, EPROM, EEPROM, flash memory, registers, hard disk, CD-ROM, DVD, and so on.
3、批量文件部分回盘处理方法3. Partial review of batch files
根据本申请的实施例,如图2所示,提供了一种批量文件部分回盘处理方法,其中,上述系统是执行所述方法的主体,其中,接入方指的是与系统相对接的接收系统发送的回盘文件的主体,所述方法包括如下步骤:According to an embodiment of the present application, as shown in FIG. 2, a method for processing a batch of files in part is provided. The above system is the main body that executes the method, and the accessing party refers to the system that is connected to the system. Receiving the body of the return file sent by the system, the method includes the following steps:
步骤S100、向支付通道进行定时轮询,获取第一回盘文件;Step S100: Perform periodic polling on the payment channel to obtain a first return file;
其中,可预先设置开始回盘任务的周期,即,每次启动任务之间的间隔时间,例如,间隔时间为一个小时,Wherein, a period for starting a resumption task can be set in advance, that is, an interval time between each start of the task, for example, the interval time is one hour,
其中,所述第一回盘文件是支付通道回盘给系统(再回盘给接入方)的回盘文件,接下来系统将接收到的回盘文件中的记录汇总回盘给接入方,The first return file is a return file that is returned to the system by the payment channel (and then returned to the access party), and then the system summarizes the records in the received return file to the access party. ,
步骤S200、将第一回盘文件中的记录导入数据库,将第一回盘文件中的每条记录的明细状态记录为“已从支付通道回盘”,批次状态记录为“待回盘给接入方”;Step S200: Import the records in the first return file into the database, record the detailed status of each record in the first return file as "returned from the payment channel", and record the batch status as "to be returned to Access party ";
其中,记录的明细状态包括“未从支付通道回盘”、“已从支付通道回盘”、“回盘给接入方成功”、“回盘给接入方失败”,数据库中记录有经由系统发生的所有交易的记录,Among them, the detailed status of the record includes "not returned from the payment channel", "returned from the payment channel", "successful return to the access party", "failed to return the access party", and the database records A record of all transactions that occurred in the system,
记录的“批次状态”包括“回盘给接入方成功”、“待回盘给接入方”,“回盘给接入方成功”表示记录所属的批次已全部回盘给接入方(批次对应的第二回盘文件推送成功),“待回盘给接入方”表示记录所属的批次尚未全部回盘给接入方;The "batch status" of the record includes "successful return to the accessor", "to be returned to the accessor", and "successful return to the accessor" indicates that the batch to which the record belongs has been returned to the accessor. Party (successful pushing of the second disk response file corresponding to the batch), "to be returned to the access party" indicates that the batch to which the record belongs has not been completely returned to the access party;
此外,第二回盘文件具有处理状态,包括“已通知推送文件”、“待通知推送文件”、“推送文件失败”表示批次对应的第二回盘文件的推送状态,这些将在后面进行详述。In addition, the second disk file has a processing status, including "notified push file", "push file to be notified", and "failed to push file" indicate the push status of the second disk file corresponding to the batch, which will be performed later Elaborate.
步骤S300、从数据库中查询并提取批次状态为“待回盘给接入方”、且明细状态为“已从支付通道回盘”的记录,作为当前回盘记录,生成第二回盘文件,并上传至第一网络存储器;Step S300: Query and extract from the database a batch with a status of "to be returned to the access party" and a detailed status of "returned from the payment channel" as the current return record, and generate a second return file And upload it to the first network storage;
步骤S400、记录第二回盘文件的文件号,并将第二回盘文件的处理状态 修改为“待通知推送文件”;Step S400: Record the file number of the second disc file, and modify the processing status of the second disc file to "Push file to be notified";
步骤S500、调用文件传送模块的推送文件接口,向文件传送模块传送第二回盘文件的文件号;Step S500: Invoke the push file interface of the file transfer module to transfer the file number of the second disc file to the file transfer module;
步骤S600、文件传送模块根据接收到的第二回盘文件的文件号,从第一网络存储器下载第二回盘文件,Step S600: The file transfer module downloads the second disk file from the first network storage according to the received file number of the second disk file.
步骤S700、将下载的第二回盘文件上传至第二网络存储器,并获取上传状态,完成本次回盘;Step S700: Upload the downloaded second disk file to the second network storage, and obtain the upload status to complete the disk disk.
其中,第二网络存储器为在接入方和系统之间共享的网络存储器;The second network storage is a network storage shared between the access party and the system;
可选地,如图3所示,步骤S700之后还包括:Optionally, as shown in FIG. 3, after step S700, the method further includes:
步骤S800、如果上传状态为“成功”,则将第二回盘文件中的所有记录的批次状态改为“回盘给接入方成功”;Step S800: If the upload status is "successful", change the batch status of all records in the second disk return file to "successful return to the access party";
步骤S900、如果上传状态为“失败”,则累计当前记录的上传失败次数,并记录到数据库中;Step S900: If the upload status is "failed", the number of upload failures currently recorded is accumulated and recorded in the database;
步骤S1000、如果第二回盘文件的某个或某些记录的上传失败次数超过预定阈值,则将第二回盘文件中的相应记录的批次状态改为“回盘给接入方失败”。Step S1000: If the number of failed uploads of one or some records of the second disk file exceeds a predetermined threshold, change the batch status of the corresponding records in the second disk file to "Failed to disk the access party" .
在此情况下,系统的后台管理员可随时查看“回盘给接入方失败”的全部记录,以便进行人工干预(审核)。In this case, the background administrator of the system can view all the records of "Failure of returning to the access party" at any time for manual intervention (review).
可选地,步骤S500中的“调用文件传送模块的推送文件接口”可以异步进行,即,在异步情况下,系统可以调取处理状态为“待通知推送文件”的全部第二回盘文件的文件号;其中,第二回盘文件可以有多个,文件传送模块可以获取多个文件号,并从网络存储器下载多个第二回盘文件,向接入方上传多个第二回盘文件之后,可获得多个上传状态,其中,每个第二回盘文件对应于一个上传状态;Optionally, the "invoke the push file interface of the file transfer module" in step S500 may be performed asynchronously, that is, in the asynchronous case, the system may call all the second disk files whose processing status is "push file to be notified". File number; of which there may be multiple second return files, the file transfer module may obtain multiple file numbers, download multiple second return files from the network storage, and upload multiple second return files to the access party After that, multiple upload statuses can be obtained, where each second disc file corresponds to one upload status;
类似地,步骤S100中的“获取第一回盘文件”也可以以异步方式进行,在此情况下,系统可筛选出处理状态为“待通知获取文件”的第一回盘文件, 然后通过文件传送模块从第一网络存储器获下载一个或多个第一回盘文件。Similarly, the "getting the first disk file" in step S100 can also be performed in an asynchronous manner. In this case, the system can filter out the first disk file whose processing status is "obtaining a file to be notified." The transmission module obtains and downloads one or more first disk files from the first network storage.
可选地,在步骤S1000中,如果第二回盘文件的上传失败次数未超过预定阈值,则返回到步骤S700,重新进行上传。Optionally, in step S1000, if the number of failed uploads of the second disc file does not exceed a predetermined threshold, the process returns to step S700 and the upload is performed again.
可选地,所述步骤S100包括如下步骤:Optionally, the step S100 includes the following steps:
步骤S101、向支付通道进行定时轮询,查询可下载文件列表,Step S101: Perform periodic polling on a payment channel to query a list of downloadable files,
其中,所述可下载文件列表中记录了可供系统下载的文件的文件号;The downloadable file list records a file number of a file available for system download;
步骤S102、根据所述可下载文件列表,筛选出未下载的文件,并获取所述未下载文件的文件号,Step S102: Filter out undownloaded files according to the list of downloadable files, and obtain a file number of the undownloaded files.
其中,所述可下载文件列表中包含有所有需要回盘并已下载以及需要回盘但未下载的文件,在本步骤中,需要过滤掉那些需要回盘并已经下载的文件;The downloadable file list includes all files that need to be returned to the disk and have been downloaded and files that need to be returned to the disk but are not downloaded. In this step, those files that need to be returned to the disk and have been downloaded need to be filtered out;
步骤S103、根据所述文件号,从第一网络存储器下载第一回盘文件,并将第一回盘文件中的记录导入数据库中。Step S103: Download the first disk file from the first network storage according to the file number, and import the records in the first disk file into the database.
通过上述配置,系统在先后生成不同的第二回盘文件时(根据系统调用规则),其中可包含完全不同的记录记录,也可包含部分相同的记录,部分相同的记录意味着:这些记录在之前的批次已经尝试过向接入方回盘、但并未回盘成功,并可通过回盘失败次数控制各个记录的回盘尝试次数,达到这样能够更加灵活、高效地进行分批回盘处理。With the above configuration, when the system generates different second disk files in succession (according to the system call rules), it can contain completely different records, or it can contain some of the same records. Some of the same records mean that these records are in The previous batch has tried to return to the access party, but the return was not successful, and the number of return attempts of each record can be controlled by the number of return failures, which enables more flexible and efficient batch return. deal with.
4、根据本申请的实施例的安装了应用程序的系统4. Application-installed system according to an embodiment of the present application
参照图4,其示出了根据本申请实施例的安装了应用程序的系统的运行环境。Referring to FIG. 4, a running environment of a system in which an application is installed according to an embodiment of the present application is shown.
在本实施例中,所述的安装应用程序的系统安装并运行于电子装置中。所述电子装置可以是桌上型计算机、笔记本、掌上电脑及服务器等计算设备。该电子装置可包括但不限于存储器、处理器及显示器。图4仅示出了具有上述组件的电子装置,但是应理解的是,并不要求实施所有示出的组件,可以 替代的实施更多或者更少的组件。In this embodiment, the system for installing an application program is installed and run in an electronic device. The electronic device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a server. The electronic device may include, but is not limited to, a memory, a processor, and a display. FIG. 4 only shows the electronic device having the above components, but it should be understood that it is not required to implement all the illustrated components, and more or fewer components may be implemented instead.
所述存储器在一些实施例中可以是所述电子装置的内部存储单元,例如该电子装置的硬盘或内存。所述存储器在另一些实施例中也可以是所述电子装置的外部存储设备,例如所述电子装置上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器还可以既包括所述电子装置的内部存储单元也包括外部存储设备。所述存储器用于存储安装于所述电子装置的应用软件及各类数据,例如所述安装应用程序的系统的程序代码等。所述存储器还可以用于暂时地存储已经输出或者将要输出的数据。In some embodiments, the memory may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. In other embodiments, the memory may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), and a Secure Digital , SD) card, Flash card, etc. Further, the memory may include both an internal storage unit and an external storage device of the electronic device. The memory is used to store application software and various types of data installed on the electronic device, such as program code of the system in which the application program is installed. The memory may also be used to temporarily store data that has been or will be output.
所述处理器在一些实施例中可以是中央处理单元(Central Processing Unit,CPU)、微处理器或其他数据处理芯片,用于运行所述存储器中存储的程序代码或处理数据,例如执行所述安装应用程序的系统等。In some embodiments, the processor may be a central processing unit (CPU), a microprocessor, or other data processing chip, and is configured to run program code or process data stored in the memory, for example, to execute the processor. The system on which the application is installed, etc.
所述显示器在一些实施例中可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。所述显示器用于显示在所述电子装置中处理的信息以及用于显示可视化的客户界面,例如应用菜单界面、应用图标界面等。所述电子装置的部件通过系统总线相互通信。In some embodiments, the display may be an LED display, a liquid crystal display, a touch-type liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display is used to display information processed in the electronic device and to display a visualized client interface, such as an application menu interface, an application icon interface, and the like. The components of the electronic device communicate with each other through a system bus.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解,上述实施方式中的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, can also be implemented by hardware, but in many cases The former is a better implementation. Based on such an understanding, the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product that is stored in a storage medium (such as ROM / RAM, magnetic disk, The optical disc) includes several 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 execute the methods described in the embodiments of the present application.
也就是说,根据本申请的实施例,还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有用于执行所述方法的程序,所述程序被处 理器执行时,执行根据本申请的实施例的所述方法的步骤。That is, according to an embodiment of the present application, a computer-readable storage medium is also provided, and the computer-readable storage medium stores a program for executing the method, and when the program is executed by a processor, the program is executed. Steps of the method according to an embodiment of the application.
由上,将理解,为了说明的目的,这里已描述了本申请的具体实施例,但是,可作出各个修改,而不会背离本申请的范围。本领域的技术人员将理解,流程图步骤中所绘出或这里描述的操作和例程可以多种方式变化。更具体地,可重新安排步骤的次序,可并行执行步骤,可省略步骤,可包括其它步骤,可作出例程的各种组合或省略。因而,本申请仅由所附权利要求限制。From the above, it will be understood that, for the purpose of illustration, specific embodiments of the present application have been described herein, but various modifications can be made without departing from the scope of the present application. Those skilled in the art will understand that the operations and routines depicted in the flowchart steps or described herein may be varied in various ways. More specifically, the order of the steps may be rearranged, the steps may be executed in parallel, the steps may be omitted, other steps may be included, and various combinations of routines may be made or omitted. Accordingly, this application is limited only by the following claims.

Claims (20)

  1. 一种批量文件部分回盘处理方法,其中,由提供交易业务的接入方接入批量文件部分回盘处理系统,并由所述批量文件部分回盘处理系统处理所述接入方的业务请求,其中,所述批量文件部分回盘处理系统连接到数据库,所述接入方进行交易时使用支付通道,所述数据库中存储有与接入方的交易相关的记录,A batch file partial return processing method, wherein an access party providing a transaction service accesses a batch file partial return processing system, and the batch file partial return processing system processes a service request of the access party Wherein, the batch file partial processing system is connected to a database, and the accessing party uses a payment channel when performing a transaction, and the database stores records related to the transaction of the accessing party,
    其特征在于,所述方法包括由所述批量文件部分回盘处理系统进行的以下步骤:It is characterized in that the method includes the following steps performed by the batch file partial disc processing system:
    步骤1、向所述支付通道进行定时轮询,获取第一回盘文件,第一回盘文件中包含与需要向接入方回盘的记录;Step 1. Perform periodic polling on the payment channel to obtain a first return file, and the first return file includes records related to the need to return to the access party;
    步骤2、将第一回盘文件中的记录导入所述数据库;Step 2. Import the records in the first disk file into the database;
    步骤3、从数据库中提取需要向接入方回盘的记录,作为当前记录,汇总为第二回盘文件;Step 3: Extract from the database the records that need to be returned to the access party as the current records and summarize them into a second return file;
    步骤4、向所述接入方推送第二回盘文件,并获取推送状态;Step 4. Push the second disc file to the access party and obtain the push status.
    步骤5、根据推送状态,更新所述当前记录在所述数据库中的状态。Step 5. Update the status of the current record in the database according to the push status.
  2. 根据权利要求1所述的批量文件部分回盘处理方法,其特征在于,所述批量文件部分回盘处理系统还连接到网络存储器,The method according to claim 1, wherein the system for processing a batch of files in a batch is further connected to a network storage,
    其中,所述步骤1包括:The step 1 includes:
    步骤1-1、向支付通道进行定时轮询,查询可下载文件列表,其中,所述可下载文件列表中记录了可供下载的回盘文件的文件号;Step 1-1: Perform periodic polling to the payment channel to query the list of downloadable files, where the downloadable file list records the file number of the resumable file that can be downloaded;
    步骤1-2、根据所述可下载文件列表,筛选出未下载的第一回盘文件,并获取其文件号,Steps 1-2: According to the list of downloadable files, filter out the first downloaded disc file that has not been downloaded, and obtain its file number,
    其中,所述可下载文件列表中包含有所有需要回盘且已下载的文件、以及需要回盘但未下载的文件;The downloadable file list includes all files that need to be recalled and downloaded, and files that need to be recalled but not downloaded;
    步骤1-3、根据所述文件号,从第一网络存储器下载第一回盘文件。Steps 1-3: Download the first disk-backed file from the first network storage according to the file number.
  3. 根据权利要求2所述的批量文件部分回盘处理方法,其特征在于,所述步骤2包括:The method according to claim 2, wherein the step 2 comprises:
    步骤2-1、将第一回盘文件中的记录导入数据库之后,将第一回盘文件中的每条记录的明细状态记录为“已从支付通道回盘”,批次状态记录为“待回盘给接入方”;Step 2-1: After importing the records in the first disk file into the database, record the detailed status of each record in the first disk file as "Returned from the payment channel" and record the batch status as "Pending Give back to the access party ";
    其中,记录的明细状态包括“未从支付通道回盘”、“已从支付通道回盘”,Among them, the detailed status of the record includes "not returned from the payment channel", "returned from the payment channel",
    其中,记录的批次状态包括“回盘给接入方成功”、“待回盘给接入方”、“回盘给接入方失败”。Among them, the recorded batch status includes "successful return to the accessor", "waiting to return to the accessor", and "failure to return to the accessor".
  4. 根据权利要求3所述的批量文件部分回盘处理方法,其特征在于,所述步骤3包括:The method according to claim 3, wherein the step 3 comprises:
    步骤3-1、从数据库中提取批次状态为“待回盘给接入方”、且明细状态为“已从支付通道回盘”的记录,作为当前回盘记录,汇总成第二回盘文件,并上传至第一网络存储器。Step 3-1: Extract from the database a batch with a status of "to be returned to the accessor" and a detailed status of "returned from the payment channel", as the current return record, summarized into the second return File and upload it to the first network storage.
  5. 根据权利要求4所述的批量文件部分回盘处理方法,其特征在于,所述步骤4包括:The method according to claim 4, wherein the step 4 comprises:
    步骤4-1、记录第二回盘文件在第一网络存储器上的文件号,并将第二回盘文件的处理状态设置为“待通知推送文件”;Step 4-1: Record the file number of the second disk file on the first network storage, and set the processing status of the second disk file to “Push file to be notified”;
    步骤4-2、调用所述批量文件部分回盘处理系统的文件传送模块的推送文件接口,向文件传送模块传送第二回盘文件的文件号;Step 4-2: Invoke the push file interface of the file transfer module of the batch file partial disc processing system to transfer the file number of the second disc file to the file transfer module;
    步骤4-3、所述文件传送模块根据接收到的第二回盘文件的文件号,从第一网络存储器下载第二回盘文件,Step 4-3. The file transfer module downloads the second disk file from the first network storage according to the received file number of the second disk file.
    步骤4-4、所述文件传送模块将下载的第二回盘文件推送至第二网络存储器,并获取推送状态。Step 4-4. The file transfer module pushes the downloaded second disk file to the second network storage, and obtains the push status.
  6. 根据权利要求5所述的批量文件部分回盘处理方法,其特征在于,步骤5包括:The method according to claim 5, wherein step 5 includes:
    步骤5-1、如果在步骤4-4中获取的推送状态为“成功”,则将第二回盘文件中的所有记录的批次状态改为“回盘给接入方成功”;Step 5-1. If the push status obtained in step 4-4 is "successful", change the batch status of all records in the second disk file to "successful for disk return to the access party";
    步骤5-2、如果在步骤4-4中获取的推送状态为“失败”,则累计当前记录的推送失败次数,并记录到数据库中;Step 5-2, if the push status obtained in step 4-4 is "failed", the number of currently recorded push failures is accumulated and recorded in the database;
    步骤5-3、将推送失败次数超过预定阈值的当前记录的批次状态更新为“回盘给接入方失败”。Step 5-3. Update the batch status of the current record whose push failure times exceed a predetermined threshold to "Failure of returning to the access party".
  7. 根据权利要求5所述的批量文件部分回盘处理方法,其特征在于,以异步方式执行所述步骤4-2至4-4,The method according to claim 5, wherein the steps 4-2 to 4-4 are performed asynchronously,
    其中,定时或以触发方式获取处理状态为“待通知推送文件”的第二回盘文件,之后,执行所述步骤4-2至4-4。Wherein, the second disk file whose processing status is “Push file to be notified” is acquired periodically or in a triggered manner, and then steps 4-2 to 4-4 are performed.
  8. 根据权利要求2所述的批量文件部分回盘处理方法,其特征在于,所述步骤1-2包括:将筛选出的未下载的第一回盘文件的处理状态设置为“待通知获取文件”,之后,以异步方式执行所述步骤1-3,The method according to claim 2, wherein the steps 1-2 comprise: setting the processing status of the filtered undownloaded first disk file to "obtaining files to be notified" After that, the steps 1-3 are performed asynchronously,
    其中,定时或以触发方式获取处理状态为“待通知获取文件”的第一回盘文件,之后,执行所述步骤1-3。Wherein, the first disk file whose processing status is “acquiring a file to be notified” is acquired regularly or in a triggered manner, and then steps 1-3 are performed.
  9. 一种用于执行批量文件部分回盘处理方法的批量文件部分回盘处理系统,其特征在于包括文件传送模块、回盘模块、以及异步处理模块,A batch file partial return processing system for performing a batch file partial return processing method, which is characterized by including a file transfer module, a return module, and an asynchronous processing module.
    所述文件传送模块用作网关,用于从第一网络存储器下载第一回盘文件、以及将第二回盘文件上传到第二网络存储器,The file transfer module is used as a gateway for downloading the first disk-backed file from the first network storage and uploading the second disk-backed file to the second network storage,
    所述回盘模块用于向所述支付通道进行定时轮询,通过所述文件传送模块获取第一回盘文件,将第一回盘文件中的记录导入所述数据库,并生成第二回盘文件;The check-back module is configured to perform periodic polling on the payment channel, obtain a first check-back file through the file transfer module, import records in the first check-back file into the database, and generate a second check-back file;
    所述回盘模块还用于通过所述文件传送模块向接入方推送第二回盘文件,并获取推送状态,并根据推送状态,更新所述当前记录在数据库中的状态,The return module is further configured to push a second return file to the access party through the file transfer module, and obtain a push status, and update the status of the current record in the database according to the push status,
    其中,所述异步处理模块用于响应于所述回盘模块的调用,对第一回盘 文件的下载和/或第二回盘文件的上传进行异步处理。Wherein, the asynchronous processing module is configured to perform asynchronous processing on the download of the first disk-backed file and / or the upload of the second disk-backed file in response to the call of the disk-backup module.
  10. 根据权利要求9所述的批量文件部分回盘处理系统,其特征在于,所述轮询用于查询可下载文件列表。The batch file partial disc processing system according to claim 9, wherein the polling is used to query a list of downloadable files.
  11. 根据权利要求9所述的批量文件部分回盘处理系统,其特征在于,所述将第一回盘文件中的记录导入所述数据库是指,在数据库中将所述第一回盘文件中的每条记录的明细状态变更为“已从支付通道回盘”。The batch file partial rewinding processing system according to claim 9, wherein the importing records in the first rewinding file into the database refers to importing the records in the first rewinding file in the database The detailed status of each record is changed to "Returned from the payment channel".
  12. 根据权利要求9所述的批量文件部分回盘处理系统,其特征在于,所述生成第二回盘文件具体包括:在数据库中扫描并提取所有批次状态为“待回盘给接入方”且明细状态为“已从支付通道回盘”的记录,作为当前回盘记录,生成第二回盘文件。The batch file partial return processing system according to claim 9, wherein the generating the second return file specifically comprises: scanning and extracting all batch statuses in the database as "to be returned to the access party" And the record whose detail status is "Returned from the payment channel" is used as the current return record to generate the second return file.
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有用于执行批量文件部分回盘处理方法的程序,所述程序被处理器执行时,执行以下步骤的操作:A computer-readable storage medium, characterized in that the computer-readable storage medium stores a program for executing a batch file partial disc processing method, and when the program is executed by a processor, performs the following steps:
    步骤1、向所述支付通道进行定时轮询,获取第一回盘文件,第一回盘文件中包含与需要向接入方回盘的记录;Step 1. Perform periodic polling on the payment channel to obtain a first return file, and the first return file includes records related to the need to return to the access party;
    步骤2、将第一回盘文件中的记录导入所述数据库;Step 2. Import the records in the first disk file into the database;
    步骤3、从数据库中提取需要向接入方回盘的记录,作为当前记录,汇总为第二回盘文件;Step 3: Extract from the database the records that need to be returned to the access party as the current records and summarize them into a second return file;
    步骤4、向所述接入方推送第二回盘文件,并获取推送状态;Step 4. Push the second disc file to the access party and obtain the push status.
    步骤5、根据推送状态,更新所述当前记录在所述数据库中的状态。Step 5. Update the status of the current record in the database according to the push status.
  14. 根据权利要求13所述的计算机可读存储介质,其特征在于,所述批量文件部分回盘处理系统还连接到网络存储器,The computer-readable storage medium according to claim 13, wherein the batch file partial disc processing system is further connected to a network storage,
    其中,所述步骤1包括:The step 1 includes:
    步骤1-1、向支付通道进行定时轮询,查询可下载文件列表,其中,所述可下载文件列表中记录了可供下载的回盘文件的文件号;Step 1-1: Perform periodic polling to the payment channel to query the list of downloadable files, where the downloadable file list records the file number of the resumable file that can be downloaded;
    步骤1-2、根据所述可下载文件列表,筛选出未下载的第一回盘文件, 并获取其文件号,Step 1-2: According to the downloadable file list, filter out the first downloaded disc file that has not been downloaded, and obtain its file number,
    其中,所述可下载文件列表中包含有所有需要回盘且已下载的文件、以及需要回盘但未下载的文件;The downloadable file list includes all files that need to be recalled and downloaded, and files that need to be recalled but not downloaded;
    步骤1-3、根据所述文件号,从第一网络存储器下载第一回盘文件。Steps 1-3: Download the first disk-backed file from the first network storage according to the file number.
  15. 根据权利要求14所述的计算机可读存储介质,其特征在于,所述步骤2包括:The computer-readable storage medium according to claim 14, wherein the step 2 comprises:
    步骤2-1、将第一回盘文件中的记录导入数据库之后,将第一回盘文件中的每条记录的明细状态记录为“已从支付通道回盘”,批次状态记录为“待回盘给接入方”;Step 2-1: After importing the records in the first disk file into the database, record the detailed status of each record in the first disk file as "Returned from the payment channel" and record the batch status as "Pending Give back to the access party ";
    其中,记录的明细状态包括“未从支付通道回盘”、“已从支付通道回盘”,Among them, the detailed status of the record includes "not returned from the payment channel", "returned from the payment channel",
    其中,记录的批次状态包括“回盘给接入方成功”、“待回盘给接入方”、“回盘给接入方失败”。Among them, the recorded batch status includes "successful return to the accessor", "waiting to return to the accessor", and "failure to return to the accessor".
  16. 根据权利要求15所述的计算机可读存储介质,其特征在于,所述步骤3包括:The computer-readable storage medium of claim 15, wherein step 3 comprises:
    步骤3-1、从数据库中提取批次状态为“待回盘给接入方”、且明细状态为“已从支付通道回盘”的记录,作为当前回盘记录,汇总成第二回盘文件,并上传至第一网络存储器。Step 3-1: Extract from the database a batch with a status of "to be returned to the accessor" and a detailed status of "returned from the payment channel", as the current return record, summarized into the second return File and upload it to the first network storage.
  17. 根据权利要求16所述的计算机可读存储介质,其特征在于,所述步骤4包括:The computer-readable storage medium of claim 16, wherein step 4 comprises:
    步骤4-1、记录第二回盘文件在第一网络存储器上的文件号,并将第二回盘文件的处理状态设置为“待通知推送文件”;Step 4-1: Record the file number of the second disk file on the first network storage, and set the processing status of the second disk file to “Push file to be notified”;
    步骤4-2、调用所述批量文件部分回盘处理系统的文件传送模块的推送文件接口,向文件传送模块传送第二回盘文件的文件号;Step 4-2: Invoke the push file interface of the file transfer module of the batch file partial disc processing system to transfer the file number of the second disc file to the file transfer module;
    步骤4-3、所述文件传送模块根据接收到的第二回盘文件的文件号,从第一网络存储器下载第二回盘文件,Step 4-3. The file transfer module downloads the second disk file from the first network storage according to the received file number of the second disk file.
    步骤4-4、所述文件传送模块将下载的第二回盘文件推送至第二网络存储器,并获取推送状态。Step 4-4. The file transfer module pushes the downloaded second disk file to the second network storage, and obtains the push status.
  18. 根据权利要求17所述的计算机可读存储介质,其特征在于,步骤5包括:The computer-readable storage medium of claim 17, wherein step 5 includes:
    步骤5-1、如果在步骤4-4中获取的推送状态为“成功”,则将第二回盘文件中的所有记录的批次状态改为“回盘给接入方成功”;Step 5-1. If the push status obtained in step 4-4 is "successful", change the batch status of all records in the second disk file to "successful for disk return to the access party";
    步骤5-2、如果在步骤4-4中获取的推送状态为“失败”,则累计当前记录的推送失败次数,并记录到数据库中;Step 5-2, if the push status obtained in step 4-4 is "failed", the number of currently recorded push failures is accumulated and recorded in the database;
    步骤5-3、将推送失败次数超过预定阈值的当前记录的批次状态更新为“回盘给接入方失败”。Step 5-3. Update the batch status of the current record whose push failure times exceed a predetermined threshold to "Failure of returning to the access party".
  19. 根据权利要求17所述的计算机可读存储介质,其特征在于,以异步方式执行所述步骤4-2至4-4,The computer-readable storage medium according to claim 17, wherein the steps 4-2 to 4-4 are performed in an asynchronous manner,
    其中,定时或以触发方式获取处理状态为“待通知推送文件”的第二回盘文件,之后,执行所述步骤4-2至4-4。Wherein, the second disk file whose processing status is “Push file to be notified” is acquired periodically or in a triggered manner, and then steps 4-2 to 4-4 are performed.
  20. 根据权利要求14所述的计算机可读存储介质,其特征在于,所述步骤1-2包括:将筛选出的未下载的第一回盘文件的处理状态设置为“待通知获取文件”,之后,以异步方式执行所述步骤1-3,The computer-readable storage medium according to claim 14, wherein the steps 1-2 comprise: setting a processing state of the filtered undownloaded first disc file to "acquire a file to be notified", and thereafter , Performing said steps 1-3 asynchronously,
    其中,定时或以触发方式获取处理状态为“待通知获取文件”的第一回盘文件,之后,执行所述步骤1-3。Wherein, the first disk file whose processing status is “acquiring a file to be notified” is acquired regularly or in a triggered manner, and then steps 1-3 are performed.
PCT/CN2018/096478 2018-05-30 2018-07-20 Batch file partial return processing method and system WO2019227634A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810537969.0A CN108830715B (en) 2018-05-30 2018-05-30 Batch file part disc returning processing method and system
CN201810537969.0 2018-05-30

Publications (1)

Publication Number Publication Date
WO2019227634A1 true WO2019227634A1 (en) 2019-12-05

Family

ID=64146366

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/096478 WO2019227634A1 (en) 2018-05-30 2018-07-20 Batch file partial return processing method and system

Country Status (2)

Country Link
CN (1) CN108830715B (en)
WO (1) WO2019227634A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115904264A (en) * 2023-03-13 2023-04-04 浪潮电子信息产业股份有限公司 Method, device and medium for recovering garbage data of blocks in storage system

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110191182B (en) * 2019-05-30 2023-04-21 深圳前海微众银行股份有限公司 Distributed file batch processing method, device, equipment and readable storage medium
CN111741080B (en) * 2020-06-02 2023-09-29 拉卡拉支付股份有限公司 Network file distribution method and device
CN113722226B (en) * 2021-08-31 2024-04-05 康键信息技术(深圳)有限公司 Bank presenting and disc returning testing method and device, computer equipment and storage medium
CN115208874B (en) * 2022-07-15 2024-03-29 北银金融科技有限责任公司 Multi-communication protocol distributed file processing platform based on bank core

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100049620A1 (en) * 2008-08-24 2010-02-25 Visa Usa, Inc. Merchant device support of an integrated offer network
CN101706932A (en) * 2009-12-01 2010-05-12 中国建设银行股份有限公司 Method and system for processing service data
CN106447337A (en) * 2016-12-13 2017-02-22 泰康保险集团股份有限公司 Method and device for day-end transaction data checking

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145150B (en) * 2006-09-15 2011-11-02 中国银联股份有限公司 Batch file processing method and system
CN105590191A (en) * 2015-09-08 2016-05-18 中国银联股份有限公司 Interface system used for transaction data access, and implementation method thereof
CN106875182B (en) * 2016-06-24 2021-05-04 创新先进技术有限公司 Service processing method and device
CN106375241B (en) * 2016-08-29 2020-03-13 中国工商银行股份有限公司 Batch data processing method, front-end system, host and batch data processing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100049620A1 (en) * 2008-08-24 2010-02-25 Visa Usa, Inc. Merchant device support of an integrated offer network
CN101706932A (en) * 2009-12-01 2010-05-12 中国建设银行股份有限公司 Method and system for processing service data
CN106447337A (en) * 2016-12-13 2017-02-22 泰康保险集团股份有限公司 Method and device for day-end transaction data checking

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115904264A (en) * 2023-03-13 2023-04-04 浪潮电子信息产业股份有限公司 Method, device and medium for recovering garbage data of blocks in storage system
CN115904264B (en) * 2023-03-13 2023-06-13 浪潮电子信息产业股份有限公司 Garbage data recovery method, device and medium for blocks in storage system

Also Published As

Publication number Publication date
CN108830715A (en) 2018-11-16
CN108830715B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
WO2019227634A1 (en) Batch file partial return processing method and system
US11682070B2 (en) Systems and methods for estimating past and prospective attribute values associated with a user account
WO2019196242A1 (en) Batch file auditing and entrustment payment method and system
US9558465B1 (en) Annotations-based generic load generator engine
US9646042B2 (en) Data consistency and rollback for cloud analytics
WO2019227606A1 (en) Order procedure processing method and system
US11895142B2 (en) Computer-based platforms configured for automated early-stage application security monitoring and methods of use thereof
US20150180950A1 (en) Test management using distributed computing
US20210240519A1 (en) Orchestration for data pipeline execution plans
CN108280754B (en) Routing sub-control account checking method and system
US11277474B2 (en) System for enabling cloud access to legacy application
US20220138328A1 (en) Validation of transaction ledger content using java script object notation schema definition
CN111026367A (en) Micro-service arranging method and device, terminal equipment and storage medium
CN111598575A (en) Business process control method and device, electronic equipment and readable storage medium
CN111427971A (en) Business modeling method, device, system and medium for computer system
WO2019025921A1 (en) Delivering a configuration based workflow
US20230064373A1 (en) Intelligent vulnerability lifecycle management system
WO2015006215A1 (en) Systems, methods, and computer program products for processing sets of instructions for mobile devices
WO2019227607A1 (en) Routing order configuration and processing method and system
US10698722B2 (en) Virtual machine migration across cloud computing providers
WO2022087581A1 (en) Quantifying usage of robotic processs automation related resources
US20210295234A1 (en) Automated evidence collection
CN107657155B (en) Method and device for authenticating user operation authority
CN112948467B (en) Data processing method and device, computer equipment and storage medium
EP3940549A1 (en) Parallel load operations for etl with unified post-processing

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: 18920958

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18920958

Country of ref document: EP

Kind code of ref document: A1