WO2019214029A1 - 财务数据制证方法、装置、计算机设备及存储介质 - Google Patents

财务数据制证方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2019214029A1
WO2019214029A1 PCT/CN2018/094398 CN2018094398W WO2019214029A1 WO 2019214029 A1 WO2019214029 A1 WO 2019214029A1 CN 2018094398 W CN2018094398 W CN 2018094398W WO 2019214029 A1 WO2019214029 A1 WO 2019214029A1
Authority
WO
WIPO (PCT)
Prior art keywords
certification
field
financial data
financial
data
Prior art date
Application number
PCT/CN2018/094398
Other languages
English (en)
French (fr)
Inventor
蔡淑存
孔令建
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019214029A1 publication Critical patent/WO2019214029A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Definitions

  • the present application relates to the field of computer technology, and in particular, to a financial data certification method, device, computer device, and storage medium.
  • the traditional method of making evidence is to design a certification model for each data table structure, according to the certification model corresponding to each data table. Certify financial data.
  • a large number of different data tables need to be used, and each data table structure corresponds to a forensic model. Therefore, a large number of data tables need to correspond to a large number of certification models.
  • This method makes the certification model poorly scalable and reusable. Low, resulting in high business and labor costs.
  • the application provides a financial data certification method, device, computer equipment and storage medium to solve the problem of poor scalability and low reusability of the financial data certification method.
  • the present application provides a financial data certification method, including:
  • the certification request including a type of certification
  • the present application provides a financial data certification device, including:
  • a certification request module configured to obtain a certification request, where the certification request includes a certification type
  • a target main model selection module configured to select a target main model from the main model table according to the certification type, where the target main model is a data table structure template corresponding to the certification type;
  • a certification template generating module configured to acquire a fixed field and an expanded field in a model field table configured by the target main model, determine a secondary model referenced by the expanded field, and corresponding to the expanded field in the secondary model a reference field, and generating a forensic template according to the fixed field of the target master model and the reference field in the secondary model;
  • a financial data screening module configured to obtain financial data screening conditions, and obtain financial data required for certification from the financial database according to the financial data screening condition and the fixed field and the reference field in the certification template;
  • the certification execution module is configured to obtain financial entry information configured by the user, and validate the financial data based on the certification template and the financial entry information.
  • the present application provides a computer device comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions The following steps are implemented:
  • the certification request including a type of certification
  • the application provides one or more non-transitory readable storage media storing computer readable instructions, such as one or more, when executed by one or more processors
  • the processor performs the following steps:
  • the certification request including a type of certification
  • FIG. 1 is a flowchart of an implementation of a financial data certification method provided in an embodiment of the present application
  • step S40 in FIG. 1 is a flowchart of an implementation of step S40 in FIG. 1;
  • FIG. 3 is a schematic diagram of a configuration of a financial data screening condition in an embodiment of the present application.
  • FIG. 4 is another schematic diagram of a configuration of a financial data screening condition in an embodiment of the present application.
  • FIG. 5 is a flowchart of another implementation of the financial data certification method provided in the embodiment of the present application.
  • FIG. 7 is a schematic diagram of a financial data certification device provided in an embodiment of the present application.
  • FIG. 8 is another schematic diagram of a financial data certification device provided in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a computer device provided in an embodiment of the present application.
  • FIG. 1 shows an implementation flow of the financial data certification method in this embodiment.
  • the financial data certification method is applied in financial certification, and is used to criticize the corresponding financial data by referring to the corresponding target main model and the sub-model in the financial accounting system, so as to increase the certification model in the financial certification system. Scalability and reusability.
  • the certification of the overseas valuation application applied in the insurance financial industry is taken as an example for illustration. Details are as follows:
  • the financial data certification method includes the following steps:
  • S10 Acquire a certification request, and the certification request includes a certification type.
  • the certification request is a request for controlling the system to enter the certification.
  • the certification request includes the type of certification.
  • the types of certification include: repurchase, funds, bonds, deposits, wealth management products, foreign exchange forwards, foreign exchange spot, interest rate swaps, cross currency swaps, etc.
  • S20 Select a target main model from the main model table according to the type of the certification, and the target main model is a data table structure template corresponding to the certification type.
  • the main model is a data table structure template corresponding to the certificate type, and the main model corresponds to a unique table structure, and the main model is determined, that is, the structure of the data table is determined.
  • the target master model refers to the master model selected from the master model table according to the type of certification.
  • the master model table stores the table names of all the master models involved in the system.
  • the table name of each main model in the main model table is associated with a database storing the main model corresponding to the table name (ie, the structure template of the data table), and is associated by storing the ID address of the main model in the table name.
  • the main model is newly added in the corresponding database storage, that is, the structure template of the data table is stored in the corresponding database, and then the table name of the main model is newly enhanced in the main model table.
  • the ID address of the main model is stored in the table name, and the relationship between the table name in the main model table and the main model in the database is established.
  • the system obtains the certification request input by the user, and selects the target main model of the corresponding certification type from the main model table according to the information of the type of the certification included in the certification request.
  • the certification request may be obtained by the user inputting the certification request through an input device such as a keyboard and/or a mouse, or by configuring a corresponding selection interface to select all the types of the certification of the system that can provide the certification.
  • the method is presented, and the user inputs the authentication request by using a mouse and/or a touch screen, etc., by using a drag and drop selection method or by selecting a selection method, but the input method can be configured according to the needs of the application, and is not performed here. limit.
  • S30 Acquire a fixed field and an expanded field in a model field table configured by the target main model, determine a secondary model referenced by the expanded field, and a reference field corresponding to the expanded field in the secondary model, and according to the fixed field and the secondary of the target main model
  • the reference field in the model generates a forensic template.
  • the model field table is a table that stores all the fields in the target master model.
  • the fields stored in the model field table are directly associated with the target master model.
  • the fields in the target master model include fixed fields and expanded fields.
  • a fixed field means that the field is uniquely identified in the target master model and cannot reference the contents of the same field in other tables. Expanding a field means that the field can reference the contents of other tables through the same fields in other tables.
  • the reference field in the secondary model refers to the field referenced by the expanded field in the secondary model.
  • the fund's financial position table includes fields such as creation time, creator, modification time, fund code, market price, and market code.
  • the fund basic information table includes the fund code, fund name, fund type, fund detail category, and fund manager. , date of issue, date of expiration, etc.
  • the fund's financial position table is selected as the target master model.
  • the time and modification time fields in the fund's financial position table are unique in the fund's financial position table.
  • the field values of the same field in other tables cannot be referenced, which is a fixed field.
  • the fund code field in the target model of the fund financial position table is associated with the fund code field in the fund basic information table, and the fund code field in the fund basic position table directly refers to the content of the fund code field in the fund basic information table.
  • the fund code field is the expanded field of the target master model.
  • the fund code field in the fund basic information table quoted based on the fund code field is the reference field of the secondary model.
  • the secondary model refers to other data table structure templates referenced by the expanded fields in the target master model.
  • the fund basic information table quoted by the fund code field the reference fund basic information table is a sub-model.
  • the forensic template is a template by which the voucher table is generated when the voucher is executed, and the forensic template is generated by the fixed field in the target main model and the reference field in the sub model.
  • the fund code field refers to the fund code, fund name, fund category and other fields in the fund basic information table.
  • the certificate-making template generated at the time of certification includes the fixed fields and fund basics in the fund's financial position table. Reference fields for referenced fund codes, fund names, fund categories, etc. in the information table.
  • the secondary model is pre-stored in the database, and the ID address of the secondary model is written into its corresponding expanded field to establish its reference relationship. It is also possible to establish a reference relationship by matching the identifier by presetting the matching identifier with the sub-model.
  • the attribute information of the expanded field configure its associated reference field, and refer to the corresponding reference field in the attribute information of the expanded field in the secondary model, according to the fixed field of the target main model and the referenced by the expanded field thereof.
  • a reference field in the model is formed to generate a forensic template.
  • the user may select whether to specifically refer to the secondary model corresponding to a certain expanded field, that is, the expanded field in the target primary model may also be selected without referring to its corresponding secondary model.
  • S40 Obtain financial data screening conditions, and obtain financial data required for certification from the financial database according to the fixed data and the reference field in the financial data screening condition and the certification template.
  • the financial data screening condition is a screening condition for the user to filter the corresponding data from the financial database according to the requirements of the certification.
  • the financial database is a database for storing financial data.
  • the financial data includes data such as the serial ID, financial type, transaction items, financial amount, and financial account.
  • the financial data screening condition input by the user is obtained, and according to the financial data filtering condition and the fixed field and the reference field in the certification template, the financial data required for the certification can be filtered out.
  • S50 Obtain the financial entry information of the user configuration, and verify the financial data based on the certification template and the financial entry information.
  • the financial entry information refers to the record information of the loan account and its corresponding account for an economic business.
  • the financial entry information includes the account symbol, the account name, the abstract, the loan direction and corresponding The subject name and other elements, financial entry information is one of the basic elements of financial data certification.
  • the acquiring user configures corresponding financial entry information according to a preset certification rule.
  • the pre-set rule of censorship refers to pre-setting the rules and regulations to be followed according to the direction in which the certificate is to be produced. For example, transfer and balance management rules, dedicated fund management rules, and liability management rules.
  • the financial entry information configured by the user may be received from the client, configured to configure corresponding information about the account name, the summary, the loan direction, the accounting symbol, and the corresponding account name, and then configure the financial entry information.
  • the financial data is then certified to generate accounting vouchers.
  • the financial entry information configured by the user includes: the relevant account name is “Ping An Technology Group”, the summary is “transactional financial business”, and the corresponding subject name is “fair value change profit and loss, securities clearing money”.
  • the account name is “Ping An Technology Group”
  • the summary is “transactional financial business”
  • the debit account name is “securities clearing money”
  • the credit account name is “fair”.
  • the value change profit and loss "adds to the field of the certification template header.
  • the user-configured financial entry information may be a corresponding item input by the user through the client, or may be configured in the client by selecting a preset list of options.
  • the target main model can be obtained from the database very conveniently by selecting the target main model from the main model table according to the user's certification request.
  • the expansion field of the target main model the association relationship between the target main model expansion field and the sub-model reference field is established, and the corresponding reference field in the sub-model is directly referenced by the expansion field of the target main model, and the resource is used reasonably, and the forensic model is added. Reusability reduces the amount of development work.
  • a forensic template is generated, and the dynamic configuration of the certification process is realized, the operation is flexible, and the expansion is convenient, and the data table has many structures and the development workload is large.
  • the problem of low reusability of the certification model According to the user's financial data screening conditions, the financial data needed for the certification is directly filtered out from the financial database, and the data screening is intelligent, which facilitates the user to quickly filter out the required data from a large number of databases and improve the efficiency of the certification.
  • the financial data is filled into the certification template and automated certification according to the financial entry information, so that the certification process is streamlined and standardized, and the error rate of financial certification is reduced.
  • the financial data certification method can reuse the main model and the sub-model to realize the certification of a plurality of different data tables, and is more suitable for the development of the enterprise.
  • the model field table includes a foreign key
  • the foreign key is an expanded field
  • the secondary model includes a primary key
  • the primary key is a reference field
  • the secondary model referenced by the expanded field and the secondary model and the expanded model are determined.
  • the financial data certification method further includes:
  • a reference relationship between the expanded field and the referenced field is established based on the primary key and the foreign key.
  • the primary key is a unique identifier that can determine a record.
  • a record includes an ID number, name, and age.
  • the ID number is the only one that can determine personal information. Others may have duplicates. Therefore, the ID number is the primary key.
  • a foreign key is used to associate with another table. It is a field that can determine another table record to maintain data consistency.
  • a field in the A table is the primary key of the B table, which can be the foreign key of the A table.
  • the "Fund Code” field in the fund's basic information table is set to the primary key of the fund's basic information table, which uniquely identifies the fund code record in the fund's basic information table.
  • the fund financial position table is the main model. In the model field table configured, the “fund code” field is the expansion field and is set as the foreign key of the fund financial position table.
  • the primary key corresponding to the "fund code” is searched, and by matching the primary key and the foreign key, the primary key of the "fund code” in the basic information table of the fund can be found, according to the foreign key and The relationship between the primary keys, so that the fund's financial position table can refer to the "fund code” field in the fund's basic information table.
  • the expanded field in the model field table of the target master model is used as a foreign key to find a reference field corresponding to the primary key.
  • the foreign key of the target main model is matched to the primary key of the secondary model, so that the reference field of the secondary model can be directly referred to by the expanded field in the target main model.
  • the primary key is optional and can be defined in a CREATE TABLE or ALTER TABLE statement.
  • the reference relationship between the expanded field and the reference field is established by using the primary key and the foreign key, so that the foreign key corresponding to the foreign key of the target main model expansion field can be directly used to refer to the secondary model corresponding to the primary key matching the foreign key.
  • the reusability of the model is increased, the workload of the development is reduced, and the configuration of the certification template is more flexible and easy to expand.
  • the related relationship between the expanded field and the reference field in the target main model and the secondary model is established, and the data integrity of the target main model and the secondary model is effectively maintained, and the timeliness of real-time data update is realized.
  • step S40 the financial data screening condition is obtained, and the financial required for the certification is obtained from the financial database according to the fixed data and the reference field in the financial data screening condition and the certification template.
  • the data includes the following steps:
  • S41 Obtain a screening item input by the user, and the screening item includes at least one filtering condition.
  • the target main model and the sub-model all correspond to a plurality of items, and the screening item is a key field for filtering out the required items from the items under the target main model and the sub-model.
  • the filter condition is the name of the item selected by the user in the item corresponding to the target main model and the sub model.
  • the target main model and all the sub-model screening items are filtered to obtain the filtering conditions, and the filtering data is filtered through the multiple filtering conditions of the target main model and the sub-model.
  • the filtering logic is a logical conjunction that associates the filtering condition with the filtering value.
  • the screening value refers to the detailed classification corresponding to the screening item, and is used to directly screen out the financial data of the corresponding detailed classification.
  • the detailed classification under the screening item is determined, and the data in the database is initially filtered, and the preliminary filtering data substantially required for the certification is obtained.
  • S44 Filter the preliminary filtered data according to the fields in the certification template to obtain the financial data needed for the certification.
  • the preliminary filtered data is filtered, all the financial data corresponding to the fields in the certification template are selected, and the financial data required for the certification is verified one by one.
  • the selected target main model is “bond transaction”
  • the sub-model is “financial account table” and “market basic information table”
  • the user selects “bond transaction”.
  • all options for filtering items, filtering logic, and filtering values can be stored in the corresponding drop-down list by means of a drop-down list.
  • the user When obtaining the filtering items, filtering logic, and filtering values input by the user, the user directly selects the corresponding option from the corresponding drop-down list to be combined, and does not need to be re-entered every time the user filters, making the operation more convenient and convenient. Maintenance also limits the screening conditions that the system can provide to prevent users from entering screening conditions that are not supported by the system.
  • the user can click the corresponding option through the configuration interface to select the corresponding filter condition option, or select the corresponding filter condition option by using the mouse-selected selection method, but it is not limited thereto, and the selection method can be configured according to the needs of the application. There are no restrictions here.
  • the screening value of the screening item is determined by the screening logic to filter the preliminary filtering data according to the screening value, and the screening range can be determined in the huge data volume of the database, and the workload of filtering the data is reduced;
  • the fields in the field further screen the preliminary filtered data to obtain the financial data needed for the certification, which reduces the task of manual screening, reduces the error rate, and makes the financial certification more standardized and streamlined.
  • step S40 the financial data screening condition is obtained, and the financial required for the certification is obtained from the financial database according to the fixed data and the reference field in the financial data screening condition and the certification template.
  • the following steps are also included:
  • the data format is a format in which data is stored in a file or a record, and may be in the form of a numerical value, a character, or a binary number.
  • the data format is described by data type and data length.
  • a conversion relationship is a rule that converts between different data formats. For example, the principle of equivalence calculation for data length conversion, the principle of hexadecimal conversion for converting between different hexadecimals, and the like.
  • the selected financial data needs to be filled in the field of the corresponding field of the certification template. If the data format of the financial data is different from the data format of the corresponding field in the certification template, the financial data cannot be in the certification template. If the corresponding operation rule is calculated, the conversion relationship between the data format of the financial data and the data format of the corresponding field in the certification template can be established by setting a compiler, setting the data type variable, and according to the corresponding conversion principle. .
  • the financial data in the database uses an 8-bit data length to store one data, and the data length of the corresponding field field in the forensic template is set to 4 bits, which requires 8-bit data according to the principle of equipotential calculation.
  • the length of the financial data is converted to 4-bit data length data to match the data length of the forensic template.
  • the financial data "00000011” is used to represent the code of a certain bank, and in a certain certification template, the data length of the data format corresponding to the bank code field is 4 bits, and the principle of equal calculation is required to be "00000011". Convert to "0011" to conform to the data format of the field field of the forensic template.
  • the format conversion table is a table for storing conversion relationships between various data formats.
  • the conversion relationship between the data format of the financial data and the data format of the corresponding field field of the forensic template is stored in the format conversion table for converting the subsequent financial data.
  • the financial data and the different data formats corresponding to the corresponding field fields of the certification template are converted, so that different data formats are Financial data can also be certified in the certification template, increasing the reusability of the certification template, improving the efficiency of certification, and reducing the error rate.
  • step S50 that is, according to the preset certification rules
  • the corresponding financial entry information is configured, and after the financial data is verified based on the certification template and the financial entry information
  • the financial data certification method further includes the following steps:
  • S61 Obtain a certification status of the financial data, and the certification status includes an uncertified status and a certified status.
  • the certification status is attribute information indicating whether the financial data has been certified, and the certification status includes an uncertified status and a certified status.
  • the uncertified status indicates that the financial data has not yet been certified, and the status of the certification indicates that the financial data has been certified.
  • the code can be used to indicate the certification status of the financial data.
  • the code can be used to indicate the certification status of the financial data.
  • 0 is used to indicate the uncertified state
  • 1 is used to indicate the certified state.
  • the attribute information of the financial data is marked as the certified status accordingly. For example, if the current financial data is completed, the attribute information of the financial data whose current attribute information is 0 is marked as 1 to distinguish the financial data that has not yet been certified, and to avoid the financial data of the completed certification. Sub-certification.
  • the result of the certification indicates whether the financial data is successfully certified, and the results of the certification include the success of the certification and the failure of the certification. Record the results of all the certifications corresponding to the financial data marked as certified, and store the results of the certification and the corresponding financial data.
  • the code can be used to indicate the result of the certification of the financial data.
  • N is used to indicate the failure of the certification
  • Y is used to indicate the success of the certification.
  • the certification log is the historical data of the whole process of recording the financial data.
  • the certification log includes the number of financial data corresponding to the various verification results, and may also include at least one type of information such as a user account, a certification time, and a target master model and a secondary model invoked by the certification template. Users can check and solve related problems in the certification process based on the information in the certification log.
  • the results of the certification of financial data are counted, and the number of financial data of each certification result is counted.
  • Each piece of certified financial data corresponds to a certification result.
  • the number of relevant data related to the certification result can be counted by sequentially reading the relevant code of the certification result, and counting the number of financial data corresponding to different certification results. To generate a certification log and store it.
  • the financial data by marking the certification status of the financial data, it is convenient to distinguish between the uncertified financial data and the certified financial data; by recording the results of the certification of the financial data of the certified status, the financial data can be grasped.
  • the situation of certification is to timely discover the problem of certification failure in the process of certification; by counting the number of financial data corresponding to different certification results, to generate a certification log, which is convenient for querying relevant problems in the process of certification, and is also beneficial to Subsequent verification of the certificate through the certification log and optimization of the system.
  • FIG. 7 and FIG. 8 show the financial data certification device corresponding to the financial data certification method provided in the first embodiment. For ease of explanation, only the parts related to the present application are shown.
  • the financial data certification device includes: a certification request module 10, a target master model selection module 20, a certification template generation module 30, a financial data screening module 40, and a certification execution module 50.
  • the certification request module 10 is configured to obtain a certification request, and the certification request includes a certification type.
  • the target main model selection module 20 is configured to select a target main model from the main model table according to the type of the certification, and the target main model is a data table structure template corresponding to the certification type.
  • the certification template generating module 30 is configured to acquire a fixed field and an expanded field in the model field table configured by the target main model, determine a secondary model referenced by the expanded field, and a reference field corresponding to the expanded field in the secondary model, and according to the target
  • the fixed field in the master model and the reference field in the secondary model generate a forensic template.
  • the financial data screening module 40 is configured to obtain financial data screening conditions, and obtain financial data required for certification from the financial database according to the financial data screening conditions and the fixed fields and reference fields in the certification template.
  • the certification execution module 50 is configured to obtain financial entry information configured by the user, and validate the financial data based on the certification template and the financial entry information.
  • the financial data certification device further includes: a reference relationship establishing module 21.
  • the reference relationship establishing module 21 is configured to establish a reference relationship between the expanded field and the reference field based on the primary key and the foreign key.
  • the financial data screening module 40 includes a screening item unit 41, a screening logic unit 42, a screening value unit 43, and a field filtering unit 44.
  • the screening item unit 41 is configured to obtain a screening item input by the user, and the screening item includes at least one filtering condition.
  • the filtering logic unit 42 is configured to obtain filtering logic input by the user, and display the filtering value according to the filtering condition and the filtering logic.
  • the screening value unit 43 is configured to obtain a screening value selected by the user, and perform preliminary filtering on the financial database according to the screening value selected by the user to obtain preliminary filtering data.
  • the field filtering unit 44 is configured to filter the preliminary filtered data according to the fields in the certification template to obtain the financial data required for the certification.
  • the financial data certification device further includes: a conversion module 51 and a conversion relationship storage module 52.
  • the conversion module 51 is configured to: if the data format of the financial data is different from the data format of the corresponding field of the corresponding field of the forensic template, the conversion between the data format of the financial data and the data format of the corresponding field in the certification template is established. relationship.
  • the conversion relationship storage module 52 is configured to store the conversion relationship in the format conversion table.
  • the financial data certification device further includes: a certification status acquisition module 61, a certification status status marking module 62, a certification result acquisition module 63, and a certification verification log generation module 64.
  • the certification status obtaining module 61 is configured to obtain a certification status of the financial data, and the certification status includes an uncertified status and a certified status.
  • the certification status marking module 62 is configured to mark the attribute information of the financial data as the certified status if the financial data has been verified.
  • the certification result obtaining module 63 is configured to obtain the certification result of the financial data marked as the certified state.
  • the certification log generating module 64 is configured to count the number of financial data corresponding to different certification results to generate a certification log.
  • each module in the financial data certification device of the embodiment corresponds to the steps corresponding to the financial data certification method in the embodiment. To avoid redundancy, the embodiment is not described in detail. For the process of implementing the respective functions of the modules, refer to the description of the foregoing embodiments, and details are not described herein again.
  • This embodiment provides one or more non-volatile readable storage media having computer readable instructions stored thereon.
  • the computer readable instructions are executed by one or more processors, the one or more processors are executed to implement the financial data certification method as in Embodiment 1. To avoid repetition, no further details are provided herein.
  • the computer readable instructions are executed by one or more processors, the one or more processors implement the functions of the modules/units in the financial data certification device of Embodiment 2, to avoid repetition, Narration.
  • the one or more non-volatile readable storage media storing computer readable instructions may comprise: any entity or device capable of carrying the computer readable instructions, a recording medium, a USB flash drive, a mobile hard disk , disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signals and telecommunications signals.
  • FIG. 9 is a schematic diagram of a computer device according to an embodiment of the present application.
  • computer device 80 of this embodiment includes a processor 81, a memory 82, and computer readable instructions 83 stored in memory 82 and executable on processor 81.
  • the processor 81 executes the steps of the financial data certification method of the first embodiment, such as steps S10 to S50 shown in FIG. 1, when the computer readable instructions 83 are executed.
  • the processor 81 implements the functions of the various modules/units in the various apparatus embodiments described above when the computer readable instructions 83 are executed.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本申请公开了一种财务数据制证方法、装置、计算机设备及存储介质,所述方法包括:获取制证请求,从主模型表中选择目标主模型,获取目标主模型所配置的模型字段表中的固定字段和展开字段,确定展开字段所引用的副模型以及副模型中与展开字段对应的引用字段,并根据固定字段和引用字段生成制证模板;然后根据财务数据筛选条件和制证模板中的固定字段和引用字段从财务数据库中获取制证需要的财务数据;再基于制证模板和财务分录信息对财务数据进行制证。本申请的技术方案通过采用财务数据制证方法对财务数据进行制证,提高了制证模型的扩展性,使得制证过程流程化,标准化,从而实现制证过程的动态化配置,操作灵活,便于扩展。

