A method, device and medium for generating financial query reports based on elastic domain

Through the method based on elastic fields, users can dynamically create and expand the accounting dimension table and chart of accounts in financial software, solving the problem of insufficient flexibility in accounting dimensions of existing financial software, and realizing unlimited expansion and diversified business scenarios. coverage, reducing development costs and cycles.

CN111986009BActive Publication Date: 2024-08-30INSPUR GENERSOFT CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010610009.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-30
Publication Date
2024-08-30
Estimated Expiration
2040-06-30

AI Technical Summary

Technical Problem

Existing financial software has low flexibility in accounting dimensions and cannot be infinitely expanded. As a result, it cannot meet the needs of diverse business scenarios and requires software developers to carry out secondary development, which consumes a lot of manpower and material resources.

Method used

Using a method based on elastic fields, the accounting dimension table and chart of accounts are created through user operations, linked to the entity model table and preliminary business table, a formal business table is generated, and the key-value pair data is stored in a field to achieve new Addition and expansion of accounting dimensions.

Benefits of technology

It achieves flexible expansion of accounting dimensions, meets the diverse needs of users, improves the business coverage of the product, reduces secondary development costs, and shortens the development cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111986009B
    Figure CN111986009B
Patent Text Reader

Abstract

The present application discloses a method, device and medium for generating financial query reports based on elastic domains, which include: creating an accounting dimension table according to user operations. Associating the accounting dimension table to a pre-created entity model table so that each accounting dimension in the accounting dimension is associated with a corresponding entity table. Associating the pre-created chart of accounts to the accounting dimension table. After receiving a business table entry instruction, displaying the pre-created preliminary business table on a user interface. The preliminary business table is associated with the chart of accounts and the accounting dimension table, respectively. According to the user's operation, determining the accounting subject and accounting dimension selected by the user, and adding the accounting subject and accounting dimension selected by the user to the preliminary business table to generate a formal business table. After receiving a formal business table storage instruction, determining the key-value pair data corresponding to each accounting information in the formal business table. All key-value pair data of the formal business table are stored in a field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device and medium for generating a financial query report based on an elastic domain. Background Art

[0002] With the continuous development of science and technology and the popularization of enterprise informatization, more and more enterprises are aware of the importance of enterprise informatization, especially in enterprise financial management. In order to realize the informatization of enterprise financial management, the existing technology has proposed corresponding financial software.

[0003] When users are not satisfied with the accounting dimensions in the existing financial software, the accounting dimensions need to be modified or expanded. However, the existing financial software usually presets projects as accounting dimensions during the development phase. This "preset" is essentially a hard-coded method, which means that modification or expansion is not allowed. Of course, in order to solve the above problems, some existing financial software also adjusts within a certain range of magnitude through reservation (i.e., reserved extension fields in the background) to improve flexibility to a certain extent. However, this flexibility has certain limitations and requires software developers to carry out secondary development of the software, which consumes a lot of manpower and material resources. Moreover, this method cannot cover the needs of all business scenarios and cannot achieve true flexibility and unlimited expansion. Summary of the invention

[0004] The embodiments of this specification provide a method, device and medium for generating financial query reports based on elastic domains, which are used to solve the following technical problems in the prior art: the existing financial software has low flexibility, cannot infinitely expand the corresponding accounting dimensions, and has a relatively single business scenario.

[0005] The embodiments of this specification adopt the following technical solutions:

[0006] A method for generating a financial query report based on an elastic domain, comprising:

[0007] Creating an accounting dimension table according to user operations, where each accounting dimension in the accounting dimension table corresponds to an entity table;

[0008] Associating the accounting dimension table with a pre-created entity model table, the entity model table being used to store basic information of all entity tables in the system, so that each accounting dimension in the accounting dimension is associated with a corresponding entity table; and

[0009] Associating the pre-created chart of accounts with the accounting dimension table; after receiving the business table entry instruction, displaying the pre-created preliminary business table on the user interface; the preliminary business table is associated with the chart of accounts and the accounting dimension table respectively;

[0010] According to the user's operation, determine the accounting subject and accounting dimension selected by the user, and add the accounting subject and accounting dimension selected by the user to the preliminary business table to generate a formal business table;

[0011] After receiving the formal business table storage instruction, determining the key-value pair data corresponding to each accounting information in the formal business table; the key-value pair data is used to represent the corresponding accounting information in the formal business table;

