A transaction data processing method, device, equipment and storage medium

By determining the target package transfer configuration files and online trading systems based on the business scenarios of batch files, the processing of batch files is achieved, and the problems of repeated development and inefficiency in the existing technology are solved, and the processing efficiency and accuracy of transaction data are improved.

CN111984303BActive Publication Date: 2024-12-24CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010843740.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-20
Publication Date
2024-12-24
Estimated Expiration
2040-08-20

AI Technical Summary

Technical Problem

In the banking business system, new database tables are needed to process batch files, resulting in large workloads, high cost, and low transaction data processing efficiency and accuracy.

Method used

By determining the target transfer configuration file based on the target business scenario of the batch file, determining the target online trading system and online trading request message, passing the batch file into the target online trading system, realizing the processing of transaction data.

Benefits of technology

It effectively reduces code redundancy, saves manpower and time, improves the processing efficiency and accuracy of transaction data, and solves the development problems of matching and connecting operations in different business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111984303B_ABST
    Figure CN111984303B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, equipment and storage medium for processing transaction data. The method comprises: determining a target batch transfer configuration file associated with the target business scenario according to the target business scenario of the batch file; determining the target online transaction system and online transaction request message of the batch file according to the target batch transfer configuration file; and transferring the batch file to the target online transaction system according to the online transaction request message to realize the processing of transaction data. The embodiment of the present invention determines the configuration file to quickly transfer the batch file to the target online transaction system, avoids code development under different business scenarios, reduces code errors, and improves the efficiency of batch transfer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to computer technology, and in particular, to a method, apparatus, device and storage medium for processing transaction data. Background Art

[0002] In the current banking system, staff upload a batch file on the front end, and the back-end system is required to process the records in the file one by one and return all detailed processing results.

[0003] In the prior art, when a business raises a related batch transfer requirement, developers need to design a new database table to match the batch files uploaded in different business scenarios and perform customized development for different business scenarios. With the surge in data volume, repeated development for each business scenario is labor-intensive and costly, with slow response speed, large redundancy in development code, and low efficiency and accuracy in processing transaction data. Summary of the invention

[0004] Embodiments of the present invention provide a transaction data processing method, device, equipment and storage medium to improve the transaction data processing efficiency and processing accuracy.

[0005] In a first aspect, an embodiment of the present invention provides a method for processing transaction data, the method comprising:

[0006] According to the target business scenario of the batch file, determining the target batch transfer configuration file associated with the target business scenario;

[0007] Determining the target online transaction system and the online transaction request message of the batch file according to the target batch transfer configuration file;

[0008] According to the online transaction request message, the batch file is transferred to the target online transaction system to realize the processing of transaction data.

[0009] In a second aspect, an embodiment of the present invention further provides a transaction data processing device, the device comprising:

[0010] A configuration file determination module, used to determine a target batch transfer configuration file associated with the target business scenario according to the target business scenario of the batch file;

[0011] An online transaction determination module, used to determine the target online transaction system and the online transaction request message of the batch file according to the target batch transfer configuration file;

[0012] The batch file conversion module is used to transfer the batch files to the target online transaction system according to the online transaction request message to realize the processing of transaction data.

[0013] In a third aspect, an embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for processing transaction data as described in any embodiment of the present invention is implemented.

[0014] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the transaction data processing method as described in any embodiment of the present invention.

[0015] The embodiment of the present invention determines the target batch transfer configuration file according to the business scenario of the batch file, determines the target online transaction system and the online transaction request message according to the batch transfer configuration file, transmits the batch file to the target online transaction system as the online transaction request message, and completes the batch transfer operation. The problem of the prior art that new codes need to be developed when implementing batch transfer operations in different business scenarios is solved. Through the configuration-based development method, code errors are effectively reduced, manpower and time are saved, and the processing efficiency and accuracy of transaction data are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flowchart of a method for processing transaction data in Embodiment 1 of the present invention;

[0017] Figure 2 It is a flowchart of a method for processing transaction data in Embodiment 2 of the present invention;

[0018] Figure 3 It is a structural block diagram of a transaction data processing device in Embodiment 3 of the present invention;

