Document data rendering method and apparatus, device, and storage medium

By acquiring configuration information from financial business documents, cutting and storing the data, and generating a readable target document interface, the problem of complex financial business document data is solved, and data acquisition efficiency is improved.

CN116150220BActive Publication Date: 2026-04-10PING AN BANK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-07
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

Existing financial business documents are complex and have poor readability, making it difficult for users to quickly obtain target business data and affecting business progress.

Method used

By obtaining document configuration information, it determines whether data entries conform to the configuration information, and cuts and stores them according to field type and length to generate the target document interface, supporting ascending or descending order sorting and rendering of large amount processing indicators.

Benefits of technology

It enables the rapid acquisition of target data from financial business documents, improving data readability and business operation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116150220B_ABST
    Figure CN116150220B_ABST
Patent Text Reader

Abstract

The application provides a document data rendering method, device and equipment and a storage medium. The method comprises the following steps: obtaining a target document to be rendered and document configuration information of the target document; determining whether each data entry in the target document conforms to the document configuration information according to a field type, a field description, a field value length and a field precision in the document configuration information; obtaining a target data entry in the target document that conforms to the document configuration information, cutting the target data entry according to a target field type and a target field value length corresponding to the target data entry, and obtaining target document data contained in the target data entry; saving each target document data to a target field type data set corresponding to the target document data; in response to a data query request, obtaining a target entry identifier of the data query request, and outputting target document data corresponding to the target entry identifier in each target field type data set. The target document data of the target document is quickly obtained.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to a document data rendering method and device, equipment and storage medium. BACKGROUND

[0002] At present, with the rapid development of the financial industry and the Internet industry, the financial industry such as banks realizes digitization through the Internet, so that many digital financial business documents appear in the operation process of these financial industries. However, this kind of financial business document is various in form, and most of the data in the financial business document is displayed in a row by putting the values of all fields, which makes the data type of the financial business document complex, and the data readability is poor, so that the user cannot quickly obtain the required business data from the complex document data entries in this kind of financial business document, the data acquisition efficiency is low, and the business process is affected. SUMMARY

[0003] The embodiments of the present application provide a document data rendering method, device, equipment and storage medium, which aims to solve the technical problem that the existing business document data is complex and it is difficult to quickly obtain target business data in the prior art.

[0004] In one aspect, the embodiments of the present application provide a document data rendering method, which comprises the following steps:

[0005] Obtain a target document to be rendered and document configuration information of the target document;

[0006] According to the field type, field description, field value length and field precision in the document configuration information, determine whether each data entry in the target document conforms to the document configuration information;

[0007] Obtain target data entries in the target document that conform to the document configuration information, cut the target data entries according to the target field type and target field value length corresponding to the target data entries, to obtain target document data contained in the target data entries;

[0008] Save each target document data to a target field type data set corresponding to the target document data;

[0009] In response to a data query request, obtain a target entry identifier associated with the data query request, and output target document data in each target field type data set corresponding to the target entry identifier.

[0010] In a possible implementation of the present application, the determining whether each data entry in the target document conforms to the document configuration information according to the field type, the field description, the field value length and the field precision in the document configuration information comprises:

[0011] parsing the document configuration information to obtain the field type, the field description, the field precision and the field value length in the document configuration information;

[0012] calculating the total length of the target field value of the data entry to be detected according to the field type, the field description, the field precision and the field value length;

[0013] obtaining the total length of the entry field value of the data entry to be detected in the target document, and if the total length of the entry field value and the total length of the target field value are equal, it is determined that the data entry conforms to the document configuration information.

[0014] In a possible implementation of the present application, the obtaining the target data entry in the target document that conforms to the document configuration information, cutting the target data entry according to the target field type and the target field value length corresponding to the target data entry, and obtaining the target document data contained in the target data entry comprises:

[0015] obtaining the target data entry in the target document that conforms to the document configuration information, and each target field type and each target field value length corresponding to the target data entry;

[0016] determining the position of each target document data in the target data entry according to each target field type and each target field value length;

[0017] performing data cutting on the target data entry according to each target document data position and each target field value length, and obtaining each target document data contained in the target data entry.

[0018] In a possible implementation of the present application, the saving each target document data to the target field type data set corresponding to the target document data comprises:

[0019] obtaining the target field type data set corresponding to each target field type in the target document;

[0020] obtaining the target entry identifier of the target document data and the field order of the target document data, and storing the target document data and the target entry identifier in the target field type data set corresponding to the target document data in association according to the field order.

[0021] In a possible implementation manner of the application, after the saving of the target document data to the target field type data set corresponding to the target document data, the method further includes:

[0022] obtaining a preset document interface, rendering the preset document interface according to document configuration information of the target document, and obtaining an initial document interface;

[0023] obtaining an interface configuration field of the initial document interface, and obtaining target document data in each target field type data set matched with the interface configuration field;

[0024] in response to an interface rendering request, obtaining a sorting identifier corresponding to the interface rendering request, rendering the initial document interface according to the sorting identifier and the target document data, and generating a target document interface of the target document.