[0012] All key-value pair data of the formal business table are stored in one field.

[0013] In some embodiments of the present application, associating the pre-created chart of accounts with the accounting dimension table specifically includes:

[0014] Based on the accounting subjects in the chart of accounts, determining the accounting dimensions corresponding to the accounting subjects;

[0015] According to the business type of the user, determining the accounting dimension that matches the business type of the user from the accounting dimensions corresponding to the accounting subjects;

[0016] Creating a sub-table of the chart of accounts according to the accounting dimension matching the user business type;

[0017] The chart of accounts is associated with the secondary table, and the secondary table is associated with a corresponding accounting dimension table, so that the pre-created chart of accounts is associated with the accounting dimension table.

[0018] In some embodiments of the present application, generating a formal business table specifically includes:

[0019] According to the user's operation, the corresponding accounting subject is determined to be entered into the preliminary business table and displayed, and the subsidiary table corresponding to the accounting subject is displayed to the user through the user interface;

[0020] Determining the sub-table selected by the user according to the user's operation, and displaying the sub-table to the user through the user interface;

[0021] Based on the user's operation, the accounting dimensions in the subsidiary table selected by the user are determined, and the selected accounting dimensions are written into the preliminary business table and displayed.

[0022] In some embodiments of the present application, the chart of accounts is displayed in the user interface in the form of a form;

[0023] The sub-table is a tab page, so that the user can select a corresponding accounting dimension according to the sub-table.

[0024] In some embodiments of the present application, the method further includes:

[0025] After creating a new entity table, basic information of the new entity table needs to be written into the entity model table.

[0026] In some embodiments of the present application, the method further includes:

[0027] Based on the received formal business table viewing instruction, read the key-value pair data in the field;

[0028] Determine the corresponding accounting information based on the key-value pair data read;

[0029] The accounting information is rendered into the preset preliminary business table and displayed through the user interface.

[0030] In some embodiments of the present application, the preliminary business table is an accounting voucher table or an account balance table.

[0031] In some embodiments of the present application, storing all key-value pair data of the formal business table in a field specifically includes: forming all key-value pair data into a dict object, and writing the dict object into a field.

[0032] A financial query report generation device based on elastic domain, comprising:

[0033] at least one processor; and,

[0034] a memory communicatively connected to the at least one processor; wherein,

[0035] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0036] Creating an accounting dimension table according to user operations, where each accounting dimension in the accounting dimension table corresponds to an entity table;

[0037] Associating the accounting dimension table with a pre-created entity model table, the entity model table being used to store basic information of all entity tables in the system, so that each accounting dimension in the accounting dimension is associated with a corresponding entity table; and

[0038] Associating a pre-created chart of accounts with the accounting dimension table;

[0039] After receiving the business table entry instruction, the pre-created preliminary business table is displayed on the user interface; the preliminary business table is associated with the accounting account table and the accounting dimension table respectively;

[0040] According to the user's operation, determine the accounting subject and accounting dimension selected by the user, and add the accounting subject and accounting dimension selected by the user to the preliminary business table to generate a formal business table;

[0041] After receiving the formal business table storage instruction, determining the key-value pair data corresponding to each accounting information in the formal business table; the key-value pair data is used to represent the corresponding accounting information in the formal business table;

[0042] All key-value pair data of the formal business table are stored in one field.

[0043] A non-volatile computer storage medium for generating a financial query report based on an elastic domain stores computer executable instructions, wherein the computer executable instructions are configured as follows:

[0044] Creating an accounting dimension table according to user operations, where each accounting dimension in the accounting dimension table corresponds to an entity table;

[0045] Associating the accounting dimension table with a pre-created entity model table, the entity model table being used to store basic information of all entity tables in the system, so that each accounting dimension in the accounting dimension is associated with a corresponding entity table; and

[0046] Associating the pre-created chart of accounts with the accounting dimension table; after receiving the business table entry instruction, displaying the pre-created preliminary business table on the user interface; the preliminary business table is associated with the chart of accounts and the accounting dimension table respectively;

[0047] According to the user's operation, determine the accounting subject and accounting dimension selected by the user, and add the accounting subject and accounting dimension selected by the user to the preliminary business table to generate a formal business table;

