Data processing method, device, electronic device and storage medium

By obtaining and parsing the target category information in the bank card data dictionary, the target files required by the downstream system are generated, which solves the problem of low bank card data processing efficiency, realizes automated parsing and processing, and improves data processing efficiency.

CN114936915BActive Publication Date: 2024-09-06BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210190295.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-09-06
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

In banking business processing, existing technology requires bank data analysts to manually parse the data dictionary provided by UnionPay, which results in low efficiency and error-prone. It cannot automatically parse the bank card data dictionary, affecting data processing efficiency.

Method used

By obtaining the data dictionary, parsing the target category information of the bank card, and generating the target files required by the downstream system based on this information, automatic parsing and processing of the data dictionary is realized.

Benefits of technology

It improves the efficiency of bank card data processing, solves the problems of low efficiency and errors caused by manual analysis, and realizes automated analysis and processing of bank card data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114936915B
    Figure CN114936915B
Patent Text Reader

Abstract

The present disclosure provides a data processing method, device, electronic device and storage medium, which relate to the computer field, and in particular to the field of data analysis and intelligent search. The specific implementation scheme is: obtaining a data dictionary, wherein the data dictionary is used to represent the information of the bank card to be analyzed; obtaining the target category information of the bank card from the data dictionary, wherein the target category information corresponds to the downstream system, and the downstream system is the system used in the application scenario of the bank card; generating a target file analyzed by the downstream system based on the target category data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method, device, electronic device and storage medium in the field of data analysis and intelligent search. Background Art

[0002] Currently, during the bank's business processing, UnionPay will provide a data dictionary to the bank's server, and the bank's data analysts in the downstream system need to manually parse the data dictionary into their own data warehouse for analysis. Summary of the invention

[0003] The present disclosure provides a data processing method, device, electronic device and storage medium.

[0004] According to one aspect of the present disclosure, a data processing method is provided. The method includes: obtaining a data dictionary, wherein the data dictionary is used to represent information of a bank card to be analyzed; obtaining target category information of the bank card from the data dictionary, wherein the target category information corresponds to a downstream system, and the downstream system is a system used in an application scenario of the bank card; and generating a target file to be analyzed by the downstream system based on the target category data.

[0005] According to another aspect of the present disclosure, another data processing device is provided. The device includes: a first acquisition unit, used to acquire a data dictionary, wherein the data dictionary is used to represent information of a bank card to be analyzed; a second acquisition unit, used to acquire target category information of the bank card from the data dictionary, wherein the target category information corresponds to a downstream system, and the downstream system is a system used in an application scenario of the bank card; and a generation unit, used to generate a target file to be analyzed by the downstream system based on the target category data.

[0006] According to another aspect of the present disclosure, an electronic device is also provided. The electronic device may include: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data processing method of the embodiment of the present disclosure.

[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is further provided, wherein the computer instructions are used to enable a computer to execute the data processing method of an embodiment of the present disclosure.

[0008] According to another aspect of the present disclosure, a computer program product is further provided, which may include a computer program. When the computer program is executed by a processor, the data processing method of the embodiment of the present disclosure is implemented.

[0009] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0011] Figure 1 is a flow chart of a data processing method according to an embodiment of the present disclosure;

[0012] Figure 2 is a schematic diagram of a bank card core system data dictionary automatic parsing device according to the distribution change of the instability characteristics in the embodiment of the present disclosure;

[0013] Figure 3 is a schematic diagram of a data processing device according to an embodiment of the present disclosure;

[0014] Figure 4 It is a block diagram of an electronic device according to a data processing method of an embodiment of the present disclosure. DETAILED DESCRIPTION

[0015] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0016] Figure 1 FIG. 1 is a flow chart of a data processing method according to an embodiment of the present disclosure. Figure 1 As shown, the method may include the following steps:

[0017] Step S102, obtaining a data dictionary, wherein the data dictionary is used to represent the information of the bank card to be analyzed.