[0019] Figure 4 It is a structural diagram of a computer device in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0020] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0021] Embodiment 1

[0022] Figure 1 This is a flow chart of a method for processing transaction data provided in Embodiment 1 of the present invention. This embodiment is applicable to the case of processing batch transaction data. The method can be executed by a transaction data processing device, and specifically includes the following steps:

[0023] S110. Determine a target batch transfer configuration file associated with the target business scenario according to the target business scenario of the batch file.

[0024] Among them, each transaction in a batch of batch files is a transaction under the same business scenario. In the process of converting batch files of different business scenarios into a single online transaction, the transaction data and data format to be processed may be different. Therefore, the data format required for batch transfer operations in different business scenarios is different. Batch transfer refers to converting batch files into a single online transaction. The target business scenario is the business scenario of the batch files that are currently to be batch transferred. The target batch transfer configuration file is a configuration file that matches the target business scenario, which includes the configuration information of the batch transfer operation under the target business scenario, for example, it may include the target online transaction system and the path to the target online transaction system, etc., which is used to batch transfer batch files under the target business scenario.

[0025] In this embodiment, optionally, before determining the target batch transfer configuration file associated with the target business scenario based on the target business scenario of the batch files, it also includes: responding to the batch transfer request, determining the target business scenario in the batch transfer request; and determining the batch files matching the target business scenario based on the target business scenario.

[0026] Specifically, the staff first determines the target business scenario for which the batch transfer operation is to be performed, and issues a batch transfer request for the target business scenario. The server responds to the batch transfer request and obtains the target business scenario from the batch transfer request. Each business scenario is associated with the batch files under the business scenario. According to the target business scenario, the batch files matching the target business scenario are determined, so that the batch files are retrieved and transferred to the target online transaction system. For example, batch files No. 01 and No. 02 are stored in the database. The business scenario of batch file No. 01 is the customer level maintenance scenario, and the business scenario of batch file No. 02 is the card blocking code maintenance scenario. The staff issues a batch transfer request and wants to convert the batch files under the card blocking code maintenance scenario into a single online transaction. Therefore, the server retrieves batch file No. 02. The beneficial effect of such a setting is that the user does not need to manually search for the batch files associated with the target business scenario, avoids batch file search errors, and improves the upload efficiency and upload accuracy of batch files.

[0027] In this embodiment, optionally, a target batch transfer configuration file associated with the target business scenario is determined based on the target business scenario of the batch file, including: based on the target business scenario, searching for the target batch transfer configuration file associated with the target business scenario from the association relationship between the preset business scenario and the batch transfer configuration file.

[0028] Specifically, batch transfer configuration files associated with different business scenarios are stored in advance. After the target business scenario is determined, the target batch transfer configuration file is determined according to the association between the business scenario and the batch transfer configuration file. The header fields in the batch transfer configuration files of different business scenarios may be different, that is, the formats of the batch transfer configuration files may be different. The beneficial effect of such a setting is that the path for batch files to be transferred to the target online system can be quickly obtained through the corresponding batch transfer configuration files, which reduces the code development work of the staff, realizes the configuration-based development method, saves manpower and time, and improves the accuracy and efficiency of data processing.

[0029] S120. Determine the target online transaction system and online transaction request message of the batch file according to the target batch transfer configuration file.

[0030] Among them, according to the data value of the field in the batch transfer configuration file, the target online transaction system for converting the batch file into a single online transaction can be determined, and the path of the batch file from the current system to the target online transaction system can be obtained. There can be multiple logics for converting to a single online transaction in the online transaction system. According to the data value of the field in the batch transfer configuration file, the online transaction request message can also be obtained. The online transaction request message can be used to determine the single online transaction conversion logic adopted by the batch file after arriving at the target online transaction system. For example, the unique identifier of the target online transaction system can be indicated in the batch transfer configuration file to determine the target online transaction system.

[0031] In this embodiment, optionally, a target online transaction system and an online transaction request message for the batch files are determined according to a target batch transfer configuration file, including: determining preset file information of the batch files according to the target batch transfer configuration file; and determining the target online transaction system and an online transaction request message for the batch files according to the file information.

