CN111984303A - Transaction data processing method, device, equipment and storage medium - Google Patents

Transaction data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN111984303A
CN111984303A CN202010843740.7A CN202010843740A CN111984303A CN 111984303 A CN111984303 A CN 111984303A CN 202010843740 A CN202010843740 A CN 202010843740A CN 111984303 A CN111984303 A CN 111984303A
Authority
CN
China
Prior art keywords
batch
target
file
online transaction
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010843740.7A
Other languages
Chinese (zh)
Inventor
谢敏
罗巍
王宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010843740.7A priority Critical patent/CN111984303A/en
Publication of CN111984303A publication Critical patent/CN111984303A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/02Banking, e.g. interest calculation or account maintenance
    • 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

Landscapes

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

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for processing transaction data. Wherein, the method comprises the following steps: determining a target batch subconjection configuration file associated with a target service scene according to the target service scene of the batch files; determining a target online transaction system and an online transaction request message of the batch files according to the target batch subconjection configuration file; and transmitting the batch files into the target online transaction system according to the online transaction request message so as to realize the processing of transaction data. According to the embodiment of the invention, the configuration file is determined, and the batch files are quickly transmitted into the target online trading system, so that code development under different service scenes is avoided, code errors are reduced, and the efficiency of batch conversion is improved.

Description