[0018] In the technical solution provided in the above step S102 of the present disclosure, the bank's server can obtain a data dictionary from the UnionPay Cloud, wherein the data dictionary is used to represent the information of the bank card to be analyzed, and can be a bank card core data dictionary file, which can include file name information, update frequency information, incremental planning information, primary key information and field information, etc., and no specific restrictions are made here.

[0019] Optionally, UnionPay Cloud will periodically synchronize the bank card core data dictionary file to the bank's server (bank machine) to enable the bank's server to obtain the data dictionary.

[0020] Optionally, a bank card may be a credit payment tool, which may refer to a credit payment tool issued to the public by a financial institution (such as a commercial bank, etc.) with approval and having all or part of the functions of consumer credit, transfer settlement, cash deposit and withdrawal, etc. The bank card in this embodiment may include: a credit card (debit card) and a digital bank card. Credit cards may be divided into debit cards in which the issuing bank grants the cardholder a certain credit limit, and the cardholder can consume within the credit limit and then repay the money, and a quasi-credit card in which the cardholder first pays a certain amount of reserve funds as required by the bank, and when the reserve funds are insufficient to pay, the cardholder can overdraw within the credit limit specified by the issuing bank. The digital bank card may be a flash payment card, etc., which is not specifically limited here.

[0021] Optionally, the bank card of this embodiment may also include a debit card that can be used for transferring and withdrawing money online or at an ATM. The debit card can be divided into a transfer card with transfer, cash deposit and withdrawal and consumption functions, a special card used in a specific area and for a special purpose, and a prepaid wallet-type stored-value card according to its function; it can be divided into ordinary cards, gold cards and platinum cards according to its level, and can be divided into domestic cards and international cards according to its scope of use.

[0022] The preferred application scenario of this embodiment is the relevant data dictionary file for the credit card core system; although the business system of the above-mentioned debit card is independent of the business system of the credit card (credit card), both have their own core data dictionary files, among which the debit card deposit and access business is relatively simple, and the business and analysis scenarios of the credit card (credit card) are complex. Therefore, the bank card of this embodiment can include not only credit cards (credit cards) and digital bank cards, but also debit cards.

[0023] For example, the server may obtain the data dictionary to be analyzed from other credit payment instruments such as credit cards, digital bank cards, and debit cards.

[0024] Step S104, obtaining target category information of the bank card from the data dictionary, wherein the target category information corresponds to a downstream system, and the downstream system is a system used in an application scenario of the bank card.

[0025] In the technical solution provided in the above step S104 of the present disclosure, UnionPay Cloud parses the corresponding information in the acquired data dictionary to obtain the target category information of the bank card corresponding to the downstream system, wherein the downstream system may be a system used in the application scenario of the bank card, and may be a system implemented by a first relational database management system (MySQL), a system implemented by a second relational database management system (Oracle), a data integration system, etc.; the target category information may be used to create category information and update category information, etc., and may be creation category information and update category information generated by a MySQL generator configured for the first relational database management system (MySQL); it may also be creation category information and update category information generated by an Oracle generator configured for the second relational database management system (Oracle); it may also be a configuration file generated by a generator configured for the data integration system, etc. It should be noted that the above system and system generator are not specifically limited and are only used as examples.

[0026] Optionally, a data dictionary is obtained, and information in the data dictionary corresponding to the downstream system is parsed to obtain target category information of the bank card.

[0027] For example, a data dictionary is obtained. If the downstream system is a system implemented by a first relational database management system (MySQL), then a program is generated based on the first relational database management system to generate create category information and update category information.

[0028] Step S106, generating a target file to be analyzed by a downstream system based on the target category data.

[0029] In this embodiment, the information corresponding to the downstream system in the data dictionary is parsed to obtain the target category information of the bank card, and a target file analyzed by the downstream system is generated based on the target category data, wherein the target file can be a structured query language (SQL) for table creation of different databases, SQL for table structure change, configuration files required by the data integration system, etc.