Description

财务数据制证方法、装置、计算机设备及存储介质
本专利申请以2018年5月11日提交的申请号为201810447210.3,名称为“财务数据制证方法、装置、计算机设备及存储介质”的中国发明专利申请为基础,并要求其优先权。
技术领域
本申请涉及计算机技术领域,尤其涉及一种财务数据制证方法、装置、计算机设备及存储介质。
背景技术
随着计算机技术的发展,越来越多的数据依赖于计算机处理。尤其在财务数据的处理方面,更需要借助计算机的精密计算和快速运算来实现复杂庞大的财务数据的处理。
在财务核算系统中,根据业务需求,每天要针对不同的财务数据进行制证,传统的制证方法是针对每一个数据表结构设计一种制证模型,根据每一个数据表对应的制证模型对财务数据进行制证。财务核算系统中需要运用大量不同的数据表,每一个数据表结构对应一种制证模型,那么大量数据表需要对应大量的制证模型,这种方法使得制证模型的扩展性差,复用性低,从而导致其业务成本和人工成本都很高。
发明内容
本申请提供一种财务数据制证方法、装置、计算机设备及存储介质,以解决财务数据制证方法扩展性差、复用性低的问题。
第一方面,本申请提供一种财务数据制证方法,包括:
获取制证请求,所述制证请求包括制证类型;
根据所述制证类型从主模型表中选择目标主模型,所述目标主模型为所述制证类型对应的数据表结构模板;
获取所述目标主模型所配置的模型字段表中的固定字段和展开字段,确定所述展开字段所引用的副模型以及所述副模型中与所述展开字段对应的引用字段,并根据所述目标主模型的所述固定字段和所述副模型中的所述引用字段生成制证模板;
获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据;
获取用户配置的财务分录信息,基于所述制证模板和所述财务分录信息对所述财务数 据进行制证。
第二方面,本申请提供一种财务数据制证装置,包括:
制证请求模块,用于获取制证请求,所述制证请求包括制证类型;
目标主模型选择模块,用于根据所述制证类型从主模型表中选择目标主模型,所述目标主模型为所述制证类型对应的数据表结构模板;
制证模板生成模块,用于获取所述目标主模型所配置的模型字段表中的固定字段和展开字段,确定所述展开字段所引用的副模型以及所述副模型中与所述展开字段对应的引用字段,并根据所述目标主模型的所述固定字段和所述副模型中的所述引用字段生成制证模板;
财务数据筛选模块,用于获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据;
制证执行模块,用于获取用户配置的财务分录信息,基于所述制证模板和所述财务分录信息对所述财务数据进行制证。
第三方面,本申请提供一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:
获取制证请求,所述制证请求包括制证类型;
根据所述制证类型从主模型表中选择目标主模型,所述目标主模型为所述制证类型对应的数据表结构模板;
获取所述目标主模型所配置的模型字段表中的固定字段和展开字段,确定所述展开字段所引用的副模型以及所述副模型中与所述展开字段对应的引用字段,并根据所述目标主模型的所述固定字段和所述副模型中的所述引用字段生成制证模板;
获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据;
获取用户配置的财务分录信息,基于所述制证模板和所述财务分录信息对所述财务数据进行制证。
第四方面,本申请提供一个或多个存储有计算机可读指令的非易失性可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:
获取制证请求,所述制证请求包括制证类型;
根据所述制证类型从主模型表中选择目标主模型,所述目标主模型为所述制证类型对应的数据表结构模板;
获取所述目标主模型所配置的模型字段表中的固定字段和展开字段,确定所述展开字 段所引用的副模型以及所述副模型中与所述展开字段对应的引用字段,并根据所述目标主模型的所述固定字段和所述副模型中的所述引用字段生成制证模板;
获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据;
获取用户配置的财务分录信息,基于所述制证模板和所述财务分录信息对所述财务数据进行制证。
本申请的一个或多个实施例的细节在下面的附图和描述中提出,本申请的其他特征和优点将从说明书、附图以及权利要求变得明显。
附图说明
为了更清楚地说明本申请的技术方案,下面将对本申请的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请实施例中提供的财务数据制证方法的一实现流程图;
图2是图1中步骤S40的一实现流程图;
图3是本申请实施例中财务数据筛选条件配置的一示意图;
图4是本申请实施例中财务数据筛选条件配置的另一示意图;
图5是本申请实施例中提供的财务数据制证方法的另一实现流程图;
图6是本申请实施例中提供的财务数据制证方法的又一实现流程图;
图7是本申请实施例中提供的财务数据制证装置的一示意图;
图8是本申请实施例中提供的财务数据制证装置的另一示意图;
图9是本申请实施例中提供的计算机设备的一示意图。
具体实施方式
下面将结合本申请中的附图,对实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
实施例1
请参阅图1,图1示出本实施例中财务数据制证方法的实现流程。该财务数据制证方法应用在财务制证中,用于在财务核算系统中引用相应的目标主模型和副模型对相应的财务数据进行制证,以便增加了财务制证系统中制证模型的扩展性和复用性。本实施例中,以应用在保险金融行业的海外估值核算的制证为例进行说明。详述如下:
如图1所示,该财务数据制证方法包括如下步骤:
S10:获取制证请求,制证请求包括制证类型。
其中,制证请求是用于控制系统进入制证的请求。制证请求包括制证类型。例如,在海外估值核算系统中,制证类型包括:回购,基金,债券,存款,理财产品,外汇远期,外汇现货,利率互换,交叉货币互换等。
S20:根据制证类型从主模型表中选择目标主模型,目标主模型为制证类型对应的数据表结构模板。
其中,主模型是制证类型对应的数据表结构模板,主模型对应唯一的表结构,确定了主模型,即确定了该数据表的结构。可以理解地,目标主模型是指根据制证类型从主模型表中选定的主模型。
主模型表存储了系统中涉及到的所有主模型的表名。主模型表中各主模型的表名与存储该表名对应的主模型(即数据表的结构模板)的数据库相关联,通过在表名中存入主模型的ID地址进行关联。
进一步地,系统需要新增主模型时,先在对应的数据库存储新增主模型,即将数据表的结构模板存储在对应的数据库,然后将该主模型的表名新增进主模型表中,将主模型的ID地址存入表名,建立主模型表中的表名与数据库中的主模型之间的关联关系。
在本申请中,系统获取到用户输入的制证请求,根据制证请求中包含的制证类型的信息,从主模型表中,选择出相应制证类型的目标主模型。
进一步地,制证请求可以包括用户通过键盘和/或鼠标等输入设备输入制证请求的方式获取,也可以通过配置相应的选择界面,将系统所有可提供制证的制证类型以选择项的方式呈现,用户使用鼠标和/或触摸屏等输入设备,采用拖拽选择方式或勾选选择方式输入该制证请求,但并不限于此,输入方式可以根据应用的需要进行配置,此处不做限制。
S30:获取目标主模型所配置的模型字段表中的固定字段和展开字段,确定展开字段所引用的副模型以及副模型中与展开字段对应的引用字段,并根据目标主模型的固定字段和副模型中的引用字段生成制证模板。
其中,模型字段表是存储目标主模型中所有字段的表。模型字段表所存储的字段直接关联至目标主模型。目标主模型中的字段包括固定字段和展开字段。固定字段是指该字段在目标主模型里唯一确定,不能引用其他表中相同字段的内容。展开字段是指该字段可以通过其他表中的相同字段引用其他表的内容。副模型中的引用字段是指副模型中被展开字段对应引用的字段。
例如,基金财务持仓表中包含创建时间、创建人、修改时间、基金代码、行情价格以及市场代码等字段,基金基本信息表中包含基金代码、基金名称、基金类别、基金明细类别、基金管理人、发行日期、到期日期等字段。选择基金财务持仓表为目标主模型,基金 财务持仓表中创建时间、修改时间字段,在基金财务持仓表中的指向是唯一的,不能引用其他表中相同字段的字段值,即为固定字段。而基金财务持仓表目标主模型中的基金代码字段与基金基本信息表中的基金代码字段相关联,通过基金财务持仓表中的基金代码字段直接引用基金基本信息表中基金代码字段的内容,则基金代码字段则为目标主模型的展开字段。基于基金代码字段所引用的基金基本信息表中的基金代码字段即为副模型的引用字段。
副模型是指目标主模型中的展开字段所引用的其他数据表结构模板。例如在基金财务持仓表中通过基金代码字段引用的基金基本信息表,则被引用的基金基本信息表为副模型。
制证模板是执行制证时借以生成凭证表的模板,制证模板由目标主模型中的固定字段和副模型中的引用字段生成。例如基金财务持仓表中通过基金代码字段引用了基金基本信息表中的基金代码、基金名称、基金类别等字段,制证时生成的制证模板则包含基金财务持仓表中的固定字段和基金基本信息表中被引用的基金代码、基金名称、基金类别等引用字段。
具体地,副模型预先存储在数据库中,将副模型的ID地址写入到其对应的展开字段中,以建立其引用关系。还可以通过将展开字段与副模型预先设置匹配标识,通过匹配标识建立其引用关系。在展开字段的属性信息中,配置其关联的引用字段,通过在副模型中查找与展开字段的属性信息中对应的引用字段进行引用,根据目标主模型的固定字段和其展开字段所引用的副模型中的引用字段,组建生成制证模板。
在另一具体实施方式中,可以由用户选择是否具体引用某一展开字段对应的副模型,即也可以选择目标主模型中的展开字段不引用其对应的副模型。
S40:获取财务数据筛选条件,根据财务数据筛选条件和制证模板中的固定字段和引用字段从财务数据库中获取制证需要的财务数据。
其中,财务数据筛选条件是用户按照制证的要求,对将要制证的数据表从财务数据库中过滤相应数据的筛选条件。
财务数据库是存储财务数据的数据库,财务数据包括所涉及的流水ID、财务类型、交易事项、财务金额、财务账户等数据。
在一具体实施方式中,获取用户输入的财务数据筛选条件,根据财务数据筛选条件和制证模板中的固定字段和引用字段,就可以过滤出制证所需的财务数据。
S50:获取用户配置的财务分录信息,基于制证模板和财务分录信息对财务数据进行制证。
其中,财务分录信息是指对某项经济业务标明其应借应贷账户及其对应科目的记录信息,财务分录信息包括记帐符号,有关帐户名称、摘要、应借应贷方向和对应科目名称等 要素,财务分录信息是财务数据制证的基本要素之一。
具体地,获取用户按照预设的制证规则配置相应的财务分录信息。预设的制证规则是指用根据要制证的方向,预先设定所遵循的制度规章。例如,转结和结余管理规则、专用基金管理规则、负债管理规则等。
具体地,可以从客户端接收用户配置的财务分录信息,用以配置对应的有关帐户名称、摘要、应借应贷方向、记帐符号和对应科目名称等信息,然后将财务分录信息配置至制证模板表头的相应栏位,再对财务数据进行制证,生成记账凭证。例如,用户配置的财务分录信息包括:有关账户名称为“平安科技集团”,摘要为“交易性金融业务”,对应科目名称为“公允价值变动损益、证券清算款”。获取该财务分录信息,相应地配置至制证模板表头,账户名称为“平安科技集团”,摘要为“交易性金融业务”,借方科目名称为“证券清算款”,贷方科目名称“公允价值变动损益”对制证模板表头的栏位进行补充。
进一步地,获取用户配置的财务分录信息,可以是用户通过客户端输入的相应项目,也可以是在客户端中,用户通过选择预先设置的选项列表,进行配置。
本申请所提供的财务数据制证方法中,通过根据用户的制证请求从主模型表中选择目标主模型,可以非常方便的从数据库中获取目标主模型。根据目标主模型的展开字段,建立目标主模型展开字段与副模型引用字段的关联关系,通过目标主模型的展开字段直接引用副模型中相应的引用字段,合理利用资源,增加了制证模型的复用性,降低了开发的工作量。根据目标主模型的固定字段和副模型中与展开字段对应的引用字段生成制证模板,实现制证过程的动态化配置,操作灵活,便于扩展,解决了数据表结构繁多,开发工作量大且制证模型复用性低的问题。根据用户的财务数据筛选条件,直接从财务数据库中过滤出制证所需要的财务数据,实现数据筛选的智能化,方便用户从数量庞大的数据库中快速筛选出所需要的数据,提高制证效率。通过用户配置的财务分录信息,将财务数据填入制证模板并按照财务分录信息进行自动化制证,使得制证过程流程化、标准化,减少财务制证的错误率。该财务数据制证方法可重复利用主模型和副模型,实现对多种不同数据表进行制证,更适应于企业的发展。
在一具体实施方式中,步骤S30中,即模型字段表中包括外键,外键为展开字段,副模型包括主键,主键为引用字段,确定展开字段所引用的副模型以及副模型中与展开字段对应的引用字段之前,该财务数据制证方法还包括:
基于主键和外键建立展开字段和引用字段的引用关系。
其中,主键(primary key)是能确定一条记录的唯一标识。比如,一条记录包括身份证号、姓名、年龄,身份证号是唯一能确定个人信息的,其他都可能有重复,所以,身份证号是主键。外键(foreign key)用于与另一张表的关联,是能确定另一张表记录的字段,用于保持数据的一致性。比如,A表中的一个字段,是B表的主键,那就可以是A表的外键。
例如,基金财务持仓表和基金基本信息表中存在公共字段“基金代码”。基金基本信息表中的“基金代码”字段设置为基金基本信息表的主键,唯一地标识基金基本信息表中的基金代码记录。以基金财务持仓表为目标主模型,其所配置的模型字段表中,“基金代码”字段为展开字段,设置为基金财务持仓表的外键。基于模型字段表中“基金代码”的外键,查找“基金代码”对应的主键,通过主键和外键的匹配,可以查找到基金基本信息表中存在“基金代码”的主键,根据外键和主键之间的联系关系,从而使得基金财务持仓表可以引用基金基本信息表中的“基金代码”字段。
在本申请中,以目标主模型的模型字段表中的展开字段作为外键来寻找主键对应的引用字段。将目标主模型的外键去匹配副模型的主键,使得可以在目标主模型中通过展开字段直接引用副模型的引用字段。
引用副模型的引用字段时,扫描目标主模型所配置的模型字段表中的所有展开字段,然后用这个展开字段去匹配副模型的引用字段,依据相匹配的外键和主键的关联关系,引用对应副模型的引用字段。
进一步地,主键是可选的,并且可在CREATE TABLE或ALTER TABLE语句中定义。
在本实施方式中,通过主键和外键建立展开字段和引用字段的引用关系,从而在制证时可以直接通过目标主模型展开字段的外键引用与外键相匹配的主键对应的副模型,增加了模型的复用性,减少了开发的工作量,且使得制证模板的配置更灵活,便于扩展。通过主键和外键建立目标主模型和副模型中展开字段与引用字段的相关联系,有效的维护了目标主模型和副模型的数据完整性,实现数据实时更新的及时性。
在一具体实施方式中,如图2所示,步骤S40中,即获取财务数据筛选条件,根据财务数据筛选条件和制证模板中的固定字段和引用字段从财务数据库中获取制证需要的财务数据,具体包括如下步骤:
S41;获取用户输入的筛选项目,筛选项目包括至少一个过滤条件。
其中,目标主模型和副模型都对应有多个项目,筛选项目是用于从目标主模型和副模型下的项目中筛选出所需项目的关键字段。
过滤条件是目标主模型和副模型对应的项目中用户选择的项目名称。
为了更准确的筛选出所需项目的数据,筛选目标主模型和所有副模型的筛选项目以获得过滤条件,通过目标主模型和副模型的多个过滤条件以过滤出精准的数据。
S42:获取用户输入的筛选逻辑,根据过滤条件和筛选逻辑显示筛选值。
其中,筛选逻辑是将过滤条件与筛选值进行关联的逻辑联结词,筛选逻辑包括<、>、=、IN等逻辑计算符,结合筛选项目输入的过滤条件用以显示相应的筛选值。
S43;获取用户选择的筛选值,根据用户选择的筛选值对财务数据库进行初步过滤,得 到初步过滤数据。
其中,筛选值是指筛选项目所对应的明细分类,用以定向筛选出相应明细分类的财务数据。
具体地,通过用户选择的筛选值,确定筛选项目下的明细分类,对数据库中的数据进行初步过滤,可以得到基本符合制证所需的初步过滤数据。
S44:根据制证模板中的字段,对初步过滤数据进行筛选,得到制证需要的财务数据。
具体地,根据制证模板中的字段,对初步过滤数据进行筛选,筛选出制证模板中的字段对应的所有财务数据,逐条将制证所需的财务数据进行制证。
在一具体实施方式中,如图3和图4所示,选定的目标主模型为“债券交易”,副模型为“财务账户表”和“市场基本信息表”,用户选择“债券交易”目标主模型的筛选条件为“交易类别”,筛选逻辑为“=”,根据“交易类别”的过滤条件与“=”的筛选逻辑显示出一系列筛选值包括“卖出、转入、转出......手续费返还”等,其中,用户选择的筛选值为“手续费返还”。用户选择“财务账户表”副模型的筛选条件为“国际会计分类”,选择的筛选逻辑为“=”,根据“国际会计分类”的过滤条件与“=”的筛选逻辑,从显示的筛选值中选择“托管场内(HFT)”。用户选择“市场基本信息表”副模型的筛选条件为“市场代码”,选择的筛选逻辑为“IN”,根据“市场代码”的过滤条件与“IN”的筛选逻辑,从显示的筛选值中选择“(in)场内市场”;然后根据用户选择的“交易类别=手续费返还、国际会计分类=HFT、市场代码IN场内市场”的筛选值对财务数据库进行初步过滤,以得到初步过滤数据,然后再根据制证模板中的字段,对初步过滤数据进行筛选,筛选出制证得到制证需要的财务数据。
进一步地,可以采用下拉列表的方式,将筛选项目、筛选逻辑以及筛选值的所有选项存储在对应的下拉列表中。在获取用户输入的筛选项目、筛选逻辑以及筛选值时,由用户从相应的下拉列表中直接选择相应的选项进行组合,不需要用户每次筛选时,都需要重新输入,使得操作更方便,便于维护,也限定了系统能够提供的筛选条件,避免用户输入系统不支持的筛选条件。
用户可以通过配置界面点击相应的选项以选择相应的筛选条件选项,或者也可以通过使用鼠标勾选的选择方式选择相应的筛选条件选项,但并不限于此,选择方式可以根据应用的需要进行配置,此处不做限制。
在本实施方式中,通过筛选逻辑确定筛选项目的筛选值,以根据筛选值过滤出初步过滤数据,能够在数据库庞大的数据量中确定筛选范围,减少了筛选数据的工作量;通过制证模板中的字段,对初步过滤数据进一步筛选,得到制证所需的财务数据,减少了人工筛选的工作任务,也降低了错误率,使得财务制证更加规范化、流程化。
在一具体实施方式中,如图5所示,步骤S40之后,即获取财务数据筛选条件,根据财务数据筛选条件和制证模板中的固定字段和引用字段从财务数据库中获取制证需要的 财务数据之后,还包括如下步骤:
S51:若财务数据的数据格式与制证模板相应字段对应栏位的数据格式不同,则建立财务数据的数据格式与制证模板中相应字段对应栏位的数据格式之间的转换关系。
其中,数据格式是数据保存在文件或记录中的编排格式,可为数值、字符或二进制数等形式。数据格式由数据类型及数据长度来描述。
转换关系是指不同数据格式之间进行转换依据的规则。例如进行数据长度转换的等位计算原则、进行不同进制之间转换的进制转换原则等。
制证时需要将筛选出来的财务数据填入制证模板的相应字段的栏位,若财务数据的数据格式与其制证模板中对应字段的数据格式不同,则财务数据无法在制证模板中按照相应运算规则进行计算,则可以通过设置一个编译程序,设定数据类型变量,按照相应的转换原则,建立财务数据的数据格式与制证模板中相应字段对应栏位的数据格式之间的转换关系。
具体地,数据库中的财务数据使用8位的数据长度来存储一个数据,而制证模板中相应字段栏位的数据长度设定为4位,这就需要按照等位计算原则,将8位数据长度的财务数据转换为4位数据长度的数据以匹配制证模板的数据长度。例如,数据库中用财务数据“00000011”表示某一银行的代码,而在某一制证模板中,银行代码字段所对应数据格式的数据长度是4位,就需要通过等位计算原则将“00000011”转换为“0011”以符合制证模板的字段栏位的数据格式。
S52:将转换关系存入格式转换表中。
其中,格式转换表是用于存储各种不同数据格式之间的转换关系的表。
具体地,将财务数据的数据格式与其制证模板的对应字段栏位的数据格式的转换关系存储在格式转换表中,用于对后续的财务数据进行转换。
在本实施方式中,通过建立财务数据与制证模板相应字段栏位的数据格式转换的转换关系,将财务数据与制证模板相应字段栏位对应的不同数据格式进行转换,使得不同数据格式的财务数据也能够在制证模板中进行制证,增加了制证模板的复用性,提高了制证效率,也减少了错误率。
在一具体实施方式中,如图6所示,步骤S50之后,即根据预设的制证规则配置对应的财务分录信息,基于制证模板和财务分录信息对财务数据进行制证之后,该财务数据制证方法还包括如下步骤:
S61:获取财务数据的制证状态,制证状态包括未制证状态和已制证状态。
其中,制证状态是标明该财务数据是否经过制证的属性信息,制证状态包括未制证状态和已制证状态。未制证状态表示该财务数据还未被制证,已制证状态表示该财务数据已经制证。
具体地,可以用代码来表示财务数据的制证状态,例如,在财务数据的属性信息中,用0表示未制证状态,用1表示已制证状态。
S62:若财务数据已进行制证,则将财务数据的属性信息标记为已制证状态。
具体地,系统将筛选出来的财务数据制证完毕后,相应地将该条财务数据的属性信息标记为已制证状态。例如,若当前的财务数据完成了制证,则将当前属性信息为0的财务数据的属性信息标记为1,以区分还未进行制证的财务数据,避免将制证完毕的财务数据进行二次制证。
S63:获取标记为已制证状态的财务数据的制证结果。
具体地,制证结果表示该财务数据制证是否成功,制证结果包括制证成功和制证失败。记录所有标记为已制证状态的财务数据对应的制证结果,将制证结果与对应的财务数据存储。
进一步地,可以用代码来表示财务数据的制证结果,例如,在制证过程中,用N表示制证失败,用Y表示制证成功。
S64:统计不同制证结果对应的财务数据的条数,以生成制证日志。
其中,制证日志是记录对财务数据进行制证操作全过程的历史数据。制证日志中包括统计到的各种制证结果对应的财务数据条数,还可以包括用户账号、制证时间和制证模板所调用的目标主模型和副模型等的至少一种信息。用户可以根据制证日志的信息来排查、解决制证过程中的相关问题。
具体地,对财务数据的制证结果进行统计,统计出各制证结果的财务数据条数。每一条已制证的财务数据都对应一个制证结果,可以通过依次读取制证结果的相关代码,统计制证结果相关代码的数量,以统计不同制证结果对应的财务数据的条数,以生成制证日志并进行存储。
在本实施方式中,通过标记财务数据的制证状态,便于区分未制证的财务数据和已制证的财务数据;通过记录已制证状态的财务数据的制证结果,可以掌握财务数据的制证情况,以便及时发现制证过程中制证失败的问题;通过统计不同制证结果对应的财务数据的条数,以生成制证日志,便于方便查询制证过程中的相关问题,也利于后续通过制证日志查询制证情况及对系统进行优化。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施过程构成任何限定。
实施例2
对应于实施例1中的财务数据制证方法,图7和图8示出了与实施例1提供的财务数据制证方法一一对应的财务数据制证装置。为了便于说明,仅示出了与本申请相关的部分。
请参阅图7,该财务数据制证装置包括:制证请求模块10、目标主模型选择模块20、 制证模板生成模块30、财务数据筛选模块40和制证执行模块50。
制证请求模块10,用于获取制证请求,制证请求包括制证类型。
目标主模型选择模块20,用于根据制证类型从主模型表中选择目标主模型,目标主模型为制证类型对应的数据表结构模板。
制证模板生成模块30,用于获取目标主模型所配置的模型字段表中的固定字段和展开字段,确定展开字段所引用的副模型以及副模型中与展开字段对应的引用字段,并根据目标主模型的固定字段和副模型中的引用字段生成制证模板。
财务数据筛选模块40,用于获取财务数据筛选条件,根据财务数据筛选条件和制证模板中的固定字段和引用字段从财务数据库中获取制证需要的财务数据。
制证执行模块50,用于获取用户配置的财务分录信息,基于制证模板和财务分录信息对财务数据进行制证。
优选地,请参阅图8,该财务数据制证装置还包括:引用关系建立模块21。
引用关系建立模块21,用于基于主键和外键建立展开字段和引用字段的引用关系。
优选地,财务数据筛选模块40包括:筛选项目单元41、筛选逻辑单元42、筛选值单元43和字段过滤单元44。
筛选项目单元41,用于获取用户输入的筛选项目,筛选项目包括至少一个过滤条件。
筛选逻辑单元42,用于获取用户输入的筛选逻辑,根据过滤条件和筛选逻辑显示筛选值。
筛选值单元43,用于获取用户选择的筛选值,根据用户选择的筛选值对财务数据库进行初步过滤,得到初步过滤数据。
字段过滤单元44,用于根据制证模板中的字段,对初步过滤数据进行筛选,得到制证需要的财务数据。
优选地,该财务数据制证装置还包括:转换模块51和转换关系存储模块52。
转换模块51,用于若财务数据的数据格式与制证模板相应字段对应栏位的数据格式不同,则建立财务数据的数据格式与制证模板中相应字段对应栏位的数据格式之间的转换关系。
转换关系存储模块52,用于将转换关系存入格式转换表中。
优选地,该财务数据制证装置还包括:制证状态获取模块61、制证状态标记模块62、制证结果获取模块63和制证日志生成模块64。
制证状态获取模块61,用于获取财务数据的制证状态,制证状态包括未制证状态和已制证状态。
制证状态标记模块62,用于若财务数据已进行制证,则将财务数据的属性信息标记为已制证状态。
制证结果获取模块63,用于获取标记为已制证状态的财务数据的制证结果。
制证日志生成模块64,用于统计不同制证结果对应的财务数据的条数,以生成制证日志。
本实施例财务数据制证装置中各模块的实现功能与实施例中财务数据制证方法对应的步骤一一对应,为避免赘述,本实施例不一一详述。各模块实现各自功能的过程,具体可参考前述实施例的描述,此处不再赘述。
实施例3
本实施例提供一个或多个存储有计算机可读指令的非易失性可读存储介质。该计算机可读指令被一个或多个处理器执行时,使得该一个或多个处理器执行如实现实施例1中的财务数据制证方法,为避免重复,这里不再赘述。或者,该计算机可读指令被一个或多个处理器执行时,使得该一个或多个处理器实现实施例2中财务数据制证装置中各模块/单元的功能,为避免重复,这里不再赘述。
可以理解地,所述一个或多个存储有计算机可读指令的非易失性可读存储介质可以包括:能够携带所述计算机可读指令的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号和电信信号等。
实施例4
图9是本申请一实施例提供的计算机设备的示意图。如图9所示,该实施例的计算机设备80包括:处理器81、存储器82以及存储在存储器82中并可在处理器81上运行的计算机可读指令83。处理器81执行计算机可读指令83时实现上述实施例1中财务数据制证方法的步骤,例如图1所示的步骤S10至S50。或者,处理器81执行计算机可读指令83时实现上述各装置实施例中各模块/单元的功能。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。
上述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种财务数据制证方法,其特征在于,所述财务数据制证方法包括:
    获取制证请求,所述制证请求包括制证类型;
    根据所述制证类型从主模型表中选择目标主模型,所述目标主模型为所述制证类型对应的数据表结构模板;
    获取所述目标主模型所配置的模型字段表中的固定字段和展开字段,确定所述展开字段所引用的副模型以及所述副模型中与所述展开字段对应的引用字段,并根据所述目标主模型的所述固定字段和所述副模型中的所述引用字段生成制证模板;
    获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据;
    获取用户配置的财务分录信息,基于所述制证模板和所述财务分录信息对所述财务数据进行制证。
  2. 如权利要求1所述的财务数据制证方法,其特征在于,所述模型字段表中包括外键,所述外键为所述展开字段,所述副模型包括主键,所述主键为所述引用字段,所述确定所述展开字段所引用的副模型以及所述副模型中与所述展开字段对应的引用字段之前,还包括:
    基于所述主键和所述外键建立所述展开字段和所述引用字段的引用关系。
  3. 如权利要求1所述的财务数据制证方法,其特征在于,所述获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据,包括:
    获取用户输入的筛选项目,所述筛选项目包括至少一个过滤条件;
    获取用户输入的筛选逻辑,根据所述过滤条件和所述筛选逻辑显示筛选值;
    获取用户选择的筛选值,根据用户选择的所述筛选值对所述财务数据库进行初步过滤,得到初步过滤数据;
    根据所述制证模板中的字段,对所述初步过滤数据进行筛选,得到制证需要的财务数据。
  4. 如权利要求1所述的财务数据制证方法,其特征在于,所述获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据,之后还包括:
    若所述财务数据的数据格式与所述制证模板相应字段对应栏位的数据格式不同,则建立所述财务数据的数据格式与所述制证模板中相应字段对应栏位的数据格式之间的转换关系;
    将所述转换关系存入格式转换表中。
  5. 如权利要求1所述的财务数据制证方法,其特征在于,所述根据预设的制证规则配置对应的财务分录信息,基于所述制证模板和所述财务分录信息对所述财务数据进行制证,之后还包括:
    获取所述财务数据的制证状态,所述制证状态包括未制证状态和已制证状态;
    若所述财务数据已进行制证,则将所述财务数据的属性信息标记为已制证状态;
    获取标记为已制证状态的财务数据的制证结果;
    统计不同制证结果对应的财务数据的条数,以生成制证日志。
  6. 一种财务数据制证装置,其特征在于,包括:
    制证请求模块,用于获取制证请求,所述制证请求包括制证类型;
    目标主模型选择模块,用于根据所述制证类型从主模型表中选择目标主模型,所述目标主模型为所述制证类型对应的数据表结构模板;
    制证模板生成模块,用于获取所述目标主模型所配置的模型字段表中的固定字段和展开字段,确定所述展开字段所引用的副模型以及所述副模型中与所述展开字段对应的引用字段,并根据所述目标主模型的所述固定字段和所述副模型中的所述引用字段生成制证模板;
    财务数据筛选模块,用于获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据;
    制证执行模块,用于获取用户配置的财务分录信息,基于所述制证模板和所述财务分录信息对所述财务数据进行制证。
  7. 如权利要求6所述的财务数据制证装置,其特征在于,所述模型字段表中包括外键,所述外键为所述展开字段,所述副模型包括主键,所述主键为所述引用字段,所述财务数据制证装置还包括:
    引用关系建立模块,用于基于所述主键和所述外键建立展开字段和引用字段的引用关系。
  8. 如权利要求6所述的财务数据制证装置,其特征在于,所述财务数据筛选模块包括:
    筛选项目单元,用于获取用户输入的筛选项目,所述筛选项目包括至少一个过滤条件;
    筛选逻辑单元,用于获取用户输入的筛选逻辑,根据所述过滤条件和所述筛选逻辑显示筛选值;
    筛选值单元,用于获取用户选择的筛选值,根据用户选择的所述筛选值对所述财务数据库进行初步过滤,得到初步过滤数据;
    字段过滤单元,用于根据所述制证模板中的字段,对所述初步过滤数据进行筛选,得到制证需要的财务数据。
  9. 如权利要求6所述的财务数据制证装置,其特征在于,所述财务数据制证装置还包括:
    转换模块,用于若所述财务数据的数据格式与所述制证模板相应字段对应栏位的数据格式不同,则建立所述财务数据的数据格式与所述制证模板中相应字段对应栏位的数据格式之间的转换关系;
    转换关系存储模块,用于将所述转换关系存入格式转换表中。
  10. 如权利要求6所述的财务数据制证装置,其特征在于,所述财务数据制证装置还包括:
    制证状态获取模块,用于获取所述财务数据的制证状态,所述制证状态包括未制证状态和已制证状态;
    制证状态标记模块,用于若所述财务数据已进行制证,则将所述财务数据的属性信息标记为已制证状态;
    制证结果获取模块,用于获取标记为已制证状态的财务数据的制证结果;
    制证日志生成模块,用于统计不同制证结果对应的财务数据的条数,以生成制证日志。
  11. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:
    获取制证请求,所述制证请求包括制证类型;
    根据所述制证类型从主模型表中选择目标主模型,所述目标主模型为所述制证类型对应的数据表结构模板;
    获取所述目标主模型所配置的模型字段表中的固定字段和展开字段,确定所述展开字段所引用的副模型以及所述副模型中与所述展开字段对应的引用字段,并根据所述目标主模型的所述固定字段和所述副模型中的所述引用字段生成制证模板;
    获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据;
    获取用户配置的财务分录信息,基于所述制证模板和所述财务分录信息对所述财务数据进行制证。
  12. 如权利要求11所述的计算机设备,其特征在于,所述模型字段表中包括外键,所述外键为所述展开字段,所述副模型包括主键,所述主键为所述引用字段,所述确定所述展开字段所引用的副模型以及所述副模型中与所述展开字段对应的引用字段之前,所述处理器执行所述计算机可读指令时还实现如下步骤:
    基于所述主键和所述外键建立所述展开字段和所述引用字段的引用关系。
  13. 如权利要求11所述的计算机设备,其特征在于,所述获取财务数据筛选条件,根 据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据,包括:
    获取用户输入的筛选项目,所述筛选项目包括至少一个过滤条件;
    获取用户输入的筛选逻辑,根据所述过滤条件和所述筛选逻辑显示筛选值;
    获取用户选择的筛选值,根据用户选择的所述筛选值对所述财务数据库进行初步过滤,得到初步过滤数据;
    根据所述制证模板中的字段,对所述初步过滤数据进行筛选,得到制证需要的财务数据。
  14. 如权利要求11所述的计算机设备,其特征在于,所述获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据之后,所述处理器执行所述计算机可读指令时还实现如下步骤:
    若所述财务数据的数据格式与所述制证模板相应字段对应栏位的数据格式不同,则建立所述财务数据的数据格式与所述制证模板中相应字段对应栏位的数据格式之间的转换关系;
    将所述转换关系存入格式转换表中。
  15. 如权利要求11所述的计算机设备,其特征在于,所述根据预设的制证规则配置对应的财务分录信息,基于所述制证模板和所述财务分录信息对所述财务数据进行制证之后,所述处理器执行所述计算机可读指令时还实现如下步骤:
    获取所述财务数据的制证状态,所述制证状态包括未制证状态和已制证状态;
    若所述财务数据已进行制证,则将所述财务数据的属性信息标记为已制证状态;
    获取标记为已制证状态的财务数据的制证结果;
    统计不同制证结果对应的财务数据的条数,以生成制证日志。
  16. 一个或多个存储有计算机可读指令的非易失性可读存储介质,其特征在于,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行如下步骤:
    获取制证请求,所述制证请求包括制证类型;
    根据所述制证类型从主模型表中选择目标主模型,所述目标主模型为所述制证类型对应的数据表结构模板;
    获取所述目标主模型所配置的模型字段表中的固定字段和展开字段,确定所述展开字段所引用的副模型以及所述副模型中与所述展开字段对应的引用字段,并根据所述目标主模型的所述固定字段和所述副模型中的所述引用字段生成制证模板;
    获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据;
    获取用户配置的财务分录信息,基于所述制证模板和所述财务分录信息对所述财务数据进行制证。
  17. 如权利要求16所述的非易失性可读存储介质,其特征在于,所述模型字段表中包括外键,所述外键为所述展开字段,所述副模型包括主键,所述主键为所述引用字段,所述确定所述展开字段所引用的副模型以及所述副模型中与所述展开字段对应的引用字段之前,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:
    基于所述主键和所述外键建立所述展开字段和所述引用字段的引用关系。
  18. 如权利要求16所述的非易失性可读存储介质,其特征在于,所述获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据,包括:
    获取用户输入的筛选项目,所述筛选项目包括至少一个过滤条件;
    获取用户输入的筛选逻辑,根据所述过滤条件和所述筛选逻辑显示筛选值;
    获取用户选择的筛选值,根据用户选择的所述筛选值对所述财务数据库进行初步过滤,得到初步过滤数据;
    根据所述制证模板中的字段,对所述初步过滤数据进行筛选,得到制证需要的财务数据。
  19. 如权利要求16所述的非易失性可读存储介质,其特征在于,所述获取财务数据筛选条件,根据所述财务数据筛选条件和所述制证模板中的所述固定字段和所述引用字段从财务数据库中获取制证需要的财务数据之后,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:
    若所述财务数据的数据格式与所述制证模板相应字段对应栏位的数据格式不同,则建立所述财务数据的数据格式与所述制证模板中相应字段对应栏位的数据格式之间的转换关系;
    将所述转换关系存入格式转换表中。
  20. 如权利要求16所述的非易失性可读存储介质,其特征在于,所述根据预设的制证规则配置对应的财务分录信息,基于所述制证模板和所述财务分录信息对所述财务数据进行制证之后,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器还执行如下步骤:
    获取所述财务数据的制证状态,所述制证状态包括未制证状态和已制证状态;
    若所述财务数据已进行制证,则将所述财务数据的属性信息标记为已制证状态;
    获取标记为已制证状态的财务数据的制证结果;
    统计不同制证结果对应的财务数据的条数,以生成制证日志。