[0048] After receiving the formal business table storage instruction, determining the key-value pair data corresponding to each accounting information in the formal business table; the key-value pair data is used to represent the corresponding accounting information in the formal business table;

[0049] All key-value pair data of the formal business table are stored in one field.

[0050] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects: writing the corresponding key-value pair data into a field to realize the addition of new accounting dimensions can infinitely meet the flexible needs of users for accounting dimensions, increase the business coverage of products, and improve product competitiveness. It can also effectively reduce the cost of secondary development, save manpower, and shorten the product development cycle. From the perspective of product delivery, the method of expanding accounting dimensions through configuration operations will also greatly shorten the product delivery cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0052] Figure 1 A flowchart of a method for generating a financial query report based on elastic domain provided in an embodiment of this specification;

[0053] Figure 2 A widget implementation flow chart provided in the embodiments of this specification;

[0054] Figure 3 Another flow chart of a method for generating a financial query report based on elastic domain provided in an embodiment of this specification;

[0055] Figure 4 A schematic diagram of the structure of a financial query report generation device based on elastic fields provided in an embodiment of this specification. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this application will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in the specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0057] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0058] Figure 1 The embodiment of this specification provides a flowchart of a method for generating a financial query report based on an elastic domain. Figure 1 As shown, the embodiment of the present application provides a method for generating a financial query report based on an elastic domain, which may include the following steps:

[0059] S101, creating an entity model table (ir.model) based on a pre-stored entity table.

[0060] A large number of entity tables can be stored in the system. These entity tables can refer to tables of actual financial objects, such as: cash on hand of department A of company, cash on hand of department B of company.

[0061] Specifically, the entity model table can be created based on the basic information of all pre-stored entity tables. That is, the entity model table is used to store the basic information of all entity tables in the system.

[0062] The basic information of the entity table may include a table name and a description corresponding to the table name. The description corresponding to the table name mentioned here may be a text, a number, etc. describing the table name.

[0063] S102: Create a corresponding accounting dimension table according to the user operation.

[0064] The accounting dimension table may include basic information of each accounting dimension, including the name of the accounting dimension, and each accounting dimension in the accounting dimension table corresponds to an entity table.

[0065] It can be seen from the above scheme that the accounting dimension in the accounting dimension table needs to correspond to an entity table. Therefore, in the embodiments of this specification, it can be implemented in the following ways:

[0066] First, the entity model table created in step S101 can be displayed to the user through a user interface, and according to the user's operation, basic information of the entity table in the entity model table selected by the user is determined. According to the basic information of the entity table in the entity model table selected by the user, a corresponding accounting dimension table is created.

[0067] The second method is to match the accounting dimensions entered by the user with the entity model table, and create the above accounting dimension table based on the successfully matched accounting dimensions.

[0068] Among them, to determine whether the accounting dimension entered by the user matches the entity model table, the existing text similarity algorithm can be used to calculate the similarity between the accounting dimension entered by the user and the basic information of each entity table in the entity model table. When the similarity exceeds a certain threshold, it is determined that the accounting dimension entered by the user matches the entity model table.

[0069] It should be noted that the above accounting dimension table may include multiple accounting dimensions, such as department, product, personnel, etc. Or for example: cash on hand of department A, cash on hand of department B.

[0070] S103, create a chart of accounts.

[0071] In this application specification, the chart of accounts is stipulated by relevant departments and refers to a collection of accounting subjects that classify and account for the specific contents of accounting elements in accordance with the content of economic operations and the requirements of economic management.

[0072] Therefore, in the embodiment of the present application, the chart of accounts in the present application specification can be created based on the currently implemented chart of accounts. The chart of accounts is used to store basic information of each accounting account. The basic information of the accounting account includes the name of the accounting account and the description corresponding to the accounting account.

[0073] The names of the above accounting subjects may be, for example: cash on hand, bank deposits, deposits with the central bank, deposits with peers, etc.

[0074] The description corresponding to the accounting subject may include the accounting subject number and the applicable scope of the accounting subject. For example, the accounting subject number of cash on hand is 1001, the accounting subject number of bank deposits is 1002, and the applicable scope of the accounting subject for deposits in the central bank is bank-only.

