A method and system for enterprise financial data management based on SaaS platform
By building financial services and databases on the Saas platform and identifying business logic categories and user roles, the problem of inefficient financial data management in enterprises is solved, and efficient and secure financial data management and security is achieved.
Patent Information
- Application Number
- CN202310531895.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2043-05-11
AI Technical Summary
In the prior art, corporate financial data management is inefficient, especially large companies have high cost of managing through customized software, while small and medium-sized companies rely on inefficient manual accounting and lengthy manual review.
Adopt the enterprise financial data management method based on the Saas platform, by obtaining financial data and business needs, building financial services, performing encryption processing and database construction, identifying business logic categories, building task priority tables, determining user roles and access rights, and performing tasks Serialize and decrypt data tables to ensure data security and management efficiency.
It improves the management efficiency and security of enterprise financial data, reduces the cost of early software, realizes flexible financial data management and rapid deployment, and enhances the security control and integrity of financial data.
Smart Images

Figure CN116542797B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data management, and in particular to an enterprise financial data management method based on a SaaS platform. Background Art
[0002] With the rapid development of network technology and information technology, the amount of corporate financial data continues to increase, and the management requirements for corporate financial data are becoming more timely, convenient, accurate and detailed. Based on this, the SaaS system development model (a type of cloud computing classified by service mode) came into being with its strong reusability, high flexibility, low service cost and high deployment efficiency. The SaaS platform is a network-oriented software layout model that supports users to deploy systems and intervene in users based on the Internet.
[0003] At present, a few large companies use customized financial management software to achieve corporate financial management, but this requires a huge cost, including hardware and software, network facilities, technical personnel, operation and maintenance, etc.; while most small and medium-sized companies often still use inefficient manual accounting and lengthy manual review processes to achieve corporate financial management. Both of the above situations will lead to low efficiency in the management of corporate financial data. Summary of the invention
[0004] The present invention provides an enterprise financial data management method based on a SaaS platform, the main purpose of which is to improve the management efficiency of enterprise financial data.
[0005] To achieve the above purpose, the present invention provides a method for managing enterprise financial data based on a SaaS platform, comprising:
[0006] Obtain the financial data and business needs of the enterprise to be financially managed, and build financial services for the enterprise to be financially managed in the SaaS platform based on the business needs;
[0007] Encrypting the financial data to obtain encrypted financial data, identifying the business logic category of the financial service, and constructing a financial database corresponding to the financial service based on the encrypted financial data and the business logic category;
[0008] Acquire historical user tasks of the enterprise to be financially managed, identify historical task deadlines and historical task values of the historical user tasks, and construct a task priority table of the historical user tasks according to the historical task deadlines and the historical task values;
[0009] Acquire the current user task of the enterprise to be financially managed, and query the execution priority of the current user task based on the task priority table;
[0010] Identify the user role of the current user task, and query the access rights of the user role in the financial service and the financial database;
[0011] Determine the execution sequence task of the current user task according to the execution priority, query the financial data table of the execution sequence task in the financial database according to the access permission, decrypt the financial data table to obtain a decrypted data table;
[0012] Query the preset hash value of the financial data corresponding to the financial data table, calculate the decrypted hash value of the decrypted data table, and when the decrypted hash value is consistent with the preset hash value, execute the data management of the decrypted data table by the execution sequence task to obtain the data management result of the execution sequence task.
[0013] Optionally, encrypting the financial data to obtain encrypted financial data includes:
[0014] Performing word segmentation processing on the financial data to obtain data word segmentation, and performing equal-length processing on the data word segmentation to obtain equal-length word segmentation;
[0015] Using a preset encryption function, pre-encrypting the equal-length words to obtain pre-encrypted word data, and dividing the pre-encrypted word data into left and right blocks to obtain pre-encrypted left block words and pre-encrypted right block words, and marking the left block length and the right block length of the pre-encrypted left block words and the pre-encrypted right block words respectively;
[0016] According to the pre-encrypted left block word, using a preset first pseudo-random function, an encryption key for the financial data is generated;
[0017] According to the left block length, using a preset pseudo-random generator, generating a left random value corresponding to the pre-encrypted left block word;
[0018] Generate a right random value corresponding to the pre-encrypted right block word using a preset second pseudo-random function according to the random value, the encryption key and the right block length;
[0019] According to the left random value and the right random value, the encrypted word data of the pre-encrypted word data is calculated using the following formula:
[0020]
[0021] Among them, C i represents the i-th encrypted word data, X i represents the i-th pre-encrypted word data, represents the i-th left random value, represents the i-th right random value, represents the XOR symbol, and < > represents the concatenation symbol;
[0022] Extracting keywords from the data segmentation, and extracting keyword encrypted data corresponding to the keywords from the encrypted word data;
[0023] The encrypted financial data is determined based on the encrypted word data and the keyword encrypted data.
[0024] Optionally, the identifying the business logic category of the financial service includes:
[0025] Querying the business objects of the financial service and identifying the business rules and interaction relationships between the business objects;
[0026] According to the business rules and interaction relationships, construct the data flow of the business object;
[0027] Based on the business object, the business rules, the interaction relationship and the data flow, the business logic category of the financial service is determined.
[0028] Optionally, constructing a task priority table of the historical user tasks according to the historical task deadlines and the historical task values includes:
[0029] Arrange the historical task values in descending order to obtain a historical value sequence, and construct a priority horizontal axis of the historical user tasks based on the historical value sequence;
[0030] Arrange the deadlines of the historical tasks in ascending order to obtain a historical deadline sequence, and construct a priority vertical axis of the historical user tasks according to the historical deadline sequence;
[0031] Calculating the priority value of the historical user task according to the historical task deadline and the historical task value;
[0032] A task priority table of the historical user tasks is generated based on the priority horizontal axis, the priority vertical axis, and the priority value.
[0033] Optionally, the calculating the priority value of the historical user task according to the historical task deadline and the historical task value includes:
[0034] Calculate the minimum deadline value of the historical task deadline and calculate the minimum value of the historical task value;
[0035] According to the minimum deadline value and the minimum value, the priority value of the historical user task is calculated using the following formula:
[0036]
[0037] Among them, P(D, V) represents the priority value of the historical user task, D represents the deadline of the historical user task, V represents the value of the historical user task, and D m Represents the minimum value of the deadline, V m Indicates the minimum value, and % indicates the modulo symbol.
[0038] Optionally, determining the execution sequence task of the current user task according to the execution priority includes:
[0039] Obtaining a current task deadline and a current task value corresponding to the execution priority, and dividing the current user task according to the current task value to obtain a divided task queue;
[0040] According to the sequence of the deadlines of the current tasks, the current user tasks in the divided task queue are adjusted to obtain an adjusted task queue;
[0041] Selecting the head task of each queue in the adjustment task queue, identifying the minimum priority value of the head task, taking out the head task corresponding to the minimum priority value from the adjustment task queue, and storing the head task in a pre-constructed initial task sequence;
[0042] The initial task sequence is updated by using an iterative algorithm, and when each of the adjustment task queues is empty, the iteration is terminated to obtain a final task sequence; and the execution sequence task of the current user task is determined according to the final task sequence.
[0043] Optionally, querying a financial data table in the financial database for the execution sequence task according to the access permission includes:
[0044] According to the access authority, query the authority area data of the execution sequence task in the financial database, and query the keyword trap of the authority area data;
[0045] Identifying a search keyword for the execution sequence task, and searching for the existence of the search keyword in the keyword trapdoor;
[0046] When the existence status is existence, the search position of the authority area data corresponding to the search keyword is marked, and the financial data table of the execution sequence task in the financial database is determined according to the search position.
[0047] Optionally, the calculating the decrypted hash value of the decrypted data table includes:
[0048] Dividing the decrypted data table into blocks to obtain block data, and extracting key characters from the block data;
[0049] Performing numerical conversion on the key character to obtain a converted numerical value of the key character;
[0050] According to the conversion value, the decrypted hash value of the decrypted data table is calculated using the following formula:
[0051]
[0052] Among them, H represents the decrypted hash value of the decrypted data table, L i represents the i-th conversion value, B represents the weighting parameter, M represents the prime constant, i represents the sequence number of the conversion value, n represents the number of conversion values, and mod represents the modulus symbol.
[0053] Optionally, the executing the execution sequence task to manage the data of the decrypted data table to obtain the data management result of the execution sequence task includes:
[0054] Obtaining the operation instruction and user role corresponding to the execution sequence task, querying the access permission of the user role, and extracting the operation permission from the access permission;
[0055] The inclusion relationship between the operation authority and the operation instruction is determined. When the inclusion relationship is inclusion, the data operation corresponding to the operation instruction is performed on the decrypted data table to obtain the data management result of the execution sequence task.
[0056] In order to solve the above problems, the present invention also provides an enterprise financial data management system based on a SaaS platform, the system comprising:
[0057] A financial service construction module is used to obtain the financial data and business needs of the enterprise to be financially managed, and based on the business needs, to construct the financial services of the enterprise to be financially managed in the SaaS platform;
[0058] A financial database construction module, used to encrypt the financial data to obtain encrypted financial data, identify the business logic category of the financial service, and construct a financial database corresponding to the financial service according to the encrypted financial data and the business logic category;
[0059] A priority table construction module is used to obtain the historical user tasks of the enterprise to be financially managed, identify the historical task deadlines and historical task values of the historical user tasks, and construct a task priority table of the historical user tasks according to the historical task deadlines and the historical task values;
[0060] An execution priority query module is used to obtain the current user task of the enterprise to be financially managed, and query the execution priority of the current user task based on the task priority table;
[0061] An access rights query module, used to identify the user role of the current user task, and query the access rights of the user role in the financial service and the financial database;
[0062] A financial data table decryption module, used to determine the execution sequence task of the current user task according to the execution priority, query the financial data table of the execution sequence task in the financial database according to the access permission, decrypt the financial data table, and obtain a decrypted data table;
[0063] A data management execution module is used to query the preset hash value of the financial data corresponding to the financial data table, calculate the decrypted hash value of the decrypted data table, and when the decrypted hash value is consistent with the preset hash value, execute the data management of the decrypted data table by the execution sequence task to obtain the data management result of the execution sequence task.
[0064] It can be seen that the embodiment of the present invention can determine the financial data objects to be managed and the actual business needs of the enterprise to be financially managed by acquiring the financial data of the enterprise to be financially managed and its business needs. Based on the business needs, the financial services of the enterprise to be financially managed are constructed in the SaaS platform. Software services suitable for the enterprise to be financially managed can be flexibly selected according to business needs, which reduces the initial software cost and has the advantage of fast deployment. Encrypting the financial data can obtain encrypted financial data to ensure the security of the enterprise's financial data. Identifying the business logic category of the financial service can determine the service type of the financial service and provide logical data relationships for constructing a financial database. According to the encrypted financial data and the business logic category, a financial database corresponding to the financial service is constructed, which can provide enterprise users with a data carrier for managing financial data. Secondly, the embodiment of the present invention obtains historical user tasks of the enterprise to be financially managed for subsequent Constructing a task priority table provides a basic data carrier, identifying the historical task deadline and historical task value of the historical user task can provide two-dimensional data support for determining the priority of the task, constructing the task priority table of the historical user task according to the historical task deadline and the historical task value can determine the reference object of the subsequent task execution priority, obtaining the current user task of the enterprise to be financially managed can determine the current task to be processed, based on the task priority table, querying the execution priority of the current user task can determine the execution order of the current user task in the future, identifying the user role of the current user task can determine the user's management authority over the enterprise's financial data, so as to improve the security of the financial data, querying the access rights of the user role in the financial service and the financial database can determine the subsequent access control and operation scope of the financial database, and further improve the security of the enterprise's financial data;Further, the embodiment of the present invention determines the execution sequence of the current user task according to the execution priority, and can determine the execution sequence of the current user task from the dimension of task execution priority, so as to improve the management efficiency of financial data. According to the access rights, the financial data table of the execution sequence task in the financial database can be queried to determine the control scope of the execution sequence task in the financial database from the dimension of user role access rights. The decryption processing of the financial data table can obtain the decryption data table corresponding to the financial data table, which is used as the judgment object of whether the subsequent original financial data is consistent with the decrypted data. The preset hash value of the financial data corresponding to the financial data table can be queried to determine the hash value of the original financial data corresponding to the financial data table, which provides a comparison basis for the subsequent verification of whether the decryption data table is tampered with. The decryption hash value of the decryption data table can be calculated to provide a comparison object for the subsequent judgment of the integrity of the decrypted data. When the decryption hash value is consistent with the preset hash value, the execution sequence task performs data management on the decryption data table, and the data management result of the execution sequence task can be obtained. The final data management result of the execution sequence task can be obtained, which improves data security and management efficiency. Therefore, the enterprise financial data management method and system based on the SaaS platform proposed in the embodiment of the present invention can improve the management efficiency of enterprise financial data. ; BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 A flowchart of a method for managing enterprise financial data based on a SaaS platform provided by an embodiment of the present invention;
[0066] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings.
[0067] Figure 2 A schematic diagram of a module of an enterprise financial data management system based on a SaaS platform provided by an embodiment of the present invention;
[0068] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0069] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0070] The embodiment of the present invention provides an enterprise financial data management method based on a SaaS platform. The execution subject of the enterprise financial data management method based on the SaaS platform includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present invention. In other words, the enterprise financial data management method based on the SaaS platform can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0071] Reference Figure 1 FIG. 1 is a flow chart of a method for managing enterprise financial data based on a SaaS platform according to an embodiment of the present invention. In an embodiment of the present invention, the method for managing enterprise financial data based on a SaaS platform includes:
[0072] S1. Obtain the financial data and business needs of the enterprise to be financially managed, and build financial services for the enterprise to be financially managed in the SaaS platform based on the business needs.
[0073] The embodiment of the present invention can determine the financial data objects to be managed and the actual business needs of the enterprise to be financially managed by acquiring the financial data and business needs of the enterprise to be financially managed, so as to provide a prerequisite for the subsequent configuration of the corresponding financial services of the SaaS platform. The financial data refers to a collection of a type of data used to reflect the financial status and operating results of the enterprise and data indirectly related to finance, including financial books, report data, and various indicator analysis data. The business needs represent the high-level goals of the organization or customer.
[0074] Further, as an optional embodiment of the present invention, the financial data of the enterprise to be financially managed and its business needs can be obtained through a data script, and the data script can be compiled through a JS scripting language.
[0075] Furthermore, the embodiment of the present invention can construct the financial services of the enterprise to be financially managed based on the business needs and the SaaS platform, and can flexibly select software services suitable for the enterprise to be financially managed according to the business needs, thereby reducing the initial software cost and having the advantage of rapid deployment. Among them, the SaaS platform is a new form for users to obtain software services, which is an environment or condition for users to directly obtain the services they need with corresponding software functions from a dedicated provider through the network according to a certain service level agreement (SLA).
[0076] Further, as an optional embodiment of the present invention, the financial services of the enterprise to be financially managed are constructed in the SaaS platform based on the business needs, including: identifying functional requirements and cost requirements in the business needs; selecting corresponding functional services in the SaaS platform according to the functional requirements; screening functional cost services from the functional services based on the cost requirements; and determining the financial services of the enterprise to be financially managed according to the functional cost services.
[0077] The functional requirements are software functions that developers must implement in the product, and users use the functions to complete tasks to meet business needs. The cost requirements refer to the economic value required to obtain material resources.
[0078] Optionally, the identifying of the functional requirements and cost requirements in the business requirements can be identified by analyzing the functional objectives and cost constraints of the enterprise to be financially managed. The selecting of the corresponding functional services in the SaaS platform according to the functional requirements can be selected by calculating the similarity between the functional requirements and the functional services. The screening of functional cost services from the functional services based on the cost requirements can be achieved by screening out a combination of functional services whose total cost is not greater than the cost requirement from the functional services.
[0079] S2. Encrypt the financial data to obtain encrypted financial data, identify the business logic category of the financial service, and construct a financial database corresponding to the financial service based on the encrypted financial data and the business logic category.
[0080] The embodiment of the present invention can obtain encrypted financial data by encrypting the financial data to ensure the security of the enterprise's financial data.
[0081] Further, as an optional embodiment of the present invention, the encrypting the financial data to obtain the encrypted financial data includes:
[0082] Performing word segmentation processing on the financial data to obtain data word segmentation, and performing equal-length processing on the data word segmentation to obtain equal-length word segmentation;
[0083] Using a preset encryption function, pre-encrypting the equal-length words to obtain pre-encrypted word data, and dividing the pre-encrypted word data into left and right blocks to obtain pre-encrypted left block words and pre-encrypted right block words, and marking the left block length and the right block length of the pre-encrypted left block words and the pre-encrypted right block words respectively;
[0084] According to the pre-encrypted left block word, using a preset first pseudo-random function, an encryption key for the financial data is generated;
[0085] According to the left block length, using a preset pseudo-random generator, generating a left random value corresponding to the pre-encrypted left block word;
[0086] Generate a right random value corresponding to the pre-encrypted right block word using a preset second pseudo-random function according to the random value, the encryption key and the right block length;
[0087] According to the left random value and the right random value, the encrypted word data of the pre-encrypted word data is calculated using the following formula:
[0088]
[0089] Among them, C i represents the i-th encrypted word data, X i represents the i-th pre-encrypted word data, represents the i-th left random value, represents the i-th right random value, represents the XOR symbol, and < > represents the concatenation symbol;
[0090] Extracting keywords from the data segmentation, and extracting keyword encrypted data corresponding to the keywords from the encrypted word data;
[0091] The encrypted financial data is determined based on the encrypted word data and the keyword encrypted data.
[0092] The pseudo-random function is constructed by a pseudo-random generator, which is usually used to construct a function of a cryptographic algorithm. The pseudo-random generator refers to a random number generation mechanism in which the system calculates pseudo-random numbers through a series of seed values.
[0093] Optionally, the keywords of the financial data may be extracted by TF-IDF or TextRank keyword extraction algorithm. The equal-length processing of the keywords to obtain equal-length keywords may be achieved by presetting a keyword length and performing a padding operation on keywords that are shorter than the pre-set keyword length.
[0094] Furthermore, the embodiment of the present invention can determine the service type of the financial service by identifying the business logic category of the financial service and provide a logical data relationship for building a financial database. Wherein, the business logic category refers to the rules and process categories that a configuration or function module should have in order to provide services.
[0095] Further, as an optional embodiment of the present invention, the identifying the business logic category of the financial service includes: querying the business objects of the financial service, identifying the business rules and interaction relationships between the business objects; constructing the data flow of the business objects according to the business rules and interaction relationships; and determining the business logic category of the financial service based on the business objects, the business rules, the interaction relationships and the data flow.
[0096] The business object is a component that retrieves and processes data and is a simple software abstraction of the real world. The business rules refer to the description of business definitions and constraints, which are used to maintain the business structure or control and influence the behavior of the business. The interaction relationship refers to the association relationship between business objects. The data flow direction represents the sequential direction of business data, which can reflect the changes, directions, relationships, levels, etc. of data values in the data through the sequential direction.
[0097] Optionally, the business object of the financial service can be obtained by abstracting the business data in the financial service. The business data refers to data converted from various traces or original information records generated in the business process, such as converting the original balance sheet and cash flow statement into image data as business data.
[0098] Optionally, the identifying of the business rules and interaction relationships between the business objects may be achieved through a hierarchical analysis method.
[0099] Furthermore, the embodiment of the present invention can provide a data carrier for managing financial data for enterprise users by constructing a financial database corresponding to the financial service according to the encrypted financial data and the business logic category.
[0100] Further, as an optional embodiment of the present invention, the financial database corresponding to the financial service can be constructed according to the encrypted financial data and the business logic category through an ER model and a relational model. The ER model is a method of representing entities, attributes and relationships, which is an effective method for describing the conceptual structure model of the real world. The relational model refers to a data model that represents entities and the relationships between entities in the form of a two-dimensional table.
[0101] S3. Acquire the historical user tasks of the enterprise to be financially managed, identify the historical task deadlines and historical task values of the historical user tasks, and construct a task priority table of the historical user tasks according to the historical task deadlines and the historical task values.
[0102] In the embodiment of the present invention, the historical user tasks refer to the past assigned work of the enterprise financial data manager using the SaaS platform financial service, which can be obtained through data scripts, and the data scripts can be compiled using the JS scripting language.
[0103] Furthermore, the embodiment of the present invention can provide two-dimensional data support for determining the priority of tasks by identifying the historical task subsequent construction task deadline and historical task value of the historical user task. The historical task deadline of the historical user task can be identified by recording the deadline for completion of the historical task, and the historical task value can be measured and identified by a seven-point scale.
[0104] Among them, the seven-point scale is a measurement tool that attempts to determine the procedure for quantitative measurement of subjective and sometimes abstract concepts. Numbers can be assigned to the characteristic variables of things using different rules to form measurement scales of different measurement levels.
[0105] Furthermore, the embodiment of the present invention can determine the reference object of the execution priority of subsequent tasks by constructing a task priority table of the historical user tasks according to the deadline of the historical tasks and the value of the historical tasks.
[0106] Further, as an optional embodiment of the present invention, constructing the task priority table of the historical user tasks according to the historical task deadlines and the historical task values includes: arranging the historical task values in descending order to obtain a historical value sequence, and constructing the horizontal axis of the priority of the historical user tasks according to the historical value sequence; arranging the historical task deadlines in ascending order to obtain a historical deadline sequence, and constructing the vertical axis of the priority of the historical user tasks according to the historical deadline sequence; calculating the priority value of the historical user tasks according to the historical task deadlines and the historical task values; and generating the task priority table of the historical user tasks based on the horizontal axis, the vertical axis and the priority value.
[0107] Optionally, the priority horizontal axis of the historical user tasks constructed according to the historical value sequence may be constructed by taking the direction of the task value of the historical value sequence decreasing as the priority horizontal axis direction. The priority vertical axis of the historical user tasks constructed according to the historical deadline sequence may be constructed by taking the direction of the task deadline of the historical deadline sequence increasing as the priority vertical axis direction.
[0108] Optionally, the calculating the priority value of the historical user task according to the historical task deadline and the historical task value includes:
[0109] Calculate the minimum deadline value of the historical task deadline and calculate the minimum value of the historical task value;
[0110] According to the minimum deadline value and the minimum value, the priority value of the historical user task is calculated using the following formula:
[0111]
[0112] Among them, P(D, V) represents the priority value of the historical user task, D represents the deadline of the historical user task, V represents the value of the historical user task, and D m Represents the minimum value of the deadline, V m Indicates the minimum value, and % indicates the modulo symbol.
[0113] S4. Acquire the current user task of the enterprise to be financially managed, and query the execution priority of the current user task based on the task priority table.
[0114] In the embodiment of the present invention, the current user task refers to the currently assigned work of the enterprise financial data manager using the SaaS platform financial service, which can be obtained through a data script, and the data script can be compiled through the JS script language.
[0115] Furthermore, the embodiment of the present invention can determine the execution order of the current user tasks subsequently by querying the execution priority of the current user tasks based on the task priority table.
[0116] Further, as an optional embodiment of the present invention, querying the execution priority of the current user task based on the task priority table includes: obtaining the current task deadline and the current task value of the current user task; querying the task priority table horizontally according to the current task deadline to obtain the deadline data row; querying the task priority table vertically according to the current task value to obtain the value data column; calculating the intersection data of the deadline data row and the value data column; and determining the execution priority of the current user task according to the intersection data.
[0117] S5. Identify the user role of the current user task, and query the access rights of the user role in the financial service and the financial database.
[0118] The embodiment of the present invention can determine the user's management authority over the enterprise financial data by identifying the user role of the current user task, so as to improve the security of the financial data.
[0119] The user role refers to a virtual representative of a real target user formed by the abstraction of the responsibilities undertaken in the enterprise financial data management and the authority over work resources.
[0120] Further, as an optional embodiment of the present invention, the identifying of the user role of the current user task may be performed by analyzing the responsibilities or titles of the user who performs the current user task at work.
[0121] Furthermore, the embodiment of the present invention can determine the subsequent access control and operation scope of the financial database by querying the access rights of the user role in the financial service and the financial database, thereby further improving the security of the enterprise's financial data.
[0122] Further, as an optional embodiment of the present invention, the querying of the access rights of the user role in the financial service and the financial database includes: extracting the functional rights and operating rights of the user role in the financial service and the financial database, calculating the permission union of the functional rights and the operating rights, and determining the access rights of the user role based on the permission union.
[0123] The functional authority refers to the scope of use of financial service resources. The operational authority refers to the scope and degree of operations of adding, deleting, modifying and checking business data.
[0124] Optionally, the extracting of the functional authority and the operating authority of the user role in the financial service and the financial database may be extracted by identifying the scope of responsibility and decision-making control of the user role in the financial service and the financial database.
[0125] S6. Determine the execution sequence task of the current user task according to the execution priority, query the financial data table of the execution sequence task in the financial database according to the access permission, decrypt the financial data table, and obtain a decrypted data table.
[0126] The embodiment of the present invention determines the execution sequence of the current user task according to the execution priority, and can determine the execution sequence of the current user task from the dimension of task execution priority, so as to improve the management efficiency of financial data.
[0127] Further, as an optional embodiment of the present invention, determining the execution sequence task of the current user task according to the execution priority includes: obtaining the current task deadline and the current task value corresponding to the execution priority, dividing the current user task according to the current task value to obtain a divided task queue; adjusting the current user task in the divided task queue according to the order of the current task deadlines to obtain an adjusted task queue; selecting the head task of each queue in the adjusted task queue, identifying the minimum priority value of the head task, taking out the head task corresponding to the minimum priority value from the adjusted task queue, and storing the head task in a pre-constructed initial task sequence; using an iterative algorithm to update the initial task sequence, and when each of the adjusted task queues is empty, ending the iteration to obtain a final task sequence; determining the execution sequence task of the current user task according to the final task sequence.
[0128] The initial task sequence refers to an initialized empty sequence corresponding to the adjustment task queue. The iterative algorithm is a basic method for solving problems using computers. It uses the characteristics of computers that they are fast and suitable for repetitive operations to allow the computer to repeatedly execute a set of instructions (or certain steps). Each time this set of instructions (or these steps) is executed, a new value of the variable is derived from its original value.
[0129] Optionally, dividing the current user task according to the current task value to obtain the divided task queue can be achieved by dividing tasks with the same current task value into a group.
[0130] Optionally, the current user tasks in the divided task queue are adjusted according to the order of the current task deadlines, and the adjusted task queue is obtained by arranging the current user tasks in the divided task queue in sequence according to the order of the current task deadlines, with the tasks with earlier deadlines being arranged in front of the adjusted task queue.
[0131] Furthermore, the embodiment of the present invention can determine the control scope of the execution sequence task in the financial database from the dimension of user role access rights by querying the financial data table of the execution sequence task in the financial database according to the access rights.
[0132] The financial data table is the main data storage container in the financial database, and the data therein is organized into rows and columns, which is an object for storing specific data and a collection of structured data.
[0133] Further, as an optional embodiment of the present invention, querying the financial data table of the execution sequence task in the financial database according to the access permission includes: querying the authority area data of the execution sequence task in the financial database according to the access permission, and querying the keyword trapdoor of the authority area data; identifying the retrieval keyword of the execution sequence task, and searching the keyword trapdoor for the existence status of the retrieval keyword; when the existence status is existence, marking the retrieval position of the authority area data corresponding to the retrieval keyword, and determining the financial data table of the execution sequence task in the financial database according to the retrieval position.
[0134] The keyword trap refers to a search entry for encrypted keywords set in a financial database.
[0135] Furthermore, the embodiment of the present invention can obtain a decrypted data table corresponding to the financial data table by decrypting the financial data table, so as to serve as a subsequent judgment object for whether the original financial data is consistent with the decrypted data.
[0136] Further, as an optional embodiment of the present invention, the decryption processing of the financial data table to obtain the decrypted data table can be understood as the inverse process of the encryption processing described above: using the corresponding pseudo-random generator to generate a left random number, and according to the decryption key (the same as the encryption key), using the second pseudo-random function to generate a right random number, splicing the left random number and the right random number to obtain a spliced random number, performing an XOR operation on the spliced random number and the financial data table to obtain a decrypted data table.
[0137] Among them, the pseudo-random generator and the second pseudo-random function can refer to S2 and will not be repeated here.
[0138] S7. Query the preset hash value of the financial data corresponding to the financial data table, calculate the decrypted hash value of the decrypted data table, and when the decrypted hash value is consistent with the preset hash value, execute the data management of the decrypted data table by the execution sequence task to obtain the data management result of the execution sequence task.
[0139] The embodiment of the present invention can determine the hash value of the original financial data corresponding to the financial data table by querying the preset hash value of the financial data corresponding to the financial data table, thereby providing a comparison basis for subsequent verification of whether the decrypted data table has been tampered with.
[0140] The preset hash value refers to mapping a longer piece of data into shorter pre-calculated data of a fixed length through a certain hash algorithm (typically MD5, SHA-1, etc.).
[0141] Furthermore, the embodiment of the present invention can provide a comparison object for subsequent determination of the integrity of the decrypted data by calculating the decrypted hash value of the decrypted data table.
[0142] Further, as an optional embodiment of the present invention, the calculating the decrypted hash value of the decrypted data table includes:
[0143] Dividing the decrypted data table into blocks to obtain block data, and extracting key characters from the block data;
[0144] Performing numerical conversion on the key character to obtain a converted numerical value of the key character;
[0145] According to the conversion value, the decrypted hash value of the decrypted data table is calculated using the following formula:
[0146]
[0147] Among them, H represents the decrypted hash value of the decrypted data table, L i represents the i-th conversion value, B represents the weighting parameter, M represents the prime constant, i represents the sequence number of the conversion value, n represents the number of conversion values, and mod represents the modulus symbol.
[0148] Optionally, the decrypted data table may be divided into blocks to obtain block data by dividing the decrypted data table into blocks of equal length, and the last data block may be padded with 0s as required to make all data blocks of equal length.
[0149] Optionally, the extracting of key characters from the block data may be performed by taking characters as the smallest division unit.
[0150] Furthermore, the embodiment of the present invention can obtain the final data management result of the execution sequence task by executing the execution sequence task to manage the data of the decrypted data table, thereby improving data security and management efficiency.
[0151] Further, as an optional embodiment of the present invention, the execution of the execution sequence task on the data management of the decrypted data table to obtain the data management result of the execution sequence task includes: obtaining the operation instruction and user role corresponding to the execution sequence task, querying the access rights of the user role, and extracting the operation rights in the access rights; determining the inclusion relationship between the operation rights and the operation instructions, and when the inclusion relationship is inclusion, performing the data operation corresponding to the operation instruction on the decrypted data table to obtain the data management result of the execution sequence task.
[0152] Optionally, the obtaining of the user role and operation instruction corresponding to the execution sequence task may be performed by identifying the operation user who executes the sequence task and querying the operation user.
[0153] Optionally, the querying of the access rights of the user role may be achieved by querying a pre-built user rights mapping table, where the user rights mapping table is a data set for storing key-value pairs of user roles and access rights.
[0154] It can be seen that the embodiment of the present invention can determine the financial data objects to be managed and the actual business needs of the enterprise to be financially managed by acquiring the financial data of the enterprise to be financially managed and its business needs. Based on the business needs, the financial services of the enterprise to be financially managed are constructed in the SaaS platform. Software services suitable for the enterprise to be financially managed can be flexibly selected according to business needs, which reduces the initial software cost and has the advantage of fast deployment. Encrypting the financial data can obtain encrypted financial data to ensure the security of the enterprise's financial data. Identifying the business logic category of the financial service can determine the service type of the financial service and provide logical data relationships for constructing a financial database. According to the encrypted financial data and the business logic category, a financial database corresponding to the financial service is constructed, which can provide enterprise users with a data carrier for managing financial data. Secondly, the embodiment of the present invention obtains historical user tasks of the enterprise to be financially managed for subsequent Constructing a task priority table provides a basic data carrier, identifying the historical task deadline and historical task value of the historical user task can provide two-dimensional data support for determining the priority of the task, constructing the task priority table of the historical user task according to the historical task deadline and the historical task value can determine the reference object of the subsequent task execution priority, obtaining the current user task of the enterprise to be financially managed can determine the current task to be processed, based on the task priority table, querying the execution priority of the current user task can determine the execution order of the current user task in the future, identifying the user role of the current user task can determine the user's management authority over the enterprise's financial data, so as to improve the security of the financial data, querying the access rights of the user role in the financial service and the financial database can determine the subsequent access control and operation scope of the financial database, and further improve the security of the enterprise's financial data;Further, the embodiment of the present invention determines the execution sequence of the current user task according to the execution priority, and can determine the execution sequence of the current user task from the dimension of task execution priority, so as to improve the management efficiency of financial data. According to the access rights, the financial data table of the execution sequence task in the financial database can be queried to determine the control scope of the execution sequence task in the financial database from the dimension of user role access rights. The decryption processing of the financial data table can obtain the decryption data table corresponding to the financial data table, which is used as the judgment object of whether the subsequent original financial data is consistent with the decrypted data. The preset hash value of the financial data corresponding to the financial data table can be queried to determine the hash value of the original financial data corresponding to the financial data table, which provides a comparison basis for the subsequent verification of whether the decryption data table is tampered with. The decryption hash value of the decryption data table can be calculated to provide a comparison object for the subsequent judgment of the integrity of the decrypted data. When the decryption hash value is consistent with the preset hash value, the execution sequence task performs data management on the decryption data table, and the data management result of the execution sequence task can be obtained. The final data management result of the execution sequence task can be obtained, which improves data security and management efficiency. Therefore, the enterprise financial data management method and system based on the SaaS platform proposed in the embodiment of the present invention can improve the management efficiency of enterprise financial data. ;
[0155] like Figure 2 The figure shows a functional module diagram of the enterprise financial data management system based on the SaaS platform of the present invention.
[0156] The enterprise financial data management system 100 based on the SaaS platform of the present invention can be installed in an electronic device. According to the functions implemented, the enterprise financial data management system based on the SaaS platform can include a financial service construction module 101, a financial database construction module 102, a priority table construction module 103, an execution priority query module 104, an access authority query module 105, a financial data table decryption module 106 and a data management execution module 107. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, which are stored in the memory of the electronic device.
[0157] In this embodiment, the functions of each module / unit are as follows:
[0158] The financial service construction module 101 is used to obtain the financial data and business requirements of the enterprise to be financially managed, and to construct the financial service of the enterprise to be financially managed in the SaaS platform based on the business requirements;
[0159] The financial database construction module 102 is used to encrypt the financial data to obtain encrypted financial data, identify the business logic category of the financial service, and construct a financial database corresponding to the financial service according to the encrypted financial data and the business logic category;
[0160] The priority table building module 103 is used to obtain the historical user tasks of the enterprise to be financially managed, identify the historical task deadlines and historical task values of the historical user tasks, and build a task priority table of the historical user tasks according to the historical task deadlines and the historical task values;
[0161] The execution priority query module 104 is used to obtain the current user task of the enterprise to be financially managed, and query the execution priority of the current user task based on the task priority table;
[0162] The access permission query module 105 is used to identify the user role of the current user task and query the access permission of the user role in the financial service and the financial database;
[0163] The financial data table decryption module 106 is used to determine the execution sequence task of the current user task according to the execution priority, query the financial data table of the execution sequence task in the financial database according to the access permission, and decrypt the financial data table to obtain a decrypted data table;
[0164] The data management execution module 107 is used to query the preset hash value of the financial data corresponding to the financial data table, calculate the decrypted hash value of the decrypted data table, and when the decrypted hash value is consistent with the preset hash value, execute the data management of the decrypted data table by the execution sequence task to obtain the data management result of the execution sequence task.
[0165] In detail, each module in the enterprise financial data management system 100 based on the SaaS platform in the embodiment of the present invention is used in the same manner as described above. Figure 1 The technical means are the same as the enterprise financial data management method based on the SaaS platform described in, and can produce the same technical effects, so I will not go into details here.
[0166] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0167] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0168] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0169] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0170] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0171] The embodiments of the present invention can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0172] Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps and the singular does not exclude the plural. The second and equal terms are used to indicate names and do not imply any particular order.
[0173] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for enterprise financial data management based on SaaS platform, characterized in that: The method comprises: Obtain the financial data and business needs of the enterprise to be financially managed, and build financial services for the enterprise to be financially managed in the SaaS platform based on the business needs; Encrypting the financial data to obtain encrypted financial data, identifying the business logic category of the financial service, and constructing a financial database corresponding to the financial service based on the encrypted financial data and the business logic category; Acquire the historical user tasks of the enterprise to be financially managed, identify the historical task deadlines and historical task values of the historical user tasks, and construct a task priority table for the historical user tasks according to the historical task deadlines and the historical task values; wherein, constructing the task priority table for the historical user tasks according to the historical task deadlines and the historical task values comprises: arranging the historical task values in descending order to obtain a historical value sequence, and constructing a priority horizontal axis for the historical user tasks according to the historical value sequence; arranging the historical task deadlines in ascending order to obtain a historical deadline sequence, and constructing a priority vertical axis for the historical user tasks according to the historical deadline sequence; calculating the priority value of the historical user tasks according to the historical task deadlines and the historical task values; and generating a task priority table for the historical user tasks based on the priority horizontal axis, the priority vertical axis, and the priority value; Acquire the current user task of the enterprise to be financially managed, and query the execution priority of the current user task based on the task priority table; wherein, querying the execution priority of the current user task based on the task priority table includes: acquiring the current task deadline and current task value of the current user task; querying the task priority table horizontally according to the current task deadline to obtain a deadline data row; querying the task priority table vertically according to the current task value to obtain a value data column; calculating the intersection data of the deadline data row and the value data column; and determining the execution priority of the current user task according to the intersection data; Identify the user role of the current user task, and query the access rights of the user role in the financial service and the financial database; Determine the execution sequence task of the current user task according to the execution priority, query the financial data table of the execution sequence task in the financial database according to the access permission, decrypt the financial data table to obtain a decrypted data table; Query the preset hash value of the financial data corresponding to the financial data table, calculate the decrypted hash value of the decrypted data table, and when the decrypted hash value is consistent with the preset hash value, execute the data management of the decrypted data table by the execution sequence task to obtain the data management result of the execution sequence task.
2. The enterprise financial data management method based on the SaaS platform according to claim 1, characterized in that: The step of encrypting the financial data to obtain encrypted financial data includes: Performing word segmentation processing on the financial data to obtain data word segmentation, and performing equal-length processing on the data word segmentation to obtain equal-length word segmentation; Using a preset encryption function, pre-encrypting the equal-length words to obtain pre-encrypted word data, and dividing the pre-encrypted word data into left and right blocks to obtain pre-encrypted left block words and pre-encrypted right block words, and marking the left block length and the right block length of the pre-encrypted left block words and the pre-encrypted right block words respectively; According to the pre-encrypted left block word, using a preset first pseudo-random function, an encryption key for the financial data is generated; According to the left block length, using a preset pseudo-random generator, generating a left random value corresponding to the pre-encrypted left block word; Generate a right random value corresponding to the pre-encrypted right block word using a preset second pseudo-random function according to the random value, the encryption key and the right block length; According to the left random value and the right random value, the encrypted word data of the pre-encrypted word data is calculated using the following formula: Among them, C i represents the i-th encrypted word data, X i represents the i-th pre-encrypted word data, represents the i-th left random value, represents the i-th right random value, represents the XOR symbol, and <> represents the concatenation symbol; Extracting keywords from the data segmentation, and extracting keyword encrypted data corresponding to the keywords from the encrypted word data; The encrypted financial data is determined based on the encrypted word data and the keyword encrypted data.
3. The enterprise financial data management method based on the SaaS platform according to claim 1, characterized in that: The identifying the business logic category of the financial service includes: Querying the business objects of the financial service and identifying the business rules and interaction relationships between the business objects; According to the business rules and interaction relationships, construct the data flow of the business object; Based on the business object, the business rules, the interaction relationship and the data flow, the business logic category of the financial service is determined.
4. The enterprise financial data management method based on the SaaS platform according to claim 1, characterized in that: The calculating the priority value of the historical user task according to the historical task deadline and the historical task value includes: Calculate the minimum deadline value of the historical task deadline and calculate the minimum value of the historical task value; According to the minimum deadline value and the minimum value, the priority value of the historical user task is calculated using the following formula: Among them, P(D,V) represents the priority value of the historical user task, D represents the deadline of the historical user task, V represents the value of the historical user task, and D m Represents the minimum value of the deadline, V m Indicates the minimum value, and % indicates the modulo symbol.
5. The enterprise financial data management method based on the SaaS platform according to claim 1, characterized in that: Determining the execution sequence task of the current user task according to the execution priority includes: Obtaining a current task deadline and a current task value corresponding to the execution priority, and dividing the current user task according to the current task value to obtain a divided task queue; According to the sequence of the deadlines of the current tasks, the current user tasks in the divided task queue are adjusted to obtain an adjusted task queue; Selecting the head task of each queue in the adjustment task queue, identifying the minimum priority value of the head task, taking out the head task corresponding to the minimum priority value from the adjustment task queue, and storing the head task in a pre-constructed initial task sequence; The initial task sequence is updated by using an iterative algorithm, and when each of the adjustment task queues is empty, the iteration is terminated to obtain a final task sequence; and the execution sequence task of the current user task is determined according to the final task sequence.
6. The enterprise financial data management method based on the SaaS platform according to claim 1, characterized in that: The querying of the financial data table of the execution sequence task in the financial database according to the access permission includes: According to the access authority, query the authority area data of the execution sequence task in the financial database, and query the keyword trap of the authority area data; Identifying a search keyword for the execution sequence task, and searching for the existence of the search keyword in the keyword trapdoor; When the existence status is existence, the search position of the authority area data corresponding to the search keyword is marked, and the financial data table of the execution sequence task in the financial database is determined according to the search position.
7. The enterprise financial data management method based on the SaaS platform according to claim 1, characterized in that: The calculating the decrypted hash value of the decrypted data table includes: Dividing the decrypted data table into blocks to obtain block data, and extracting key characters from the block data; Performing numerical conversion on the key character to obtain a converted numerical value of the key character; According to the conversion value, the decrypted hash value of the decrypted data table is calculated using the following formula: Among them, H represents the decrypted hash value of the decrypted data table, L i represents the i-th conversion value, B represents the weighting parameter, M represents the prime constant, i represents the sequence number of the conversion value, n represents the number of conversion values, and mod represents the modulus symbol.
8. The enterprise financial data management method based on the SaaS platform according to claim 1, characterized in that: The executing of the execution sequence task to manage the data of the decrypted data table, and obtaining the data management result of the execution sequence task, includes: Obtaining the operation instruction and user role corresponding to the execution sequence task, querying the access permission of the user role, and extracting the operation permission from the access permission; The inclusion relationship between the operation authority and the operation instruction is determined. When the inclusion relationship is inclusion, the data operation corresponding to the operation instruction is performed on the decrypted data table to obtain the data management result of the execution sequence task.
9. An enterprise financial data management system based on SaaS platform, characterized in that: The system comprises: A financial service construction module is used to obtain the financial data and business needs of the enterprise to be financially managed, and based on the business needs, to construct the financial services of the enterprise to be financially managed in the SaaS platform; A financial database construction module, used to encrypt the financial data to obtain encrypted financial data, identify the business logic category of the financial service, and construct a financial database corresponding to the financial service according to the encrypted financial data and the business logic category; A priority table construction module is used to obtain the historical user tasks of the enterprise to be financially managed, identify the historical task deadlines and historical task values of the historical user tasks, and construct a task priority table for the historical user tasks according to the historical task deadlines and the historical task values; wherein, constructing the task priority table for the historical user tasks according to the historical task deadlines and the historical task values comprises: arranging the historical task values in descending order to obtain a historical value sequence, and constructing a priority horizontal axis for the historical user tasks according to the historical value sequence; arranging the historical task deadlines in ascending order to obtain a historical deadline sequence, and constructing a priority vertical axis for the historical user tasks according to the historical deadline sequence; calculating the priority value of the historical user tasks according to the historical task deadlines and the historical task values; and generating a task priority table for the historical user tasks based on the priority horizontal axis, the priority vertical axis and the priority value; An execution priority query module is used to obtain the current user task of the enterprise to be financially managed, and query the execution priority of the current user task based on the task priority table; wherein, querying the execution priority of the current user task based on the task priority table includes: obtaining the current task deadline and current task value of the current user task; querying the task priority table horizontally according to the current task deadline to obtain the deadline data row; querying the task priority table vertically according to the current task value to obtain the value data column; calculating the intersection data of the deadline data row and the value data column; determining the execution priority of the current user task according to the intersection data; An access rights query module, used to identify the user role of the current user task, and query the access rights of the user role in the financial service and the financial database; A financial data table decryption module, used to determine the execution sequence task of the current user task according to the execution priority, query the financial data table of the execution sequence task in the financial database according to the access permission, decrypt the financial data table, and obtain a decrypted data table; A data management execution module is used to query the preset hash value of the financial data corresponding to the financial data table, calculate the decrypted hash value of the decrypted data table, and when the decrypted hash value is consistent with the preset hash value, execute the data management of the decrypted data table by the execution sequence task to obtain the data management result of the execution sequence task.