[0030] Optionally, obtain a data dictionary, parse the information in the data dictionary corresponding to the downstream system, obtain the target category information of the bank card, and based on the target category information, perform task distribution processing on the corresponding information in the data dictionary to generate configuration files required by different target systems of the downstream system, such as table creation SQL for different databases, table structure change SQL, configuration files required by the data integration system, etc.

[0031] For example, obtain the data dictionary. If the downstream system is the first relational database management system (MySQL), generate a program based on the first relational database management system to generate create category information and update category information, and generate table creation sql statements and table update sql statements based on the create category information and update category information.

[0032] For example, obtain the data dictionary. If the downstream system is a second relational database management system (Oracle), generate a program based on the second relational database management system to generate create category information and update category information, and generate table creation sql statements and table update sql statements based on the create category information and update category information.

[0033] For example, obtain the data dictionary, and if the downstream system is a data integration system, generate a configuration file based on the data integration system, etc.

[0034] Through the above steps S102 to S106, a data dictionary is obtained, wherein the data dictionary is used to represent the information of the bank card to be analyzed; the target category information of the bank card is obtained from the data dictionary, wherein the target category information corresponds to the downstream system, and the downstream system is the system used in the application scenario of the bank card; based on the target category data, a target file analyzed by the downstream system is generated. That is to say, the present disclosure obtains the target category information after parsing the corresponding information in the data dictionary, and generates a target file based on the target category information, so that the downstream system can directly analyze the target file, thereby automatically parsing the data dictionary of the bank card, thereby improving the efficiency of processing the bank card data and solving the technical problem of low efficiency in processing the bank card data.

[0035] The above method of this embodiment is further described in detail below.

[0036] As an optional implementation, step S204, obtaining target category information of the bank card from the data dictionary includes: reading the target category information from the data dictionary based on a target toolkit.

[0037] In this embodiment, the table file in the data dictionary is parsed based on the target toolkit to obtain target category information, wherein the target toolkit can use an extended tool (xlrd) for reading tables in a computer programming language (Python) to read table files.

[0038] Optionally, a Python-based target toolkit parses the data dictionary table file, and generates target category information required by different downstream target systems based on the parsed results of the table file.

[0039] Optionally, the target tool is called to obtain the position of the corresponding field in the table according to a predetermined parsing logic, such as the position of the file name, update frequency, primary key, field separation rule, field name, field type, field length, field remarks and other information in the table to obtain the target category information.

[0040] As an optional implementation, target category information is read from a data dictionary based on a target toolkit, including: reading multiple category information from the data dictionary to a memory based on the target toolkit; and obtaining target category information from the multiple category information from the memory using a controller corresponding to the target category information.

[0041] In this embodiment, the target toolkit is called to parse the table file in the data dictionary and transfer it to the memory, and the controller corresponding to the target category information is determined. The controller obtains the target category information from the memory according to the configuration file program required by different downstream systems that has been developed in advance, and puts it in the specified location to achieve the purpose of obtaining the target category information from the memory among multiple category information. The controller corresponding to the target category information can be a downstream controller, which can be a create class task controller and an update class task controller.

[0042] Optionally, the target toolkit is called to parse the table file in the data dictionary and transfer it to the memory. The task distribution module starts the downstream controller and can start the creation class task controller. The creation class task controller obtains the target category information from the memory according to the configuration file program required by different downstream systems developed in advance, and puts it in the specified location. For example, the task distribution module starts the downstream controller, and the controller controls the task startup. When the downstream system is the first relational database management system, the controller obtains the target category information from the memory according to the first relational database management system configuration generation program.

[0043] Optionally, an update task controller may be started, and the update task controller obtains target category information from the memory according to the configuration file program required by different downstream systems developed in advance, and puts it into the designated target.

[0044] Optionally, the creation task controller and the update task controller can be started at the same time, wherein the creation task controller generates a creation task each time, and the update task can generate a specific update file through a configuration file program required by the downstream system when checking the existence of the previous version of the dictionary file and comparing the differences.