[0075] It is known to those skilled in the art that the accounting subjects in the chart of accounts are divided into general classification subjects and detailed classification subjects according to the details of the information they provide and their control relationship. General classification subjects are accounting subjects that provide summary information by summarizing the specific contents of accounting elements, such as "accounts receivable" and "raw materials". Detailed classification subjects are subjects that further classify general classification subjects and provide more detailed and specific accounting information. For example, the "accounts receivable" subject sets detailed subjects according to the name of the debtor to reflect the specific object of the accounts receivable.

[0076] Therefore, the chart of accounts provided in the embodiment of the present application may be a chart of accounts including general classification accounts, or a chart of accounts including detailed classification accounts, or both may exist at the same time. In the embodiment of the present application, it may be set according to actual conditions.

[0077] In some embodiments of the present application, the above-mentioned chart of accounts is displayed in the form of a form in the user interface.

[0078] It should be noted that the above-mentioned step S102 and step S103 can be performed in the above-mentioned manner, with step S102 being performed first and then step S103; or step S103 can be performed first and then step S102; or steps S102 and S103 can be performed simultaneously, which is not limited in the embodiments of the present application.

[0079] S104, associating the above-mentioned accounting dimension table with the above-mentioned entity model table, and associating the chart of accounts created in the above-mentioned S103 with the above-mentioned accounting dimension table.

[0080] Specifically, the accounting dimension table can be associated with the entity model table by adding a field of the many2one data type in the above accounting dimension table and associating the field with the entity model table.

[0081] Similarly, the chart of accounts can also be associated with the accounting dimension table using the same or similar methods as above, which will not be elaborated here.

[0082] S105: after receiving the service table creation instruction, create a corresponding preliminary service table according to the service table creation instruction.

[0083] In the present application specification, the above-mentioned business table creation instruction information may include a business table type, where the business table type may be a first type and a second type, wherein the first type corresponds to an accounting voucher table, and the second type corresponds to an account balance table.

[0084] Therefore, in some embodiments of the present application, the above-created preliminary business table may be an accounting voucher table, or an account balance table.

[0085] It is known to those skilled in the art that accounting vouchers are the most important business documents in financial management, and accounts are the details of the vouchers, which are used to describe the business of the vouchers.

[0086] In this application description, the preliminary business table can be created in the following ways:

[0087] Different types of preset business tables are established in advance, and according to the business table type in the business table creation instruction, the corresponding preset business table is called as the above-mentioned preparatory business table.

[0088] S106, after receiving the business table entry instruction, the preliminary business table created in the above step S105 is displayed through a corresponding user interface.

[0089] Specifically, the preparatory service table may be rendered through a Web widget (widget) so that the preparatory service table is displayed through a corresponding user interface.

[0090] Among them, widget is a front-end component that can render specific data into a component of a specific style. It is implemented by encapsulating JavaScript. The corresponding name is flex_dropdown. The front-end framework parses flex_dorpdown as a specific component style when the page is loaded. In addition, widget supports page loading and rendering of data types such as char, float, and many2one. Multiple data types in one interface are reflected in one field in the front-end interface.

[0091] S107, according to the user's operation, determining the accounting subject and accounting dimension selected by the user, and adding the accounting subject and accounting dimension selected by the user to the above-mentioned preliminary business table to generate a formal business table.

[0092] In this application specification, before step S107, the above-mentioned preliminary business table needs to be associated with the above-mentioned chart of accounts and the above-mentioned accounting dimension table respectively, and the above-mentioned chart of accounts and the above-mentioned accounting dimension table are rendered to the above-mentioned user interface for display through a widget.

[0093] Specifically, the user can perform corresponding operations through the displayed chart of accounts, determine the accounting account selected by the user through the user's operation, and add the accounting account to the above-mentioned preliminary business table and display it;

[0094] The accounting dimension table corresponding to the accounting subject is displayed on the user interface, and according to the user operation, the accounting dimension selected by the user is determined, and the accounting dimension is entered into the above-mentioned preliminary business table and displayed;

[0095] Determine the entity table corresponding to the entered accounting dimension, select the corresponding entity table according to the user operation and enter it into the above-mentioned preliminary business table to generate the above-mentioned formal business table.

[0096] S108, after receiving the formal business table storage instruction, determining the key-value pair data corresponding to each accounting information in the formal business table.

