Method and device for calculating reimbursement amount, storage medium and server
By analyzing the enterprise reimbursement statement documents and generating a reimbursement standard rule tree, the travel reimbursement amount is automatically calculated, which solves the problems of manual calculation errors and inefficiency, improves calculation accuracy and efficiency, and reduces financial risks.
Patent Information
- Application Number
- CN202510034128.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-01-09
AI Technical Summary
In the prior art, there are calculation errors and inefficiency in the calculation amount of travel reimbursement manually, which increases financial risks and work burden.
By analyzing the company's reimbursement statement documents, generating a reimbursement standard rule tree, and publishing it as a reimbursement calculation rule service, reimbursement personnel can automatically obtain the reimbursement amount by initiating a calculation request.
Improve the accuracy and efficiency of reimbursement calculations, reduce human errors, reduce financial risks, and simplify the reimbursement process.
Smart Images

Figure CN120013688A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of financial reimbursement, and in particular to a method, device, storage medium and server for calculating a reimbursement amount. Background Art
[0002] In the practice of corporate management, financial reimbursement management is a crucial link, and its standardization and accuracy are directly related to the financial security and operational efficiency of the enterprise. In particular, for travel reimbursement, due to the differences in cost standards in different regions and under different conditions, such as travel expenses, accommodation standards and travel subsidies, the reimbursement process becomes particularly complex and requires high precision.
[0003] At present, when processing travel reimbursement applications, companies generally adopt the manual filling method. The reimbursement personnel need to determine whether the location is a remote area based on the specific location of the business trip, and manually calculate the corresponding expenses based on the number of days of the business trip. In this process, the reimbursement personnel must not only be familiar with and master the complex reimbursement rules, but also have certain manual calculation capabilities to ensure the accuracy of the reimbursement amount. However, in actual operations, the diversity and complexity of reimbursement rules often exceed the processing capabilities of reimbursement personnel, and misjudgments and calculation errors caused by human factors make inaccurate filling in reimbursement applications frequently occur.
[0004] The defects of this manual reporting method not only increase the workload of reimbursement personnel and reduce work efficiency, but more importantly, it significantly increases financial risks. Mis-filling or missing filling may lead to cost overruns, improper subsidy issuance and other problems, which in turn affect the company's budget control and cost control, and in the long run, may also have an adverse impact on the company's financial situation. Summary of the invention
[0005] The embodiments of the present application provide a method, device, storage medium and server for calculating the reimbursement amount, which can solve the problem of easy calculation errors and low efficiency caused by manual calculation and filling of the reimbursement amount in the prior art. The technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for calculating a reimbursement amount, the method comprising:
[0007] Obtain the company's reimbursement documentation;
[0008] Parse the semantic information of the reimbursement description document to obtain the reimbursement calculation rules for each expense type;
[0009] Review each reimbursement calculation rule, and generate a reimbursement standard rule tree corresponding to each reimbursement calculation rule after the review is passed;
[0010] After publishing each reimbursement standard rule tree, generate the corresponding reimbursement calculation rule service;
[0011] Receiving a reimbursement calculation request from a reimbursement personnel, the reimbursement calculation request carrying an expense type and a corresponding input parameter value;
[0012] Determine a target reimbursement calculation rule service from among a plurality of preset reimbursement calculation rule services according to the carried expense type, and then use the target reimbursement calculation rule service to calculate the input parameter value to obtain a reimbursement calculation result;
[0013] The reimbursement calculation result is returned to the reimbursement personnel.
[0014] In a second aspect, an embodiment of the present application provides a device for calculating a reimbursement amount, the device comprising:
[0015] An acquisition unit, used to acquire the reimbursement description document of the enterprise;
[0016] A parsing unit, used to parse the semantic information of the reimbursement description document to obtain the reimbursement calculation rules for each expense type;
[0017] The review unit is used to review each reimbursement calculation rule, and after the review is passed, a reimbursement standard rule tree corresponding to each reimbursement calculation rule is generated;
[0018] A publishing unit, used to publish each reimbursement standard rule tree and generate the corresponding reimbursement calculation rule service;
[0019] A receiving unit, configured to receive a reimbursement calculation request from a reimbursement person, wherein the reimbursement calculation request carries an expense type and a corresponding input parameter value;
[0020] An execution unit, used to determine a target reimbursement calculation rule service from among a plurality of preset reimbursement calculation rule services according to the carried expense type, and then use the target reimbursement calculation rule service to calculate the input parameter value to obtain a reimbursement calculation result;
[0021] A returning unit is used to return the reimbursement calculation result to the reimbursement personnel.
[0022] In a third aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the above-mentioned method steps.
[0023] In a fourth aspect, an embodiment of the present application provides a terminal device, which may include: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the above-mentioned method steps.
[0024] The beneficial effects brought about by the technical solutions provided by some embodiments of the present application include at least:
[0025] By parsing the company's reimbursement description documents and generating a reimbursement standard rule tree, the accuracy and consistency of the reimbursement rules are ensured. This process reduces the errors in human understanding and application of rules and improves the accuracy of reimbursement calculations. Reimbursement personnel do not need to manually calculate various expenses. Instead, they initiate reimbursement calculation requests, and the system automatically calls the corresponding reimbursement calculation rule service according to the expense type for calculation. This greatly reduces the workload of reimbursement personnel and improves work efficiency. Automated calculation reduces the possibility of incorrect or missed filling, and avoids problems such as cost overruns and improper subsidy issuance. This not only helps companies achieve stricter budget control and cost control, but also reduces financial risks caused by human errors. Reimbursement personnel only need to fill in basic business trip information, and the system can automatically complete complex reimbursement calculations, simplifying the reimbursement process and improving user experience. The design of the reimbursement standard rule tree and reimbursement calculation rule service makes the system easy to maintain and expand. When the company's reimbursement rules change, only the corresponding rule tree and service need to be updated, without large-scale modifications to the entire system. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0027] Figure 1 It is a schematic diagram of the network architecture provided by the embodiment of the present application;
[0028] Figure 2 is a flowchart of a method for calculating a reimbursement amount provided in an embodiment of the present application;
[0029] Figure 3 is a schematic diagram of an editing interface for reimbursement calculation rules provided in an embodiment of the present application;
[0030] Figure 4 It is a structural schematic diagram of a device for calculating reimbursement amount provided by the present application;
[0031] Figure 5 It is a structural diagram of a server provided by this application. DETAILED DESCRIPTION
[0032] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0033] It should be noted that the method for calculating the reimbursement amount provided in the present application is generally executed by a terminal device, and accordingly, the device for calculating the reimbursement amount is generally set in a server.
[0034] Figure 1 An exemplary system architecture of the method for calculating a reimbursement amount or the apparatus for calculating a reimbursement amount that can be applied to the present application is shown.
[0035] like Figure 1 As shown, the system architecture may include: a terminal device 101 and a server 102. The terminal device 101 and the server 102 may communicate via a network, and the network is used as a medium for providing communication links between the above-mentioned units. The network may include various types of wired communication links or wireless communication links, for example: a wired communication link includes an optical fiber, a twisted pair or a coaxial cable, etc., and a wireless communication link includes a Bluetooth communication link, a wireless fidelity (WIreless-FIdelity, Wi-Fi) communication link or a microwave communication link, etc.
[0036] Among them, multiple reimbursement calculation rule services are configured and deployed in the server 102. When the reimbursement personnel fill in the reimbursement amount of a certain expense type in the reimbursement form, they can use the terminal device 101 to call the corresponding reimbursement calculation rule service from the server 102 to automatically perform the calculation and backfill of the reimbursement amount.
[0037] It should be noted that the terminal device 101 and the server 102 can be hardware or software. When the terminal device 101 and the server 102 are hardware, they can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the terminal device 101 and the server 102 are software, they can be implemented as multiple software or software modules (for example, to provide distributed services), or as a single software or software module, which is not specifically limited here.
[0038] Various communication client applications can be installed on the terminal device of the present application, such as: video recording applications, video playback applications, voice interaction applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0039] The terminal device can be hardware or software. When the terminal device is hardware, it can be various terminal devices with a display screen, including but not limited to smart phones, tablet computers, laptops, and desktop computers. When the terminal device is software, it can be installed in the terminal devices listed above. It can be implemented as multiple software or software modules (for example: used to provide distributed services), or it can be implemented as a single software or software module, which is not specifically limited here.
[0040] When the terminal device is hardware, a display device and a camera may be installed thereon. The display device may be any device capable of realizing a display function, and the camera is used to collect video streams; for example, the display device may be a cathode ray tube display (CR), a light-emitting diode display (LED), an electronic ink screen, a liquid crystal display (LCD), a plasma display panel (PDP), etc. The user may use the display device on the terminal device to view displayed text, pictures, videos and other information.
[0041] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be used as required.
[0042] The following will be combined with the attached Figure 2 , the method for calculating the reimbursement amount provided in the embodiment of the present application is described in detail. Among them, the device for calculating the reimbursement amount in the embodiment of the present application can be Figure 1 The terminal device shown.
[0043] See also Figure 2 , which is a flowchart of a method for calculating the reimbursement amount according to an embodiment of the present application. Figure 2 As shown, the method of the embodiment of the present application may include the following steps:
[0044] S201. Obtain the enterprise's reimbursement documentation.
[0045] Among them, the server receives the reimbursement instructions submitted by the enterprise through the API interface or file upload service of the enterprise's internal file management system (such as DMS, Document Management System). These documents may be stored in PDF, Word, Excel and other formats. The server uses a document parsing library (such as PDF parsing library PDFBox, Word parsing library Apache POI, etc.) to parse the received documents and extract the text content in the documents. For encrypted documents, the server first performs decryption processing. The parsed text content is stored in the server's storage system for further processing in subsequent steps.
[0046] S202: Parse the semantic information of the reimbursement description document to obtain reimbursement calculation rules for each expense type.
[0047] Among them, the server uses natural language processing (NLP) technology, such as a text understanding model based on deep learning, to perform semantic analysis on the text content of the reimbursement instructions. Through NLP methods such as named entity recognition (NER) and dependency syntax analysis, the server identifies key information in the document, including expense types (such as accommodation fees, communication fees, overtime pay, etc.), calculation conditions (such as region, level, number of days, etc.), rates, caps, etc. The server stores the identified key information in a structured manner to form a preliminary set of reimbursement rules. Each rule contains detailed information such as expense type, calculation conditions, calculation formula or rate.
[0048] In some embodiments of the present application, the configuration personnel can edit the reimbursement calculation rules of each expense type that has been parsed. Figure 3 The schematic diagram of the editing interface of the reimbursement calculation rule is shown, the left side of the interface shows the reimbursement standard rule tree, and the right side shows the detailed list of the reimbursement calculation rule for accommodation fees. The server displays the reimbursement calculation rules for each expense type on the interface; based on the editing instructions of the configuration personnel, the reimbursement calculation rules are edited, and the editing operation is used to add condition nodes, delete condition nodes, add result nodes, delete result nodes, or modify node content in the reimbursement standard rule tree; according to the edited reimbursement calculation rules, the corresponding reimbursement standard rule tree is updated.
[0049] Among them, after parsing the reimbursement description document and storing the reimbursement calculation rules in a structured manner, the server needs to prepare these rules for display on the user interface. The server sends the reimbursement calculation rules to the front-end interface in an appropriate format (such as JSON, XML, or a custom data structure). The front-end interface uses this data to render a table, list, or tree structure of the reimbursement calculation rules, displaying the calculation rules, conditions, rates, and other information corresponding to each expense type. The front-end interface design should allow configuration personnel to view the detailed information of the rules and provide an entry for editing the rules (such as a button, link).
[0050] After the reimbursement calculation rules are reviewed and the reimbursement standard rule tree is generated (after step S203 is completed), the server needs to provide editing functions for these rules on the front-end interface. The front-end interface receives editing instructions issued by the configuration personnel through UI operations (such as clicking, dragging, and input). These instructions may include adding condition nodes, deleting condition nodes, adding result nodes, deleting result nodes, or modifying node content. The front-end interface encapsulates the editing instructions into an appropriate request format and sends it to the server. The server receives and parses these instructions and prepares to make corresponding modifications to the reimbursement standard rule tree.
[0051] The server performs corresponding modification operations on the reimbursement standard rule tree according to the received editing instructions. This may include adding new nodes, deleting nodes, or modifying the content of existing nodes in the rule tree. Adding nodes: The server adds new condition nodes or result nodes at the appropriate location in the rule tree and sets their properties and values. Deleting nodes: The server removes the specified condition nodes or result nodes from the rule tree. Modifying node content: The server updates the properties or values of the specified node to reflect the configuration personnel's edits. After each modification, the server verifies the reimbursement standard rule tree to ensure the logical correctness and consistency of the rules. The server stores the modified reimbursement standard rule tree back to the database or memory for subsequent use.
[0052] S203, review each reimbursement calculation rule, and generate a reimbursement standard rule tree corresponding to each reimbursement calculation rule after the review is passed.
[0053] Among them, the server performs logic verification and rationality checks on each rule in the preliminary reimbursement rule set to ensure that the rules are unambiguous and free of logical errors. After the review is passed, the server converts each rule into a reimbursement standard rule tree. The rule tree is a hierarchical data structure that can intuitively reflect the hierarchical relationship and decision path of the reimbursement rules. Each node represents a part of the rule (such as conditions, operations, results), and the edge represents the logical relationship between nodes (such as AND, OR, NOT). The server optimizes the generated rule tree to improve subsequent computing efficiency. Optimization measures may include merging similar nodes, reducing redundant calculations, etc.
[0054] S204. After publishing each reimbursement standard rule tree, multiple reimbursement calculation rule services are generated.
[0055] Among them, the server deploys the optimized reimbursement standard rule tree into the microservice architecture, and each rule tree corresponds to an independent reimbursement calculation rule service. These services follow a unified interface specification so that external requests can call the corresponding calculation logic through specified parameters. The server configures service registration and discovery mechanisms (such as Eureka, Consul, etc.) so that services can be dynamically discovered and called. At the same time, the server also configures a load balancing mechanism to ensure high availability and response speed of the service. In terms of security, the server uses API gateways, authentication and authorization mechanisms (such as OAuth2, JWT, etc.) to protect service interfaces to prevent unauthorized access and data leakage.
[0056] Furthermore, each reimbursement calculation rule service is an API service. Review each reimbursement calculation rule to ensure compliance with corporate policies and laws and regulations. Deploy multiple API services based on the approved rules, each corresponding to a reimbursement calculation rule for an expense type. Configure the routing, authentication, authorization and other mechanisms of the API service to ensure the security and availability of the service.
[0057] Publish the API service to the enterprise's internal API management platform or the cloud service provider's API gateway. Provide API service documentation, including interface specifications, request parameters, response formats, etc., for use by reimbursement personnel and developers. Set up a test environment to allow reimbursement personnel and developers to test the API service without affecting the production environment.
[0058] The server receives the reimbursement calculation request submitted by the reimbursement personnel through the RESTful API or GraphQL interface. According to the expense type in the request, the server determines the API service to be called. The server passes the parameters in the request to the API service and waits for the service to return the calculation result.
[0059] Call the API service, pass in the necessary parameters, and execute the reimbursement calculation logic. Receive the calculation results returned by the API service and perform necessary verification and processing. If the API service call fails or returns an abnormal result, the server should record the error information and return a friendly error prompt to the reimbursement personnel.
[0060] The verified reimbursement calculation results are encapsulated into response data and returned to the reimbursement personnel through the original request channel. Subsequent operation instructions are provided in the response data, such as submitting reimbursement applications, viewing reimbursement details, etc. If the reimbursement calculation results contain multiple expense items or require further review, the server should provide clear instructions and instructions.
[0061] It should be noted that: In order to support the update and iteration of reimbursement calculation rules, the server should implement an API version management strategy. Each time the reimbursement calculation rules are updated, a new API version is created and the old version is retained for use when needed. The server should ensure the security of the API service, including using the HTTPS protocol, implementing authentication and authorization mechanisms, and limiting the frequency of API access. The server should monitor the operating status and performance indicators of the API service and record detailed log information. This helps to promptly discover and resolve potential problems and improve the stability and reliability of the API service.
[0062] S205. Receive a reimbursement calculation request from the reimbursement personnel, where the reimbursement calculation request carries the expense type and the corresponding input parameter value.
[0063] Among them, when filling out the reimbursement form, the reimbursement personnel send a reimbursement calculation request to the server according to the various expense types in the reimbursement form. The server receives the reimbursement calculation request submitted by the reimbursement personnel through interfaces such as RESTfulAPI or GraphQL. The request contains the expense type (such as accommodation expenses, communication expenses, etc.) and the corresponding input parameter value (such as business trip location, number of days, level, etc.). The server verifies the received request, checks the validity of the request, the integrity of the parameters, and user permissions. For invalid requests or requests with incomplete parameters, the server will return an error prompt message.
[0064] Furthermore, when receiving a reimbursement calculation request, the server should ensure that the latest version of the reimbursement standard rule tree is used (i.e., the version after all editing operations are taken into account). When performing calculations, they should also be calculated based on the latest rule tree. Finally, when returning the reimbursement calculation results, the server can attach version information so that the reimbursement personnel can understand which version of the rules the calculation is based on.
[0065] If multiple configuration personnel edit the same reimbursement calculation rule at the same time, the server needs to implement a concurrency control mechanism to avoid data conflicts and inconsistencies. In order to track the historical changes of the reimbursement calculation rules and roll back to a specific version, the server can implement a version management system. After each edit, a new version will be created, and a certain number of old versions can be retained for review and recovery. The server should record all editing operations on the reimbursement calculation rules, including editing time, editor, editing content, etc., for subsequent auditing and tracking.
[0066] S206. Determine a target reimbursement calculation rule service from among a plurality of preset reimbursement calculation rule services according to the carried expense type, and then use the target reimbursement calculation rule service to calculate the input parameter value to obtain a reimbursement calculation result.
[0067] Among them, the server queries and determines the target reimbursement calculation rule service from the service registration center according to the expense type field in the request. After determining the target service, the server preprocesses the incoming parameter values in the request, such as type conversion and format verification, to ensure that the parameters meet the requirements of the service. The server calls the target reimbursement calculation rule service and passes the preprocessed parameter values to the service. The service executes the calculation logic according to the built-in reimbursement standard rule tree to obtain an accurate reimbursement calculation result. The service returns the calculation result to the server. The server verifies and formats the returned result to ensure the accuracy and readability of the result.
[0068] S207. Return the reimbursement calculation result to the reimbursement personnel.
[0069] The server encapsulates the verified and formatted reimbursement calculation results into response data and returns them to the reimbursement personnel through the original request channel. The response data may include the total reimbursement amount, details of various expenses, calculation basis, etc. The reimbursement personnel can view the received reimbursement calculation results through the web interface, mobile application and other channels. After the reimbursement personnel's terminal device receives the reimbursement calculation results, it automatically fills in the reimbursement calculation results in the designated location of the reimbursement form. For abnormal or erroneous situations, the server will provide error codes and error information in the response data so that the reimbursement personnel can make corrections or resubmit the request.
[0070] The embodiments of the present application specifically include the following beneficial effects:
[0071] In view of the complexity of corporate travel reimbursement management and the limitations of manual operations, a set of automated processing procedures is proposed. The company's reimbursement description documents are parsed, reimbursement calculation rules for each expense type are generated, and a reimbursement standard rule tree is constructed. Subsequently, these rule trees are published as corresponding reimbursement calculation rule services. When the reimbursement personnel fill out the reimbursement form, the system receives the reimbursement calculation request initiated by them, and automatically selects and calls the corresponding service for calculation according to the expense type. The calculation results will be directly filled back into the reimbursement form, without the need for manual calculation by the reimbursement personnel. This solution not only improves the accuracy and efficiency of reimbursement and reduces financial risks, but also simplifies the reimbursement process and improves user experience, while maintaining the system's maintainability and scalability.
[0072] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0073] See also Figure 4 , which shows a schematic diagram of the structure of a device for calculating the reimbursement amount provided by an exemplary embodiment of the present application, hereinafter referred to as device 4. The device 4 can be implemented as all or part of the server through software, hardware or a combination of both. The device 4 includes: an acquisition unit 401, a parsing unit 402, a review unit 403, a publishing unit 404, a receiving unit 405, an execution unit 406 and a return unit 407.
[0074] An acquisition unit 401 is used to acquire a reimbursement description document of an enterprise;
[0075] A parsing unit 402, used to parse the semantic information of the reimbursement description document to obtain reimbursement calculation rules for each expense type;
[0076] The review unit 403 is used to review each reimbursement calculation rule, and generate a reimbursement standard rule tree corresponding to each reimbursement calculation rule after the review is passed;
[0077] A publishing unit 404, used to generate corresponding reimbursement calculation rule services after publishing each reimbursement standard rule tree;
[0078] The receiving unit 405 is used to receive a reimbursement calculation request from a reimbursement person, wherein the reimbursement calculation request carries an expense type and a corresponding input parameter value;
[0079] The execution unit 406 is used to determine a target reimbursement calculation rule service from among the preset multiple reimbursement calculation rule services according to the carried expense type, and then use the target reimbursement calculation rule service to calculate the input parameter value to obtain a reimbursement calculation result;
[0080] The returning unit 407 is used to return the reimbursement calculation result to the reimbursement personnel.
[0081] In one or more possible embodiments, it further includes:
[0082] An editing unit, used to display the reimbursement calculation rules of each expense type on the interface;
[0083] Performing editing operations on the reimbursement calculation rules based on the editing instructions of the configuration personnel, wherein the editing operations are used to add condition nodes, delete condition nodes, add result nodes, delete result nodes, or modify node content in the reimbursement standard rule tree;
[0084] Update the corresponding reimbursement standard rule tree according to the edited reimbursement calculation rules.
[0085] In one or more possible embodiments, the reimbursement calculation rules for each expense type include: accommodation expense reimbursement calculation rules, communication expense reimbursement calculation rules, training expense reimbursement calculation rules, and overtime expense reimbursement calculation rules.
[0086] In one or more possible embodiments, each reimbursement calculation rule service is an API service.
[0087] In one or more possible embodiments, the generating of the corresponding reimbursement calculation rule services after publishing each reimbursement standard rule tree includes:
[0088] Publish each reimbursement calculation rule service to the API gateway of the enterprise's cloud service provider, and upload the API service document to the API gateway, the document including: interface specification, request parameters, and response format.
[0089] In one or more possible embodiments, obtaining the enterprise's reimbursement description document includes:
[0090] Receive reimbursement documents submitted by enterprises through the API interface or file upload service of the document management system.
[0091] In one or more possible embodiments, the parsing of semantic information of the reimbursement description document to obtain reimbursement calculation rules for each expense type includes:
[0092] Based on the deep learning text understanding model, semantic analysis is performed on the text content of the reimbursement instruction document to obtain the reimbursement calculation rules for each expense type.
[0093] It should be noted that the device 4 provided in the above embodiment only uses the division of the above functional modules as an example when executing the method for calculating the reimbursement amount. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the above functions. In addition, the device for calculating the reimbursement amount provided in the above embodiment and the method for calculating the reimbursement amount are of the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0094] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0095] The present application also provides a computer storage medium, which can store multiple instructions, and the instructions are suitable for being loaded and executed by a processor as described above. Figure 2 The method steps of the embodiment shown in the figure can be found in the specific implementation process. Figure 2 The specific description of the illustrated embodiment will not be repeated here.
[0096] The present application also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for calculating the reimbursement amount as described in the above embodiments.
[0097] See also Figure 5 , which is a schematic diagram of the structure of a server provided in the embodiment of the present application. Figure 5 As shown, the server 500 may include: at least one processor 501 , at least one network interface 504 , a user interface 503 , a memory 505 , and at least one communication bus 502 .
[0098] The communication bus 502 is used to realize the connection and communication between these components.
[0099] The user interface 503 may include a display screen (Display) and a camera (Camera), and the optional user interface 503 may also include a standard wired interface and a wireless interface.
[0100] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).
[0101] Among them, the processor 501 may include one or more processing cores. The processor 501 uses various interfaces and lines to connect various parts within the entire server 500, and executes various functions and processes data of the server 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 501 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 501, and it can be implemented separately through a chip.
[0102] Among them, the memory 505 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 505 may also be optionally at least one storage device located away from the aforementioned processor 501. As Figure 5 As shown, the memory 505 as a computer storage medium may include an operating system, a network communication module, a user interface module and an application program.
[0103] exist Figure 5In the server 500 shown in FIG. 1 , the user interface 503 is mainly used to provide an input interface for the user and obtain the data input by the user; and the processor 501 can be used to call the application stored in the memory 505 and specifically execute the following steps: Figure 2 The specific process can be referred to Figure 2 As shown, no further description is given here.
[0104] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only storage memory, or a random access memory, etc.
[0105] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for calculating a reimbursement amount, characterized in that: include: Obtain the company's reimbursement documentation; Parse the semantic information of the reimbursement description document to obtain the reimbursement calculation rules for each expense type; Review each reimbursement calculation rule, and generate a reimbursement standard rule tree corresponding to each reimbursement calculation rule after the review is passed; After publishing each reimbursement standard rule tree, generate the corresponding reimbursement calculation rule service; Receiving a reimbursement calculation request from a reimbursement personnel, the reimbursement calculation request carrying an expense type and a corresponding input parameter value; Determine a target reimbursement calculation rule service from among a plurality of preset reimbursement calculation rule services according to the carried expense type, and then use the target reimbursement calculation rule service to calculate the input parameter value to obtain a reimbursement calculation result; The reimbursement calculation result is returned to the reimbursement personnel.
2. The method according to claim 1, characterized in that Also includes: Display the reimbursement calculation rules for each expense type on the interface; Performing editing operations on the reimbursement calculation rules based on the editing instructions of the configuration personnel, wherein the editing operations are used to add condition nodes, delete condition nodes, add result nodes, delete result nodes, or modify node content in the reimbursement standard rule tree; Update the corresponding reimbursement standard rule tree according to the edited reimbursement calculation rules.
3. The method according to claim 1 or 2, characterized in that: The reimbursement calculation rules for each expense type include: accommodation expense reimbursement calculation rules, communication expense reimbursement calculation rules, training expense reimbursement calculation rules and overtime pay reimbursement calculation rules.
4. The method according to claim 3, characterized in that Each reimbursement calculation rule service is an API service.
5. The method according to claim 4, characterized in that The publishing of each reimbursement standard rule tree generates the corresponding reimbursement calculation rule service, including: Publish each reimbursement calculation rule service to the API gateway of the enterprise's cloud service provider, and upload the API service document to the API gateway, the document including: interface specification, request parameters, and response format.
6. The method according to claim 1 or 2 or 4 or 5, characterized in that: The reimbursement description document obtained from the enterprise includes: Receive reimbursement documents submitted by enterprises through the API interface or file upload service of the document management system.
7. The method according to claim 6, characterized in that The semantic information of the reimbursement description document is parsed to obtain reimbursement calculation rules for each expense type, including: Based on the deep learning text understanding model, semantic analysis is performed on the text content of the reimbursement instruction document to obtain the reimbursement calculation rules for each expense type.
8. A device for calculating reimbursement amount, characterized in that: include: An acquisition unit, used to acquire the reimbursement description document of the enterprise; A parsing unit, used to parse the semantic information of the reimbursement description document to obtain the reimbursement calculation rules for each expense type; The review unit is used to review each reimbursement calculation rule, and after the review is passed, a reimbursement standard rule tree corresponding to each reimbursement calculation rule is generated; A publishing unit, used to publish each reimbursement standard rule tree and generate the corresponding reimbursement calculation rule service; A receiving unit, configured to receive a reimbursement calculation request from a reimbursement person, wherein the reimbursement calculation request carries an expense type and a corresponding input parameter value; An execution unit, used to determine a target reimbursement calculation rule service from among a plurality of preset reimbursement calculation rule services according to the carried expense type, and then use the target reimbursement calculation rule service to calculate the input parameter value to obtain a reimbursement calculation result; A returning unit is used to return the reimbursement calculation result to the reimbursement personnel.
9. A computer storage medium, characterized in that: The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the method steps according to any one of claims 1 to 7.
10. A server, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the method steps as claimed in any one of claims 1 to 7.
Citation Information
Patent Citations
Financial reimbursement method and device, storage medium and electronic equipment
CN113989010A
Open API (Application Program Interface) integration and management method and computer equipment
CN114979103A
Financial reimbursement method and device and electronic equipment
CN116029843A
Processing method and device for reimbursement of multi-person travel expense
CN116645073A
Data processing method and device, computer equipment and storage medium
CN117332758A