[0045] As an optional implementation, in step S206, the target category information includes update task data, and generating a target file to be analyzed by the downstream system based on the target category data includes: updating the original file to be analyzed by the downstream system based on the update task data to obtain the target file.

[0046] In this embodiment, when update task data is obtained, it can be compared with the original file. When there are differences in the comparison, the original file is updated to obtain the target file, wherein the original file can be a data dictionary file of a previous version smaller than the current version; the update task data can be the tabular data of the newly obtained data dictionary.

[0047] Optionally, the data dictionary will have a time serial number in the file name, and the data dictionary name will be sorted to obtain the data dictionary file of the previous version that is smaller than the current version. After the downstream business system detects that the latest configuration file of the update class is generated, it will automatically load the original file and compare the latest configuration file of the update class with the original file. When there is a difference in the comparison, the original file is updated to obtain the target file.

[0048] As an optional implementation, the method also includes: comparing the target category information with the original category information of the original data dictionary to obtain a comparison result, wherein the original data dictionary is used to represent the original information of the bank card to be analyzed; in response to the comparison result indicating that there is a difference between the target category information and the original category information, generating update task data based on the comparison result.

[0049] In this embodiment, the target category information is compared with the original category information of the original data dictionary to obtain a comparison result. If there is a difference between the target category information and the original category information of the original data dictionary, in response to the comparison result with the difference, update task data is generated.

[0050] Optionally, the original information of the bank card to be analyzed is compared with the target category information to obtain a comparison result. If there is a difference between the target category information and the original information, update task data is generated.

[0051] Optionally, this embodiment may also set up a change comparison record generation program. When there is a difference between the target category information and the original information, the change comparison record generation program is triggered to automatically generate a change record file. The change record may include the update date and update content, etc. It should be noted that the change record content can be set according to actual needs and is not specifically described here.

[0052] As an optional implementation, the method also includes: sending an update message to a downstream system, wherein the update message is used to indicate that the original file has been updated to a target file; receiving a request sent by the downstream system based on the update message, and responding to the request to send the target file to the downstream system.

[0053] In this embodiment, the update task obtains the update task data from the memory according to the configuration file program required by different downstream systems developed in advance, generates the corresponding target file and puts it into the specified directory. When the original file has been updated to the target file, the update message is sent to the downstream system. The update task manager receives the request sent by the downstream system based on the update message, and responds to the request to send the target file to the downstream system.

[0054] Optionally, the update task obtains the update task data from the memory according to the configuration file program required by different downstream systems developed in advance, generates the corresponding file and places it in the specified location. After the downstream business system detects that it has been updated to the target file, it will automatically load the corresponding file to achieve the purpose of sending the target file to the downstream system.

[0055] As an optional implementation, the target category information includes creation-class task data, and generating a target file to be analyzed by a downstream system based on the target category data includes: creating a target file to be analyzed by a downstream system based on the creation-class task data.

[0056] In this embodiment, the target category information includes creation class task data, which can be tabular data. A target file analyzed by a downstream system is created based on the creation class task data, wherein the target file can be a table creation sql statement generated by a first relational database management system (mysql) configuration generation program, or a table creation sql statement generated by a second relational database management system (Oracle) configuration generation program.

[0057] It should be noted that the actual table creation statements and field types of MySQL and Oracle are different, and different create / update statements need to be generated. Generally, the MySQL configuration generation program and the Oracle configuration generation program will not be started at the same time. They can be configured and started according to the requirements of the downstream system.

[0058] Optionally, the task distribution module will start the downstream creation class task controller, and the creation class task obtains the creation class task data from the memory according to the configuration file program required by different downstream systems developed in advance (for example, MySQL configuration generation program, Oracle configuration generation program) to generate a target file analyzed by the downstream system.

[0059] As an optional implementation, step S202, obtaining the data dictionary includes: reading from the first storage location a data dictionary whose timestamp is closest to the current time according to the target time period.