PCT/CN2018/094398 2018-05-11 2018-07-04 财务数据制证方法、装置、计算机设备及存储介质 WO2019214029A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810447210.3 2018-05-11
CN201810447210.3A CN108717429A (zh) 2018-05-11 2018-05-11 财务数据制证方法、装置、计算机设备及存储介质

Publications (1)

Publication Number Publication Date
WO2019214029A1 true WO2019214029A1 (zh) 2019-11-14

Family

ID=63899720

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/094398 WO2019214029A1 (zh) 2018-05-11 2018-07-04 财务数据制证方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN108717429A (zh)
WO (1) WO2019214029A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358943B (zh) * 2018-11-09 2022-03-22 金色熊猫有限公司 页面配置方法及装置、电子设备、存储介质
CN109725898B (zh) * 2018-11-30 2024-05-28 平安科技(深圳)有限公司 凭证规则的配置方法、装置、计算机设备及存储介质
CN109785092A (zh) * 2018-12-10 2019-05-21 平安科技(深圳)有限公司 会计凭证生成管理方法、装置及计算机设备、存储介质
CN109785093A (zh) * 2018-12-11 2019-05-21 平安科技(深圳)有限公司 基于估值系统的制证方法、装置、计算机设备及存储介质
CN109767072A (zh) * 2018-12-14 2019-05-17 深圳壹账通智能科技有限公司 制证数据生成方法、装置、计算机设备和存储介质
CN110796531A (zh) * 2019-10-29 2020-02-14 浪潮云信息技术有限公司 基于web的记账凭证生成方法及系统
CN111198873B (zh) * 2020-01-08 2023-07-07 中国建设银行股份有限公司 数据处理的方法和装置
CN111625864A (zh) * 2020-05-28 2020-09-04 北京思特奇信息技术股份有限公司 一种基于电信业务数据明细建立方法及系统
CN111986009A (zh) * 2020-06-30 2020-11-24 山东浪潮通软信息科技有限公司 一种基于弹性域的财务查询报表生成方法及设备、介质
CN113656430B (zh) * 2021-08-12 2024-02-27 上海二三四五网络科技有限公司 一种批量表数据自动扩充的控制方法及装置
CN114022264A (zh) * 2021-11-05 2022-02-08 平安科技(深圳)有限公司 生成凭证的方法、装置、设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169156A (zh) * 2016-09-08 2016-11-30 广东源恒软件科技有限公司 一种车辆购置税的自动核算方法及系统
CN107657516A (zh) * 2016-07-24 2018-02-02 平安科技(深圳)有限公司 生成凭证的方法及财务服务器
CN107679819A (zh) * 2017-06-12 2018-02-09 平安科技(深圳)有限公司 财务数据处理方法、装置、计算机设备和存储介质

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107657516A (zh) * 2016-07-24 2018-02-02 平安科技(深圳)有限公司 生成凭证的方法及财务服务器
CN106169156A (zh) * 2016-09-08 2016-11-30 广东源恒软件科技有限公司 一种车辆购置税的自动核算方法及系统
CN107679819A (zh) * 2017-06-12 2018-02-09 平安科技(深圳)有限公司 财务数据处理方法、装置、计算机设备和存储介质