[0097] Among them, a key-value pair data represents an accounting information entered into the business table. The business table includes at least one entry information, so the accounting information mentioned here can refer to an accounting entry information in the formal business table. Among them, the key-value pair data corresponding to each accounting information in the formal business table refers to the key-value data of the accounting dimension in each accounting information. Each accounting information can include a summary, accounting subject, accounting dimension, debit amount, credit amount, etc.

[0098] Specifically, after receiving the formal business table storage instruction, the detailed information of the flex_dropdown corresponding widget can be parsed and read through the JavaScript encapsulation method based on the widget, and the combined key-value dict data is stored in the flex field of the background table, such as Figure 2 shown.

[0099] In this application specification, a corresponding digital ID can be set in advance for each accounting dimension. For example, the digital ID of the accounting dimension department is 01, the digital ID of the accounting dimension for the finance department is 0101, the digital ID of the accounting dimension for the product development department is 0102, and the digital ID of the accounting dimension for the human resources department is 0103.

[0100] By parsing each accounting information in the formal business table, the corresponding key-value pair data is obtained according to the parsing result and the pre-stored digital ID of each accounting dimension. For example, if the accounting dimension is the financial department, the key-value pair data of the accounting information is: 010101, that is, kay in the key-value pair data is the department, and value is the financial department.

[0101] In some embodiments of the present application, storing all key-value pair data of the formal business table in a field specifically includes: forming all key-value pair data into a dict object, and writing the dict object into a field.

[0102] It should be noted that in addition to generating key-value data, there is also a corresponding auxiliary data. The key-value data is used to store the actual content corresponding to the key-value, because the key-value data cannot understand its meaning from the user's perspective. For example, for the accounting dimension "department", the content stored in the key-value data may be {'flex_department_id':01001}, while the auxiliary data is "department: finance department". In other words, the key-value data is used by the system for identification and analysis, and the auxiliary data is provided to users for viewing and interaction.

[0103] S109, storing all key-value pair data in the formal business table in the form of one field.

[0104] Figure 3 Another flow chart of a method for generating a financial query report based on elastic domain provided in the embodiment of this specification. Figure 3 As shown, a financial query report generation method based on elastic domain provided by an embodiment of the present application can be divided into four levels: data layer, business layer, display layer, and front-end user interface (i.e., front-end UI in the figure). Data is stored in the data layer, that is, entity table storage, and accounting dimension configuration and subject auxiliary maintenance are performed in the business layer to generate the corresponding formal business table. The display layer performs template engine rendering and JavaScript interaction to display to the user through the front-end UI. Both the business layer and the data layer can perform data verification, and permission control is performed in the display layer, business layer, and data layer.

[0105] In the prior art, one accounting dimension is written into one field. If the accounting dimension needs to be extended, the developer needs to perform secondary development and write the extended accounting dimension into a new field, which takes a long time and money and cannot be used in many business scenarios.

[0106] Through the technical solution provided in the specification of this application, multiple accounting dimensions can be written into one field, that is to say, different relational models and different data representation forms can be reflected in one field at the same time. When adding a new accounting dimension, the corresponding key-value pair data can be written into a field by means of the embodiment of this application to realize the addition of a new accounting dimension, which can infinitely meet the flexible needs of the user's accounting dimension, increase the business coverage of the product, and improve product competitiveness. It can also effectively reduce the cost of secondary development, save manpower, and shorten the product development cycle. From the perspective of product delivery, the method of expanding the accounting dimension through configuration operations will also greatly shorten the product delivery cycle.

[0107] In actual use, the number of accounting dimensions in the accounting dimension table is very large, and users need to spend a lot of time searching when selecting the corresponding accounting dimension, which affects the user experience. Therefore, in some embodiments of the present application, the pre-created chart of accounts is associated with the accounting dimension table, specifically including:

[0108] Based on the accounting subjects in the chart of accounting subjects, determining the accounting dimensions corresponding to the accounting subjects;

[0109] According to the user's business type, determine the accounting dimension that matches the user's business type from the accounting dimensions corresponding to the accounting subjects;

[0110] Create a subsidiary table of the chart of accounts based on the accounting dimensions that match the user's business type;

[0111] The chart of accounts is associated with the sub-table, and the sub-table is associated with the corresponding accounting dimension table, so that the pre-created chart of accounts is associated with the accounting dimension table.

[0112] The above user business types correspond to business scenarios. Different business scenarios have different selected accounting dimensions. For example, the accounting dimensions of one business scenario are department and employee, while the accounting dimensions of another business scenario are name and gender.