[0032] Specifically, the file information in the batch transfer configuration file under different business scenarios is preset, and the file information preset in the target batch transfer configuration file is the information associated with the batch file under the business scenario. For example, the business scenario of the batch file is the card blocking code maintenance scenario, and the identifier of the business scenario is A. Then, in the preset file information of the batch file, A can be marked under the field of the business scenario identifier. For another example, the standard string length of the data value under a certain field in the batch file under a certain business scenario is 16, so 16 is marked under the string length field in the target batch transfer configuration file matching the business scenario. If the string length of the data value of the corresponding field in the batch file is not 16, the batch file may have an error, that is, the preset file information can be used to check whether there is a problem with the batch file. According to the preset file information, the target online transaction system and the online transaction request message of the batch file can be determined, that is, it can be obtained which online transaction system the batch file should be transferred to, and which logic in the online transaction system is used to convert it into a single online transaction. The beneficial effect of such a setting is that, through the target batch transfer configuration file, the target online transaction system and online transaction request message can be quickly determined, thereby avoiding errors in searching the target online transaction system and online transaction request message, saving manpower and time, affecting data processing, and effectively improving the efficiency and accuracy of data processing.

[0033] In this embodiment, optionally, the file information includes a business scenario identifier, an online transaction code, a path for batch files to be transferred into the online transaction, batch file transfer content, and custom variables.

[0034] Specifically, for batch files of different business scenarios, the format of the batch transfer configuration file is different, and the preset file information is also different. The file information may include a business scenario identifier, an online transaction code, a path for batch files to be transferred to online transactions, batch file transfer content, and a custom variable. The business scenario identifier is used to distinguish different business scenarios, and each business scenario is marked with a unique business scenario identifier. The online transaction code is an online transaction code for an inbound call or an outbound call, which can determine the target online transaction system for the inbound or outbound call of the batch file. The path for batch files to be transferred to online transactions is a path to the target online transaction system that can be read in the Java project, and can be used to transfer the batch file to the target online transaction system. The batch file transfer content is the specific data content under the header field in the batch file, for example, it can include the sequence number and length of the data. The custom variable can be different in different business scenarios and does not need to be reflected in the batch file, but it is required for the inbound or outbound call message. It can be pre-set according to different business scenarios, and the format of the custom variable can be "{key: value}". The online transaction request message after the batch file is transferred to the target online transaction system is determined according to the custom variable. The beneficial effect of such a setting is that, based on the preset file information, standard information for batch file transfer operations can be obtained, which is conducive to quickly completing the data transfer based on this information and improving data processing efficiency.

[0035] In this embodiment, optionally, the batch file input content includes the sequence number, Java type, string length and Java variable name of the header field in the batch file.

[0036] Specifically, the batch file input content can be used to represent the specific data content and data format under the header field in the batch file. The content under the header field can be represented by Java. The batch file input content can include the serial number, Java type, string length and Java variable name of the header field in the batch file. Different fields can be separated by |@|. The field composition format of the batch file input content of each transaction can be: "serial number: Java type: length: Java variable name".

[0037] For example, for the batch transfer configuration file in the card blocking code maintenance scenario, the format of its fields may include the card blocking code maintenance scenario identifier, the online transaction code, the path of the batch file into the online transaction, the batch file into the content and the manual variable, and the manual variable is the preset custom variable. The batch file into the content also includes the sequence number, java type, string length and java variable name of the header field in the batch file. The batch transfer configuration file in the card blocking code maintenance scenario can be expressed as: 418019 = A0281P640 | $ | com.ccb.ncis.pub.s11.vo.p640.A0281P640InVo | $ | 1: integer: 10: seq | @ | 2: string: 16: crcrdno | @ | 3: string: 1: blockCode | $ | {"svcId": "1"}. Among them, "418019" represents the card blocking code maintenance scenario identifier, "A0281P640" represents the online transaction code, "com.ccb.ncis.pub.s11.vo.p640.A0281P640InVo" represents the path for batch files to be transferred to the online transaction system, "1:integer:10:seq|@|2:string:16:crcrdno|@|3:string:1:blockCode" represents the batch file transfer content, and "{"svcId":"1"}" represents the manual variable. In the batch file input content, "1" in "1:integer:10:seq", "2" in "2:string:16:crcrdno", and "3" in "3:string:1:blockCode" represent sequence numbers, "integer" and "string" represent Java types, "10", "16", and "1" in "3:string:1:blockCode" represent string lengths, and "seq", "crcrdno", and "blockCode" represent Java variable names.