Also Published As

Publication number Publication date
CN108717429A (zh) 2018-10-30

Similar Documents

Publication Publication Date Title
WO2019214029A1 (zh) 财务数据制证方法、装置、计算机设备及存储介质
US11443390B1 (en) Systems and user interfaces for dynamic and interactive table generation and editing based on automatic traversal of complex data structures and incorporation of metadata mapped to the complex data structures
US10803033B2 (en) Systems and methods for enhanced mapping and classification of data
CN110162516B (zh) 一种基于海量数据处理的数据治理的方法及系统
CN104391934A (zh) 数据校验方法和装置
US10529017B1 (en) Automated business plan underwriting for financial institutions
US20210065304A1 (en) Contract automation with blockchain based interaction and recording
WO2020259035A1 (zh) 一种业务代码的生成、执行方法及装置
US20190220171A1 (en) Globally scalable solution
US10614130B1 (en) Content recommendation using layered types
CN108460068A (zh) 报表导入导出的方法、装置、存储介质及终端
US8707262B2 (en) Code scoring
CA3092213C (en) Matching adopting users and contributing users for decentralized software localization
US11379191B2 (en) Presentation oriented rules-based technical architecture display framework
JP6598973B2 (ja) 分散コンピューティングシステムにおけるデータフローの追跡
US9342541B1 (en) Presentation oriented rules-based technical architecture display framework (PORTRAY)
CN112001791A (zh) 可再生能源电力消纳量交易系统及方法
CN110782330A (zh) 一种财务云平台记账凭证的配置方法
CN114416805B (zh) 数据核对方法、装置、计算机设备和存储介质
US10181144B2 (en) Efficient resource usage by interruption of interconnected processes
CN116167852B (zh) 资金流向数据处理方法及装置
JP6400191B2 (ja) アプリケーションデータモデルに従って指定されたオブジェクトを更新するよう設計されたルールを実現する命令セットの生成
CN114612221A (zh) 现金管理在线审批签约方法及装置
CN118052555A (zh) 动态主管授权方法、装置、电子设备及存储介质
CN117237058A (zh) 一种订单处理方法及相关设备

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03.03.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18917991

Country of ref document: EP

Kind code of ref document: A1