[0113] It should be noted that one accounting item in the above table of accounts may correspond to at least one subsidiary table.

[0114] In some embodiments of the present application, when a secondary table is established, step S107 generates a formal business table, which specifically includes:

[0115] According to the user's operation, the corresponding accounting subject is determined to be entered into the preliminary business table and displayed, and the subsidiary table corresponding to the accounting subject is displayed to the user through the user interface;

[0116] Determining the sub-table selected by the user according to the user's operation, and displaying the sub-table to the user through the user interface;

[0117] Based on the user's operation, the accounting dimensions in the sub-table selected by the user are determined, and the selected accounting dimensions are added to the preliminary business table and displayed.

[0118] In this application specification, a sub-table is constructed in the above manner to determine the accounting dimensions corresponding to the sub-table, which is equivalent to classifying the accounting dimensions so that users can find the corresponding accounting dimensions more quickly and accurately, saving time costs and improving user experience.

[0119] In some embodiments of the present application, the sub-table is a tab page, so that the user can select a corresponding accounting dimension according to the sub-table.

[0120] In some embodiments of the present application, after creating a new entity table, the basic information of the new entity table is written into the entity model table. Through this solution, the new entity table can be associated with the accounting dimension table, effectively avoiding the situation where the new entity table cannot be used in time.

[0121] In some embodiments of the present application, the above method further includes:

[0122] Based on the received formal business table viewing instruction, read the key-value pair data in the field;

[0123] Determine the corresponding accounting information based on the key-value pair data read;

[0124] The accounting information is rendered into the preset preliminary business table and displayed through the user interface.

[0125] Based on the same idea, some embodiments of the present application also provide devices and non-volatile computer storage media corresponding to the above methods.

[0126] Figure 4 The embodiment of the present application provides the corresponding Figure 1 A schematic diagram of a structure of a financial query report generation device based on an elastic domain and a financial query report generation method based on an elastic domain, the device comprising:

[0127] at least one processor; and,

[0128] a memory communicatively connected to the at least one processor; wherein,

[0129] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:

[0130] Creating an accounting dimension table according to user operations, where each accounting dimension in the accounting dimension table corresponds to an entity table;

[0131] Associating the accounting dimension table with a pre-created entity model table, the entity model table being used to store basic information of all entity tables in the system, so that each accounting dimension in the accounting dimension is associated with a corresponding entity table; and

[0132] Associating the pre-created chart of accounts with the accounting dimension table; after receiving the business table entry instruction, displaying the pre-created preliminary business table on the user interface; the preliminary business table is associated with the chart of accounts and the accounting dimension table respectively;

[0133] According to the user's operation, determine the accounting subject and accounting dimension selected by the user, and add the accounting subject and accounting dimension selected by the user to the preliminary business table to generate a formal business table;

[0134] After receiving the formal business table storage instruction, determining the key-value pair data corresponding to each accounting information in the formal business table; the key-value pair data is used to represent the corresponding accounting information in the formal business table;

[0135] All key-value pair data of the formal business table are stored in one field.

[0136] Some embodiments of the present application provide corresponding Figure 1 A non-volatile computer storage medium for generating a financial query report based on an elastic domain stores computer executable instructions, wherein the computer executable instructions are configured as follows:

[0137] Creating an accounting dimension table according to user operations, where each accounting dimension in the accounting dimension table corresponds to an entity table;

[0138] Associating the accounting dimension table with a pre-created entity model table, the entity model table being used to store basic information of all entity tables in the system, so that each accounting dimension in the accounting dimension is associated with a corresponding entity table; and

[0139] Associating the pre-created chart of accounts with the accounting dimension table; after receiving the business table entry instruction, displaying the pre-created preliminary business table on the user interface; the preliminary business table is associated with the chart of accounts and the accounting dimension table respectively;

[0140] According to the user's operation, determine the accounting subject and accounting dimension selected by the user, and add the accounting subject and accounting dimension selected by the user to the preliminary business table to generate a formal business table;

[0141] After receiving the formal business table storage instruction, determining the key-value pair data corresponding to each accounting information in the formal business table; the key-value pair data is used to represent the corresponding accounting information in the formal business table;

[0142] All key-value pair data of the formal business table are stored in one field.