[0025] In a possible implementation manner of the application, in response to the interface rendering request, the sorting identifier corresponding to the interface rendering request is obtained, the initial document interface is rendered according to the sorting identifier and the target document data, and the target document interface of the target document is generated, including:

[0026] in response to the interface rendering request, the sorting identifier corresponding to the interface rendering request is obtained, and the sorting identifier includes a forward sorting identifier and a reverse sorting identifier;

[0027] if the sorting identifier is the forward sorting identifier, a field value of the target document data corresponding to the forward sorting identifier is obtained, the target document data is sorted in a forward order according to the field value, the sorted target document data is input to the initial document interface for rendering, and a target document interface is generated;

[0028] if the sorting identifier is the reverse sorting identifier, a field value of the target document data corresponding to the reverse sorting identifier is obtained, the target document data is sorted in a reverse order according to the field value, the sorted target document data is input to the initial document interface for rendering, and a target document interface is generated.

[0029] In a possible implementation manner of the application, in response to the interface rendering request, the sorting identifier corresponding to the interface rendering request is obtained, the initial document interface is rendered according to the sorting identifier and the target document data, and the target document interface of the target document is generated, including:

[0030] obtaining a field type of the target document data;

[0031] if the field type of the target document data is an amount type, the target document data is compared with a preset amount threshold;

[0032] If the target document data is greater than the preset amount threshold, a large amount processing identifier is generated, and the initial document interface is rendered according to the large amount processing identifier and the sorting identifier to generate a target document interface of the target document.

[0033] In another aspect, the present application provides a document data rendering device, which comprises:

[0034] A document obtaining module configured to obtain a target document to be rendered and document configuration information of the target document;

[0035] A document auditing module configured to determine whether each data entry in the target document conforms to the document configuration information according to a field type, a field description, a field value length and a field precision in the document configuration information;

[0036] A data cutting module configured to obtain target data entries in the target document that conform to the document configuration information, cut the target data entries according to target field types and target field value lengths corresponding to the target data entries to obtain target document data contained in the target data entries;

[0037] A data storage module configured to save each target document data to a target field type data set corresponding to the target document data;

[0038] A data query module configured to obtain a target entry identifier associated with a data query request in response to the data query request, and output target document data in each target field type data set corresponding to the target entry identifier.

[0039] In another aspect, the present application further provides a document data rendering device, which comprises:

[0040] One or more processors;

[0041] A memory; and

[0042] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the document data rendering method.

[0043] In another aspect, the present application further provides a computer readable storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute steps in the document data rendering method.

[0044] In the present application, a target document to be rendered is obtained, and document configuration information of the target document is obtained. Whether each data entry in the target document conforms to the document configuration information is determined according to a field type, a field description, a field value length and a field precision in the document configuration information. Target data entries conforming to the document configuration information in the target document are obtained. The target data entries are cut according to a target field type and a target field value length corresponding to the target data entries, so as to obtain target document data contained in the target data entries. The target document data is saved to a target field type data set corresponding to the target document data. In response to a data query request, a target entry identifier associated with the data query request is obtained, and target document data corresponding to the target entry identifier in each target field type data set is output. The business document is verified and cut, the cut document data is stored and arranged, so as to quickly obtain document data in the business document, and improve the business operation efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0046] Figure 1 A scene schematic diagram of the document data rendering method in the embodiments of the present application;

[0047] Figure 2 A flowchart of one embodiment of the document data rendering method in the embodiments of the present application;

[0048] Figure 3 A flowchart of one embodiment of the document data rendering method in the embodiments of the present application;

[0049] Figure 4 A flowchart of one embodiment of the document data rendering method in the embodiments of the present application;

[0050] Figure 5 An embodiment structure schematic diagram of the document data rendering device in the embodiments of the present application;

[0051] Figure 6 An embodiment structure schematic diagram of the document data rendering device in the embodiments of the present application; DETAILED DESCRIPTION

[0052] With reference to the accompanying drawings, the technical solutions in the embodiments of the present application will be clearly and completely described below, obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0053] In the description of the present application, it should be understood that the orientation or positional relationship indicated by the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer" and the like is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element indicated must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first", "second" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Therefore, the features defined as "first", "second" can explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise specifically limited.

[0054] In the present application, the word "exemplary" is used to mean "serving as an example, instance, or illustration." Any implementation described as "exemplary" in the present application is not necessarily to be construed as preferred or advantageous over other implementations. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, for purposes of explanation, specific details are set forth. It will be apparent to those skilled in the art that the present application can be practiced without the specific details. In other instances, well-known structures and processes are not described in detail in order to avoid obscuring the present application. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features presented herein.

[0055] At present, with the rapid development of the financial industry and the Internet industry, financial industries such as banks realize digitization through the Internet, so that many digital financial business documents appear in the running process of these financial industries. However, such financial business documents are various in form, and each piece of data in most financial business documents is displayed by putting the values of all fields into a row, which makes the data type of the financial business document complex and the data readability poor, so that the user cannot quickly obtain the required business data from the complex document data entries of such financial business documents, the data acquisition efficiency is low, and the business process is affected.