[0060] In this embodiment, the data dictionary with the timestamp closest to the current time is read from the first storage location according to the target time period, wherein the first storage location can be a designated directory, and the target time period can be set according to actual needs and can be 1 or 2, which is not specifically limited here.

[0061] Optionally, read the latest data dictionary in the first storage location (specified directory), and read the data dictionary with the timestamp closest to the current time from the first storage location according to the target time period. For example, when determining whether there is a file for the latest day, you can detect it in T-1 mode. If the task is triggered on December 28, 2021, the file with the data dictionary suffix of December 27, 2021 will be detected. The numbers here are only for example and there is no specific limitation.

[0062] As an optional implementation, the method further includes: storing the target file in a second storage location, wherein the target file is acquired from the second storage location by the downstream system.

[0063] In this embodiment, a data dictionary is obtained, target category information of the bank card is obtained from the data dictionary, a target file analyzed by a downstream system is generated based on the target category data, the target file is stored in a second storage location, and the downstream system obtains the target file from the second storage location.

[0064] Optionally, after reading the latest dictionary, the parsing device will use the target toolkit to parse the contents of the dictionary file into memory, call the target toolkit to obtain target category information according to a predetermined parsing logic, such as file name, update frequency, primary key, field separation rule, field name, field type, field length, field remarks and other information, and then store the target file in the memory (for example, in the form of a global shared variable, the data structure can be a set of paired structures) in a second storage location, and the downstream system can directly obtain the target file from the second storage location.

[0065] In this embodiment, a data dictionary is obtained, wherein the data dictionary is used to represent the information of the bank card to be analyzed; target category information of the bank card is obtained from the data dictionary, wherein the target category information corresponds to the downstream system, and the downstream system is the system used in the application scenario of the bank card; and a target file analyzed by the downstream system is generated based on the target category data. That is, the present disclosure obtains the target category information after parsing the corresponding information in the data dictionary, and generates a target file based on the target category information, so that the downstream system can directly analyze the target file, thereby automatically parsing the data dictionary of the bank card, thereby improving the efficiency of processing the bank card data and solving the technical problem of low efficiency in processing the bank card data.

[0066] The above technical solution of the embodiment of the present disclosure is further introduced below with examples in combination with preferred embodiments.

[0067] At present, in the bank's bank card business, most banks will directly purchase UnionPay's bank card core business system. The card core system is hosted on the UnionPay cloud and cannot be directly accessed by the bank's data analysis department. Generally, UnionPay will synchronize the data files to the bank's server every day through the data exchange system. The bank will parse the data into its own data warehouse for analysis based on these data files.

[0068] In the process of handling related technologies, UnionPay will provide a data dictionary, which involves hundreds of tables. Each table has hundreds or dozens of fields. Bank data analysts need to copy each field one by one and modify the fields into table creation statements, table change statements, and code configurations. UnionPay will update the fields regularly, but after each data dictionary update, the bank also has to manually compare specific fields and modify the table structure, configuration, and code. The above method has the problems of low efficiency, high error probability, and inability to automatically perceive data changes and make code changes.

[0069] Therefore, in order to solve the above problems, the embodiment of the present disclosure is based on the device of the xlrd toolkit for reading tables in Python, which automatically parses the data dictionary table (Excel), and automatically generates the SQL for table creation and related configuration files for code development; when there is a historical version, it will also compare with the previous version of the data dictionary to generate the SQL for the updated table and the change record, thereby greatly improving the development efficiency and accuracy, and can automatically compare and perceive data changes, and generate related change records, so that the subsequent connection with the UnionPay card core system data can realize full process automation.

[0070] Optionally, the data integration system needs to perform different structural analysis according to different field lengths, delimiter types, field similarities and other conditions in Excel. The data integration system code is an abstract general code, and there is no need to modify the code. You can adapt to different tasks by modifying the configuration. You can convert the above parsing logic into the configuration required by the data integration system.