[0038] The beneficial effect of this setting is that by dividing the format and content of the preset file information in the batch transfer configuration file, it is helpful to quickly find the relevant data corresponding to the batch file, without the need for staff to develop code, thus realizing configuration-based development and improving the efficiency and accuracy of data processing.

[0039] S130. According to the online transaction request message, the batch files are transferred to the target online transaction system to realize the processing of transaction data.

[0040] Among them, after determining the target online transaction system, according to the generated online transaction request message, call the internal or external call service, transfer the batch file to the target online transaction system, convert the batch file into a single online transaction, and complete the batch transfer processing of transaction data.

[0041] In this embodiment, optionally, according to the online transaction request message, the batch file is transferred to the target online transaction system, including: according to the online transaction request message, each transaction data in the batch file is transferred to the target online transaction system in a preset order.

[0042] Specifically, the order of inbound or outbound calls for each transaction in the batch file can be preset. After the batch file enters the target online transaction system, the batch proxy framework will automatically schedule the preset tasks to perform business processing, call inbound or outbound for each transaction one by one, and realize the processing of transaction data. The batch proxy framework is responsible for the framework for batch transfer transactions within the component, which is preset. The beneficial effect of this setting is that each transaction is processed in sequence, avoiding data disorder and improving the accuracy and efficiency of data processing.

[0043] The technical solution of this embodiment determines the target batch transfer configuration file according to the business scenario of the batch file, determines the target online transaction system and the online transaction request message according to the batch transfer configuration file, and transmits the batch file to the target online transaction system in the form of the online transaction request message to complete the batch transfer operation. This solves the problem of the need to develop new codes when implementing batch transfer operations in different business scenarios in the prior art, and effectively reduces code errors, saves manpower and time, and improves the processing efficiency and accuracy of transaction data through a configured development method.

[0044] Embodiment 2

[0045] Figure 2 This is a flow chart of a transaction data processing method provided by the second embodiment of the present invention. This embodiment is further optimized based on the above embodiment. The method can be executed by a transaction data processing device. Figure 2 As shown, the method specifically comprises the following steps:

[0046] S210. Determine a target batch transfer configuration file associated with the target business scenario according to the target business scenario of the batch file.

[0047] S220: Determine preset file information of the batch files according to the target batch transfer configuration file.

[0048] The file information is preset in the batch transfer configuration file, and according to the target batch transfer configuration file, the file information of the batch files in the business scenario matching the target batch transfer configuration file is obtained.

[0049] In the present embodiment, optionally, after determining the preset file information of the batch file according to the target batch transfer configuration file, it also includes: comparing the format of the batch file incoming content in the target batch transfer configuration file with the data content of each transaction in the batch file; if the format of the batch file incoming content is consistent with the format of the data content of each transaction in the batch file, it is determined that the data content of each transaction in the batch file complies with the specification, and the data content of each transaction in the batch file is saved in the detailed database.

[0050] Specifically, the file information of the target batch transfer configuration file may include the standard format of the batch file data. For example, the file information may specify the format of the string length and java type under the header field in the batch file. According to the file information, it can be determined whether the data content in the batch file meets the specification. The batch file input content in the file information can be obtained, and the batch file input content specifies the standard java type, string length and java variable name of each field data in the batch file. The information in the batch file input content is compared with the data under each field of each transaction in the batch file to determine whether the information in the batch file input content is consistent with the data format under each field of each transaction in the batch file, for example, whether the string length in the batch file input content is consistent with the string length of the data under the field in the batch file. If it is inconsistent, it means that the batch file does not meet the preset specification, and the batch file cannot be converted into a single online transaction according to the target batch transfer configuration file; if it is consistent, it means that the data content of the batch file meets the specification, and the batch file can be batch transferred using the target batch transfer configuration file. For example, the file information of the target batch transfer configuration file stipulates that the character string length of the card number in the card is 16 bits, and the character string length of the card number in the batch file is 18 bits. Therefore, the batch file does not meet the specifications of the target batch transfer configuration file.