[0056] Based on this, this application proposes a document data rendering method, apparatus, device, and computer-readable storage medium to solve the technical problem in the prior art that existing business document data is complex and it is difficult to quickly obtain target business data.

[0057] The document data rendering method in this embodiment of the invention is applied to a document data rendering device, which is configured in a document data rendering equipment. The document data rendering equipment includes one or more processors, a memory, and one or more applications. The one or more applications are stored in the memory and configured to be executed by the processor to implement the document data rendering method. The document data rendering equipment can be a smart terminal, such as a mobile phone, tablet computer, smart TV, network device, and smart computer. Optionally, the document data rendering equipment can also be a server or a service cluster composed of multiple servers.

[0058] like Figure 1 As shown, Figure 1 This is a schematic diagram of a document data rendering method according to an embodiment of the present application. The document data rendering scenario in this embodiment includes multiple document data rendering devices 100 (each document data rendering device 100 integrates a document data rendering apparatus). Each document data rendering device 100 is equipped with a computer-readable storage medium corresponding to the document data rendering method to execute the steps of the document data rendering method.

[0059] Understandable, Figure 1 The document data rendering device in the document data rendering method scenario shown, or the device included in the document data rendering device, does not constitute a limitation on the embodiments of the present invention. That is, the number or type of document data rendering device included in the document data rendering method scenario, or the number or type of device included in each device, does not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be considered as equivalent substitutions or derivatives of the technical solutions claimed in the embodiments of the present invention.

[0060] In this embodiment of the invention, the document data rendering device 100 is mainly used to: obtain the target document to be rendered, and the document configuration information of the target document;

[0061] Based on the field type, field description, field value length, and field precision in the document configuration information, determine whether each data entry in the target document conforms to the document configuration information;

[0062] Obtain target data entries in the target document that match the document configuration information, and cut the target data entries according to the target field type and target field value length corresponding to the target data entries to obtain the target document data contained in the target data entries;

[0063] saving each of the target document data to a target field type data set corresponding to the target document data;

[0064] in response to a data query request, obtaining a target record identifier associated with the data query request, and outputting target document data in each of the target field type data sets corresponding to the target record identifier.

[0065] The document data rendering device 100 in the embodiment of the application can be a plurality of independent document data rendering devices, such as a mobile phone, a tablet computer, a smart television, a network device, a server, and a smart computer, and can also be a document data rendering network or a document data rendering cluster composed of a plurality of document data rendering devices.

[0066] The embodiment of the application provides a document data rendering method, device, equipment and computer readable storage medium, which are described in detail below.

[0067] Those skilled in the art can understand that, Figure 1 The application environment shown in the above is only one of the application scenarios related to the scheme of the application, and does not constitute a limitation on the application scenarios of the scheme of the application. Other application environments can further include more or less document data rendering devices than those shown in the above, or a document data rendering network connection relationship, for example, Figure 1 The document data rendering method shown in the above is only one example, and the scene of the document data rendering method described in the embodiment of the application is for more clearly explaining the technical scheme of the embodiment of the application, and does not constitute a limitation on the technical scheme provided by the embodiment of the application. Figure 1 The document data rendering device 100 shown in the above is only one document data rendering device, and it can be understood that the scene of the document data rendering method can also include one or more document data rendering devices, and the specific embodiments are not limited here. The document data rendering device 100 can also include a memory for storing other data.

[0068] It should be noted that, Figure 1 The scene diagram of the document data rendering method shown in the above is only one example, and the scene of the document data rendering method described in the embodiment of the application is for more clearly explaining the technical scheme of the embodiment of the application, and does not constitute a limitation on the technical scheme provided by the embodiment of the application.

[0069] Based on the above scene of the document data rendering method, each embodiment of the document data rendering method disclosed in the application is proposed.

[0070] As shown in the above, Figure 2 As shown in the above, Figure 2 The image processing method includes the following steps 201ˉ204:

[0071] 201, obtaining a target document to be rendered and document configuration information of the target document;

[0072] The document data rendering method in the embodiment is applied to a document data rendering device, and the type and number of the document data rendering device are not specifically limited, i.e., the document data rendering device can be one or more smart terminals with a camera, and in a specific embodiment, the document data rendering device is a smart computer.

[0073] Specifically, the document data rendering device is configured to receive a target document to be rendered, and render target document data in the target document, thereby improving the readability of the target document and enabling a user to quickly obtain the required target document data.

[0074] Specifically, during the operation of the document data rendering device, a target document rendering request is received, wherein the target document rendering request is an operation instruction for driving the document data rendering device to render target document data to be rendered. Optionally, the triggering manner of the target document rendering request is not specifically limited herein, i.e., the target document rendering request can be triggered by a user, for example, when the user needs to obtain specific document data in a target document, the user inputs the target document data into the document data rendering device to actively trigger the target document rendering request. In addition, the target document rendering request can also be triggered automatically by the document data rendering device, for example, the document data rendering device is pre-configured with an automatic rendering process, and after receiving a document of a specific document type, the target document rendering request is automatically triggered.

