Data processing method, terminal device and storage medium
Patent Information
- Application Number
- CN202310785706.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-29
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-06-29
AI Technical Summary
[0005]本申请实施例通过提供一种数据处理方法、终端设备和存储介质,旨在解决系统维护的工作量大的技术问题
[0039]本发明一实施例提出的一种数据处理方法,终端设备和存储介质,通过获取业务数据中待编码的各项要素以及待匹配的要素集合,然后将各项要素与要素集合匹配,确定目标要素集合,进一步通过获取服务器中目标要素集合对应的科目编码模板,从而根据科目编码模板,确定业务数据对应的目标科目编码,以根据目标科目编码对该笔业务数据进行记账分类。通过将科目编码模板存储于服务器中,在科目编码方式或者记账分类规则发生变更时,只需对数据库或者服务器中的科目编码模板进行变更修改,而无需对实际的程序代码进行修改,从而减少系统维护工作量,同时提升确定目标科目编码的响应速度。
Smart Images

Figure CN116739812B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a data processing method, terminal device, and storage medium. Background Technology
[0002] Account codes are used to identify each account and subject for the purpose of statistical analysis and tracking accounting information. This coding system typically consists of numbers and letters, which simply represent the classification and purpose of accounts and subjects. For example, "1" represents assets, "2" represents liabilities, "3" represents shareholders' equity, and "4" represents revenue. Therefore, determining the account code for an accounting entry based on the business data of the transaction when it occurs is crucial in the entire accounting process.
[0003] In the technical solutions for relevant accounting entries, the valuation and accounting guidelines provided by the Asset Management Association of China are typically followed, using the account codes listed in the guidelines directly to represent different accounting entries. However, when new investment and valuation accounting methods emerge, it is necessary to modify or re-code the program code corresponding to the original account coding system on a large scale, resulting in a large workload for system maintenance.
[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] This application provides a data processing method, a terminal device, and a storage medium, aiming to solve the technical problem of high system maintenance workload.
[0006] To achieve the above objectives, embodiments of the present invention provide a data processing method, the data processing method comprising the following:
[0007] Obtain the elements to be encoded and the set of elements to be matched from the business data;
[0008] Match each of the described elements with the set of elements to determine the target set of elements;
[0009] Obtain the subject code template corresponding to the target element set from the server;
[0010] Based on the subject coding template, determine the target subject code corresponding to the business data.
[0011] Optionally, before the step of matching each of the elements with the set of elements to determine the target set of elements, the method includes:
[0012] The set of elements to be matched is determined based on the received accounting classification rules;
[0013] Obtain the subject code corresponding to each element in the element set;
[0014] The subject code template is generated based on the set of elements and the subject code, and the subject code template is stored in the server.
[0015] Optionally, after the step of generating the subject code template based on the element set and the subject code, and storing the subject code template to the server, the method further includes:
[0016] When a change in the subject code corresponding to the subject code template is detected, the latest version of the subject code corresponding to the subject code template is obtained;
[0017] Update the subject codes of the latest version to the subject codes corresponding to the subject template.
[0018] Optionally, the step of matching each of the elements with the element set to determine the target element set includes:
[0019] Determine the business type of the business data;
[0020] Obtain the matching algorithm associated with the business type;
[0021] The matching algorithm is used to perform the step of matching each of the elements with the set of elements to determine the target set of elements.
[0022] Optionally, the step of using the matching algorithm to match each of the elements with the element set to determine the target element set includes:
[0023] When the matching algorithm is a weighted matching algorithm, each of the elements is matched with each element in the element set to determine a set of candidate elements that have been successfully matched, wherein the set of candidate elements includes at least two elements;
[0024] Obtain the weight value corresponding to each element in each set of candidate elements;
[0025] Based on the weight value corresponding to each element, determine the total weight value of each set of candidate elements;
[0026] The target element set is determined based on the total weight value of each of the candidate element sets.
[0027] Optionally, the step of using the matching algorithm to match each of the elements with the set of elements to determine the target set of elements includes:
[0028] When the matching algorithm is a numerical matching algorithm, each of the elements is matched with each element set in the element set to determine the set of candidate elements that have been successfully matched.
[0029] Obtain the number of elements in each set of candidate elements;
[0030] The target element set is determined based on the number of elements in each of the candidate element sets.
[0031] Optionally, the step of using the matching algorithm to match each of the elements with the set of elements to determine the target set of elements includes:
[0032] When the matching algorithm is a priority matching algorithm, each of the elements is matched with each element set in the element set to determine the set of candidate elements that have been successfully matched.
[0033] Obtain the priority corresponding to each set of candidate elements;
[0034] The target element set is determined based on the priority corresponding to each of the candidate element sets.
[0035] Optionally, after the step of determining the target account code corresponding to the business data based on the account code template, the method further includes:
[0036] The business data is recorded and journal entries are made according to the target account code, and accounting vouchers for the business data are generated.
[0037] In addition, to achieve the above objectives, the present invention also provides a terminal device, the terminal device comprising: a memory, a processor, and a data processing program stored in the memory and executable on the processor, wherein the data processing program, when executed by the processor, implements the steps of the data processing method as described above.
[0038] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a data processing program, which, when executed by a processor, implements the steps of the data processing method described above.
[0039] An embodiment of this invention proposes a data processing method, comprising a terminal device and a storage medium. The method involves acquiring various elements to be encoded and a set of elements to be matched from business data. Then, it matches each element with the element set to determine a target element set. Further, it obtains the account code template corresponding to the target element set from a server. Based on the account code template, it determines the target account code corresponding to the business data, and classifies the business data according to the target account code. By storing the account code template on the server, when the account coding method or accounting classification rules change, only the account code template in the database or server needs to be modified, without modifying the actual program code. This reduces system maintenance workload and improves the response speed for determining the target account code. Attached Figure Description
[0040] Figure 1 This is a flowchart illustrating an embodiment of the data processing method of the present invention;
[0041] Figure 2 This is a detailed flowchart of step S20 in the second embodiment of the data processing method of the present invention;
[0042] Figure 3 This is a detailed flowchart of step S20 in the third embodiment of the data processing method of the present invention;
[0043] Figure 4 This is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiments of the present invention.
[0044] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0045] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0046] In the technical solutions for relevant accounting entries, the valuation and accounting guidelines provided by the Asset Management Association of China are typically followed, using the account codes listed in the guidelines to represent different accounting entries. However, when new investment and valuation accounting methods emerge, it is necessary to make large-scale modifications or re-coding of the program code corresponding to the original account coding system, resulting in a large workload for system maintenance.
[0047] To address the aforementioned deficiencies in related technologies, this invention proposes a data processing method, the main steps of which include the following:
[0048] The system retrieves all elements to be encoded and the set of elements to be matched from the business data. Then, it matches each element with the set of elements to determine the target set of elements. Further, it retrieves the corresponding account code template from the server. Based on the account code template, it determines the target account code for the business data, and then performs accounting and classification based on the target account code. By storing the account code template on the server, changes to the account coding method or accounting classification rules only require modification of the account code template in the database or server, without modifying the actual program code. This reduces system maintenance workload and improves the response speed for determining the target account code.
[0049] To better understand the above technical solutions, exemplary embodiments of this application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.
[0050] Reference Figure 1 In one embodiment of the data processing method of the present invention, the data processing method includes the following steps:
[0051] Step S10: Obtain the elements to be encoded and the set of elements to be matched in the business data;
[0052] In this embodiment, the element set includes at least two elements. Each element includes an element name and an element value. Business data can be transaction logs generated from economic transactions; this includes, but is not limited to, the amount of funds, the direction of fund flow, and the purpose of fund use. For example, withdrawal records or purchase records / order information for stocks. This invention pre-obtains accounting classification rules and then represents all possible account codes for all business types as sets of elements according to these rules. It should be noted that the accounting classification rules include accounting classification methods corresponding to various business types.
[0053] Step S20: Match each of the elements with the set of elements to determine the target set of elements;
[0054] In this embodiment, by matching each element to be encoded parsed from the business data with the set of elements to be matched one by one, when each element in a set of elements corresponds to each element to be encoded, the set of elements is determined to be a successful match, and thus the set of elements is taken as the target set of elements.
[0055] Step S30: Obtain the subject code template corresponding to the target element set from the server;
[0056] Step S40: Determine the target subject code corresponding to the business data according to the subject code template.
[0057] In this embodiment, after determining the target element set, an account code template for the target element set can be obtained, and the target account code corresponding to the element set can be determined based on the account code template. The account code template includes the element names of each element in the target element set. A dictionary configuration corresponding to the account code template can be obtained. This dictionary configuration corresponds to the possible element values of each element name in the account code template and the corresponding account codes. Then, the account codes corresponding to each element value in the target element set are further queried in the dictionary configuration. Finally, the account codes are combined to obtain the target account code. By configuring the account code template and the corresponding dictionary configuration according to different element sets, the speed of determining the target account code can be improved, enhancing the user experience. It is understood that the account code template and dictionary configuration of this invention are stored in a server, which can be a database; this embodiment does not specifically limit this. Therefore, when the account coding method or accounting classification rules change, only the account code template or dictionary configuration in the database or server needs to be modified, without modifying the actual program code, thereby reducing system maintenance workload and improving the response speed for determining the target account code. Optionally, after determining the subject code corresponding to each element value in the target element set, the element values in the target set can be replaced with the subject code. This embodiment does not specifically limit this.
[0058] Optionally, after determining the target account code corresponding to the business data according to the account code template, the method further includes: making accounting entries for the business data according to the target account code, and generating accounting vouchers for the business data, so that the accounting vouchers for the business data can be tracked according to the target account code in the future, thereby improving the efficiency of accounting tracking and bookkeeping.
[0059] For example, assuming the current business data being processed involves purchasing a stock in the Shenzhen market, the elements obtained from parsing the business data would be: Securities = Stock, Category = Cost, Market = Shenzhen. This means that Securities = Stock, where "Securities" is the element name and "Stock" is the element value. Other elements are similarly analyzed and will not be elaborated further. The sets of elements to be matched are obtained as follows: Element Set 1: Securities = Stock, Category = Cost, Market = Shanghai; Element Set 2: Securities = Stock, Category = Cost, Market = Shenzhen; Element Set 3: Direction = Subscription, Branch = Bank, Currency = RMB. Then, each element is matched one by one with the sets of elements to be matched. The element set that matches successfully is Element Set 2, which is then used as the target element set. Next, the subject code template for Element Set 2 is obtained as [Securities][Category][Market]. Further, the dictionary configuration corresponding to the subject code template is obtained. Based on the element values in the target element set, the corresponding subject codes are queried in the dictionary configuration, and the element values in Element Set 2 are replaced with the subject codes. The subject codes are then combined to obtain the target subject code. That is, based on the elements in set two, securities are replaced with stocks as 1101, categories are replaced with costs as 01, and markets are replaced with Shenzhen as 02, thus obtaining the target account code 11010102.
[0060] In the technical solution provided in this embodiment, the system obtains the elements to be encoded and the set of elements to be matched from the business data. Then, it matches the elements with the set of elements to determine the target element set. Further, it obtains the account code template corresponding to the target element set from the server. Based on the account code template, it determines the target account code corresponding to the business data, and classifies the business data according to the target account code. By storing the account code template in the server, when the account coding method or accounting classification rules change, only the account code template in the database or server needs to be modified, without modifying the actual program code. This reduces the system maintenance workload and improves the response speed for determining the target account code.
[0061] Reference Figure 2 In the second embodiment, based on the first embodiment, step S20 includes:
[0062] Step S21: Determine the business type of the business data;
[0063] Step S22: Obtain the matching algorithm associated with the business type;
[0064] In this embodiment, the business type of the business data can be determined based on the various elements parsed from the business data. To improve the accuracy of the target element set for matching, the present invention determines different matching algorithms based on different business types. During matching, the system can automatically obtain the matching algorithm associated with the business type, or relevant personnel can select the corresponding matching algorithm based on the business data or the parsed elements. This embodiment does not specifically limit this.
[0065] Optionally, in another implementation, a business type is associated with one or more matching algorithms. By performing keyword recognition on the business data, one or more keywords are extracted from the business data. Then, the business type of the business data is determined based on the keywords, thereby obtaining multiple matching algorithms associated with that business type. These matching algorithms include weighted matching algorithms, numerical matching algorithms, and priority matching algorithms. To determine the target matching algorithm from the associated multiple matching algorithms, a prediction model is used to evaluate the subject code obtained by each matching algorithm. Then, the generated subject code is compared with the corresponding element in the business data to determine the accuracy of the subject code. The subject code with the highest accuracy is taken as the target subject code. It should be noted that this invention provides a keyword database. When performing keyword recognition on the business data, the business data is scanned and compared with the keyword database to extract one or more keywords from the business data.
[0066] Step S23: Using the matching algorithm, perform the step of matching each of the elements with the set of elements to determine the target set of elements.
[0067] In this embodiment, after obtaining the matching algorithm associated with the business type, the step of matching each element with the element set to determine the target element set is performed by using the associated matching algorithm. It should be noted that this invention provides a weighted matching algorithm, a quantity matching algorithm, and a priority matching algorithm. Different types of matching algorithms correspond to different business types, thereby improving the accuracy of the target subject coding.
[0068] Optionally, in another optional implementation, relevant personnel can select the corresponding matching algorithm according to the needs of accounting classification; this embodiment does not specifically limit this. Before the step of matching each of the elements with the element set to determine the target element set, the method further includes: receiving a matching control instruction, obtaining a matching identifier carried by the matching control instruction, obtaining the matching algorithm corresponding to the matching identifier, and using the matching algorithm to execute the step of matching each of the elements with the element set to determine the target element set. It can be understood that when no matching control instruction is received or an automatic matching instruction is received, the step of determining the business type of the business data is executed.
[0069] Optionally, the step of using the matching algorithm to match each of the elements with the element set to determine the target element set includes: when the matching algorithm is a weighted matching algorithm, matching each of the elements with each element in the element set to determine a successfully matched candidate element set, wherein the candidate element set includes at least two elements; obtaining the weight value corresponding to each element in each candidate element set; determining the total weight value of each candidate element set based on the weight value corresponding to each element; and determining the target element set based on the total weight value of each candidate element set.
[0070] In this embodiment, a weighted matching algorithm is used to determine the target element set. Weight values are pre-assigned to the elements in the element set. Weight values can be assigned to all elements in the element set, or only to a subset of elements; this embodiment does not impose specific limitations on this. It is understood that the weight value corresponding to different elements represents the importance of that element to the accounting classification; the larger the weight value, the greater the importance. The weight values can be determined according to the accounting classification rules; this embodiment does not impose specific limitations on this. It should be noted that the elements in the successfully matched candidate element set correspond to the elements parsed from the business data. For example, the elements parsed from the business data are: Direction = Subscription, Branch = Bank, Currency = RMB. The successfully matched candidate element sets can be: Candidate Element Set 1: Direction = Subscription, Branch = Bank; Candidate Element Set 2: Direction = Subscription, Branch = Bank, Currency = RMB. After determining the set of candidate elements, the weight values of the corresponding elements in each set of candidate elements can be further determined, and the sum of the weight values of each element can be calculated. The sum of the weight values is the total weight value of the set of candidate elements. The set of candidate elements with the largest total weight value is taken as the target element set, thereby improving the accuracy of the target element set.
[0071] Optionally, the step of using the matching algorithm to match each of the elements with the element set to determine the target element set includes: when the matching algorithm is a numerical matching algorithm, matching each of the elements with each element set in the element set to determine the successfully matched candidate element set; obtaining the number of elements in each candidate element set; and determining the target element set based on the number of elements in each candidate element set.
[0072] In this embodiment, the number of elements in the candidate element set can be determined, and the candidate element set with the largest number of elements is taken as the target element set. The target element set is determined by employing a numerical matching algorithm to make the accounting classification more detailed and facilitates efficient in-depth tracking of accounts later. For example, the elements parsed from business data are: Direction = Subscription, Branch = Bank, Currency = RMB. Successfully matched candidate element sets can be: Candidate Element Set 1: Direction = Subscription, Branch = Bank; Candidate Element Set 2: Direction = Subscription, Branch = Bank, Currency = RMB. Candidate Element Set 1 has 2 elements, and Candidate Element Set 2 has 3 elements. The candidate element set with the largest number of elements is Candidate Element Set 2, therefore, Candidate Element Set 2 is taken as the target element set.
[0073] Optionally, the step of using the matching algorithm to match each of the elements with the element set to determine the target element set includes: when the matching algorithm is a priority matching algorithm, matching each of the elements with each element set in the element set to determine the successfully matched candidate element set; obtaining the priority corresponding to each candidate element set; and determining the target element set according to the priority corresponding to each candidate element set.
[0074] In this embodiment, by pre-setting priorities for the elements in the element set, when determining the candidate element set, the priorities of each element in the candidate element set are obtained, and the highest priority among all elements is taken as the priority of the candidate element set. Then, the priorities of the candidate element sets are further compared, and the candidate element set with the highest priority is taken as the target element set, thereby improving the accuracy of the target subject coding. The element priorities of each element set can be pre-set by relevant personnel, and this embodiment does not impose specific limitations on this.
[0075] In the technical solution provided in this embodiment, the business type of the business data is determined based on the various elements parsed from the business data. Then, a matching algorithm associated with the business type is obtained. This matching algorithm is then used to perform the step of matching each element with the element set to determine the target element set. By parsing the business data and using different matching algorithms based on the business type corresponding to the business data to determine the target element set, the accuracy of the target subject coding is improved.
[0076] Reference Figure 3 In the third embodiment, based on any of the above embodiments, before step S20, the following steps are included:
[0077] Step S50: Determine the set of elements to be matched according to the received accounting classification rules;
[0078] Step S60: Obtain the subject code corresponding to each element in the element set;
[0079] Step S70: Generate the subject code template based on the element set and the subject code, and store the subject code template on the server.
[0080] In this embodiment, the accounting classification rules can be understood as accounting classification specifications or standards, and this embodiment does not specifically limit them. By representing the account code as a corresponding set of elements according to the accounting classification rules, when performing accounting classification, business data can be obtained and parsed to determine each element. The target account code is finally determined by matching each element with the set of elements to be matched, thus realizing accounting classification without the need for relevant personnel to manually query the account code table based on business data to determine the target account code, thereby improving the speed and accuracy of determining the target account code.
[0081] Optionally, after the step of generating the subject code template based on the element set and the subject code, and storing the subject code template to the server, the method further includes: when a change in the subject code corresponding to the subject code template is detected, obtaining the latest version of the subject code corresponding to the subject code template; and updating the latest version of the subject code to the subject code corresponding to the subject template.
[0082] In this embodiment, by updating the account code template in the server in real time, the accuracy of the target account code is improved, ensuring that the account code template is the latest version. It is understood that by storing the account code template in a server, which can be a database, this invention allows for changes to the account code method or accounting classification rules. Only the account code template or dictionary configuration in the database or server needs to be modified, without requiring modification to the actual program code. This achieves the technical effect of reducing system maintenance workload while improving the response speed for determining the target account code.
[0083] In the technical solution provided in this embodiment, the set of elements to be matched is determined according to the received accounting classification rules, and then the account code corresponding to each element in the set of elements is obtained. An account code template is generated according to the set of elements and the account code, and the account code template is stored in the server. This means that when the account code method or accounting classification rules change, only the account code template or dictionary configuration in the database or server needs to be changed, without modifying the actual program code. This achieves the technical effect of reducing the workload of system maintenance and improving the response speed of determining the target account code.
[0084] Reference Figure 4 , Figure 4This is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiments of the present invention.
[0085] In this embodiment of the invention, the terminal can be a terminal device, which can be a mobile phone, computer, tablet computer, or a control device specifically used for accounting. This embodiment does not specifically limit this.
[0086] like Figure 4 As shown, the terminal may include: a processor 1001, such as a CPU; a network interface 1004; a user interface 1003; a memory 1005; and a communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen, an input unit such as a keyboard, and a mouse; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as a disk drive. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0087] Those skilled in the art will understand that Figure 4 The terminal structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0088] like Figure 4 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a data processing program.
[0089] exist Figure 4 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and communicate with it; the processor 1001 can be used to call the data processing program stored in the memory 1005 and perform the following operations:
[0090] Obtain the elements to be encoded and the set of elements to be matched from the business data;
[0091] Match each of the described elements with the set of elements to determine the target set of elements;
[0092] Obtain the subject code template corresponding to the target element set from the server;
[0093] Based on the subject coding template, determine the target subject code corresponding to the business data.
[0094] Furthermore, the processor 1001 can call the data processing program stored in the memory 1005 and also perform the following operations:
[0095] The set of elements to be matched is determined based on the received accounting classification rules;
[0096] Obtain the subject code corresponding to each element in the element set;
[0097] The subject code template is generated based on the set of elements and the subject code, and the subject code template is stored in the server.
[0098] Furthermore, the processor 1001 can call the data processing program stored in the memory 1005 and also perform the following operations:
[0099] When a change in the subject code corresponding to the subject code template is detected, the latest version of the subject code corresponding to the subject code template is obtained;
[0100] Update the subject codes of the latest version to the subject codes corresponding to the subject template.
[0101] Furthermore, the processor 1001 can call the data processing program stored in the memory 1005 and also perform the following operations:
[0102] Determine the business type of the business data;
[0103] Obtain the matching algorithm associated with the business type;
[0104] The matching algorithm is used to perform the step of matching each of the elements with the set of elements to determine the target set of elements.
[0105] Furthermore, the processor 1001 can call the data processing program stored in the memory 1005 and also perform the following operations:
[0106] When the matching algorithm is a weighted matching algorithm, each of the elements is matched with each element in the element set to determine a set of candidate elements that have been successfully matched, wherein the set of candidate elements includes at least two elements;
[0107] Obtain the weight value corresponding to each element in each set of candidate elements;
[0108] Based on the weight value corresponding to each element, determine the total weight value of each set of candidate elements;
[0109] The target element set is determined based on the total weight value of each of the candidate element sets.
[0110] Furthermore, the processor 1001 can call the data processing program stored in the memory 1005 and also perform the following operations:
[0111] When the matching algorithm is a numerical matching algorithm, each of the elements is matched with each element set in the element set to determine the set of candidate elements that have been successfully matched.
[0112] Obtain the number of elements in each set of candidate elements;
[0113] The target element set is determined based on the number of elements in each of the candidate element sets.
[0114] Furthermore, the processor 1001 can call the data processing program stored in the memory 1005 and also perform the following operations:
[0115] When the matching algorithm is a priority matching algorithm, each of the elements is matched with each element set in the element set to determine the set of candidate elements that have been successfully matched.
[0116] Obtain the priority corresponding to each set of candidate elements;
[0117] The target element set is determined based on the priority corresponding to each of the candidate element sets.
[0118] The business data is recorded and journal entries are made according to the target account code, and accounting vouchers for the business data are generated.
[0119] In addition, to achieve the above objectives, the present invention also provides a terminal device, the terminal device comprising: a memory, a processor, and a data processing program stored in the memory and executable on the processor, wherein the data processing program, when executed by the processor, implements the steps of the data processing method as described above.
[0120] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a data processing program, which, when executed by a processor, implements the steps of the data processing method described above.
[0121] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0122] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0123] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which can be a mobile phone, computer, tablet computer, or a control device specifically used for accounting) to execute the methods described in the various embodiments of the present invention.
[0124] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A data processing method, characterized in that, The data processing method includes: Obtain the elements to be encoded and the set of elements to be matched from the business data; Match each of the described elements with the set of elements to determine the target set of elements; Obtain the subject code template corresponding to the target element set from the server; Based on the subject coding template, determine the target subject code corresponding to the business data; Prior to the step of matching each of the elements with the element set to determine the target element set, the following steps are included: The set of elements to be matched is determined based on the received accounting classification rules; Obtain the subject code corresponding to each element in the element set; The subject code template is generated based on the element set and the subject code, and the subject code template is stored in the server; The step of matching each of the aforementioned elements with the set of elements to determine the target set of elements includes: Perform keyword recognition on the business data and extract one or more keywords from the business data; Determine the business type of the business data based on the keywords; Obtain the matching algorithm associated with the business type, the matching algorithm including weight matching algorithm, numerical matching algorithm and priority matching algorithm; The matching algorithm is used to perform the step of matching each of the elements with the set of elements to determine the target set of elements.
2. The data processing method as described in claim 1, characterized in that, After the step of generating the subject code template based on the element set and the subject code, and storing the subject code template to the server, the method includes: When a change in the subject code corresponding to the subject code template is detected, the latest version of the subject code corresponding to the subject code template is obtained; Update the subject codes of the latest version to the subject codes corresponding to the subject template.
3. The method as described in claim 1, characterized in that, The step of using the matching algorithm to match each of the elements with the element set to determine the target element set includes: When the matching algorithm is a weighted matching algorithm, each of the elements is matched with each element in the element set to determine a set of candidate elements that have been successfully matched, wherein the set of candidate elements includes at least two elements; Obtain the weight value corresponding to each element in each set of candidate elements; Based on the weight value corresponding to each element, determine the total weight value of each set of candidate elements; The target element set is determined based on the total weight value of each of the candidate element sets.
4. The method as described in claim 1, characterized in that, The step of using the matching algorithm to match each of the elements with the element set to determine the target element set includes: When the matching algorithm is a numerical matching algorithm, each of the elements is matched with each element set in the element set to determine the set of candidate elements that have been successfully matched. Obtain the number of elements in each set of candidate elements; The target element set is determined based on the number of elements in each of the candidate element sets.
5. The method as described in claim 1, characterized in that, The step of using the matching algorithm to match each of the elements with the element set to determine the target element set includes: When the matching algorithm is a priority matching algorithm, each of the elements is matched with each element set in the element set to determine the set of candidate elements that have been successfully matched. Obtain the priority corresponding to each set of candidate elements; The target element set is determined based on the priority corresponding to each of the candidate element sets.
6. The data processing method as described in claim 1, characterized in that, After the step of determining the target account code corresponding to the business data based on the account code template, the method further includes: The business data is recorded and journal entries are made according to the target account code, and accounting vouchers for the business data are generated.
7. A terminal device, characterized in that, The terminal device includes: a memory, a processor, and a data processing program for the terminal device stored in the memory and executable on the processor. When the data processing program for the terminal device is executed by the processor, it implements the steps of the data processing method as described in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a data processing program for a terminal device, which, when executed by a processor, implements the steps of the data processing method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Rule matching method and device
CN107291733A
Evaluation table summarization method and device, equipment and medium
CN113935295A