Disclosure of Invention
Aiming at the problems existing in the prior art that the financial data are stored in a database in a financial system, the unified financial data storage method which has strong expansibility, meets the storage requirements of various data formats and can reduce the robustness of the system is provided.
The specific contents are as follows:
a unified warehousing method of financial data is applied to the processing of the financial data of financial machines in a financial system, wherein the financial data provided by each financial machine is analyzed to form an analysis file, and data information in the analysis file is stored in a database;
the database provides a plurality of data tables for storing the corresponding data information; the unified warehousing method of the financial data comprises the following steps:
step S1, the database calls the analyzed file;
step S2, the database acquires the data information in the analysis file and the variable of the data information;
step S3, the database stores the data information of the variables that satisfy the preset condition into the corresponding data table.
Preferably, the database provides a note counter record table for storing note counting records of the note counter;
and a crown word number data table for storing picture data of the crown word number data;
when only the detailed information of the crown word number data is included in the analysis file;
and inserting the data information in the current analysis file into the record table of the cash register and the crown word number data table.
Preferably, the database provides a transaction table for storing transaction information;
and a transaction binding table for storing binding information of the transaction and the crown word number data;
when the variable in the analysis file meets the condition that the detailed information of the crown word number data is not null and the transaction serial number is not null;
and correspondingly inserting the data information in the current analysis file into the crown word number data table, the cash counter record table, the transaction binding table and the transaction table.
Preferably, the database provides a bar code binding table for storing the binding information of the bar code number and the crown word number data;
when the variable in the analysis file meets the condition that the detailed information of the crown word number data is not empty and the bundle bar code is not empty;
and binding the crown word number data and the bundling bar code in the current analysis file, and storing the crown word number data and the bundling bar code in the bar code binding table.
Preferably, the bar code binding table is used for storing the binding information of the bar code number and the crown word number data;
when the bundle bar code in the analysis file is not empty and the bar code information is not empty;
and binding the bundle bar code with the bar code information and storing the bundle bar code and the bar code information in the bar code binding table.
Preferably, when the transaction number in the parsing file is not null and the bundle bar code is not null;
associating and storing the transaction number and the bundle bar code in the transaction binding table.
Preferably, when the transaction information in the analysis file is not empty;
and storing the transaction information into the transaction table.
Preferably, the analysis file further includes identity information of the financial instrument providing the financial data, and the identity information is stored in the database.
Preferably, the database provides a crown word number data blacklist, the database compares the data information in the analysis file with the data of the crown word number data blacklist in real time, and if the comparison result is the same, a prompt message is generated and sent to a financial system accessed by the financial machine.
The technical scheme has the following advantages or beneficial effects: the method can provide uniform processing and storing operations for financial data including crown word number data in a database, has strong processing flexibility and expansibility, and overcomes the defect that the original solution is to add new codes when a new data format appears in the prior art, thereby increasing the robustness of the system.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
The utility model discloses a unified method for putting financial data into a warehouse.
The embodiment of a unified warehousing method of financial data is applied to the processing of the financial data of financial machines in a financial system, wherein the financial data provided by each financial machine is analyzed to form an analysis file, and data information in the analysis file is stored in a database;
the database provides a plurality of data tables for storing corresponding data information;
as shown in fig. 1, the unified banking method for financial data includes the following steps:
step S1, the database calls the analyzed analysis file;
step S2, the database acquires the data information in the analysis file and the variable of the data information;
and step S3, the database stores the data information of the variables meeting the preset conditions into the corresponding data table.
In the above technical solution, the financial data may specifically include crown word number data, transaction number, banknote counting record, transaction information, barcode information, and the like, wherein the database calls the analysis file, analyzes variables in the analysis file, and stores data information in the analysis file into a corresponding data table when a preset condition is satisfied.
In a preferred embodiment, the data table provided by the database comprises:
the cash register record table is used for storing cash register records of the cash register and specifically comprises transaction record numbers, record starting time and ending time, operators, ticket face value, currency, version numbers, operation types, operation numbers, work network numbers, grouping statistics, city numbers, service dates and client numbers.
The picture data for storing the data of the crown word number specifically comprises running time, coin number, coin error, date error, picture file and picture size.
The transaction table is used for storing transaction information, and specifically comprises transaction types, transaction dates, transaction numbers, financial machine tool numbers, operators, financial machine tool physical addresses and IP addresses.
The transaction binding table is used for storing the binding information of the transaction and the crown word number data, and specifically comprises a transaction number, a bar code number, a work network number, a creation date and a bar code type.
The bar code binding table is used for storing the binding information of the bar code number and the crown word number data, and specifically comprises the bar code number, the type, the sub bar code number, the date type, the work network number, the ticket face value, the description and the creation date.
The bar code binding record table is used for storing record information of bar code binding, and specifically comprises bar code binding number, description, time, type and operator.
The bar code table is used for storing bar code information, creating operator, creating date and bar code information.
In a preferred embodiment, when only the detailed information of the crown number data is included in the parsed file;
and inserting the data information in the current analysis file into a note table of the cash register and a crown word number data table.
In the technical scheme, when the financial machine is in a financial system, such as a currency counting machine in the currency counting process, the acquired detailed information of the crown word number data specifically comprises a crown word number data picture and a currency counting record and is stored in a corresponding currency counting machine record table and a crown word number data table.
In a preferred embodiment, when the variables in the parsed file satisfy that the detailed information of the crown number data is not empty and the transaction serial number is not empty;
and correspondingly inserting the data information in the current analysis file into a crown word number data table, a cash counter record table, a transaction binding table and a transaction table.
In the technical scheme, when the amount transaction is carried out in the financial system, a corresponding transaction serial number is formed, at the moment, the specific information in the transaction serial number can be stored in a transaction table,
in a preferred embodiment, when the variables in the parsed file satisfy that the detailed information of the crown-word number data is not empty and the bundle bar code is not empty;
and binding the crown word number data in the current analysis file and the bundle bar code, and storing the binding in a bar code binding table.
In the technical scheme, the method can comprise the steps of counter transaction information binding and ATM transaction information binding;
the fsn file with the transaction number is the fsn file with the transaction number during normal currency counting, and is mainly used for realizing transaction binding blue marks, and when variables meet the following conditions, the fsn file with the transaction number needs to be subject to warehousing treatment:
first, the data information of the crown word number is not null
Second, the trade serial number in the file information is not null
When the file with the transaction number fsn is put into a warehouse, the table inserted into the database and the objects are as follows:
recording a table of a currency count machine;
a prefix number data table;
picture file for data of crown word number
Fourthly, a trading table (generally, only one trading serial number is provided, and if detailed trading information exists, the detailed trading information can be inserted into the trading table;
fifthly, transaction binding table (binding information of transaction and crown word number data)
In a preferred embodiment, when the bundle bar code in the parsing file is not empty, and the bar code information is not empty;
the bundle bar code is bound with the bar code information and stored in a bar code binding table.
In the technical proposal, the device comprises a base,
the design scene of the binding object of the bar code and the crown word number data for warehousing is generally that in a sorting center, after a banknote is sorted, the bar code is printed, then the bar code and the crown word number data of the banknote are bound, and the following variable conditions are met, namely the binding of the bar code and the crown word number data is required:
first, the data of the crown word number is not null
② bundle bar code in file information is not null
When the bar code and the crown word number data are bound with the object to be put in storage, the table inserted into the database and the object are as follows:
a bar code binding table (bar code binding table, the associated fields are main bar code id and sub batch id).
In a preferred embodiment, when the transaction number in the parsed file is not empty, and the bundle barcode is not empty;
the transaction number is associated with and the bundle bar code is stored in a transaction binding table.
In the technical scheme, the design scene of binding the barcode of the packing box is that when a cash center dispenses or transfers money, the barcode of each bundle, each bundle and each box needs to be scanned by equipment and then bound, and the following variable conditions meet the requirement that the operation of binding the barcode of the packing box to an object to be stored in a warehouse is required to be carried out:
not null bundle bar code in file information
② the bundle bar code is not empty
For example, binding the bundle bar code, the bundle bar code number is stored in the bundle bar code variable in the file information, and the bundle bar code number is stored in the bundle bar code information variable in the file information;
when the binding object of the packing box bar code is put into storage, the table inserted into the database and the object are as follows:
bar code binding table (Bar code binding table, associated field is main bar code number and sub bar code number)
And inserting the association relationship between the transaction number and the bundle bar code, wherein the association field is the transaction time and the bar code number.
In a preferred embodiment, when the transaction information in the parsed file is not empty;
and storing the transaction information into a transaction table.
In the technical scheme, the design scene of putting the transaction number and the bundle bar code document object into a warehouse is the process of directly scanning the bar code on the bundle of paper currency and paying without counting the money when a bank teller handles the withdrawal of a large amount of a client; the following variable conditions are satisfied, namely the transaction number and the storage processing of the bundle bar code file object are required to be carried out:
analyzing the file with transaction number not null
② the bundle bar code is not empty
When the transaction number and bundle bar code file object are put into the library, the table inserted into the database and the object are:
(ii) a transaction binding table (inserting a transaction number and a bundle bar code into an association, the association field being a transaction number and a bar code number)
In a preferred embodiment, the analysis file further includes the identity information of the financial tool providing the financial data, and the identity information is stored in the database.
In the technical scheme, the function is mainly that the detailed information of the paper money counter tool is not registered in a financial system when the paper money counter tool is received from the file data, so that the information of the paper money counter tool is temporarily stored in a database and is temporarily bound to a default mechanism for the convenience of a user to inquire the information of the paper money counter tool, and the information of the paper money counter tool stored in the database mainly comprises a machine tool number and an IP address; the user may then modify the information in the financial system for that implement.
In a preferred embodiment, a crown word number data blacklist is provided in the database, the database compares the crown word number data information in the analysis file with the data of the crown word number data blacklist in real time, and if the comparison result is the same, a prompt message is generated and sent to a financial system accessed by a financial machine.
In the technical scheme, if the data information which is clicked in the blacklist is found, namely the crown word number data, the detailed information of the crown word number data is sent to the background of the financial system in a web service mode, and the user is reminded in a yellow small envelope mode on a page of the background of the financial system.
It should be noted that FileInfo is information corresponding to a file (the file is not limited to fsn, and may also be a two-dimensional code associated file of a bundle box, or a transaction information file, etc.), and is composed of four parts:
FileInfo
to an end: file information including file name, serial number of corresponding transaction, bundle bar code and other information
Offset: detailed information of each crown number data
Bars codelist: bar code information
Assay information: transaction information.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.