[0075] Specifically, after receiving the target document rendering request, the document data rendering device obtains the target document carried by the target document rendering request and the document configuration information of the target document. The target document is a financial business type document, and each data entry of each line of the financial business type document is a financial business data. The document data rendering device determines the document type of the financial business type document and obtains the financial agreement corresponding to the document type, wherein the financial agreement is an agreement associated with the document type of the target document and used to drive the document configuration information of the document configuration style of the target document. The document data rendering device obtains the document configuration information of the target document by analyzing the financial agreement of the target document. The document configuration information includes any one or more of field type, field description, field value length, and field precision.

[0076] 202、According to the field type, field description, field value length and field precision in the document configuration information, it is determined whether each data entry in the target document conforms to the document configuration information;

[0077] The document data rendering device verifies each data entry in the target document according to the document configuration information after obtaining the target document and the document configuration information of the target document, so as to determine whether the data entry is a correct target data entry.

[0078] Specifically, the document data rendering device parses the document configuration information, obtains the field type, field description, field precision and field value length in the document configuration information, and determines the target field value total length of the data entry to be detected through the field type and the field value length, wherein the target field value total length is the sum of the preset character numbers of the data entry.

[0079] The document data rendering device obtains the entry field total length of the data entry to be detected in the target document, wherein the entry field total length is the sum of the actual character numbers in the data entry. The document data rendering device compares the target field value total length and the entry field total length to obtain a comparison result, and determines whether the data entry conforms to the document configuration information according to the comparison result.

[0080] Optionally, if the target field value total length and the entry field total length are different, it is determined that the data entry and the document configuration information are different, and the data entry is determined to be an abnormal data entry. The document data rendering device marks the abnormal data entry and generates corresponding prompt information.

[0081] Optionally, if the target field value total length and the entry field total length are the same, it is determined that the data entry matches the document configuration information, and the data entry is determined to be a normal target data entry.

[0082] 203、Obtain the target data entry in the target document that conforms to the document configuration information, cut the target data entry according to the target field type and the target field value length corresponding to the target data entry, and obtain the target document data contained in the target data entry;

[0083] The document data rendering device obtains the target data entry in the target document that conforms to the document configuration information after traversing each data entry in the target document and determining the target data entry in the target document, and cuts the target data entry according to the target field type, the target field description and the target field value length corresponding to the target data entry, so as to obtain the target document data contained in the target data entry.

[0084] Specifically, the document data rendering device obtains the target field type, the target field description and the target field value length corresponding to the target data entry after obtaining the target data entry, and determines the position of each target document data in the target data entry through the target field type and the target field description.

[0085] Specifically, the document data rendering device determines the target document data position in the target data entry according to the target field type and the target field value length, and performs data cutting on the target data entry according to the target document data position and the target field value length, so as to obtain each target document data contained in the target data entry. The document data rendering device traverses each target data entry obtained, and performs data cutting on each target data entry to obtain each target document data carried in each target data entry.

[0086] 204、saving each target document data to a target field type data set corresponding to the target document data;

[0087] After the document data rendering device performs data cutting on the target data entry to obtain the target document data carried in the target data entry, the document data rendering device saves each target document data to a target field type data set corresponding to the target document data.

[0088] Specifically, the document data rendering device receives a target document, parses the target document to obtain a field type of the target document, and pre-generates a data set associated with the field type. After obtaining each target document data, the document data rendering device obtains a target field type of the target document data, and compares the field type with a field type identifier of each data set, so as to determine a target field type data set corresponding to the target document data.

[0089] After determining the target field type data set corresponding to each target document data, the document data rendering device further obtains a target entry identifier of the target document data and a field order of the target document data. The document data rendering device associates the target document data with the target entry identifier, and stores the associated target document data and target entry identifier in the target field type data set corresponding to the target document data according to the field order of the target document data.

[0090] 205、in response to a data query request, obtaining a target entry identifier associated with the data query request, and outputting target document data in each target field type data set corresponding to the target entry identifier.

[0091] After the document data rendering device stores the target document data of the target document in the corresponding target field type data set respectively, the document data rendering device receives a data query request of a user, and obtains target document data associated with the data query request according to the data query request, and outputs the target document data.

[0092] Specifically, the document data rendering device, after receiving the data query request input by the user, parses the data query request to obtain a target record identifier associated with the data query request, wherein the target record identifier is identification information of target document data representing a target data record queried by the data query request.

[0093] After obtaining the target record identifier, the document data rendering device traverses each target field type data set according to the target record identifier, queries the target record identifier of each target document data in each target field type data set, and if the target record identifier in the target document data matches the target record identifier associated with the data query request, determines that the target document data is the target document data required by the data query request. The document data rendering device obtains the target document data in each target field type data set that matches the target record identifier of the data query request, and outputs the target document data.

[0094] Optionally, the document data rendering device, after storing the target document data of the target document into the corresponding target field type data set, further renders the target document interface corresponding to the target document through the target document data in each target field type data set.