[0051] The data content under each field in the batch file is obtained, and the data content under each field of each transaction in the batch file is stored in the data table of the preset detailed database. The data of a transaction can be a row in the detailed database table. The writing order of the data content of each field of the batch file in the detailed database table is consistent with the field order in the batch file incoming content. For example, the field order of the batch file incoming content is "sequence number: java type: string length: java variable name", then the data of the batch file stored in the detailed database table is stored according to the field order of sequence number, java type, string length and java variable name. The detailed database table can also store information such as the batch number, file name, file upload date and batch transfer result of the batch file. The beneficial effect of such a setting is that the format verification of the data content in the batch file can avoid using an incorrect batch transfer configuration file for data processing, avoid continuing data processing when the data format is incorrect, and improve the accuracy and efficiency of data processing.

[0052] S230: Determine the target online transaction system and online transaction request message of the batch file according to the file information.

[0053] Among them, according to the preset file information, the relevant data for batch transfer operation for the batch files of the target business scenario can be obtained, for example, the target online transaction system and the online transaction request message can be obtained.

[0054] In this embodiment, optionally, the target online transaction system and the online transaction request message of the batch file are determined based on the file information, including: determining the target online transaction system of the batch file and the path for the batch file to be transmitted to the target online transaction based on the online transaction code and the path for the batch file to be transmitted to the online transaction.

[0055] Specifically, the online transaction code can represent an online transaction system. According to the online transaction code, the target online transaction system corresponding to the target batch transfer configuration file can be determined, that is, the target online transaction system corresponding to the batch file is obtained. The path for the batch file to be transferred into the online transaction is the path that Java can read to transfer the batch file into the target online transaction system. Therefore, the target online transaction system and the path for the batch file to be transferred into the target online transaction can be obtained. The beneficial effect of such a setting is that the target online transaction system and the path to the target online transaction system can be quickly obtained through the target batch transfer configuration file, which reduces the code development process of developers, saves manpower and time, avoids errors in code development, and improves the efficiency of batch transfer.

[0056] In this embodiment, optionally, determining the target online transaction system and the online transaction request message of the batch file based on the file information also includes: determining the online transaction request message based on the data content of the transaction in the batch file, the batch file input content and the custom variables.

[0057] Specifically, the target online trading system includes a variety of batch file conversion logics. In order to obtain the correct logic for converting batch files into single online transactions, the online transaction request message can be obtained according to the specific data content of the transactions in the batch files under the preset fields, the batch file input content and the custom variables, and the specific logic route for data processing in the target online trading system can be found. The online transaction request message can be an inbound or outbound message.

[0058] In this embodiment, optionally, the online transaction request message is determined based on the data content of the transaction in the batch file, the content passed in the batch file, and the custom variables, including: determining the JSON string of the online transaction request message based on the data value of the header field in the batch file, the Java variable name, and the custom variables.

[0059] Specifically, when constructing a message, according to the field settings of the batch transfer configuration file, the Java variable name in the batch file input content and the field value of the preset header field recorded in the batch file, as well as the manually added custom variables are constructed into a JSON (JavaScript Object Notation, a lightweight data exchange format) string of the internal call or external call message to obtain an online transaction request message. Then, according to the path of the batch file in the batch transfer configuration file to the online transaction system, the Java reflection mechanism is used to execute the internal call or external call operation to realize the batch transfer. The beneficial effect of such a setting is that by determining the data processing logic inside the target online transaction system, the errors of the batch transfer operation are reduced and the efficiency and accuracy of data processing are improved.

[0060] S240. According to the online transaction request message, the batch files are transferred to the target online transaction system to realize the processing of transaction data.

[0061] Among them, according to the online transaction request message, the batch file can be transferred to the target online transaction system. If the target online transaction system and the online transaction request message are correct, the transaction data can be processed and the batch transfer can be completed.