Transaction data processing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to a method, a device, equipment and a storage medium for processing transaction data.
Background
In the current banking system, a worker uploads a batch of files at the front end, a background system is required to process records in the files one by one, and all detailed processing results are returned.
In the prior art, after a business puts forward a related batch subconjunctival requirement, a developer needs to design a new database table for matching batch files uploaded under different business scenes, and perform customized development on different business scenes. With the rapid increase of the data volume, the repeated development of each service scene has the disadvantages of large workload, high cost, slow response speed, large redundancy of development codes and low processing efficiency and precision of transaction data.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for processing transaction data, which are used for improving the processing efficiency and the processing precision of the transaction data.
In a first aspect, an embodiment of the present invention provides a method for processing transaction data, where the method includes:
determining a target batch subconjection configuration file associated with a target service scene according to the target service scene of the batch files;
determining a target online transaction system and an online transaction request message of the batch files according to the target batch subconjection configuration file;
and transmitting the batch files into the target online transaction system according to the online transaction request message so as to realize the processing of transaction data.
In a second aspect, an embodiment of the present invention further provides a device for processing transaction data, where the device includes:
the configuration file determining module is used for determining a target batch-to-batch configuration file associated with a target service scene according to the target service scene of the batch files;
the online transaction determining module is used for determining a target online transaction system and an online transaction request message of the batch files according to the target batch subconjection configuration file;
and the batch file conversion module is used for transmitting the batch files into the target online transaction system according to the online transaction request message so as to realize the processing of transaction data.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the transaction data processing method according to any embodiment of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform a method of processing transaction data according to any of the embodiments of the present invention.
The embodiment of the invention determines a target batch subconjection configuration file according to the service scene of the batch files, determines a target online transaction system and an online transaction request message according to the batch subconjection configuration file, and transmits the batch files into the target online transaction system by the online transaction request message to complete the subconjection operation. The problem that new codes need to be developed when batch-and-forward operation of different business scenes is achieved in the prior art is solved, code errors are effectively reduced through a configured development mode, manpower and time are saved, and processing efficiency and accuracy of transaction data are improved.
Drawings
Fig. 1 is a schematic flow chart of a transaction data processing method according to a first embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for processing transaction data according to a second embodiment of the present invention;
fig. 3 is a block diagram of a transaction data processing apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a transaction data processing method according to an embodiment of the present invention, which is applicable to a case of processing batch transaction data, and the method can be executed by a transaction data processing apparatus, and specifically includes the following steps:
s110, determining a target batch-to-batch configuration file associated with the target service scene according to the target service scene of the batch files.
Each transaction in a batch of batch files is a transaction in the same service scene, and in the process of converting batch files in different service scenes into single online transactions, transaction data and data formats to be processed may be different, so that data formats required by batch transfer operation in different service scenes are different. The batch file is converted into a single online transaction, and the target business scene is the business scene of the batch file to be subjected to batch conversion operation. The target batched and linked file configuration file is a configuration file matched with the target service scene, and includes configuration information of the batched and linked operation in the target service scene, for example, the configuration information may include a target online transaction system and a path to the target online transaction system, and is used for performing the batched and linked operation on the batch files in the target service scene.
In this embodiment, optionally, before determining the target batch federation configuration file associated with the target service scenario according to the target service scenario of the batch file, the method further includes: responding to the batch subconjection request, and determining a target service scene in the batch subconjection request; and determining batch files matched with the target service scene according to the target service scene.
Specifically, the worker determines a target service scene to be subjected to a batch-to-tandem operation, and sends a batch-to-tandem request for the target service scene. And the server responds to the batch subconjection request and acquires the target service scene from the batch subconjection request. Each service scene has an incidence relation with batch files under the service scene, and the batch files matched with the target service scene are determined according to the target service scene, so that the batch files are called and transmitted to the target online transaction system. For example, the database stores batch files No. 01 and batch files No. 02, the service scenario of the batch file No. 01 is a customer level maintenance scenario, and the service scenario of the batch file No. 02 is a card seal code maintenance scenario. The staff sends out a batch copy request, and wants to convert the batch files in the card seal code maintenance scene into a single online transaction, so the server calls the batch file No. 02. The method has the advantages that the user does not need to manually search the batch files related to the target service scene, so that the batch file searching error is avoided, and the uploading efficiency and the uploading precision of the batch files are improved.
In this embodiment, optionally, determining a target batch forwarding configuration file associated with a target service scenario according to the target service scenario of the batch file includes: and searching a target batch-transfer configuration file associated with the target service scene from the association relation between the preset service scene and the batch-transfer configuration file according to the target service scene.
Specifically, the baton and subconjection configuration files associated with different service scenes are stored in advance, and after the target service scene is determined, the target baton and subconjection configuration file is determined according to the association relationship between the service scene and the baton and subconjection configuration files. Header fields in the baton and subconjection configuration files of different service scenes can be different, that is, formats of the baton and subconjection configuration files can be different. The method has the advantages that the path of the batch files transmitted into the target online system can be quickly obtained through the corresponding batch-to-batch configuration files, code development work of workers is reduced, a configured development mode is realized, manpower and time are saved, and the precision and the efficiency of data processing are improved.
And S120, determining a target online transaction system and an online transaction request message of the batch files according to the target batch subconjection configuration file.
According to the data value of the field in the batch-to-batch configuration file, a target online trading system for converting the batch file into single online trading can be determined, and a path from the current system to the target online trading system of the batch file is obtained. Multiple logics for converting the batch files into single online transactions can exist in the online transaction system, online transaction request messages can be obtained according to data values of fields in the batch file-to-batch file configuration files, and the online transaction request messages can be used for determining the single online transaction conversion logics adopted by the batch files after the batch files reach a target online transaction system. For example, a unique identifier of the target online transaction system may be marked in the batch federation configuration file to identify the target online transaction system.
In this embodiment, optionally, determining the target online transaction system and the online transaction request message of the batch file according to the target batch subconjection configuration file includes: determining preset file information of the batch files according to the target batch subconjection configuration file; and determining a target online transaction system and an online transaction request message of the batch of files according to the file information.
Specifically, file information in the batch subconjection configuration files in different service scenes is preset, and the file information preset in the target batch subconjection configuration file is information related to the batch files in the service scenes. For example, a service scenario of the batch file is a card lock code maintenance scenario, and an identifier of the service scenario is a, then a may be indicated by a field subscript of the service scenario identifier in the preset file information of the batch file. For another example, the standard string length of the data value in a field in the batch file under a certain service scenario is 16, and therefore, the string length field subscript in the target batch federation configuration file matching the service scenario indicates 16. If the length of the data value character string of the corresponding field in the batch file is not 16, the batch file may have an error, that is, whether the batch file has a problem can be checked through preset file information. According to the preset file information, a target online transaction system and an online transaction request message of the batch file can be determined, and the online transaction system into which the batch file should be transmitted and which logic in the online transaction system is converted into a single online transaction can be obtained. The target online trading system and the online trading request message can be quickly determined through the target batch-and-forward configuration file, errors in searching the target online trading system and the online trading request message are avoided, manpower and time are saved, data processing is affected, and efficiency and precision of data processing are effectively improved.
In this embodiment, optionally, the file information includes a service scenario identifier, an online transaction code, a path of the batch file incoming online transaction, a batch file incoming content, and a custom variable.
Specifically, for batch files of different service scenes, the format of the batch-to-batch 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 of the batch file incoming online transaction, batch file incoming content, and custom variables. The service scenario identifier is used to distinguish different service scenarios, and each service scenario is marked with a unique service scenario identifier. The online transaction code is an internal call or external call online transaction code, and can determine a target online transaction system of internal calls or external calls of the batch files. The path of the batch file transmitted into the online transaction is a readable path reaching the target online transaction system in java engineering, and can be used for transmitting the batch file to the target online transaction system. The batch file incoming content is the specific data content in the batch file under the header field, and may include, for example, the sequence number and length of the data, etc. The custom variable can be different in different service scenes, and is not required to be embodied in a batch file, but the requirement in the process of calling in or calling out a message can be preset according to different service scenes, and the format of the custom variable can be { key: value } ". And determining an online transaction request message after the batch files are transmitted into the target online transaction system according to the user-defined variable. The method has the advantages that the standard information of batch files during the operation of the batch file transfer union can be obtained according to the preset file information, the batch file transfer union of data can be completed quickly according to the information, and the data processing efficiency is improved.
In this embodiment, optionally, the batch file incoming content includes a serial number of a header field in the batch file, a java type, a string length, and a java variable name.
Specifically, the batch file incoming content may be used to indicate specific data content and data format in a header field of the batch file, the content in the header field may be denoted by java, and the batch file incoming content may include a serial number, a java type, a string length, and a java variable name in the header field of the batch file. The different fields can be divided by | @ | and the field composition format of the batch file incoming content of each transaction can be as follows: "serial number: java type: length: java variable name ".
For example, for a batch copy configuration file in a card lock code maintenance scenario, the format of the field may include a card lock code maintenance scenario identifier, an online transaction code, a path of the batch file being transferred into the online transaction, a batch file transfer content, and a manual variable, where the manual variable is a preset custom variable. The batch file incoming content comprises the serial number, the java type, the character string length and the java variable name of the table header field in the batch file. The batch copy configuration file in the card seal code maintenance scene can be expressed as follows: 418019 ═ a0281P640| $ | com. ccb. ncis. pub. s11.vo. P640.a0281p640invo | $ | 1: integer: 10: seq | @ | 2: string: 16: crcrdno | @ | 3: string: 1: blockCode | $ | { "svcId": "1"}. Where, "418019" is expressed as a card lock code maintenance scene identifier, "a 0281P 640" is expressed as an online transaction code, "com. ccb. ncis. pub. s11.vo. P640.a 0281p640invo" is expressed as a path of a batch file to be transmitted into an online transaction system, "1: integer: 10: seq | @ | 2: string: 16: crcrdno | @ | 3: string: 1: blockCode "represents incoming content for a batch file," { "svcId": "1" } "means a manual variable. The batch file incoming content "1: integer: 10: "1", "2: string: 16: "2" and "3" in crcrdno ": string: 1: "3" in blockCode "is denoted as a serial number," integer "and" string "are denoted as java type," 10 "," 16 "and" 3: string: 1: "1" in blockCode "is denoted as a string length," seq "," crdno ", and" blockCode "are denoted as java variable names.
The method has the advantages that the format and the content of the preset file information in the batch subconjection configuration file are divided, so that the related data corresponding to the batch files can be searched quickly, the development of codes by workers is not needed, the configuration development is realized, and the efficiency and the precision of data processing are improved.
S130, according to the online transaction request message, the batch files are transmitted to a target online transaction system to achieve transaction data processing.
After the target online transaction system is determined, internal calling or external calling service is called according to the generated online transaction request message, and batch files are transmitted into the target online transaction system, so that the batch files are converted into single online transactions, and batch forwarding processing of transaction data is completed.
In this embodiment, optionally, the step of transmitting the batch of files to the target online transaction system according to the online transaction request message includes: and according to the online transaction request message, transmitting each transaction data in the batch of files into a target online transaction system according to a preset sequence.
Specifically, the sequence of internal call or external call of each transaction in the batch file can be preset, after the batch file enters the target online transaction system, the batch agent framework can automatically schedule through a preset task to perform service processing, and each transaction is internally called or externally called one by one to realize processing of transaction data. The batch agent framework is responsible for a framework for realizing batch-to-batch transaction in the component and is obtained by presetting. The beneficial effect who sets up like this lies in, makes every transaction handle in proper order, avoids data disorder, improves data processing's precision and efficiency.
According to the technical scheme of the embodiment, a target batch subconjection configuration file is determined according to a service scene of a batch file, a target online transaction system and an online transaction request message are determined according to the batch subconjection configuration file, the batch file is transmitted to the target online transaction system through the online transaction request message, and the batch subconjection operation is completed. The problem that new codes need to be developed when batch-and-forward operation of different business scenes is achieved in the prior art is solved, code errors are effectively reduced through a configured development mode, manpower and time are saved, and processing efficiency and accuracy of transaction data are improved.
Example two
Fig. 2 is a flowchart illustrating a transaction data processing method according to a second embodiment of the present invention, which is further optimized based on the above-mentioned embodiments. As shown in fig. 2, the method specifically includes the following steps:
s210, determining a target batch-to-batch configuration file associated with the target service scene according to the target service scene of the batch files.
And S220, determining preset file information of the batch files according to the target batch-to-batch configuration file.
The file information is preset in the configuration file of the batch subconjection, and the file information of the batch files under the service scene matched with the target configuration file of the batch subconjection is obtained according to the target configuration file of the batch subconjection.
In this embodiment, optionally, after determining the preset file information of the batch file according to the target batch link configuration file, the method further includes: comparing the format of the batch file incoming content in the target batch subconjection configuration file with the data content of each transaction in the batch file; and if the format of the content transmitted by the batch file is consistent with the format of the data content of each transaction in the batch file, determining that the data content of each transaction in the batch file conforms to the specification, and storing the data content of each transaction in the batch file in a detail database.
Specifically, the file information of the target batch federation configuration file may include a standard format of batch file data, for example, the file information may specify a format such as a string length and a java type in a header field of the batch file. Based on the file information, it may be determined whether the data content in the batch file conforms to the specification. The batch file incoming content in the file information can be obtained, and the batch file incoming content can write information such as java type, character string length and java variable name of each field data standard in the batch file. Comparing the format of the information in the incoming content of the batch file with the data under each field of each transaction in the batch file, and determining whether the format of the information in the incoming content of the batch file is consistent with the data format of each field of each transaction in the batch file, for example, whether the length of a character string in the incoming content of the batch file is consistent with the length of a character string of the data under each field in the batch file. If the batch files are inconsistent with the preset standard, the batch files are not consistent with the preset standard, and the batch files cannot be converted into single online transactions according to the target batch-to-link configuration file; if the data content of the batch file is consistent with the specification, the data content of the batch file is in accordance with the specification, and the batch file can be subjected to batch copy operation by using the target batch copy configuration file. For example, the file information of the target profile specifies that the length of the character string of the card number in the card is 16 bits, and the length of the character string of the card number in the batch file is 18 bits, so that the batch file does not conform to the specification of the target profile.
The data content under each field in the batch file is obtained, the data content under each field in each transaction in the batch file is stored in a preset data table of the detail database, and the data of one transaction can be one row in the detail database table. The writing sequence of the data content of each field of the batch file in the detail database table is consistent with the sequence of the field in the incoming content of the batch file, for example, the sequence of the field of the incoming content of the batch file is "sequence number: java type: length of character string: and the java variable name', the data of the batch file stored in the detail database table is stored according to the sequence number, the java type, the character string length and the field sequence of the java variable name. The detail database table can also store information such as batch numbers, file names, file uploading dates and batch conversion results of batch files. The method has the advantages that the format of the data content in the batch files is verified, the data processing can be avoided by adopting an incorrect batch-to-batch configuration file, the data processing can be avoided being continued under the condition that the data format is incorrect, and the precision and the efficiency of the data processing are improved.
And S230, determining a target online transaction system and an online transaction request message of the batch files according to the file information.
According to the preset file information, related data for performing batch-to-batch operation on the batch files of the target service scene can be obtained, for example, a target online transaction system and an online transaction request message can be obtained.
In this embodiment, optionally, determining the target online transaction system and the online transaction request message of the batch of files according to the file information includes: and determining a target online transaction system of the batch file and a path of the batch file transmitted into the target online transaction according to the online transaction code and the path of the batch file transmitted into the online transaction.
Specifically, the online transaction code may represent an online transaction system, and according to the online transaction code, a target online transaction system corresponding to the target batch-to-batch configuration file may be determined, that is, a target online transaction system corresponding to the batch file is obtained. The path of the batch file transmitted into the online transaction is a path which can be read by java and transmits the batch file into the target online transaction system, so that the target online transaction system and the path of the batch file transmitted into the target online transaction can be obtained. The method has the advantages that the target online trading system and the path reaching the target online trading system can be quickly obtained through the target wholesale antithetical couplet configuration file, the code development process of developers is reduced, manpower and time are saved, errors in code development are avoided, and the wholesale antithetical couplet efficiency is improved.
In this embodiment, optionally, determining the target online transaction system and the online transaction request message of the batch of files according to the file information, further includes: and determining an online transaction request message according to the transaction data content in the batch files, the batch file incoming content and the user-defined variable.
Specifically, the target online transaction system includes conversion logic of multiple batch files, and in order to obtain correct logic for converting the batch files into a single online transaction, an online transaction request message can be obtained according to specific data content of transactions in the batch files under preset fields, batch file incoming content and user-defined variables, and a specific logic route for data processing in the target online transaction system is found. The online transaction request message may be an incoming or outgoing message.
In this embodiment, optionally, determining the online transaction request message according to the data content of the transaction in the batch file, the incoming content of the batch file, and the user-defined variable includes: and determining the JSON string of the online transaction request message according to the data value of the header field in the batch file, the java variable name and the user-defined variable.
Specifically, when a message is constructed, according to field settings of a batch forwarding configuration file, a java variable name in content transmitted by a batch file, a field value of a preset header field recorded in the batch file, and a manually added custom variable are constructed into a JSON (JavaScript object notation) string of an internal call or external call message, so that an online transaction request message is obtained. And then according to the path of the batch files in the configuration file of the batch forwarding connection transmitted into the online trading system, executing internal call or external call operation by using a java reflection mechanism, and realizing the batch forwarding connection. The method has the advantages that errors of batch-transfer-joint operation are reduced and the efficiency and the precision of data processing are improved by determining the data processing logic inside the target online transaction system.
S240, according to the online transaction request message, the batch files are transmitted to a target online transaction system to achieve transaction data processing.
The batch files can be transmitted into the target online transaction system according to the online transaction request message, and if the target online transaction system and the online transaction request message are correct, transaction data can be processed, and batch transfer is completed.
In this embodiment, optionally, after the batch of files are transmitted to the target online transaction system according to the online transaction request message, the method further includes: and acquiring a batch-transfer-link feedback result of the online transaction system, and storing the batch-transfer-link feedback result.
Specifically, after the target online transaction system receives the batch files, if the batch forwarding operation is realized, feedback of successful operation is sent to the server; if the batch forwarding can not be realized, sending feedback of operation failure to the server, and explaining the failure reason, for example, the failure reason may be a target online transaction system determined to be wrong, or an online transaction request message construction error may be caused. And the server stores the feedback result and the failure reason in a detail database table for the subsequent check of the staff, the adjustment according to the failure reason and the operation again. The method has the advantages that the result of each data operation can be recorded, the checking and the improvement of the batch-to-batch operation are facilitated, and the data processing efficiency is improved.
The method and the device for processing the batch files have the advantages that the target batch-to-batch configuration files are determined according to the service scenes of the batch files, the preset file information matched with the batch files is obtained according to the batch-to-batch configuration files, the target online transaction system and the online transaction request message are determined according to the file information, the batch files are transmitted into the target online transaction system through the online transaction request message, and the batch-to-batch operation is completed. The problem that new codes need to be developed when batch-and-forward operation of different business scenes is achieved in the prior art is solved, code errors are effectively reduced through a configured development mode, manpower and time are saved, and processing efficiency and accuracy of transaction data are improved.
EXAMPLE III
Fig. 3 is a block diagram of a transaction data processing apparatus according to a third embodiment of the present invention, which is capable of executing a transaction data processing method according to any embodiment of the present invention, and includes functional modules corresponding to the execution method and beneficial effects. As shown in fig. 3, the apparatus specifically includes:
a configuration file determining module 301, configured to determine, according to a target service scenario of the batch file, a target batch forwarding configuration file associated with the target service scenario;
the online transaction determining module 302 is configured to determine a target online transaction system and an online transaction request message of the batch files according to the target batch-to-batch configuration file;
and the batch file conversion module 303 is configured to transmit the batch files to the target online transaction system according to the online transaction request message, so as to implement processing of transaction data.
Optionally, the apparatus further comprises:
the target scene determining module is used for responding to the batch subconjection request and determining a target service scene in the batch subconjection request before determining a target batch subconjection configuration file associated with the target service scene according to the target service scene of the batch files;
and the batch file determining module is used for determining batch files matched with the target service scene according to the target service scene.
Optionally, the configuration file determining module 301 is specifically configured to:
and searching a target batch-transfer configuration file associated with the target service scene from the association relation between the preset service scene and the batch-transfer configuration file according to the target service scene.
Optionally, the online transaction determining module 302 includes:
the file information determining unit is used for determining preset file information of the batch files according to the target batch subconjection configuration files;
and the online transaction confirmation unit is used for determining a target online transaction system and an online transaction request message of the batch of files according to the file information.
Optionally, the file information includes a service scenario identifier, an online transaction code, a path of the batch file incoming online transaction, a batch file incoming content, and a custom variable.
Optionally, the batch file incoming content includes a serial number of a header field in the batch file, a java type, a character string length, and a java variable name.
Optionally, the online transaction confirmation unit comprises:
and the target system determining unit is used for determining a target online transaction system of the batch files and a path of the batch files transmitted into the target online transaction according to the online transaction code and the path of the batch files transmitted into the online transaction.
Optionally, the online transaction confirmation unit further includes:
and the request message determining unit is used for determining the online transaction request message according to the data content of the transaction in the batch files, the incoming content of the batch files and the user-defined variable.
Optionally, the request packet determining unit is specifically configured to:
and determining the JSON string of the online transaction request message according to the data value of the header field in the batch file, the java variable name and the user-defined variable.
Optionally, the apparatus further comprises:
the format comparison module is used for comparing the format of the batch file incoming content in the target batch subconjection configuration file with the format of the data content of each transaction in the batch file after the preset file information of the batch file is determined according to the target batch subconjection configuration file;
and the data storage module is used for enabling the data content of each transaction in the batch file to be in accordance with the specification if the format of the content transmitted by the batch file is consistent with the format of the data content of each transaction in the batch file, and storing the data content of each transaction in the batch file in the detail database.
Optionally, the batch file conversion module 303 is specifically configured to:
and according to the online transaction request message, transmitting each transaction data in the batch of files into a target online transaction system according to a preset sequence.
Optionally, the apparatus further comprises:
and the result feedback module is used for acquiring the batch-transfer-link feedback result of the online transaction system and storing the batch-transfer-link feedback result.
The embodiment of the invention determines a target batch subconjection configuration file according to the service scene of the batch files, determines a target online transaction system and an online transaction request message according to the batch subconjection configuration file, and transmits the batch files into the target online transaction system by the online transaction request message to complete the subconjection operation. The problem that new codes need to be developed when batch-and-forward operation of different business scenes is achieved in the prior art is solved, code errors are effectively reduced through a configured development mode, manpower and time are saved, and processing efficiency and accuracy of transaction data are improved.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 400 suitable for use in implementing embodiments of the present invention. The computer device 400 shown in fig. 4 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present invention.
As shown in fig. 4, computer device 400 is in the form of a general purpose computing device. The components of 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 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such 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.
Computer device 400 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 400 and includes both volatile and nonvolatile media, removable and non-removable media.
The 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. The computer device 400 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media 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 carry out the functions of embodiments of the invention.
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 examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The computer device 400 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the computer device 400, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 400 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Moreover, computer device 400 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 412. As shown, network adapter 412 communicates with the other modules of computer device 400 over bus 403. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with 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, among others.
The processing unit 401 executes various functional applications and data processing by executing programs stored in the system memory 402, for example, implementing a transaction data processing method provided by an embodiment of the present invention, including:
determining a target batch subconjection configuration file associated with the target service scene according to the target service scene of the batch files;
determining a target online transaction system and an online transaction request message of batch files according to the target batch subconjection configuration file;
and transmitting the batch files into a target online transaction system according to the online transaction request message so as to realize the processing of transaction data.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing computer-executable instructions, where the storage medium stores a computer program, and when the computer program is executed by a processor, the method for processing transaction data according to the fifth embodiment of the present invention is implemented, where the method includes:
determining a target batch subconjection configuration file associated with the target service scene according to the target service scene of the batch files;
determining a target online transaction system and an online transaction request message of batch files according to the target batch subconjection configuration file;
and transmitting the batch files into a target online transaction system according to the online transaction request message so as to realize the processing of transaction data.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a 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.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A method of processing transaction data, comprising:
determining a target batch subconjection configuration file associated with a target service scene according to the target service scene of the batch files;
determining a target online transaction system and an online transaction request message of the batch files according to the target batch subconjection configuration file;
and transmitting the batch files into the target online transaction system according to the online transaction request message so as to realize the processing of transaction data.
2. The method of claim 1, before determining a target batch federation configuration file associated with a target business scenario of a batch file according to the target business scenario, further comprising:
responding to a batch subconjection request, and determining a target service scene in the batch subconjection request;
and determining batch files matched with the target service scene according to the target service scene.
3. The method of claim 1, wherein determining a target batch federation configuration file associated with a target business scenario of a batch file according to the target business scenario comprises:
and searching a target batch-transfer configuration file associated with the target service scene from the association relation between the preset service scene and the batch-transfer configuration file according to the target service scene.
4. The method of claim 1, wherein determining the target online transaction system and the online transaction request message for the batch file according to the target batch subconjection configuration file comprises:
determining preset file information of the batch files according to the target batch subconjection configuration file;
and determining a target online transaction system and an online transaction request message of the batch of files according to the file information.
5. The method of claim 4, wherein the file information comprises a business scenario identifier, an online transaction code, a path of a batch file incoming online transaction, batch file incoming content, and a custom variable.
6. The method as claimed in claim 5, wherein the batch file incoming content comprises a sequence number of a header field in the batch file, a java type, a string length, and a java variable name.
7. The method according to claim 4 or 5, wherein determining the target online transaction system and the online transaction request message of the batch of files according to the file information comprises:
and determining a target online transaction system of the batch file and a path of the batch file transmitted into the target online transaction according to the online transaction code and the path of the batch file transmitted into the online transaction.
8. The method according to any one of claims 4-6, wherein determining a target online transaction system and an online transaction request message for the bulk file based on the file information further comprises:
and determining the online transaction request message according to the data content of the transaction in the batch files, the incoming content of the batch files and the user-defined variable.
9. The method of claim 8, wherein determining the online transaction request message according to the data content of the transaction in the batch file, the incoming content of the batch file, and the custom variable comprises:
and determining the JSON string of the online transaction request message according to the data value of the header field in the batch file, the java variable name and the user-defined variable.
10. The method according to claim 4 or 5, after determining the preset file information of the batch file according to the target batch federation configuration file, further comprising:
comparing the format of the batch file incoming content in the target batch subconjection configuration file with the data content of each transaction in the batch file;
and if the format of the content transmitted by the batch file is consistent with the format of the data content of each transaction in the batch file, determining that the data content of each transaction in the batch file conforms to the specification, and storing the data content of each transaction in the batch file in a detail database.
11. The method of claim 1, wherein the transferring the batch of files to the target online transaction system according to the online transaction request message comprises:
and according to the online transaction request message, transmitting each transaction data in the batch of files into the target online transaction system according to a preset sequence.
12. The method of claim 1, further comprising, after transferring the bulk file into the target online transaction system according to the online transaction request message:
and acquiring a batch-transfer-joint feedback result of the online transaction system, and storing the batch-transfer-joint feedback result.
13. An apparatus for processing transaction data, comprising:
the configuration file determining module is used for determining a target batch-to-batch configuration file associated with a target service scene according to the target service scene of the batch files;
the online transaction determining module is used for determining a target online transaction system and an online transaction request message of the batch files according to the target batch subconjection configuration file;
and the batch file conversion module is used for transmitting the batch files into the target online transaction system according to the online transaction request message so as to realize the processing of transaction data.
14. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements a method of processing transaction data according to any of claims 1-12.
15. A storage medium containing computer-executable instructions for performing the method of processing transaction data according to any of claims 1-12 when executed by a computer processor.
CN202010843740.7A 2020-08-20 2020-08-20 Transaction data processing method, device, equipment and storage medium Pending CN111984303A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010843740.7A CN111984303A (en) 2020-08-20 2020-08-20 Transaction data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010843740.7A CN111984303A (en) 2020-08-20 2020-08-20 Transaction data processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111984303A true CN111984303A (en) 2020-11-24