[0095] In this embodiment, the document data rendering device obtains a target document to be rendered and document configuration information of the target document, determines whether each data record in the target document conforms to the document configuration information according to the field type, field description, field value length and field precision in the document configuration information, obtains target data records in the target document that conform to the document configuration information, cuts the target data records according to the target field type and target field value length corresponding to the target data records to obtain target document data contained in the target data records, saves each target document data to a target field type data set corresponding to the target document data, obtains a target record identifier associated with a data query request in response to the data query request, and outputs target document data in each target field type data set corresponding to the target record identifier. This implementation verifies and cuts the business document, stores and organizes the cut document data, thereby quickly obtains the document data in the business document and improves the business operation efficiency.

[0096] As shown in Figure 3 As shown in Figure 3 is a flowchart of an embodiment of the document data rendering method provided in the embodiments of the present application, specifically, comprising steps 301-303:

[0097] 301、acquire a preset document interface, render the preset document interface according to the document configuration information of the target document, and obtain an initial document interface;

[0098] 302、acquire the interface configuration field of the initial document interface, and acquire each target document data in the target field type data set matched with the interface configuration field;

[0099] 303、in response to an interface rendering request, acquire the sorting identifier corresponding to the interface rendering request, render the initial document interface according to the sorting identifier and each target document data, and generate the target document interface of the target document.

[0100] Based on the above embodiment, in this embodiment, after the document data rendering device acquires the target document data of the target document and stores the target document data in each target field type data set, the document data rendering device also renders the document interface of the target document according to the target field type data set.

[0101] Specifically, the document data rendering device sets different preset document interfaces for different types of financial business documents. The document data rendering device acquires the preset document interface, and initially renders the preset document interface according to the document configuration information of the target document to obtain the initial document interface. Optionally, the initial document interface can also be manually configured by a user according to an actual application scenario.

[0102] Specifically, the document data rendering device acquires the document configuration information of the target document, and acquires the field type, field description, and other configuration information in the document configuration information to render the preset document interface. The field type is used to render the header field of the preset document interface to obtain the interface configuration field of the initial document interface.

[0103] After the document data rendering device acquires the interface configuration field of the initial document interface, the document data rendering device also acquires each target document data in the target field type data set matched with the interface configuration field.

[0104] After the document data rendering device acquires each target document data, the document data rendering device responds to the interface rendering request sent by a user, analyzes the interface rendering request, acquires the sorting identifier corresponding to the interface rendering request, wherein the sorting identifier includes an initial order identifier, a positive order sorting identifier, and a reverse order sorting identifier. The document data rendering device inputs each target document data into the initial document interface for rendering according to the sorting identifier, and generates the target document interface of the target document.

[0105] Specifically, if the sorting identifier is the initial order identifier, the document data rendering device renders the target document data in the initial document interface according to the field order in each target field type data set, and generates the target document interface of the target document.

[0106] Specifically, if the sorting identifier is the ascending order sorting identifier, the target document data is sorted in ascending order of field values, and the sorted target document data is rendered in the initial document interface to generate the ascending order document interface of the target document. The initial order target document interface and the ascending order document interface are output to the preset display position.

[0107] Specifically, if the sorting identifier is the descending order sorting identifier, the target document data is sorted in descending order of field values, and the sorted target document data is rendered in the initial document interface to generate the descending order document interface of the target document. The initial order target document interface and the descending order document interface are output to the preset display position.

[0108] After generating the target document interface, the document data rendering device outputs the target document interface to the preset display position, and detects the pointing information of the user. If the user points to a specific target document data, the field type, field description and field length information of the target document data are displayed at the position of the target document data.

[0109] In this embodiment, the document data rendering device obtains a preset document interface, renders the preset document interface according to the document configuration information of the target document to obtain an initial document interface, obtains the interface configuration field of the initial document interface, and obtains each target document data matched with the interface configuration field in each target field type data set. In response to an interface rendering request, the sorting identifier corresponding to the interface rendering request is obtained, and the initial document interface is rendered according to the sorting identifier and each target document data to generate the target document interface of the target document. The target document data can be intuitively displayed in the target document interface, and the readability of the target document is improved.

[0110] As shown in Figure 4 Figure 4 The flowchart of one embodiment of the document data rendering method provided by the embodiments of the present application for rendering the initial document interface according to the target document data is shown in the figure. Specifically, the steps 401-403 are included.

[0111] 401、Obtain the field type of the target document data.

[0112] ​402、if the field type of the target document data is an amount type, compare the target document data with a preset amount threshold;

[0113] 403、if the target document data is greater than the preset amount threshold, generate a large amount processing identifier, and render the initial document interface according to the large amount processing identifier and the sorting identifier to generate a target document interface of the target document.

[0114] Based on the above embodiment, in this embodiment, when the document data rendering device renders the initial document interface according to the sorting identifier and the target document data to generate the target document interface of the target document, the document data rendering device also detects whether the target document data is large amount processing data.

[0115] Specifically, the document data rendering device obtains the field type of the target document data, and determines whether the target document data is amount type data according to the field type. Optionally, if the field type of the target document data is transaction confirmation share, transaction confirmation amount, or the like, it is determined that the target document data is amount type data. After determining that the field type of the target document data is an amount type, the document data rendering device detects the target document data to determine whether the target document data is large amount processing data.