[0071] Figure 2 Schematic diagram of a bank card core system data dictionary automatic parsing device according to the distribution change of the instability characteristics in the embodiment of the present disclosure, such as Figure 2 As shown, UnionPay will regularly synchronize the bank card core data dictionary file to the bank machine, and the bank card system data dictionary automatic parsing device (hereinafter referred to as the parsing device) and the card core data dictionary file are deployed in the same server.

[0072] The first step is to automatically trigger the parsing device through a daily scheduled task.

[0073] Optionally, the parsing device may be automatically triggered by a scheduled task through a component such as a timer.

[0074] In the second step, the parsing device reads the latest dictionary file in the specified directory.

[0075] The parsing device responds to the trigger signal and determines whether there is a file from the latest day. It can be detected in T-1 mode. For example, if the task is triggered on December 28, 2021, the file with the card core suffix of December 27, 2021 can be detected.

[0076] Optionally, the parsing device responds to the trigger signal, reads the latest dictionary file from the card core dictionary, and obtains file name information, update frequency information, increment rule information, primary key information and field information, etc.

[0077] The third step is to use xlrd to parse the contents of the dictionary file into memory.

[0078] After reading the latest dictionary, the text analysis module in the analysis device analyzes the dictionary data based on xlrd and distributes the table analysis results to the memory.

[0079] Optionally, call the xlrd method to obtain the position of the corresponding field in the table according to the predetermined parsing logic, such as file name, update frequency, primary key, field separation rule, field name, field type, field length, field remarks and other information, and then store it in memory as a global shared variable. The data structure is a set of map structures. Other program codes directly read the shared variable to obtain the required information.

[0080] In the fourth step, the task distribution module of the parsing device will start the downstream controller, which mainly includes creation tasks and update tasks.

[0081] Optionally, the task distribution module starts the downstream controller, and the controller configures creation task control and update task control, where creation tasks and update tasks are started at the same time, full creation tasks are generated each time, and update tasks will only generate specific update files when the previous version dictionary file is checked and the differences are compared.

[0082] Optionally, the task distribution module configures a create-type task controller and an update-type task controller.

[0083] The fifth step is to create a class task. According to the configuration files required by different downstream systems that have been developed in advance, the program obtains the table data from the memory, generates the corresponding files, and puts them into the specified target.

[0084] Optionally, according to the downstream application scenario, the task controller selects the required configuration file program, wherein the configuration creation task control may include a MySQL configuration generation program for the first relational database management system, an Oracle configuration generation program for the second relational database management system, and a data integration program configuration generation program.

[0085] Optionally, a program for creating tables and SQL statements can be generated based on the MySQL configuration of the first relational database management system; a program for creating tables and SQL statements can be generated based on the Oracle configuration of the second relational database management system; and a program for creating configuration files can be generated based on the data integration program configuration.

[0086] Optionally, the actual table creation statements and field types of MySQL and Oracle are different, and different create / update statements need to be generated. Adapters can be added to extend to data warehouse tools (Hive), distributed databases (Doris), and other databases.

[0087] In the sixth step, the update task obtains the table data from the memory according to the configuration file program required by different downstream systems that have been developed in advance, generates the corresponding files and puts them into the specified directory.

[0088] Optionally, according to the downstream application scenario, the task controller selects the required configuration file program, and the configuration update task controller may include a MySQL configuration generation program for the first relational database management system, an Oracle configuration generation program for the second relational database management system, a data integration program configuration generation program, and a change comparison record generation program.

[0089] Optionally, a program can be generated based on the MySQL configuration of the first relational database management system to generate a table creation sql statement; a program can be generated based on the Oracle configuration of the second relational database management system to generate a table creation sql statement; a program can be generated based on the data integration program configuration to generate a configuration file; and a change comparison record can be generated based on the change comparison record generation program to generate a change record file.

[0090] In the seventh step, after the downstream business system detects that the latest configuration file of the update class has been generated, it will automatically load the corresponding file for change.