[0062] In this embodiment, optionally, after the batch files are transferred to the target online transaction system according to the online transaction request message, the method further includes: obtaining a batch forwarding feedback result of the online transaction system, and saving the batch forwarding feedback result.

[0063] Specifically, after the target online trading system receives the batch file, if the batch transfer operation is realized, feedback of successful operation is sent to the server; if the batch transfer cannot be realized, feedback of failed operation is sent to the server, and the reason for failure is explained, for example, it may be that the target online trading system is determined incorrectly, or it may be that the online trading request message is constructed incorrectly. The server stores the feedback result and the reason for failure in the detailed database table, which is used for the staff to review and adjust according to the reason for failure and re-operate. The beneficial effect of such a setting is that the result of each data operation can be recorded, which is conducive to reviewing and improving the batch transfer operation and improving data processing efficiency.

[0064] The embodiment of the present invention determines the target batch transfer configuration file according to the business scenario of the batch file, obtains the preset file information matching the batch file according to the batch transfer configuration file, determines the target online transaction system and the online transaction request message according to the file information, transmits the batch file to the target online transaction system as the online transaction request message, and completes the batch transfer operation. The problem of the prior art that new codes need to be developed when implementing batch transfer operations in different business scenarios is solved, and the code errors are effectively reduced through the configuration-based development method, saving manpower and time, and improving the processing efficiency and accuracy of transaction data.

[0065] Embodiment 3

[0066] Figure 3 This is a structural block diagram of a transaction data processing device provided in Embodiment 3 of the present invention, which can execute a transaction data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. Figure 3 As shown, the device specifically includes:

[0067] The configuration file determination module 301 is used to determine the target batch transfer configuration file associated with the target business scenario according to the target business scenario of the batch file;

[0068] The online transaction determination module 302 is used to determine the target online transaction system and the online transaction request message of the batch file according to the target batch transfer configuration file;

[0069] The batch file conversion module 303 is used to transfer the batch files to the target online transaction system according to the online transaction request message to realize the processing of transaction data.

[0070] Optionally, the device further comprises:

[0071] A target scenario determination module, for determining the target business scenario in the batch transfer request in response to the batch transfer request before determining the target batch transfer configuration file associated with the target business scenario according to the target business scenario of the batch file;

[0072] The batch file determination module is used to determine the batch files matching the target business scenario according to the target business scenario.

[0073] Optionally, the configuration file determination module 301 is specifically configured to:

[0074] According to the target business scenario, the target batch transfer configuration file associated with the target business scenario is searched from the association relationship between the preset business scenario and the batch transfer configuration file.

[0075] Optionally, the online transaction determination module 302 includes:

[0076] A file information determination unit, used to determine preset file information of batch files according to a target batch transfer configuration file;

[0077] The online transaction confirmation unit is used to determine the target online transaction system and the online transaction request message of the batch file according to the file information.

[0078] Optionally, the file information includes a business scenario identifier, an online transaction code, a path for batch files to be passed into online transactions, batch file passed-in content, and custom variables.

[0079] Optionally, the batch file input content includes the sequence number, Java type, string length and Java variable name of the header field in the batch file.

[0080] Optional, online transaction confirmation unit, including:

[0081] The target system determination unit is used to determine the target online transaction system of the batch files and the path for the batch files to be transmitted to the target online transaction according to the online transaction code and the path for the batch files to be transmitted to the online transaction.

[0082] Optionally, the online transaction confirmation unit further includes:

[0083] The request message determination unit is used to determine the online transaction request message according to the data content of the transaction in the batch file, the batch file input content and the user-defined variables.

[0084] Optionally, the request message determining unit is specifically used to:

[0085] Determine the JSON string of the online transaction request message based on the data value of the header field in the batch file, the Java variable name, and the custom variable.

[0086] Optionally, the device further comprises:

[0087] A format comparison module is used to compare the format of the batch file input content in the target batch transfer configuration file with the data content of each transaction in the batch file after determining the preset file information of the batch file according to the target batch transfer configuration file;