[0116] Optionally, the document data rendering device compares the target data with a preset amount threshold. If the target document data is less than the preset amount threshold, it is determined that the target document data is non-large amount processing data.

[0117] Optionally, the document data rendering device compares the target data with a preset amount threshold. If the target document data is greater than or equal to the preset amount threshold, it is determined that the target document data is large amount processing data. A large amount processing identifier of the target document data is generated, and the initial document interface is rendered according to the large amount processing identifier and the sorting identifier to generate the target document interface of the target document.

[0118] Specifically, the document data rendering device presets a large amount identifier display field in the initial document interface. If the target document data is large amount processing data, the large amount processing identifier is input into the large amount identifier display field corresponding to the target document data, and the large amount processing data is highlighted for rendering, so that the user can quickly determine the large amount processing data in the target document.

[0119] In the embodiment, the document data rendering device obtains the field type of the target document data; compares the target document data with a preset amount threshold if the field type of the target document data is an amount type; generates a large-amount processing identifier if the target document data is greater than the preset amount threshold; and renders the initial document interface according to the large-amount processing identifier and the sorting identifier to generate the target document interface of the target document. The target document interface is rendered according to the field type and field value of the target document data.

[0120] To better implement the document data rendering method in the embodiments of the present application, on the basis of the document data rendering method, the present application further provides a document data rendering device, as shown in Figure 5 Figure 5 which is an embodiment structure diagram of the document data rendering device in the present application, the document data rendering device 500 comprises:

[0121] The document obtaining module 501 is configured to obtain a target document to be rendered and document configuration information of the target document.

[0122] The document auditing module 502 is configured to determine whether each data entry in the target document conforms to the document configuration information according to the field type, field description, field value length and field precision in the document configuration information.

[0123] The data cutting module 503 is configured to obtain target data entries in the target document that conform to the document configuration information, cut the target data entries according to the target field type and target field value length corresponding to the target data entries to obtain target document data contained in the target data entries.

[0124] The data storage module 504 is configured to save each target document data to a target field type data set corresponding to the target document data.

[0125] The data query module 505 is configured to obtain a target entry identifier associated with a data query request in response to the data query request, and output target document data in each target field type data set corresponding to the target entry identifier.

[0126] In some embodiments of the present application, the document data rendering device 500 determines whether each data entry in the target document conforms to the document configuration information according to the field type, field description, field value length and field precision in the document configuration information, comprising:

[0127] ​parsing the document configuration information to obtain a field type, a field description, a field precision, and a field value length in the document configuration information;

[0128] calculating a target field value total length of a data entry to be detected according to the field type, the field description, the field precision, and the field value length;

[0129] obtaining an entry field value total length of the data entry to be detected in the target document, and determining that the data entry conforms to the document configuration information if the entry field value total length is equal to the target field value total length.

[0130] In some embodiments of the present application, the document data rendering apparatus 500 obtains a target data entry conforming to the document configuration information in the target document, cuts the target data entry according to a target field type and a target field value length corresponding to the target data entry, and obtains target document data contained in the target data entry, including:

[0131] obtaining a target data entry conforming to the document configuration information in the target document, and each target field type and each target field value length corresponding to the target data entry;

[0132] determining each target document data position in the target data entry according to each target field type and each target field value length;

[0133] cutting the target data entry according to each target document data position and each target field value length to obtain each target document data contained in the target data entry.

[0134] In some embodiments of the present application, the document data rendering apparatus 500 saves each target document data to a target field type data set corresponding to the target document data, including:

[0135] obtaining a target field type data set corresponding to each target field type in the target document;

[0136] obtaining a target entry identifier of the target document data and a field order of the target document data, and associating and storing the target document data and the target entry identifier in the target field type data set corresponding to the target document data according to the field order.

[0137] In some embodiments of the present application, after the document data rendering apparatus 500 saves each target document data to a target field type data set corresponding to the target document data, the document data rendering apparatus 500 further includes:

[0138] obtain a preset document interface, render the preset document interface according to document configuration information of the target document, and obtain an initial document interface;

[0139] obtain an interface configuration field of the initial document interface, and obtain each target document data matched with the interface configuration field in each target field type data set;

[0140] In response to an interface rendering request, obtain a sorting identifier corresponding to the interface rendering request, render the initial document interface according to the sorting identifier and each target document data, and generate a target document interface of the target document.

[0141] In some embodiments of the present application, the document data rendering device 500, in response to an interface rendering request, obtains a sorting identifier corresponding to the interface rendering request, renders the initial document interface according to the sorting identifier and each target document data, and generates a target document interface of the target document, including:

[0142] The response to the interface rendering request obtains a sorting identifier corresponding to the interface rendering request, and the sorting identifier includes a forward sorting identifier and a reverse sorting identifier;