[0143] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the platform embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the platform embodiment.

[0144] The devices and media provided in the embodiments of the present application correspond one-to-one to the platforms, and therefore, the devices and media also have similar beneficial technical effects as the platforms corresponding to them. Since the beneficial technical effects of the platforms have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.

[0145] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0146] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0147] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0148] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0149] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0150] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0151] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0152] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0153] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for generating a financial query report based on elastic domain, characterized in that: The method comprises: Create accounting dimension tables based on user operations; The accounting dimension table is associated with the pre-created entity model table, and the specific association method is: adding a field of many2one data type in the accounting dimension table, and associating the field with the entity model table, so as to associate the accounting dimension table with the entity model table; the entity model table is used to store basic information of all entity tables in the system, so that each accounting dimension in the accounting dimension is associated with the corresponding entity table; and associating the pre-created chart of accounts with the accounting dimension table, specifically including: determining the accounting dimensions corresponding to the accounting accounts based on the accounting accounts in the chart of accounts; determining the accounting dimensions matching the user's business type from the accounting dimensions corresponding to the accounting accounts according to the user's business type; creating a sub-table of the chart of accounts according to the accounting dimensions matching the user's business type; associating the chart of accounts with the sub-table, and associating the sub-table with the corresponding accounting dimension table, so that the pre-created chart of accounts is associated with the accounting dimension table; the display form of the chart of accounts in the user interface is a form; the sub-table is a tab page, so that the user selects the corresponding accounting dimension according to the sub-table; After receiving the business table entry instruction, the pre-created preliminary business table is displayed on the user interface; the preliminary business table is associated with the accounting account table and the accounting dimension table respectively; According to the user's operation, the accounting subject and the accounting dimension selected by the user are determined, and the accounting subject and the accounting dimension selected by the user are added to the preliminary business table to generate a formal business table, specifically including: according to the user's operation, the corresponding accounting subject is determined to be entered into the preliminary business table and displayed, and the sub-table corresponding to the accounting subject is displayed to the user through the user interface; according to the user's operation, the sub-table selected by the user is determined, and the sub-table is displayed to the user through the user interface; based on the user's operation, the accounting dimension in the sub-table selected by the user is determined, and the selected accounting dimension is written into the preliminary business table and displayed; After receiving the formal business table storage instruction, determine the key-value pair data corresponding to each accounting information in the formal business table; the key-value pair data is used to represent the corresponding accounting information in the formal business table, specifically including: pre-setting a corresponding digital ID for each accounting dimension, parsing each accounting information in the formal business table, and obtaining the corresponding key-value pair data according to the parsing result and the pre-stored digital ID of each accounting dimension; Storing all the key-value pair data of the formal business table in a field specifically includes: forming all the key-value pair data into a dict object, and writing the dict object into a field; Based on the received formal business table viewing instruction, read the key-value pair data in the field; Determine the corresponding accounting information based on the key-value pair data read; The accounting information is rendered into the preliminary business table and displayed through the user interface.

2. The method according to claim 1, characterized in that The method further comprises: After creating a new entity table, basic information of the new entity table needs to be written into the entity model table.

3. The method according to claim 1, characterized in that The preliminary business table is an accounting voucher table or an account balance table.