[0088] The data saving module is used to ensure that if the format of the content of the batch file input is consistent with the format of the data content of each transaction in the batch file, the data content of each transaction in the batch file meets the specification, and the data content of each transaction in the batch file is saved in the detailed database.

[0089] Optionally, the batch file conversion module 303 is specifically used for:

[0090] According to the online transaction request message, each transaction data in the batch file is transmitted to the target online transaction system in a preset order.

[0091] Optionally, the device further comprises:

[0092] The result feedback module is used to obtain the feedback result of the batch forwarding link of the online transaction system and save the feedback result of the batch forwarding link.

[0093] The embodiment of the present invention determines the target batch transfer configuration file according to the business scenario of the batch file, determines the target online transaction system and the online transaction request message according to the batch transfer configuration file, transmits the batch file to the target online transaction system as the online transaction request message, and completes the batch transfer operation. The problem of the prior art that new codes need to be developed when implementing batch transfer operations in different business scenarios is solved. Through the configuration-based development method, code errors are effectively reduced, manpower and time are saved, and the processing efficiency and accuracy of transaction data are improved.

[0094] Embodiment 4

[0095] Figure 4 It is a structural diagram of a computer device provided in Embodiment 4 of the present invention. Figure 4 A block diagram of an exemplary computer device 400 suitable for use in implementing embodiments of the present invention is shown. Figure 4 The computer device 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0096] like Figure 4 As shown, the computer device 400 is in the form of a general computing device. The components of the computer device 400 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 connecting different system components (including the system memory 402 and the processing unit 401).

[0097] Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.

[0098] Computer device 400 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 400, including volatile and non-volatile media, removable and non-removable media.

[0099] System memory 402 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 404 and / or cache memory 405. Computer device 400 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 406 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 403 via one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of various embodiments of the present invention.

[0100] A program / utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 407 generally perform the functions and / or methods of the embodiments described herein.

[0101] The computer device 400 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), may also communicate with one or more devices that enable a user to interact with the computer device 400, and / or communicate with any device that enables the computer device 400 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via input / output (I / O) interface 411. Furthermore, the computer device 400 may also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN) and / or public network, such as the Internet) via network adapter 412. As shown, the network adapter 412 communicates with other modules of the computer device 400 via bus 403. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0102] The processing unit 401 executes various functional applications and data processing by running the program stored in the system memory 402, for example, a transaction data processing method provided by an embodiment of the present invention is implemented, including:

[0103] According to the target business scenario of the batch file, determine the target batch transfer configuration file associated with the target business scenario;

[0104] According to the target batch transfer configuration file, determine the target online transaction system and online transaction request message of the batch file;

[0105] According to the online transaction request message, the batch files are transferred to the target online transaction system to realize the processing of transaction data.

[0106] Embodiment 5

[0107] Embodiment 5 of the present invention further provides a storage medium containing computer executable instructions, on which a computer program is stored. When the program is executed by a processor, a method for processing transaction data provided in the embodiment of the present invention is implemented, including:

[0108] According to the target business scenario of the batch file, determine the target batch transfer configuration file associated with the target business scenario;

[0109] According to the target batch transfer configuration file, determine the target online transaction system and online transaction request message of the batch file;

[0110] According to the online transaction request message, the batch files are transferred to the target online transaction system to realize the processing of transaction data.

[0111] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0112] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0113] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0114] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0115] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for processing transaction data, characterized in that: include: According to the target business scenario of the batch file, determining the target batch transfer configuration file associated with the target business scenario; Determining the target online transaction system and the online transaction request message of the batch file according to the target batch transfer configuration file; According to the online transaction request message, the batch file is transferred to the target online transaction system to realize the processing of transaction data; Determining the target online transaction system and the online transaction request message of the batch file according to the target batch transfer configuration file includes: Determining preset file information of the batch files according to the target batch transfer configuration file; Determining a target online transaction system and an online transaction request message for the batch file according to the file information; The file information includes a business scenario identifier, an online transaction code, a path for batch files to be transferred into online transactions, batch file transfer content, and a custom variable; wherein the business scenario identifier is used to distinguish different business scenarios, the online transaction code is used to determine a target online transaction system for an inbound or outbound call of a batch file, the path for batch files to be transferred into online transactions is used to transfer the batch files to the target online transaction system, the batch file transfer content is used to indicate specific data content under a header field in the batch file, and the custom variable is pre-set according to different business scenarios; Determining the target online transaction system and the online transaction request message of the batch file according to the file information includes: According to the online transaction code and the path of the batch files being transmitted into the online transaction, the target online transaction system of the batch files and the path of the batch files being transmitted into the target online transaction are determined.