Family

ID=73442648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010843740.7A Pending CN111984303A (en) 2020-08-20 2020-08-20 Transaction data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111984303A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112785421A (en) * 2021-01-27 2021-05-11 广州广电运通金融电子股份有限公司 Real-time configurable online transaction processing method and processing system
CN113760554A (en) * 2021-09-18 2021-12-07 中国银行股份有限公司 Batch switching-on-line service processing method and device
CN113781226A (en) * 2021-09-14 2021-12-10 中电金信软件有限公司 Batch transaction data processing method and device
CN114745442A (en) * 2022-04-13 2022-07-12 中国银行股份有限公司 On-line batch processing system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112785421A (en) * 2021-01-27 2021-05-11 广州广电运通金融电子股份有限公司 Real-time configurable online transaction processing method and processing system
CN113781226A (en) * 2021-09-14 2021-12-10 中电金信软件有限公司 Batch transaction data processing method and device
CN113760554A (en) * 2021-09-18 2021-12-07 中国银行股份有限公司 Batch switching-on-line service processing method and device
CN114745442A (en) * 2022-04-13 2022-07-12 中国银行股份有限公司 On-line batch processing system

Similar Documents

Publication Publication Date Title
CN111984303A (en) Transaction data processing method, device, equipment and storage medium
CN110891057B (en) Protocol conversion method, device, equipment and storage medium
US20030140272A1 (en) Method and data processing system providing checkpoint/restart across multiple heterogeneous computer systems
CN110968438A (en) Asynchronous notification method and device of event message, electronic equipment and storage medium
WO2022068316A1 (en) Data reconciliation method and apparatus, device, and storage medium
CN112003712B (en) Service processing method, electronic device and computer readable storage medium
CN112445866A (en) Data processing method and device, computer readable medium and electronic equipment
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN112068973A (en) Asynchronous information processing method and device of policy mode, server and storage medium
CN114792089A (en) Method, apparatus and program product for managing computer system
CN111241180A (en) Information processing method, device, equipment and storage medium
CN110888791A (en) Log processing method, device, equipment and storage medium
CN109325002B (en) Text file processing method, device and system, electronic equipment and storage medium
CN114358742A (en) Workflow execution method, device, equipment and storage medium
CN111831536A (en) Automatic testing method and device
CN111339051B (en) Log processing method, system, device and storage medium
CN112579632A (en) Data verification method, device, equipment and medium
CN110910107A (en) Transfer processing method, device, equipment and storage medium
CN112148762A (en) Statistical method and device for real-time data stream
CN114546370A (en) Data docking method and related device
CN114546682A (en) Data processing method, device, equipment, medium and program product
CN114090514A (en) Log retrieval method and device for distributed system
CN113419887A (en) Method and device for processing abnormal online transaction of host
CN114371866A (en) Version reconfiguration test method, device and equipment of service system
CN113067885B (en) Application system, request processing method, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220919

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.