[0091] Optionally, the data dictionary of the previous version can be changed. The data dictionary will have a time serial number in the file name. By sorting the data dictionary name, you can get the data dictionary file of the previous version that is smaller than the current version.

[0092] Optionally, after the update file is generated, the downstream system sorts the data dictionary file according to the data dictionary name to obtain a previous version of the data dictionary file that is smaller than the current version, and changes the previous version of the data dictionary file.

[0093] The disclosed embodiment automatically parses the data dictionary Excel file of the bank card core system based on Python's xlrd toolkit, and generates configuration files required by different downstream target systems after parsing the corresponding information in the data dictionary, such as table creation SQL of different databases, table structure change SQL, and configuration files required by the data integration system. By solving the original manual transcription, comparison and copying field method, the full process automation from dictionary change to data integration task adaptation is opened up, thereby solving the technical problem of low data development efficiency and processing efficiency due to the inability to automate the process, and achieving the technical effect of improving data development efficiency and processing efficiency.

[0094] The present disclosure also provides a method for executing Figure 1 A data processing device of the data processing method of the illustrated embodiment.

[0095] Figure 3 Schematic diagram of a data processing device according to an embodiment of the present disclosure. Figure 3 As shown, the data processing device 30 may include: a first acquiring unit 31 , a second acquiring unit 32 and a generating unit 33 .

[0096] The first acquisition unit 31 is used to acquire a data dictionary, wherein the data dictionary is used to represent the information of the bank card to be analyzed.

[0097] The second acquisition unit 32 is used to acquire target category information of the bank card from the data dictionary, wherein the target category information corresponds to a downstream system, and the downstream system is a system used in an application scenario of the bank card.

[0098] A generating unit 33 is used to generate a target file analyzed by a downstream system based on the target category data.

[0099] Optionally, the second acquisition unit 32 includes: a first reading module, configured to read target category information from a data dictionary based on a target toolkit.

[0100] Optionally, the first reading module includes: a first acquisition submodule, used to read multiple category information from the data dictionary to the memory based on the target toolkit; and obtain the target category information from the memory using the controller corresponding to the target category information.

[0101] Optionally, the generating unit 33 includes: a first updating module, configured to update the original file to be analyzed by the downstream system based on the updating task data to obtain a target file.

[0102] Optionally, the first update module includes: a first comparison submodule, used to compare the target category information with the original category information of the original data dictionary to obtain a comparison result, wherein the original data dictionary is used to represent the original information of the bank card to be analyzed; in response to the comparison result indicating that there is a difference between the target category information and the original category information, update task data is generated based on the comparison result.

[0103] Optionally, the generation unit 33 includes: a second update module, used to send an update message to the downstream system, wherein the update message is used to indicate that the original file has been updated to the target file; receive a request sent by the downstream system based on the update message, and respond to the request to send the target file to the downstream system.

[0104] Optionally, the generating unit 33 includes: a first creating module, configured to create a target file to be analyzed by a downstream system based on the creation task data.

[0105] Optionally, the first acquisition unit 31 includes: a first reading unit, configured to read a data dictionary whose timestamp is closest to the current time from the first storage location according to a target time period.

[0106] Optionally, the device further includes: a storage unit, configured to store the target file in a second storage location, wherein the target file is acquired from the second storage location by the downstream system.

[0107] In the device of the disclosed embodiment, a data dictionary is acquired through a first acquisition unit, wherein the data dictionary is used to represent information of a bank card to be analyzed; target category information of the bank card is acquired from the data dictionary through a second acquisition unit, wherein the target category information corresponds to a downstream system, and the downstream system is a system used in an application scenario of the bank card; a target file to be analyzed by the downstream system is generated based on the target category data through a generation unit, thereby improving the efficiency of processing bank card data and solving the technical problem of low efficiency in processing bank card data.

[0108] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0109] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0110] An embodiment of the present disclosure provides an electronic device, which may include: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data processing method of the embodiment of the present disclosure.

[0111] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0112] According to an embodiment of the present disclosure, the present disclosure further provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the data processing method of the embodiment of the present disclosure.