4. A financial query report generation device based on elastic domain, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Creating an accounting dimension table according to user operations, where each accounting dimension in the accounting dimension table corresponds to an entity table; The accounting dimension table is associated with the pre-created entity model table, and the specific association method is: adding a field of many2one data type in the accounting dimension table, and associating the field with the entity model table to associate the accounting dimension table with the entity model table; the entity model table is used to store basic information of all entity tables in the system, so that each accounting dimension in the accounting dimension is associated with the corresponding entity table; and associating the pre-created chart of accounts with the accounting dimension table, specifically including: based on the accounting subjects in the chart of accounts, determining the accounting dimensions corresponding to the accounting subjects; according to the user's business type, determining the accounting dimensions matching the user's business type from the accounting dimensions corresponding to the accounting subjects; creating a sub-table of the chart of accounts according to the accounting dimensions matching the user's business type; associating the chart of accounts with the sub-table, and the sub-table is associated with the corresponding accounting dimension table, so that the pre-created chart of accounts is associated with the accounting dimension table; the display form of the chart of accounts in the user interface is a form; the sub-table is a tab page, so that the user selects the corresponding accounting dimension according to the sub-table; After receiving the business table entry instruction, the pre-created preliminary business table is displayed on the user interface; the preliminary business table is associated with the accounting account table and the accounting dimension table respectively; According to the user's operation, the accounting subject and the accounting dimension selected by the user are determined, and the accounting subject and the accounting dimension selected by the user are added to the preliminary business table to generate a formal business table, specifically including: according to the user's operation, the corresponding accounting subject is determined to be entered into the preliminary business table and displayed, and the sub-table corresponding to the accounting subject is displayed to the user through the user interface; according to the user's operation, the sub-table selected by the user is determined, and the sub-table is displayed to the user through the user interface; based on the user's operation, the accounting dimension in the sub-table selected by the user is determined, and the selected accounting dimension is written into the preliminary business table and displayed; After receiving the formal business table storage instruction, determine the key-value pair data corresponding to each accounting information in the formal business table; the key-value pair data is used to represent the corresponding accounting information in the formal business table, specifically including: pre-setting a corresponding digital ID for each accounting dimension, parsing each accounting information in the formal business table, and obtaining the corresponding key-value pair data according to the parsing result and the pre-stored digital ID of each accounting dimension; Storing all the key-value pair data of the formal business table in a field specifically includes: forming all the key-value pair data into a dict object, and writing the dict object into a field; Based on the received formal business table viewing instruction, read the key-value pair data in the field; Determine the corresponding accounting information based on the key-value pair data read; The accounting information is rendered into the preliminary business table and displayed through the user interface.

5. A non-volatile computer storage medium for generating financial query reports based on elastic domains, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Creating an accounting dimension table according to user operations, where each accounting dimension in the accounting dimension table corresponds to an entity table; Associating the accounting dimension table with the pre-created entity model table, specifically by adding a field of the many2one data type to the accounting dimension table, and associating the field with the entity model table, so as to associate the accounting dimension table with the entity model table; The entity model table is used to store basic information of all entity tables in the system, so that each accounting dimension in the accounting dimension is associated with a corresponding entity table; as well as Associating the pre-created chart of accounts with the accounting dimension table specifically includes: determining the accounting dimensions corresponding to the accounting accounts based on the accounting accounts in the chart of accounts; determining the accounting dimensions matching the user's business type from the accounting dimensions corresponding to the accounting accounts according to the user's business type; creating a sub-table of the chart of accounts according to the accounting dimensions matching the user's business type; associating the chart of accounts with the sub-table, and associating the sub-table with the corresponding accounting dimension table, so that the pre-created chart of accounts is associated with the accounting dimension table; the display form of the chart of accounts in the user interface is a form; the sub-table is a tab page, so that the user selects the corresponding accounting dimension according to the sub-table; After receiving the business table entry instruction, the pre-created preliminary business table is displayed on the user interface; the preliminary business table is associated with the accounting account table and the accounting dimension table respectively; According to the user's operation, the accounting subject and the accounting dimension selected by the user are determined, and the accounting subject and the accounting dimension selected by the user are added to the preliminary business table to generate a formal business table, specifically including: according to the user's operation, the corresponding accounting subject is determined to be entered into the preliminary business table and displayed, and the sub-table corresponding to the accounting subject is displayed to the user through the user interface; according to the user's operation, the sub-table selected by the user is determined, and the sub-table is displayed to the user through the user interface; based on the user's operation, the accounting dimension in the sub-table selected by the user is determined, and the selected accounting dimension is written into the preliminary business table and displayed; After receiving the formal business table storage instruction, determine the key-value pair data corresponding to each accounting information in the formal business table; the key-value pair data is used to represent the corresponding accounting information in the formal business table, specifically including: pre-setting a corresponding digital ID for each accounting dimension, parsing each accounting information in the formal business table, and obtaining the corresponding key-value pair data according to the parsing result and the pre-stored digital ID of each accounting dimension; Storing all the key-value pair data of the formal business table in a field specifically includes: forming all the key-value pair data into a dict object, and writing the dict object into a field; Based on the received formal business table viewing instruction, read the key-value pair data in the field; Determine the corresponding accounting information based on the key-value pair data read; The accounting information is rendered into the preliminary business table and displayed through the user interface.

Citation Information

Patent Citations

  • Query report generation method based on dynamic fields

    CN110928962A