[0143] If the sorting identifier is a forward sorting identifier, the field value of the target document data corresponding to the forward sorting identifier is obtained, the target document data is sorted in forward order according to the field value, the sorted target document data is input to the initial document interface for rendering, and a target document interface is generated;

[0144] If the sorting identifier is a reverse sorting identifier, the field value of the target document data corresponding to the reverse sorting identifier is obtained, the target document data is sorted in reverse order according to the field value, the sorted target document data is input to the initial document interface for rendering, and a target document interface is generated.

[0145] In some embodiments of the present application, the document data rendering device 500 renders the initial document interface according to the sorting identifier and each target document data, and generates a target document interface of the target document, including:

[0146] Obtain the field type of the target document data;

[0147] If the field type of the target document data is an amount type, the target document data is compared with a preset amount threshold;

[0148] If the target document data is greater than the preset amount threshold, a large amount processing identifier is generated, and the initial document interface is rendered according to the large amount processing identifier and the sorting identifier, and a target document interface of the target document is generated.

[0149] In the embodiment, the document data rendering device obtains a target document to be rendered and document configuration information of the target document, determines whether each data entry in the target document conforms to the document configuration information according to a field type, a field description, a field value length and a field precision in the document configuration information, obtains a target data entry in the target document that conforms to the document configuration information, cuts the target data entry according to a target field type and a target field value length corresponding to the target data entry to obtain target document data contained in the target data entry, saves each target document data to a target field type data set corresponding to the target document data, and obtains a target entry identifier associated with a data query request in response to the data query request and outputs target document data in each target field type data set corresponding to the target entry identifier. The business document is verified and cut, the cut document data is stored and arranged, the document data in the business document is quickly obtained, and the business operation efficiency is improved.

[0150] The embodiment of the present application also provides a document data rendering device, as shown in Figure 6 Figure 6 The embodiment structure of the document data rendering device provided in the present application is shown.

[0151] The document data rendering device integrates any one of the document data rendering devices provided in the embodiment of the present application, and the document data rendering device comprises:

[0152] one or more processors;

[0153] a memory; and

[0154] one or more application programs, wherein the one or more application programs are stored in the memory and are configured to execute the steps of the document data rendering method in any one of the document data rendering method embodiments by the processor.

[0155] Specifically, the document data rendering device can include a processor 601 with one or more processing cores, a memory 602 with one or more computer readable storage media, a power supply 603 and an input unit 604, and the like. Those skilled in the art can understand that the document data rendering device structure shown in Figure 6 The document data rendering device structure shown in the embodiment does not constitute a limitation on the document data rendering device, and can include more or fewer components than the diagram, or combine certain components, or different component arrangements. Among them:

[0156] ​The processor 601 is the control center of the document data rendering device, connects all parts of the document data rendering device through various interfaces and lines, performs various functions and processes data of the document data rendering device by running or executing software programs and / or modules stored in the memory 602 and calling data stored in the memory 602, and thus performs overall monitoring on the document data rendering device. Optionally, the processor 601 can include one or more processing cores; preferably, the processor 601 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 601.

[0157] The memory 602 can be used to store software programs and modules, and the processor 601 performs various functions and data processing by running the software programs and modules stored in the memory 602. The memory 602 can mainly include a program storage area and a data storage area, wherein the program storage area can store the operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc.; and the data storage area can store data created according to the use of the document data rendering device, etc. In addition, the memory 602 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 602 can also include a memory controller to provide access of the processor 601 to the memory 602.

[0158] The document data rendering device further includes a power supply 603 for supplying power to various components, and preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 603 can also include one or more than one direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power state indicator, etc. any component.

[0159] The document data rendering device can further include an input unit 604, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0160] Although not shown, the document data rendering device can further include a display unit and the like, which will not be described herein. Specifically in the present embodiment, the processor 601 in the document data rendering device will load the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and run the application program stored in the memory 602 by the processor 601, thereby realizing various functions, as follows:

[0161] obtaining a target document to be rendered, and document configuration information of the target document;

[0162] determining whether each data entry in the target document conforms to the document configuration information according to a field type, a field description, a field value length and a field precision in the document configuration information;

[0163] obtaining a target data entry in the target document that conforms to the document configuration information, and cutting the target data entry according to a target field type and a target field value length corresponding to the target data entry, to obtain target document data contained in the target data entry;

[0164] saving each target document data to a target field type data set corresponding to the target document data;

[0165] in response to a data query request, obtaining a target entry identifier associated with the data query request, and outputting target document data in each target field type data set corresponding to the target entry identifier.

[0166] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the detailed description of other embodiments above, which will not be described herein.

[0167] In implementation, each unit or structure above can be realized as an independent entity, or can be combined as the same or several entities, and the specific implementation of each unit or structure can be referred to the method embodiments above, which will not be described herein.

[0168] The specific implementation of each operation above can be referred to the embodiments above, which will not be described herein.

[0169] The above has introduced in detail a document data rendering method provided by the embodiments of the present application, and the principles and implementation manners of the present application have been described herein, and the above embodiment description is only for helping to understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and application range will be changed, and the above description should not be understood as the limitation of the present application.

Claims