[0113] Optionally, in this embodiment, the non-volatile storage medium may be configured to store a computer program for performing the following steps:

[0114] S1, obtaining a data dictionary, wherein the data dictionary is used to represent the information of the bank card to be analyzed;

[0115] S2, obtaining target category information of the bank card from the data dictionary, wherein the target category information corresponds to a downstream system, and the downstream system is a system used in an application scenario of the bank card;

[0116] S3, generates target files analyzed by downstream systems based on target category data.

[0117] Optionally, in this embodiment, the non-transitory computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above. More specific examples of readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.

[0118] According to an embodiment of the present disclosure, the present disclosure further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0119] S1, obtaining a data dictionary, wherein the data dictionary is used to represent the information of the bank card to be analyzed;

[0120] S2, obtaining target category information of the bank card from the data dictionary, wherein the target category information corresponds to a downstream system, and the downstream system is a system used in an application scenario of the bank card;

[0121] S3, generates target files analyzed by downstream systems based on target category data.

[0122] Figure 4 1 is a block diagram of an electronic device according to a data processing method of an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0123] like Figure 4 As shown, the device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0124] A number of components in the device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0125] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as method data processing methods. For example, in some embodiments, the method data processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by the computing unit 401, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the data processing method in any other appropriate manner (e.g., by means of firmware).

[0126] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0127] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0128] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0129] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0130] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0131] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0132] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0133] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A data processing method, comprising: Obtaining a data dictionary, wherein the data dictionary is used to represent information of a bank card to be analyzed; Acquire target category information of the bank card from the data dictionary, wherein the target category information corresponds to a downstream system, and the downstream system is a system used in an application scenario of the bank card; generating a target file analyzed by the downstream system based on the target category data; Wherein, obtaining the target category information of the bank card from the data dictionary includes: reading multiple category information from the data dictionary to the memory based on the target toolkit; and obtaining the target category information from the multiple category information from the memory using a controller corresponding to the target category information.

2. The method according to claim 1, wherein: The target category information includes update task data, and generating a target file analyzed by the downstream system based on the target category data includes: The original file that needs to be analyzed by the downstream system is updated based on the update task data to obtain the target file.

3. The method according to claim 2, further comprising: Comparing the target category information with original category information in an original data dictionary to obtain a comparison result, wherein the original data dictionary is used to represent the original information of the bank card to be analyzed; In response to the comparison result indicating that there is a difference between the target category information and the original category information, the update task data is generated based on the comparison result.

4. The method according to claim 2, further comprising: Sending an update message to the downstream system, wherein the update message is used to indicate that the original file has been updated to the target file; A request sent by the downstream system based on the update message is received, and in response to the request, the target file is sent to the downstream system.

5. The method according to claim 1, wherein: The target category information includes creation task data, and generating a target file analyzed by the downstream system based on the target category data includes: The target file analyzed by the downstream system is created based on the creation task data.

6. According to the method according to any one of claims 1 to 5, obtaining the data dictionary comprises: The data dictionary having a timestamp closest to the current time is read from the first storage location according to the target time period.

7. The method according to any one of claims 1 to 5, further comprising: The target file is stored in a second storage location, wherein the target file is retrieved from the second storage location by the downstream system.

8. A data processing device, comprising: A first acquisition unit, used for acquiring a data dictionary, wherein the data dictionary is used for representing information of a bank card to be analyzed; A second acquisition unit is used to acquire target category information of the bank card from the data dictionary, wherein the target category information corresponds to a downstream system, and the downstream system is a system used in an application scenario of the bank card; a generating unit, configured to generate a target file to be analyzed by the downstream system based on the target category data; Among them, the second acquisition unit is used to obtain the target category information of the bank card from the data dictionary through the following steps: based on the target toolkit, multiple category information is read out from the data dictionary to the memory; using the controller corresponding to the target category information, the target category information among the multiple category information is obtained from the memory.

9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-7.

11. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.