File generation method and device, electronic equipment and storage medium
By obtaining form data from bank receipts, identifying business information and matching target fields, and updating the file format to OFD, the problem of insufficient standardization of bank receipt files was solved, and query and processing efficiency was improved.
Patent Information
- Application Number
- CN202411169033.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-26
AI Technical Summary
The lack of standardization in the PDF and XML file formats of bank receipts makes it inconvenient for clients to read, store, and process them.
By receiving form query requests from clients, obtaining form data and determining business information, matching target fields to update the file format to OFD, including target fields and business data, and improving file standardization.
This improved the standardization of bank statement documents, enhancing the efficiency and convenience of client-side queries and processing.
Smart Images

Figure CN119025485A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a file generation method, device, electronic device and storage medium. Background Art
[0002] In the prior art, bank receipts are usually displayed in the form of PDF and / or XML files, but the field labels in such files are mostly defined by each bank, with low standardization, making it inconvenient for clients to read, query, store, and process them. Summary of the invention
[0003] The present disclosure provides a file generation method, device, electronic device and storage medium to solve the problem of how to improve the standardization of bank receipts, thereby improving the efficiency of file management.
[0004] According to one aspect of the present disclosure, there is provided a file generation method, comprising:
[0005] In response to receiving a form query request sent by a client, obtaining form data corresponding to the query request, wherein the form data includes a plurality of first fields and business data corresponding to each of the first fields;
[0006] Determine the business information corresponding to the form data, and the first file corresponding to the form data;
[0007] Based on the business information, determining multiple target fields corresponding to the form data;
[0008] Matching the target field with each of the first fields to determine the business data corresponding to each of the target fields;
[0009] Based on the target field and the corresponding business data, the first file is updated to obtain an updated second file;
[0010] The second file is returned to the client.
[0011] According to another aspect of the present disclosure, there is provided a file generation method, comprising:
[0012] Send a form query request to the server;
[0013] A second file sent by the server is received, wherein the second file includes target fields and business data corresponding to the form data.
[0014] According to another aspect of the present disclosure, there is provided a file generating device, comprising:
[0015] An acquisition module, configured to, in response to receiving a form query request sent by a client, acquire form data corresponding to the query request, wherein the form data includes a plurality of first fields and business data corresponding to each of the first fields;
[0016] A first determining module, used to determine the business information corresponding to the form data and the first file corresponding to the form data;
[0017] A second determination module, configured to determine a plurality of target fields corresponding to the form data based on the business information;
[0018] A matching module, used for matching the target field with each of the first fields to determine the business data corresponding to each of the target fields;
[0019] An updating module, configured to update the first file based on the target field and the corresponding business data to obtain an updated second file;
[0020] The first sending module is used to return the second file to the client.
[0021] According to another aspect of the present disclosure, there is provided a file generating device, comprising:
[0022] The second sending module is used to send a form query request to the server;
[0023] The first receiving module is used to receive a second file sent by the server, wherein the second file contains a target field and business data corresponding to the form data.
[0024] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0025] at least one processor;
[0026] and, a memory communicatively coupled to the at least one processor;
[0027] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the method of the above embodiment.
[0028] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method according to the above embodiment.
[0029] The present disclosure provides a file generation method, device, electronic device and storage medium. First, in response to receiving a form query request sent by a client, the form data corresponding to the query request is obtained, and the business information corresponding to the form data and the first file corresponding to the form data are determined. Then, based on the business information, multiple target fields corresponding to the form data are determined, and the target field is matched with each first field to determine the business data corresponding to each target field. Then, based on the target field and the corresponding business data, the first file is updated to obtain an updated second file, and finally the second file is returned to the client. Thus, after receiving the form query request sent by the client, based on the business information of the form data corresponding to the query request, multiple target fields corresponding to the form data are determined, based on the target field and the business data corresponding to the first field in the form data that matches the target field, the first file of the form data is updated, and the second file obtained after the update is returned to the client, thereby improving the standardization of the second file and providing conditions for improving the efficiency and convenience of the client querying form data. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0031] Figure 1 A flowchart of a file generation method provided by an embodiment of the present disclosure;
[0032] Figure 2 A flowchart of a file generation method provided by an embodiment of the present disclosure;
[0033] Figure 3 A flowchart of a file generation method provided by an embodiment of the present disclosure;
[0034] Figure 4 A flowchart of a file generation method provided by an embodiment of the present disclosure;
[0035] Figure 5 A flowchart of a file generation method provided by an embodiment of the present disclosure;
[0036] Figure 6 A schematic diagram of the structure of a file generating device provided by an embodiment of the present disclosure;
[0037] Figure 7 A schematic diagram of the structure of a file generating device provided by an embodiment of the present disclosure;
[0038] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure.
[0039] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0041] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this disclosure are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0042] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution disclosed in this disclosure are in compliance with the relevant provisions of national laws and regulations.
[0043] It should be noted that in the embodiments of the present disclosure, certain software, components, models and other existing solutions in the industry may be mentioned, which should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present disclosure, but it does not mean that the applicant has or will necessarily use the solution.
[0044] The file generation method of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.
[0045] Figure 1 A flowchart of a file generation method provided in an embodiment of the present disclosure.
[0046] like Figure 1 As shown, the method includes:
[0047] Step 101, in response to receiving a form query request sent by a client, obtaining form data corresponding to the query request, wherein the form data includes a plurality of first fields and business data corresponding to each first field.
[0048] The form query request may be a request for querying any type of form. For example, the form query request may be a request for querying a transfer receipt, a deposit receipt, or a statement, etc., which is not limited in the present disclosure.
[0049] The form data may be form data of any form type, for example, the form data may be deposit receipt data, transfer receipt data, or statement data, etc., which is not limited in the present disclosure.
[0050] The first field may be a structured field name in the form data. For example, the first field may be an account name, an account number, an amount, etc., which is not limited in the present disclosure.
[0051] It should be noted that if the first field is different, the corresponding business data may be different. For example, if the form data is a transfer receipt data, when the first field is the account number, the corresponding business data may be the actual account number of the transferor, and when the first field is the amount, the corresponding business data may be the actual transfer amount, etc. This disclosure does not limit this.
[0052] In the present disclosure, after receiving the form query request sent by the client, the server can first obtain the form data corresponding to the query request from the business system based on the form query request, and provide a data basis for the client to return the corresponding form file. For example, after receiving the request for querying the transfer receipt sent by the client, the server can obtain the transfer receipt data corresponding to the query request from the business system, which may include any receipt data related to the transfer receipt, such as the transferor, the creditor, and the transfer amount, and the present disclosure does not limit this.
[0053] Step 102: Determine the business information corresponding to the form data and the first file corresponding to the form data.
[0054] The business information of the form data may be any type of business information. For example, the business information corresponding to the form data may be transfer business information, or may be deposit business information, etc., which is not limited in the present disclosure.
[0055] Among them, the first file is an OFD file generated based on the form data.
[0056] Among them, OFD is the abbreviation of Open Fixed layout Document (OFD).
[0057] In the present disclosure, after obtaining the form data corresponding to the query request, the accuracy of the file corresponding to the query request returned to the client can be improved by determining the business information corresponding to the form data and the first file corresponding to the form data.
[0058] It should be noted that when determining the first file corresponding to the form data, you can first generate a portable document format (PDF) file corresponding to the form data based on the form data, and then convert the PDF file into an OFD file, that is, the first file. This disclosure does not limit this.
[0059] Optionally, after receiving the form query request sent by the client and obtaining the form data corresponding to the query request, when the query request corresponds to a form data, the business information corresponding to the form data can be directly determined based on the form type field in the query request. For example, when the form query request is to query a remittance receipt for a certain day and a certain period of time, the business information corresponding to the form data can be directly determined to be remittance business information based on the form type field remittance receipt in the query request, and the present disclosure does not limit this.
[0060] Optionally, after receiving a form query request sent by a client and obtaining the form data corresponding to the query request, in the case where the query request corresponds to multiple form data, in order to improve the accuracy and reliability of determining the business information corresponding to the form data, at least one of the following processing can be performed on the multiple first fields included in each form data to determine the business information corresponding to the form data: semantic recognition, location recognition. For example, when the form query request is to query the statement of account for a certain year and month, since the statement of account for that month may contain multiple form data, at this time, each form data needs to be identified to determine the business information of each form data, and the present disclosure does not limit this.
[0061] It should be noted that the semantic recognition result or position recognition result of the first field may be different if the business information corresponding to the form data is different. For example, in business information such as deposits and withdrawals, when the first field included is the remitter, its semantics in the deposit business is the party making a deposit and located at the depositor's position, and its semantics in the withdrawal business is the party remitting money to the withdrawer and located at the remitter's position, etc. This disclosure does not limit this.
[0062] Step 103: Determine multiple target fields corresponding to the form data based on the business information.
[0063] The target field is a field in the XBRL format corresponding to the structured field of the form data, which may be preset, and the present disclosure does not limit this.
[0064] Among them, XBRL is the Extensible Business Reporting Language (XBRL) format, which is a language based on Extensible Markup Language (XML) and is mainly used for standardized definition and representation of business information.
[0065] In the present disclosure, after determining the business information corresponding to the form data, multiple target fields corresponding to the form data can be determined based on the business information corresponding to the form data, thereby providing conditions for improving the standardization of the file returned to the client.
[0066] It should be noted that, due to different business information of the form data, the multiple target fields corresponding to the determined form data may be different, and the present disclosure does not limit this.
[0067] Step 104: Match the target field with each first field to determine the business data corresponding to each target field.
[0068] In the present disclosure, after determining multiple target fields corresponding to the form data, the business data corresponding to each target field can be determined by matching the target field with each first field, thereby improving the accuracy of the generated file.
[0069] It should be noted that when matching the target field with each first field, the matching may be performed based on a preset mapping relationship between the target field and the first field, which is not limited in the present disclosure.
[0070] Step 105: Update the first file based on the target field and the corresponding business data to obtain an updated second file.
[0071] The second file is a target OFD file corresponding to the form data, which is an OFD file containing target fields of the form data and corresponding business data.
[0072] In the present disclosure, after determining the business data corresponding to each target field, in order to improve the standardization of the returned file, the fields and business data in the first file can be updated based on each target field and the business data corresponding to the target field to obtain an updated second file, thereby improving the accuracy and standardization of the generated second file.
[0073] It should be noted that when updating the first file based on the target fields and the corresponding business data, each target field and its corresponding business data can first be converted into JavaScript Object Notation (JSON) format, that is, converted into a key-value pair format, and then the second file is updated.
[0074] It should be noted that when the first file is updated based on the target fields and the corresponding business data to obtain the updated second file, the target fields and the corresponding business data can also be added to the second file in the form of an XBRL file, so that the second file contains the target fields and the corresponding business data of the form data.
[0075] Step 106: Return the second file to the client.
[0076] In the present disclosure, after obtaining the second file, the server may return the second file to the client, so that the client can perform a form query.
[0077] In the disclosed embodiment, first, in response to receiving a form query request sent by a client, the form data corresponding to the query request is obtained, and the business information corresponding to the form data and the first file corresponding to the form data are determined, then based on the business information, multiple target fields corresponding to the form data are determined, and the target field is matched with each first field to determine the business data corresponding to each target field, then based on the target field and the corresponding business data, the first file is updated to obtain an updated second file, and finally the second file is returned to the client. Thus, after receiving the form query request sent by the client, based on the business information of the form data corresponding to the query request, multiple target fields corresponding to the form data are determined, based on the target field and the business data corresponding to the first field in the form data that matches the target field, the first file of the form data is updated, and the second file obtained after the update is returned to the client, thereby improving the standardization of the second file, and providing conditions for improving the efficiency and convenience of the client querying the form data.
[0078] Figure 2 A flowchart of a file generation method provided in an embodiment of the present disclosure.
[0079] like Figure 2 As shown, the method includes:
[0080] Step 201, in response to receiving a form query request sent by a client, obtaining form data corresponding to the query request, wherein the form data includes a plurality of first fields and business data corresponding to each first field.
[0081] Step 202: Determine the business information corresponding to the form data and the first file corresponding to the form data.
[0082] Step 203: Determine multiple target fields corresponding to the form data based on the business information.
[0083] The specific implementation forms of steps 201 to 203 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.
[0084] Step 204: based on the business information corresponding to the form data, obtain the field mapping relationship corresponding to the form data.
[0085] The field mapping relationship is a mapping relationship between the first field in the form data and the target field, which may be preset and is not limited in the present disclosure.
[0086] It should be noted that the business information corresponding to the form data is different, and the field mapping relationship corresponding to the form data may be different, and this disclosure does not limit this.
[0087] In the present disclosure, after determining multiple target fields corresponding to the form data, in order to determine the business data corresponding to the target fields, the field mapping relationship between the target fields corresponding to the form data and the first field can be obtained based on the business information corresponding to the form data, and the business data corresponding to the target field can be determined by determining the first field that matches the target field, thereby improving the accuracy of the business data corresponding to the determined target field.
[0088] Step 205: Determine the first field that matches each target field based on the field mapping relationship.
[0089] In the present disclosure, after obtaining the field mapping relationship corresponding to the form data, the first field matching each target field can be determined based on the field mapping relationship, thereby determining the business data corresponding to each target field.
[0090] Step 206: When any target field matches any first field, the business data corresponding to the any first field is determined as the business data corresponding to the any target field.
[0091] In the present disclosure, after determining the first field that matches each target field based on the field mapping relationship, when any target field matches any first field, the business data corresponding to any first field can be determined as the business data corresponding to any target field, thereby improving the accuracy of the business data corresponding to the determined target field.
[0092] Step 207: Update the first file based on the target field and the corresponding business data to obtain an updated second file.
[0093] In the present disclosure, when any target field matches any first field, the business data corresponding to any first field is determined as the business data corresponding to any target field, and after determining the business data corresponding to each target field, the first file is updated based on the target field and the corresponding business data to obtain an updated second file, thereby improving the standardization and accuracy of the second file.
[0094] Step 208: Return the second file to the client.
[0095] The specific implementation forms of step 207 to step 208 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.
[0096] In the disclosed embodiment, first, in response to receiving a form query request sent by a client, the form data corresponding to the query request is obtained, then the business information corresponding to the form data and the first file corresponding to the form data are determined, and based on the business information, multiple target fields corresponding to the form data are determined, then based on the business information corresponding to the form data, the field mapping relationship corresponding to the form data is obtained, and based on the field mapping relationship, the first field matching each target field is determined, and in the case where any target field matches any first field, the business data corresponding to any first field is determined as the business data corresponding to the any target field, and finally based on the target field and the corresponding business data, the first file is updated to obtain the updated second file, and the second file is returned to the client. Thus, after receiving the form query request sent by the client and obtaining the form data corresponding to the query request, the field mapping relationship corresponding to the form data is determined based on the business information corresponding to the form data, and each target field corresponding to the form data is matched with the first field of the form data based on the field mapping relationship to determine the business data corresponding to the target field, and based on the target field and the corresponding business data, the first file corresponding to the form data is updated to obtain the updated second file, and the second file is returned to the client, thereby improving the accuracy and standardization of the generated second file.
[0097] Figure 3 A flowchart of a file generation method provided in an embodiment of the present disclosure.
[0098] like Figure 3 As shown, the method includes:
[0099] Step 301, in response to receiving a form query request sent by a client, obtaining form data corresponding to the query request, wherein the form data includes a plurality of first fields and business data corresponding to each first field.
[0100] Step 302: Determine the business information corresponding to the form data and the first file corresponding to the form data.
[0101] Step 303: Determine multiple target fields corresponding to the form data based on the business information.
[0102] Step 304: based on the business information corresponding to the form data, obtain the field mapping relationship corresponding to the form data.
[0103] Step 305: Determine the first field that matches each target field based on the field mapping relationship.
[0104] The specific implementation forms of steps 301 to 305 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.
[0105] Step 306: When any target field does not match each first field, determine the semantics of the target first field corresponding to the unused business data.
[0106] The unused business data is the business data corresponding to the target first field in the form data that has not been matched with the target field.
[0107] In the present disclosure, after determining the first field that matches each target field based on the field mapping relationship, when any target field does not match each first field, in order to determine the business data corresponding to any target field, the semantics of the target first field corresponding to the unused business data in the form data can be first determined.
[0108] Step 307: Determine the semantic similarity between the target first field and any target field.
[0109] In the present disclosure, after determining the semantics of the target first field corresponding to the unused business data, the semantic similarity between the target first field and the any target field can be determined by any pre-set method for determining semantic similarity. For example, the semantic similarity between the target first field and the any target field can be determined by cosine similarity, or Euclidean distance, etc., and the present disclosure does not limit this.
[0110] Step 308: When the semantic similarity is greater than or equal to the semantic similarity threshold, the business data corresponding to the target first field is determined as the business data corresponding to any target field.
[0111] The semantic similarity threshold may be a critical value of semantic similarity used to determine whether the target first field matches any target field, which may be preset and is not limited in the present disclosure.
[0112] In the present disclosure, after determining the semantic similarity between the target first field and any target field, when the semantic similarity is greater than or equal to the semantic similarity threshold, it can be determined that the semantics of the target first field and the semantics of any target field are highly similar, and the target first field matches the any target field. At this time, the business data corresponding to the target first field can be determined as the business data corresponding to the any target field, thereby improving the accuracy of the business data corresponding to the determined any target field.
[0113] Optionally, when the semantic similarity is less than the semantic similarity threshold, it can be determined that the semantics of the target first field have a low degree of similarity with the semantics of any target field. In order to determine the business data corresponding to each target field and ensure the reliability of the business data corresponding to the determined target field, at this time, the first number of currently unused business data and the second number of unmatched target fields can be first obtained. When the first number and the second number are both single numbers, the currently unused business data can be directly determined as the business data of the unmatched target field.
[0114] Optionally, when the semantic similarity is less than a semantic similarity threshold, and when the first quantity and the second quantity are both single quantities, after the currently unused business data is determined to be the business data of the unmatched target field, the unmatched target field, the first field corresponding to the unmatched business data, and the business information can also be associated and stored, so that when the next form query request is made, when the business information of the form data is the current business information, when determining the business data corresponding to the target field of the form data, it can be determined directly based on the first field associated with the target field, thereby improving the efficiency of determining the business data corresponding to the target field.
[0115] Step 309: Update the first file based on the target field and the corresponding business data to obtain an updated second file.
[0116] Step 310: Return the second file to the client.
[0117] The specific implementation forms of step 309 to step 310 may refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.
[0118] In the disclosed embodiment, first, in response to receiving a form query request sent by a client, form data corresponding to the query request is obtained, then business information corresponding to the form data and a first file corresponding to the form data are determined, and based on the business information, multiple target fields corresponding to the form data are determined, and then based on the business information corresponding to the form data, a field mapping relationship corresponding to the form data is obtained, and based on the field mapping relationship, a first field matching each target field is determined, and when any target field does not match each first field, the semantics of the target first field corresponding to the unused business data is determined, and then the semantic similarity between the target first field and any target field is determined, and when the semantic similarity is greater than or equal to a semantic similarity threshold, the business data corresponding to the target first field is determined as the business data corresponding to any target field, and finally, based on the target field and the corresponding business data, the first file is updated to obtain an updated second file, and the second file is returned to the client. Therefore, after receiving the form query request sent by the client and obtaining the form data corresponding to the query request, the field mapping relationship corresponding to the form data is obtained based on the business information corresponding to the form data, and the first field matching the target field of the form data is determined based on the field mapping relationship. When any target field does not match each first field, the semantic similarity between the any target field and the target first field corresponding to the unused business data is determined. When the similarity is greater than or equal to a similarity threshold, the unused business data is determined as the business data of the any target field, and based on the target field and the corresponding business data, the first file corresponding to the form data is updated, and the second file obtained after the update is returned to the client, thereby improving the accuracy and reliability of the generated second file.
[0119] Figure 4 A flowchart of a file generation method provided in an embodiment of the present disclosure.
[0120] like Figure 4 As shown, the method includes:
[0121] Step 401, sending a form query request to the server.
[0122] In the present disclosure, when the client sends a form query request to the server, when the form query request sent by the client is a precise query, that is, when the form query request sent by the client is to query a specific form, the form query request may include the form type field to be queried, the time information of the form to be queried, and the user identifier of the query, etc. For example, when the form query request sent by the client is to query a transfer receipt for a certain period of time on a certain day, the form query request may include the form type field to be queried, that is, the transfer receipt, the time information of the transfer receipt, and the user identifier, and the present disclosure does not limit this.
[0123] The user identifier may be a user used to represent the query form, and may be in any form, such as the user's name, etc., which is not limited in the present disclosure.
[0124] In the present disclosure, when the client sends a form query request to the server, when the form query request sent by the client is a fuzzy query, that is, when the form query request sent by the client is to query the forms of a certain year and month, since the number of forms of a certain year and month queried by the client may be multiple, and the form types may be multiple, at this time, the form query request may include the time information of the form to be queried and the user identifier of the query, and the present disclosure does not limit this.
[0125] Step 402: Receive a second file sent by the server, wherein the second file contains target fields and business data corresponding to the form data.
[0126] In the present disclosure, after the client sends a form query request to the server, it can receive the second file sent by the server.
[0127] It should be noted that after receiving the second file sent by the server, the client may also parse and store the target fields and business data corresponding to the form data contained in the second file, and the present disclosure does not limit this.
[0128] The specific implementation forms of step 401 to step 402 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.
[0129] In the disclosed embodiment, the client first sends a form query request to the server, and then receives the second file sent by the server. Thus, the client performs a form query by receiving the second file sent by the server, thereby improving the efficiency and convenience of the client querying form data.
[0130] Figure 5 A flowchart of a file generation method provided in an embodiment of the present disclosure.
[0131] like Figure 5 As shown, the method includes:
[0132] Step 501: Send a form query request to the server.
[0133] Step 502: Receive a second file sent by the server, wherein the second file contains target fields and business data corresponding to the form data.
[0134] The specific implementation forms of step 501 to step 502 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.
[0135] Step 503: Receive an opening request for the second file, wherein the opening request includes an opening method for the second file.
[0136] It should be noted that, since the second file is an OFD format file, the second file can be opened in a decompressed manner or in a non-decompressed manner, for example, by using software that can open OFD files, and the present disclosure does not limit this.
[0137] In the present disclosure, after receiving the second file sent by the server and receiving the user's open request for the second file, the client can first obtain the second file opening method from the open request in order to determine the user's opening method for the second file.
[0138] Step 504: When the second file is opened in a non-decompressed mode, the second file is rendered and displayed.
[0139] In the present disclosure, after receiving a request to open the second file, when the second file is opened in a non-decompressed manner, the client renders and displays the second file, for example, through software that can open the second file, thereby achieving a visual display of the form data. Since the second file is an OFD file, the reliability of the second file is improved while ensuring the effect of visual display of the form data.
[0140] Optionally, after receiving the request to open the second file, the client can decompress the second file when the second file is opened in a decompression mode, and obtain the target fields and business data contained in the second file. At this time, the target fields and business data can be rendered and displayed in the form of an XBRL file, so that the user can parse or archive the form data through the target fields and business data, thereby improving the processing efficiency and convenience of the form data.
[0141] In the disclosed embodiment, the client first sends a form query request to the server, then receives the second file sent by the server, and then receives an open request for the second file, and renders and displays the second file when the second file is opened in a non-decompressed manner. Thus, after receiving the second file sent by the server and receiving the open request for the second file, the client renders and displays the second file when it is determined that the second file is opened in a non-decompressed manner, thereby achieving a visual display of the form data and improving the reliability of the second file.
[0142] In order to implement the above embodiment, the embodiment of the present disclosure also proposes a file generating device.
[0143] Figure 6 A schematic diagram of the structure of a file generating device provided in an embodiment of the present disclosure.
[0144] like Figure 6 As shown, the file generating device 600 may include:
[0145] The acquisition module 601 is used to, in response to receiving a form query request sent by a client, acquire form data corresponding to the query request, wherein the form data includes a plurality of first fields and business data corresponding to each first field;
[0146] A first determination module 602, used to determine the business information corresponding to the form data and the first file corresponding to the form data;
[0147] A second determination module 603 is used to determine multiple target fields corresponding to the form data based on the business information;
[0148] A matching module 604, configured to match the target field with each first field to determine the business data corresponding to each target field;
[0149] An updating module 605, configured to update the first file based on the target field and the corresponding business data to obtain an updated second file;
[0150] The first sending module 606 is configured to return the second file to the client.
[0151] Optionally, the first determining module 602 is specifically configured to:
[0152] In the case where the query request corresponds to a form data, determining the business information corresponding to the form data according to the form type field in the query request; or,
[0153] In the case where the query request corresponds to multiple form data, for each form data, at least one of the following processes is performed on the multiple first fields included therein to determine the business information corresponding to the form data: semantic identification, location identification.
[0154] Optionally, the matching module 604 is specifically configured to:
[0155] Based on the business information corresponding to the form data, obtain the field mapping relationship corresponding to the form data;
[0156] Based on the field mapping relationship, determine the first field that matches each target field;
[0157] In the case that any target field matches any first field, the business data corresponding to any first field is determined as the business data corresponding to any target field.
[0158] Optionally, after determining the first field matching each target field based on the field mapping relationship, the matching module 604 is further configured to:
[0159] In the case that any target field does not match each first field, determining the semantics of the target first field corresponding to the unused business data;
[0160] Determining semantic similarity between the target first field and any target field;
[0161] When the semantic similarity is greater than or equal to the semantic similarity threshold, the business data corresponding to the first target field is determined as the business data corresponding to any target field.
[0162] Optionally, after determining the semantic similarity between the target first field and any target field, the matching module 604 is further configured to:
[0163] When the semantic similarity is less than the semantic similarity threshold, obtaining a first amount of currently unused business data and a second amount of unmatched target fields;
[0164] In the case that both the first quantity and the second quantity are single quantities, currently unused business data is determined as business data of an unmatched target field.
[0165] Optionally, in the case that both the first quantity and the second quantity are single, after determining the currently unused business data as the business data of the unmatched target field, the method further includes:
[0166] The storage module (not shown in the figure) is used to store the unmatched target field, the first field corresponding to the unmatched business data, and the business information in an associated manner.
[0167] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.
[0168] In the present disclosure, first, in response to receiving a form query request sent by a client, the form data corresponding to the query request is obtained, and the business information corresponding to the form data and the first file corresponding to the form data are determined, and then based on the business information, multiple target fields corresponding to the form data are determined, and the target field is matched with each first field to determine the business data corresponding to each target field, and then based on the target field and the corresponding business data, the first file is updated to obtain an updated second file, and finally the second file is returned to the client. Thus, after receiving the form query request sent by the client, based on the business information of the form data corresponding to the query request, multiple target fields corresponding to the form data are determined, based on the target field and the business data corresponding to the first field in the form data that matches the target field, the first file of the form data is updated, and the second file obtained after the update is returned to the client, thereby improving the standardization of the second file, and providing conditions for improving the efficiency and convenience of the client querying the form data.
[0169] Figure 7 A schematic diagram of the structure of a file generating device provided in an embodiment of the present disclosure.
[0170] like Figure 7 As shown, the file generating device 700 may include:
[0171] The second sending module 701 is used to send a form query request to the server;
[0172] The first receiving module 702 is used to receive a second file sent by the server, wherein the second file contains target fields and business data corresponding to the form data.
[0173] Optionally, after receiving the second file sent by the server, the method further includes:
[0174] A second receiving module (not shown in the figure), configured to receive an opening request for a second file, wherein the opening request includes an opening method for the second file;
[0175] The rendering module (not shown in the figure) is used to render and display the second file when the second file is opened in a non-decompressed mode.
[0176] Optionally, after receiving the opening request for the second file, the rendering module (not shown in the figure) is further used to:
[0177] When the second file is opened in a decompressed mode, the target fields and business data are rendered and displayed.
[0178] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.
[0179] In the present disclosure, the client first sends a form query request to the server, and then receives the second file sent by the server. Thus, the client performs a form query by receiving the second file sent by the server, thereby improving the efficiency and convenience of the client querying form data.
[0180] Figure 8 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown.
[0181] Figure 8 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0182] like Figure 8 As shown, the electronic device 12 is in the form of a general computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, memory 28, and a bus 18 connecting different system components (including memory 28 and processing unit 16). The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any bus structure in a variety of bus structures. For example, these architectures include, but are not limited to, an Industry Standard Architecture (hereinafter referred to as: ISA) bus, a Micro Channel Architecture (hereinafter referred to as: MCA) bus, an Enhanced ISA bus, a Video Electronics Standards Association (hereinafter referred to as: VESA) local bus, and a Peripheral Component Interconnection (hereinafter referred to as: PCI) bus.
[0183] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0184] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 8 Not shown, often called a "hard drive").
[0185] although Figure 8 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.
[0186] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.
[0187] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), may also communicate with one or more devices that enable the human body to interact with the electronic device 12, and / or communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 22. In addition, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 through a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0188] The processing unit 16 executes the programs stored in the memory 28 to perform various functional applications and parameter information determination, for example, to implement the file generation method mentioned in the above embodiment.
[0189] In order to implement the above embodiments, the present disclosure further proposes a non-temporary computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the file generation method proposed in the above embodiments of the present disclosure is implemented.
[0190] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When an instruction processor in the computer program product executes, the file generation method proposed in the above embodiments of the present disclosure is executed.
[0191] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0192] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
[0193] It should be noted that, in the description of the present disclosure, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In addition, in the description of the present disclosure, unless otherwise specified, the meaning of "plurality" is two or more.
[0194] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present disclosure includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present disclosure belong.
[0195] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0196] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0197] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0198] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0199] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0200] Although the embodiments of the present disclosure have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present disclosure. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present disclosure.
Claims
1. A file generation method, characterized in that: include: In response to receiving a form query request sent by a client, obtaining form data corresponding to the query request, wherein the form data includes a plurality of first fields and business data corresponding to each of the first fields; Determine the business information corresponding to the form data, and the first file corresponding to the form data; Based on the business information, determining multiple target fields corresponding to the form data; Matching the target field with each of the first fields to determine the business data corresponding to each of the target fields; Based on the target field and the corresponding business data, the first file is updated to obtain an updated second file; The second file is returned to the client.
2. The method according to claim 1, characterized in that The determining the business information corresponding to the form data includes: In the case where the query request corresponds to a form data, determining the business information corresponding to the form data according to the form type field in the query request; or, In the case where the query request corresponds to multiple form data, for each form data, at least one of the following processes is performed on the multiple first fields included in the form data to determine the business information corresponding to the form data: semantic identification, location identification.
3. The method according to claim 1, characterized in that The matching the target field with each of the first fields to determine the business data corresponding to each of the target fields includes: Based on the business information corresponding to the form data, obtaining the field mapping relationship corresponding to the form data; Based on the field mapping relationship, determine a first field that matches each of the target fields; In the case that any target field matches any first field, the business data corresponding to any first field is determined as the business data corresponding to any target field.
4. The method according to claim 3, characterized in that After determining the first field matching each of the target fields based on the field mapping relationship, the method further includes: In the case that any target field does not match each first field, determining the semantics of the target first field corresponding to the unused business data; Determining the semantic similarity between the target first field and any of the target fields; When the semantic similarity is greater than or equal to a semantic similarity threshold, the business data corresponding to the target first field is determined as the business data corresponding to any one of the target fields.
5. The method according to claim 4, characterized in that After determining the semantic similarity between the target first field and any target field, the method further includes: When the semantic similarity is less than the semantic similarity threshold, obtaining a first amount of currently unused business data and a second amount of unmatched target fields; In the case that both the first quantity and the second quantity are single quantities, the currently unused business data is determined as the business data of the unmatched target field.
6. The method according to claim 5, characterized in that In the case that both the first quantity and the second quantity are single, after determining the currently unused business data as the business data of the unmatched target field, the method further includes: The unmatched target field, the first field corresponding to the unused business data, and the business information are associated and stored.
7. A file generation method, characterized in that: include: Send a form query request to the server; A second file sent by the server is received, wherein the second file includes target fields and business data corresponding to the form data.
8. The method according to claim 7, characterized in that After receiving the second file sent by the server, the method further includes: receiving an opening request for the second file, wherein the opening request includes an opening method for the second file; When the second file is opened in a non-decompressed mode, the second file is rendered and displayed.
9. The method according to claim 8, characterized in that After receiving the opening request for the second file, the method further includes: When the second file is opened in a decompressed manner, the target field and business data are rendered and displayed.
10. A file generating device, characterized in that: include: An acquisition module, configured to, in response to receiving a form query request sent by a client, acquire form data corresponding to the query request, wherein the form data includes a plurality of first fields and business data corresponding to each of the first fields; A first determining module, used to determine the business information corresponding to the form data and the first file corresponding to the form data; A second determination module, configured to determine a plurality of target fields corresponding to the form data based on the business information; A matching module, used for matching the target field with each of the first fields to determine the business data corresponding to each of the target fields; An updating module, configured to update the first file based on the target field and the corresponding business data to obtain an updated second file; The first sending module is used to return the second file to the client.
11. A file generating device, characterized in that: include: The second sending module is used to send a form query request to the server; The first receiving module is used to receive a second file sent by the server, wherein the second file contains a target field and business data corresponding to the form data.
12. An electronic device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that may be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 9.
13. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-9.
14. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Service form generation method and device, electronic equipment and computer storage medium
CN112528616A
Standard file generation method and device, equipment and storage medium
CN113901768A
Report generation method and device, computer equipment and storage medium
CN115061721A
File data processing method and device, equipment and storage medium
CN116702752A
Method for mapping metadata through data standard and related device
CN117370356A