1. A method of rendering document data, characterized by, The document data rendering method comprises: obtaining a target document to be rendered and document configuration information of the target document; determining whether each data entry in the target document conforms to the document configuration information according to a field type, a field description, a field value length and a field precision in the document configuration information; obtaining target data entries in the target document that conform to the document configuration information, cutting the target data entries according to a target field type and a target field value length corresponding to the target data entries to obtain target document data contained in the target data entries; saving each target document data to a target field type data set corresponding to the target document data; in response to a data query request, obtaining a target entry identifier associated with the data query request, and outputting target document data in each target field type data set corresponding to the target entry identifier; obtaining a preset document interface, rendering the preset document interface according to the document configuration information of the target document to obtain an initial document interface; obtaining an interface configuration field of the initial document interface, and obtaining each target document data in each target field type data set that matches the interface configuration field; in response to an interface rendering request, obtaining a sorting identifier corresponding to the interface rendering request, and rendering the initial document interface according to the sorting identifier and each target document data to generate a target document interface of the target document.

2. The document data rendering method of claim 1, wherein, The determination of whether each data entry in the target document conforms to the document configuration information according to the field type, the field description, the field value length and the field precision in the document configuration information comprises: parsing the document configuration information to obtain the field type, the field description, the field precision and the field value length in the document configuration information; calculating a target field value total length of a data entry to be detected according to the field type, the field description, the field precision and the field value length; obtaining an entry field value total length of the data entry to be detected in the target document, and determining that the data entry conforms to the document configuration information if the entry field value total length is equal to the target field value total length.

3. The document data rendering method of claim 1, wherein, The obtaining of the target data entries in the target document that conform to the document configuration information, the cutting of the target data entries according to the target field type and the target field value length corresponding to the target data entries to obtain the target document data contained in the target data entries comprises: obtaining target data entries in the target document that conform to the document configuration information and each target field type and each target field value length corresponding to the target data entries; determining each target document data position in the target data entries according to each target field type and each target field value length; performing data cutting on the target data entries according to each target document data position and each target field value length to obtain each target document data contained in the target data entries.

4. The document data rendering method of claim 1, wherein, The saving of each target document data to a target field type data set corresponding to the target document data comprises: obtaining a target field type data set corresponding to each target field type in the target document; obtaining a target document data identifier of the target document data and a field order of the target document data, and storing the target document data and the target document data identifier in the target field type data set corresponding to the target document data according to the field order.

5. The document data rendering method of claim 1, wherein, The response interface rendering request is obtained, the sorting identifier corresponding to the interface rendering request is obtained, and the initial document interface is rendered according to the sorting identifier and each target document data to generate a target document interface of the target document, including: The response interface rendering request is obtained, the sorting identifier corresponding to the interface rendering request is obtained, and the initial document interface is rendered according to the sorting identifier and each target document data to generate a target document interface of the target document, including: If the sorting identifier is a reverse sorting identifier, the field value of the target document data corresponding to the reverse sorting identifier is obtained, the target document data is sorted in reverse order according to the field value, and the sorted target document data is input into the initial document interface for rendering to generate a target document interface. If the sorting identifier is a reverse sorting identifier, the field value of the target document data corresponding to the reverse sorting identifier is obtained, the target document data is sorted in reverse order according to the field value, and the sorted target document data is input into the initial document interface for rendering to generate a target document interface.

6. The document data rendering method of claim 1, wherein, The field type of the target document data is obtained; If the field type of the target document data is an amount type, the target document data is compared with a preset amount threshold; If the target document data is greater than the preset amount threshold, a large amount processing identifier is generated, and the initial document interface is rendered according to the large amount processing identifier and the sorting identifier to generate a target document interface of the target document. The document data rendering device comprises:

7. A document data rendering apparatus characterized by comprising: a document obtaining module configured to obtain a target document to be rendered and document configuration information of the target document; a document auditing module configured to determine whether each data entry in the target document conforms to the document configuration information according to the field type, field description, field value length and field precision in the document configuration information; a data cutting module configured to obtain target data entries in the target document that conform to the document configuration information, cut the target data entries according to target field types and target field value lengths corresponding to the target data entries to obtain target document data contained in the target data entries; a data storage module configured to save each target document data to a target field type data set corresponding to the target document data; a data query module configured to respond to a data query request, obtain a target document data identifier associated with the data query request, and output target document data corresponding to the target document data identifier in each target field type data set; The document data rendering device is configured to: ​ obtain a preset document interface, render the preset document interface according to document configuration information of the target document, and obtain an initial document interface; obtain an interface configuration field of the initial document interface, and obtain each target document data matched with the interface configuration field in each target field type data set; in response to an interface rendering request, obtain a sorting identifier corresponding to the interface rendering request, render the initial document interface according to the sorting identifier and each target document data, and generate a target document interface of the target document.

8. A document data rendering apparatus characterized by comprising: The document data rendering device comprises: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the steps in the document data rendering method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, a computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the document data rendering method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Document title extraction method and device

    CN102375806A

  • Document query method and device, computer equipment and storage medium

    CN110377558A