2. The method according to claim 1, characterized in that Before determining a target batch transfer configuration file associated with the target business scenario according to the target business scenario of the batch file, the method further includes: In response to the batch transfer request, determining a target business scenario in the batch transfer request; According to the target business scenario, a batch of files matching the target business scenario is determined.

3. The method according to claim 1, characterized in that According to the target business scenario of the batch file, a target batch transfer configuration file associated with the target business scenario is determined, including: According to the target business scenario, a target batch transfer configuration file associated with the target business scenario is searched from the association relationship between the preset business scenario and the batch transfer configuration file.

4. The method according to claim 1, characterized in that: The batch file input content includes the sequence number, java type, string length and java variable name of the header field in the batch file.

5. The method according to any one of claims 1 and 4, characterized in that: Determining the target online transaction system and the online transaction request message of the batch file according to the file information, further comprising: The online transaction request message is determined according to the data content of the transaction in the batch file, the batch file input content and the user-defined variables.

6. The method according to claim 5, characterized in that Determining the online transaction request message according to the transaction data content in the batch file, the batch file input content and the custom variable, including: The JSON string of the online transaction request message is determined according to the data value of the header field in the batch file, the Java variable name and the user-defined variable.

7. The method according to claim 1, characterized in that After determining the preset file information of the batch files according to the target batch transfer configuration file, the method further includes: Compare the format of the batch file input content in the target batch transfer configuration file with the data content of each transaction in the batch file; If the format of the content of the batch file input is consistent with the format of the data content of each transaction in the batch file, it is determined that the data content of each transaction in the batch file meets the specification, and the data content of each transaction in the batch file is saved in the detail database.

8. The method according to claim 1, characterized in that According to the online transaction request message, the batch file is transferred to the target online transaction system, including: According to the online transaction request message, each transaction data in the batch file is transmitted to the target online transaction system in a preset order.

9. The method according to claim 1, characterized in that: After the batch files are transferred to the target online transaction system according to the online transaction request message, the method further includes: Obtain the feedback result of the batch transfer link of the online transaction system, and save the feedback result of the batch transfer link.

10. A transaction data processing device, characterized in that: include: A configuration file determination module, used to determine a target batch transfer configuration file associated with the target business scenario according to the target business scenario of the batch file; An online transaction determination module, used to determine the target online transaction system and the online transaction request message of the batch file according to the target batch transfer configuration file; A batch file conversion module, used for transferring the batch file to the target online transaction system according to the online transaction request message to realize the processing of transaction data; The online transaction determination module comprises: The file information determination unit is used to determine the preset file information of the batch file according to the target batch transfer configuration file; the file information includes a business scenario identifier, an online transaction code, a path for the batch file to be transferred into the online transaction, the batch file transfer content and a custom variable; wherein the business scenario identifier is used to distinguish different business scenarios, the online transaction code is used to determine the target online transaction system for the batch file to be called in or out, the path for the batch file to be transferred into the online transaction is used to transfer the batch file to the target online transaction system, the batch file transfer content is used to indicate the specific data content under the header field in the batch file, and the custom variable is pre-set according to different business scenarios; An online transaction confirmation unit, used to determine a target online transaction system and an online transaction request message of the batch file according to the file information; The online transaction confirmation unit comprises: The target system determination unit is used to determine the target online transaction system of the batch files and the path for the batch files to be transmitted to the target online transaction according to the online transaction code and the path for the batch files to be transmitted to the online transaction.

11. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the transaction data processing method as described in any one of claims 1-9 is implemented.

12. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the transaction data processing method as described in any one of claims 1-9 when executed by a computer processor.