CN114896004A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114896004A
CN114896004A CN202210439335.8A CN202210439335A CN114896004A CN 114896004 A CN114896004 A CN 114896004A CN 202210439335 A CN202210439335 A CN 202210439335A CN 114896004 A CN114896004 A CN 114896004A
Authority
CN
China
Prior art keywords
item
declaration
information
preset
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210439335.8A
Other languages
Chinese (zh)
Inventor
王腾
姜虎城
张婷
辛霞
褚森
王逸群
王雪擎
薛昊天
倪浩然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202210439335.8A priority Critical patent/CN114896004A/en
Publication of CN114896004A publication Critical patent/CN114896004A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/413Classification of content, e.g. text, photographs or tables

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data processing method and device, electronic equipment and a storage medium, and relates to the technical field of cloud computing. One embodiment of the method comprises: receiving a viewing instruction of the item information, inquiring the module identification of each corresponding item display module based on the item identification, and determining the element component associated with each module identification; acquiring element parameters of the element components, and generating item display modules for displaying item information based on the element parameters of the element components associated with the module identifications; the method comprises the steps of obtaining the function type of each item display module, calling a preset item display template, combining the item display modules based on the function type to obtain an item display page, and sending the item display page. The embodiment solves the problems that the main content of the item information can be obtained only by carefully researching the item information through the existing item information display mode, so that the time of a user is wasted, and the item information understanding efficiency is reduced.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of cloud computing technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
The item information represents item information of matters, and can be displayed to a user in a page display mode, and the matters generally comprise various types, such as policy matters and the like. In the prior art, item information display usually displays an original file of an item, and for item information with a fixed format and a unified standard, a user can accurately know implementation content from the displayed item information, but for item information without a fixed format and a unified standard, the item information display is performed in the prior art, and the user needs to carefully study the item information to obtain the main content of the item information, so that the waste of time for the user is caused, and the efficiency of knowing the item information is reduced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data processing method, an apparatus, an electronic device, and a storage medium, which can solve the problems that, in the existing item information display manner, the main content of the item information can be obtained only by carefully studying the item information, which causes waste of time for a user and reduces efficiency of understanding the item information.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a data processing method.
The data processing method of the embodiment of the invention comprises the following steps: receiving a viewing instruction of the item information, and acquiring an item identifier in the viewing instruction; inquiring module identifications of corresponding item display modules based on the item identifications, and acquiring a preset item association relation so as to determine element components associated with the module identifications; acquiring element parameters of the element components, calling a preset generation model, and generating each item display module for displaying item information based on the element parameters of the element components associated with each module identifier; and acquiring the function type of each item display module, calling a preset item display template, combining the item display modules based on the function type to obtain an item display page, and sending the item display page.
Optionally, after the event display page is sent, the method further includes:
receiving an item declaration instruction of the item information, wherein the item declaration instruction is sent based on the item display page;
inquiring a corresponding declaration flow chart and declaration acquisition information based on the item identification to call a preset declaration form single-component template and generate an item declaration form of the item information;
and sending the item declaration form.
Optionally, before the receiving the viewing instruction of the event information, the method further includes:
responding to the processing instruction of the item information, acquiring an item identifier in the processing instruction to inquire corresponding item information;
identifying element values of all preset item elements in the item information, and calling a preset component template to generate element components corresponding to all the item elements based on the attribute values;
inquiring a module identifier of an item display module associated with the item element based on the item association relationship, and establishing a corresponding relationship between the item identifier and the module identifier;
and acquiring the function type of each item display module based on the module identification so as to determine the display position of the item display module and further generate an item display template.
Optionally, after the querying the corresponding item information, the method further includes:
extracting an item declaration text in the item information to call a preset identification model, and identifying an item declaration flow and declaration acquisition information;
and calling a preset drawing model, drawing a declaration flow chart based on the item declaration flow so as to establish a corresponding relation among the declaration acquisition information, the declaration flow chart and the item identification.
Optionally, invoking a preset component template to generate an element component corresponding to each item element based on the attribute value, where the method includes:
and acquiring the element type of each item element, and calling a component template associated with the element type to generate an element component corresponding to each item element based on the attribute value.
Optionally, identifying an element value of each item element preset in the item information includes:
segmenting the item information to obtain text segments;
and adding a semantic label to each text participle to extract an element value of each item element from the text participle based on the semantic label.
Optionally, adding a semantic tag to each text participle includes:
matching a preset item element keyword library with the text participles to obtain a matching result of each text participle;
and in response to the matching result being successful, determining the matched item element key words as semantic tags of the text participles.
Optionally, identifying an element value of each item element preset in the item information includes:
and inquiring the service type corresponding to the item information based on the item identification, and acquiring a target item element corresponding to the service type to identify an element value of each target item element in the item information.
To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided a data processing apparatus.
A data processing apparatus of an embodiment of the present invention includes: the receiving unit is used for receiving a viewing instruction of the item information and acquiring an item identifier in the viewing instruction; the determining unit is used for inquiring the module identification of each corresponding item display module based on the item identification, acquiring a preset item association relation and determining the element component associated with each module identification; the generating unit is used for acquiring element parameters of the element components, calling a preset generating model, and generating each item display module for displaying the item information based on the element parameters of the element components associated with each module identification; and the combination unit is used for acquiring the function type of each item display module, calling a preset item display template, combining the item display modules based on the function type to obtain an item display page, and sending the item display page.
Optionally, the receiving unit is further configured to receive an item declaration instruction of the item information, where the item declaration instruction is sent based on the item display page;
the generating unit is further configured to query a corresponding declaration flow chart and declaration acquisition information based on the item identifier, so as to call a preset declaration form single-component template and generate an item declaration form of the item information;
the device further comprises:
and the sending unit is used for sending the item declaration form.
Optionally, the apparatus further comprises:
the acquisition unit is used for responding to the processing instruction of the item information, and acquiring the item identifier in the processing instruction so as to inquire the corresponding item information;
the identification unit is used for identifying element values of all preset item elements in the item information and calling a preset component template so as to generate element components corresponding to all the item elements based on the attribute values;
the establishing unit is used for inquiring the module identification of the item display module associated with the item element based on the item association relationship and establishing the corresponding relationship between the item identification and the module identification;
the generating unit is further configured to obtain a function type of each item display module based on the module identifier, so as to determine a display position of the item display module, and further generate an item display template.
Optionally, the identification unit is further configured to extract an item declaration text in the item information, so as to call a preset identification model, identify an item declaration flow and declaration acquisition information;
the establishing unit is further configured to invoke a preset drawing model, draw a declaration flow chart based on the item declaration flow, and establish a corresponding relationship between the declaration acquisition information, the declaration flow chart, and the item identifier.
Optionally, the identification unit is specifically configured to:
and acquiring the element type of each item element, and calling a component template associated with the element type to generate an element component corresponding to each item element based on the attribute value.
Optionally, the identification unit is specifically configured to:
segmenting the item information to obtain text segments;
and adding a semantic label to each text participle to extract an element value of each item element from the text participle based on the semantic label.
Optionally, the identification unit is specifically configured to:
matching a preset item element keyword library with the text participles to obtain a matching result of each text participle;
and in response to the matching result being successful, determining the matched item element key words as semantic tags of the text participles.
Optionally, the identification unit is specifically configured to:
and inquiring the service type corresponding to the item information based on the item identification, and acquiring a target item element corresponding to the service type to identify an element value of each target item element in the item information.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided an electronic apparatus.
An electronic device of an embodiment of the present invention includes: one or more processors; the storage device is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors realize the data processing method provided by the embodiment of the invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer-readable medium.
A computer-readable medium of an embodiment of the present invention stores thereon a computer program, which, when executed by a processor, implements a data processing method provided by an embodiment of the present invention.
To achieve the above object, according to still another aspect of an embodiment of the present invention, there is provided a computer program product.
A computer program product according to an embodiment of the present invention includes a computer program, and when the computer program is executed by a processor, the computer program implements the data processing method according to an embodiment of the present invention.
One embodiment of the above invention has the following advantages or benefits: in the embodiment of the invention, the item information is displayed in the item display module in a sub-module manner, each item display module is associated with the element component, and each element component can embody the key content of the item information, so that the key content in the item information is converted into the element component and is associated with each item display module to display in the page by realizing the display module, so that the item information can be clearly and visually displayed, even if the item information without a fixed format and a unified standard is available, a user can visually, accurately and quickly know the item information, the waste of user time is avoided, and the efficiency of the user in knowing the item information is improved; meanwhile, in the embodiment of the invention, the item display modules accurately display the positions in the page based on the function types, so that the item elements with different functions can be displayed in a centralized manner, and the display positions are determined based on the association of the function types among the item display modules, so that a user can visually, accurately and quickly know the item information, the waste of the user time is avoided, and the efficiency of the user in knowing the item information is improved.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of a technical architecture of a data processing system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a system architecture of a data processing system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a main flow of a data processing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of yet another major flow of a data processing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of yet another major flow of a data processing method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of the main elements of a data processing apparatus according to an embodiment of the present invention;
FIG. 7 is a diagram of yet another exemplary system architecture to which embodiments of the present invention may be applied;
FIG. 8 is a schematic block diagram of a computer system suitable for use in implementing embodiments of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict. According to the technical scheme, the data acquisition, storage, use, processing and the like meet relevant regulations of national laws and regulations.
The embodiment of the invention provides a data processing system which can be used for a data processing scene of event information.
The embodiment of the invention can be realized by the technical architecture as shown in 1. As shown in fig. 1, the presentation layer may be used for presentation of data, and may adopt a design Model of a web application MVC (Model View Controller), where a Model represents an application core (such as a database record list), a View is used for displaying data (such as a database record), and a Controller is used for processing input data (such as writing a database record); the MVC design mode can be used for managing complex application programs, for example, the MVC design mode can be focused on view design without depending on business logic, and the test of the application programs is more convenient; the front end of the MVC design mode can be implemented by Vue (component) technology, Vue is a JavaScript MVVM library, which is built by data driving and componentization ideas, can be used for building a progressive framework of a user interface, and can be applied layer by layer from bottom to top, as shown in fig. 1, can relate to common components of multiple functions to implement corresponding display functions, such as a data visualization component, a common form element component, a common form component, and the like.
The service layer can be used for processing services, and the service layer can organically separate an application interface of a service processing system from service logic by using a front-end and back-end separation technology, so that the front end and the back end of the system are sufficiently decoupled, specifically, the service layer can be realized by adopting a Spring boot framework, and the Spring boot framework is a framework for simplifying Spring development and can be used for monitoring Spring application development, for example, the service layer can realize service processing such as authority control, metadata service, service atomic service/service assembly and the like.
The data access layer can be used for accessing the stored data, and can be specifically implemented by a big data search engine, a database and the like. The data access layer may employ a Mybatis framework, Mybatis being a persistent layer framework, supporting customized SQL, stored procedures and advanced mapping, may use simple XML or annotations to configure and map native information, map interfaces and POJO (Plain organisry Java Object) into records in a database, and has no third party dependency, is easy to use, and does not affect existing designs of applications or databases.
The persistence layer is used for persistence of each processing data, and MySql, Redis and a data model can be adopted as data storage of the persistence layer. MySql is a relational database management system, has good portability, convenient use and strong function, is suitable for various large, medium, small and microcomputer environments, and is a database scheme with high efficiency, good reliability and high throughput. Redis (Remote Dictionary Server) is an open-source log-type and Key-Value database written in ANSI C language, supporting network, based on memory and persistent, and provides API of multiple languages, and is a high-performance Key-Value database.
It should be noted that the functions of log service, transaction control, authentication service, flow control, and the like of the service processing system can also be realized by combining the service layer, the data access layer, and the persistence layer.
In this embodiment of the present invention, a data processing system may be implemented based on the technical architecture shown in fig. 1, and fig. 2 is a system architecture diagram of the data processing system in the embodiment of the present invention. As shown in fig. 2, the presentation layer may be a client of the data processing system, and may generally run in a terminal device (e.g., a computer), the client may display content such as event information, and may also receive an instruction input by a user, and the presentation layer may employ Vue technology to complete request initiation and reception, page data logic processing, page rendering, and the like at the layer; the interface layer may provide a link required for data transmission between a client and a backend of the data processing system, such as a data transmission protocol and an API gateway, for example, a request of the access layer may be routed to the service layer through the API gateway in an HTTP/HTTPs + JSON data transmission manner; the service layer can provide data processing functions for the data processing system to perform core business logic processing, such as service management, service communication and the like, and can also provide components, modules and the like for processing the transaction information; the storage layer can be used for data storage in a data processing process, and includes a cache storage mode and a database storage mode, and specifically, MySql can be used for realizing database storage of data and Redis can be used for realizing cache storage of data.
An embodiment of the present invention provides a data processing method, which may be executed by the data processing system shown in fig. 2, as shown in fig. 3, and the method includes:
s301: and receiving a viewing instruction of the item information, and acquiring an item identifier in the viewing instruction.
The viewing instruction of the item information can be input by a user through a client, the user can input the viewing instruction through operation in a display interface of the client, and then the data processing system can receive the viewing instruction of the item information. The viewing instruction may include an item identifier to indicate item information of which item is viewed this time. For example, the event may include "XX industry development funds", such as a user viewing the information about the event, and viewing the event identifier included in the instruction for the event.
S302: and inquiring the module identification of each corresponding item display module based on the item identification, and acquiring a preset item association relation so as to determine the element component associated with each module identification.
The item display module and the item association relation are all configured in advance. In the embodiment of the present invention, the functions of the item elements are different, for example, some item elements represent basic information of the item, such as an item name, an implementation object, a declaration object, and the like, and the functions of the keys represent basic information of the item, so in the embodiment of the present invention, different item display modules may be set based on the function types, the item display modules of different function types may be associated with different item elements, for example, an item element representing basic information may be associated with an item display module whose function type is basic information. Because the item elements in the embodiment of the present invention are displayed in a component manner, the required components of each item element can be generated in advance in the embodiment of the present invention, and further, the item association relationship between the module identifier and the element component can be established, so as to facilitate the query in this step.
S303: and acquiring element parameters of the element components, calling a preset generation model, and generating each item display module for displaying item information based on the element parameters of the element components associated with each module identifier.
The element component is generated based on the element value of the item element in the item information, so that the key content in the item can be embodied. The item element can be a minimum granularity control item of item information, and according to the service attribute, the display requirement and the like, the element parameters in the element component can comprise an element value, and preset information such as an element name, whether filling is necessary, a front-end control type (supporting a common text input box, a multi-line text box, a rich text editor, a pull-down selection box, a radio button, a multi-selection button, a date selection, a file upload control, a front-end control data verification rule and the like, so that the element component can be conveniently displayed.
The generative model may be preconfigured to generate each item display module based on the element parameters of each module identification associated element component. Specifically, in the embodiment of the present invention, each item display module may be generated by combining the associated element components through an element combination template corresponding to each preset item display template. The module identification display position of the related element component can be included in the element combination template, so that the related element components can be combined.
S304: the method comprises the steps of obtaining the function type of each item display module, calling a preset item display template, combining the item display modules based on the function type to obtain an item display page, and sending the item display page.
The function types of the item display modules are different, the item display template is configured in advance and can comprise the positions of the item display modules of the function types in the display page, so that the preset item display template is called to combine the item display modules based on the function types to obtain the item display page. After the item display page is obtained, it can be sent to facilitate page display at the client.
It should be noted that the event display page may also include other content configured in advance, such as a control or a component for implementing other functions, etc., to meet the requirement of the user for viewing the event information, for example, a zoom-in control, a declaration button, etc., may be included.
In the embodiment of the present invention, some item information further includes an item declaration operation, for example, the "XX industry development special fund" may further include a fund declaration process. For the item information, a user can input an item declaration instruction of the item information through an item display page, and then the data processing system can query a corresponding declaration flow chart and declaration acquisition information based on the item identification to call a preset declaration form component template, generate an item declaration form of the item information, and send the item declaration form so as to facilitate the user to execute declaration operation.
In the embodiment of the invention, the item information is displayed in the item display module in a sub-module manner, each item display module is associated with the element component, and each element component can embody the key content of the item information, so that the key content in the item information is converted into the element component and is associated with each item display module to display in the page by realizing the display module, so that the item information can be clearly and visually displayed, even if the item information without a fixed format and a unified standard is available, a user can visually, accurately and quickly know the item information, the waste of user time is avoided, and the efficiency of the user in knowing the item information is improved; meanwhile, in the embodiment of the invention, the item display modules accurately display the positions in the page based on the function types, so that the item elements with different functions can be displayed in a centralized manner, and the display positions are determined based on the association of the function types among the item display modules, so that a user can visually, accurately and quickly know the item information, the waste of the user time is avoided, and the efficiency of the user in knowing the item information is improved.
Referring to the system architecture shown in fig. 2 and the embodiment shown in fig. 3, a data processing method is further provided in the embodiment of the present invention, as shown in fig. 4, where the method includes:
s401: and responding to the processing instruction of the transaction information, and acquiring the transaction identifier in the processing instruction to inquire the corresponding transaction information.
The processing instruction of the event information is used for instructing the display of the event information to carry out configuration operation, and the processing instruction can be triggered by management or maintenance personnel of the event information. The processing instruction may include a transaction identifier to indicate which transaction information is to be processed, so that the transaction information corresponding to the transaction identifier may be searched.
S402: and identifying element values of all preset item elements in the item information, and calling a preset component template to generate element components corresponding to all the item elements based on the attribute values.
In the embodiment of the present invention, the corresponding implementation elements may be configured based on the service type, so that in this step, the target item element corresponding to the service type may be obtained based on the service type identifier, which is obtained by querying the service type corresponding to the item information, to identify the element value of each target item element in the item information.
Taking the type of the matter as "XX special capital for industry development" as an example, the corresponding matter elements may include: the system comprises an implementation subject name (text type), a declaration object (text type), field arrival times (numbers), a support mode (text type), a support amount (text type), a policy foundation (text type), a declaration condition (text type), a governing department (text type), support contents (text type), a handling process (text type), an acceptance window (text type), declaration time (text type), a contact mode (text type), a charging standard (text type) and the like.
Taking the above-mentioned example item elements as an example, the item elements corresponding to different item elements are different in element type and display manner, and if some elements can be directly displayed and some elements need to be displayed in a drop-down frame manner, the components used by the item elements of different element types are different.
It should be noted that in the embodiment of the present invention, the element parameters of each element component may be stored in a database in an attribute row, and the fields may specifically include: the method comprises the following steps of storing a row of the element in a database, wherein the row of the element is easy to expand and simple in structure.
Specifically, the item information is usually a text or can be converted into a text, so that the item information can be segmented by identifying the element value in the step to obtain a segmented text segment, and then a semantic label is added to each text segment to extract the element value of each item element from the text segment based on the semantic label.
In the embodiment of the invention, the semantic labels can be added to the text participles through the text context, and the semantic labels can also be added to the text participles through the item element keyword library. For example, in this step, a preset item element keyword library may be matched with text participles to obtain a matching result of each text participle; and in response to the matching result being successful, determining the matched item element key words as semantic labels of the text participles.
The item element keyword library can be set based on historical experience, wherein the item element keyword library can comprise element values of all item elements in historical item information, and further if a text participle belongs to the item element keyword library, the item element keyword library can be determined as an element value and can determine the item element corresponding to the item element value, so that the preset item element keyword library is matched with the text participle, and if the text analysis is successfully matched with keywords in the item element keyword library, the matched item element keyword is determined as a semantic label of the text participle; if the text analysis is not successfully matched with the key words in the item element key word library, then no processing is required.
S403: and inquiring the module identification of the item display module associated with the item element based on the item association relationship, and establishing the corresponding relationship between the item identification and the module identification.
Wherein the transaction relationship is pre-configured. Since different event elements correspond to different functions, they also correspond to different event display modules, for example, the event elements of the implementation subject name, the declaration object, the number of times to arrive at the scene, the support type, and the support amount indicate basic information of the event, so that the event elements can be associated with the event display module whose function is the basic information. Therefore, in the step, the item display module identifier associated with the item element can be inquired based on the item association relationship, so that the item display module required by the item information in display is determined, and the corresponding relationship between the item identifier and the item display module identifier can be established.
It should be noted that the transaction association relationship may specifically be transaction type dictionary data, and is stored in the Redis in a Hash data structure manner. The binding of the item display module and the item elements can be finished in the database in a one-to-many way of database tables through an intermediate association table; the main table is an item display module table and comprises a main key, an item display module name, an item display module type, whether to start or not and the like; the association table includes an item display module ID and an item element ID.
S404: and acquiring the function type of each item display module based on the module identification so as to determine the display position of the item display module and further generate an item display template.
In the embodiment of the present invention, the display position of the page display may be determined based on the function type of each item display module, for example, a user usually knows the basic information first when viewing the item information, so that the item display model corresponding to the basic information may be placed in the top position, that is, the display position of the item display model corresponding to the basic information may be determined, and thus, the item display template may be generated, so as to facilitate generation and rendering of a subsequent item information display page.
In the embodiment of the invention, the item elements in the item information are identified to generate the item components, the item association relation between the item components and the item display module is configured, and the display position of each item display module is determined based on the function type, so that the item display module is used for performing sub-module display when the item information is displayed, each element component can embody the key content of the item information, the key content in the item information is converted into the element components and is associated with each item display module, the key content is displayed in a page through the display module, the item information can be clearly and visually displayed, even if the item information without a fixed format and a unified standard is displayed, a user can visually, accurately and quickly know the item information, the waste of user time is avoided, and the efficiency of the user for knowing the item information is improved.
In addition, in the embodiment of the present invention, when the event information includes a declaration operation, a display page for declaration may be configured for the event information.
Referring to the system architecture shown in fig. 2 and the embodiment shown in fig. 3, another data processing method provided in the embodiment of the present invention may be executed after step S401, and as shown in fig. 5, the method includes:
s501: and extracting the item declaration text in the item information to call a preset identification model, and identifying the item declaration flow and declaration acquisition information.
The recognition model can be configured in advance, specifically can be a keyword recognition model, so as to obtain an item declaration flow and declaration acquisition information based on the recognition model. The event declaration process may specifically include steps of declaration and precedence relationships between the steps, and the declaration acquisition information may be information required to be provided when the user declares, such as declaration materials and the like.
S502: and calling a preset drawing model, drawing a declaration flow chart based on the item declaration flow so as to establish a corresponding relation among declaration acquisition information, the declaration flow chart and the item identification.
The drawing model can be set based on requirements, a declaration flow chart is drawn based on the recognized declaration flow, and then the corresponding relation among declaration acquisition information, the declaration flow chart and the item identification can be established, so that the declaration time of a user can be conveniently displayed.
In the embodiment of the invention, the item display module is used for displaying the item information in a sub-module manner, each item display module is associated with the element component, and each element component can embody the key content of the item information.
In order to solve the problems in the prior art, an embodiment of the present invention provides an apparatus 600 for data processing, as shown in fig. 6, the apparatus 600 includes:
a receiving unit 601, configured to receive a viewing instruction of the item information, and obtain an item identifier in the viewing instruction;
a determining unit 602, configured to query, based on the item identifier, a module identifier of each item display module corresponding to the item identifier, and obtain a preset item association relationship, so as to determine an element component associated with each module identifier;
a generating unit 603, configured to obtain element parameters of the element components, and invoke a preset generating model, so as to generate item display modules for displaying the item information based on the element parameters of the element components associated with the module identifiers;
the combining unit 604 is configured to obtain a function type of each item display module, call a preset item display template, combine the item display modules based on the function type to obtain an item display page, and send the item display page.
It should be understood that the implementation of the embodiment of the present invention is the same as the implementation of the embodiment shown in fig. 3, and the description thereof is omitted here.
Optionally, the receiving unit 601 is further configured to receive an item declaration instruction of the item information, where the item declaration instruction is sent based on the item display page;
the generation sheet 603 is further configured to query a corresponding declaration flow chart and declaration acquisition information based on the item identifier, so as to call a preset declaration sheet component template and generate an item declaration sheet of the item information;
the apparatus 600 further comprises:
and the sending unit is used for sending the item declaration form.
Optionally, the apparatus 600 further includes:
the acquisition unit is used for responding to the processing instruction of the item information, and acquiring the item identifier in the processing instruction so as to inquire the corresponding item information;
the identification unit is used for identifying element values of all preset item elements in the item information and calling a preset component template so as to generate element components corresponding to all the item elements based on the attribute values;
the establishing unit is used for inquiring the module identification of the item display module associated with the item element based on the item association relationship and establishing the corresponding relationship between the item identification and the module identification;
the generating unit 603 is further configured to obtain a function type of each item display module based on the module identifier, to determine a display position of the item display module, and further generate an item display template.
Optionally, the identification unit is further configured to extract an item declaration text in the item information, so as to call a preset identification model, identify an item declaration flow and declaration acquisition information;
the establishing unit is further configured to invoke a preset drawing model, draw a declaration flow chart based on the item declaration flow, and establish a corresponding relationship between the declaration acquisition information, the declaration flow chart, and the item identifier.
Optionally, the identification unit is specifically configured to:
and acquiring the element type of each item element, and calling a component template associated with the element type to generate an element component corresponding to each item element based on the attribute value.
Optionally, the identification unit is specifically configured to:
segmenting the item information to obtain text segments;
and adding a semantic label to each text participle to extract an element value of each item element from the text participle based on the semantic label.
Optionally, the identification unit is specifically configured to:
matching a preset item element keyword library with the text participles to obtain a matching result of each text participle;
and in response to the matching result being successful, determining the matched item element key words as semantic tags of the text participles.
Optionally, the identification unit is specifically configured to:
and inquiring the service type corresponding to the item information based on the item identification, and acquiring a target item element corresponding to the service type to identify an element value of each target item element in the item information.
It should be understood that the embodiment of the present invention is implemented in the same manner as the embodiment shown in fig. 3, 4 or 5, and is not repeated herein.
In the embodiment of the invention, the item information is displayed in the item display module in a sub-module manner, each item display module is associated with the element component, and each element component can embody the key content of the item information, so that the key content in the item information is converted into the element component and is associated with each item display module to display in the page by realizing the display module, so that the item information can be clearly and visually displayed, even if the item information without a fixed format and a unified standard is available, a user can visually, accurately and quickly know the item information, the waste of user time is avoided, and the efficiency of the user in knowing the item information is improved; meanwhile, in the embodiment of the invention, the item display modules accurately display the positions in the page based on the function types, so that the item elements with different functions can be displayed in a centralized manner, and the display positions are determined based on the association of the function types among the item display modules, so that a user can visually, accurately and quickly know item information, the waste of user time is avoided, and the efficiency of the user in knowing the item information is improved.
According to an embodiment of the present invention, an electronic device and a readable storage medium are also provided.
The electronic device of the embodiment of the invention comprises: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the processor, and the instructions are executed by the at least one processor to cause the at least one processor to execute the data processing method provided by the embodiment of the invention.
Fig. 7 shows an exemplary system architecture 700 of a data processing method or data processing apparatus to which embodiments of the present invention may be applied.
As shown in fig. 7, the system architecture 700 may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 serves to provide a medium for communication links between the terminal devices 701, 702, 703 and the server 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 701, 702, 703 to interact with a server 705 over a network 704, to receive or send messages or the like. Various client applications may be installed on the terminal devices 701, 702, 703.
The terminal devices 701, 702, 703 may be, but are not limited to, smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 705 may be a server that provides various services, and may analyze and process data such as a received product information query request, and feed back a processing result (for example, product information — just an example) to the terminal device.
It should be noted that the data processing method provided by the embodiment of the present invention is generally executed by the server 705, and accordingly, the data processing apparatus is generally disposed in the server 705.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use in implementing embodiments of the present invention. The computer system illustrated in FIG. 8 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the invention.
As shown in fig. 8, a computer system 800 includes a Central Processing Unit (CPU)801 which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
The following components are connected to the I/O interface 805: an input portion 806 including a keyboard, a mouse, and the like; an output section 807 including a signal such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 808 including a hard disk and the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. A drive 810 is also connected to the I/O interface 805 as necessary. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted on the storage section 808 as necessary.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a unit, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, a determining unit, a generating unit, and a combining unit. Where the names of these elements do not in some cases constitute a limitation of the element itself, for example, a receiving element may also be described as "an element of the function of the receiving element".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to perform the data processing method provided by the present invention.
As another aspect, the present invention further provides a computer program product including a computer program, where the computer program is executed by a processor to implement the data processing method provided by the embodiment of the present invention.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (16)

1. A data processing method, comprising:
receiving a viewing instruction of the item information, and acquiring an item identifier in the viewing instruction;
inquiring module identifications of corresponding item display modules based on the item identifications, and acquiring a preset item association relation so as to determine element components associated with the module identifications;
acquiring element parameters of the element components, calling a preset generation model, and generating each item display module for displaying item information based on the element parameters of the element components associated with each module identifier;
and acquiring the function type of each item display module, calling a preset item display template, combining the item display modules based on the function type to obtain an item display page, and sending the item display page.
2. The method of claim 1, after sending the item display page, further comprising:
receiving an item declaration instruction of the item information, wherein the item declaration instruction is sent based on the item display page;
inquiring a corresponding declaration flow chart and declaration acquisition information based on the item identification to call a preset declaration form single-component template and generate an item declaration form of the item information;
and sending the item declaration form.
3. The method of claim 1, prior to said receiving a viewing instruction for transaction information, further comprising:
responding to the processing instruction of the item information, acquiring an item identifier in the processing instruction to inquire corresponding item information;
identifying element values of all preset item elements in the item information, and calling a preset component template to generate element components corresponding to all the item elements based on the attribute values;
inquiring a module identifier of an item display module associated with the item element based on the item association relationship, and establishing a corresponding relationship between the item identifier and the module identifier;
and acquiring the function type of each item display module based on the module identification so as to determine the display position of the item display module and further generate an item display template.
4. The method according to claim 3, further comprising, after said querying the corresponding transaction information:
extracting an item declaration text in the item information to call a preset identification model, and identifying an item declaration flow and declaration acquisition information;
and calling a preset drawing model, drawing a declaration flow chart based on the item declaration flow so as to establish a corresponding relation among the declaration acquisition information, the declaration flow chart and the item identification.
5. The method of claim 3, wherein invoking a preset component template to generate a component corresponding to each item component based on the attribute value comprises:
and acquiring the element type of each item element, and calling a component template associated with the element type to generate an element component corresponding to each item element based on the attribute value.
6. The method according to claim 3, wherein identifying an element value of each item element preset in the item information includes:
segmenting the item information to obtain text segments;
and adding a semantic label to each text participle to extract an element value of each item element from the text participle based on the semantic label.
7. The method of claim 6, wherein adding semantic tags to each of the text participles comprises:
matching a preset item element keyword library with the text participles to obtain a matching result of each text participle;
and in response to the matching result being successful, determining the matched item element key words as semantic tags of the text participles.
8. The method according to claim 3, wherein identifying an element value of each transaction element preset in the transaction information includes:
and inquiring the service type corresponding to the item information based on the item identification, and acquiring a target item element corresponding to the service type to identify an element value of each target item element in the item information.
9. A data processing apparatus, comprising:
the receiving unit is used for receiving a viewing instruction of the item information and acquiring an item identifier in the viewing instruction;
the determining unit is used for inquiring the module identification of each corresponding item display module based on the item identification, acquiring a preset item association relation and determining the element component associated with each module identification;
the generating unit is used for acquiring element parameters of the element components, calling a preset generating model, and generating each item display module for displaying the item information based on the element parameters of the element components associated with each module identification;
and the combination unit is used for acquiring the function type of each item display module, calling a preset item display template, combining the item display modules based on the function type to obtain an item display page, and sending the item display page.
10. The apparatus according to claim 9, wherein the receiving unit is further configured to receive an item declaration instruction of the item information, the item declaration instruction being sent based on the item display page;
the generating unit is further configured to query a corresponding declaration flow chart and declaration acquisition information based on the item identifier, so as to call a preset declaration form single-component template and generate an item declaration form of the item information;
the device further comprises:
and the sending unit is used for sending the item declaration form.
11. The apparatus of claim 9, further comprising:
the acquisition unit is used for responding to the processing instruction of the item information, and acquiring the item identifier in the processing instruction so as to inquire the corresponding item information;
the identification unit is used for identifying element values of all preset item elements in the item information and calling a preset component template so as to generate element components corresponding to all the item elements based on the attribute values;
the establishing unit is used for inquiring the module identification of the item display module associated with the item element based on the item association relationship and establishing the corresponding relationship between the item identification and the module identification;
the generating unit is further configured to obtain a function type of each item display module based on the module identifier, so as to determine a display position of the item display module, and further generate an item display template.
12. The device of claim 9, wherein the recognition unit is further configured to extract an item declaration text in the item information to call a preset recognition model, recognize an item declaration flow and declaration collection information;
the establishing unit is further configured to invoke a preset drawing model, draw a declaration flow chart based on the item declaration flow, and establish a corresponding relationship between the declaration acquisition information, the declaration flow chart, and the item identifier.
13. The apparatus according to claim 11, wherein the identification unit is specifically configured to:
and acquiring the element type of each item element, and calling a component template associated with the element type to generate an element component corresponding to each item element based on the attribute value.
14. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
15. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-8.
16. A computer program product comprising a computer program, characterized in that the program realizes the method according to any of claims 1-8 when executed by a processor.
CN202210439335.8A 2022-04-25 2022-04-25 Data processing method and device, electronic equipment and storage medium Pending CN114896004A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210439335.8A CN114896004A (en) 2022-04-25 2022-04-25 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210439335.8A CN114896004A (en) 2022-04-25 2022-04-25 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114896004A true CN114896004A (en) 2022-08-12

Family

ID=82716483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210439335.8A Pending CN114896004A (en) 2022-04-25 2022-04-25 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114896004A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130102762A (en) * 2012-03-08 2013-09-23 주식회사 청호컴넷 Apparatus and method for screen creation based on i/o model, and storage medium recording program for implementing method thereof
CN110795911A (en) * 2019-09-16 2020-02-14 中国平安人寿保险股份有限公司 Real-time adding method and device of online text label and related equipment
CN111208999A (en) * 2020-01-07 2020-05-29 深圳迅策科技有限公司 Template-based instruction generation method and device, terminal equipment and storage medium
CN112115338A (en) * 2020-09-15 2020-12-22 平安信托有限责任公司 Page query request processing method, device, equipment and storage medium
CN112241876A (en) * 2020-10-26 2021-01-19 浪潮云信息技术股份公司 All-element dynamic combing method for government affair service affairs
CN112330308A (en) * 2021-01-05 2021-02-05 广州互联网法院 Case management system and method and electronic device
CN113190229A (en) * 2021-05-19 2021-07-30 中国建设银行股份有限公司 Method and device for generating government affair page
CN114020246A (en) * 2021-11-05 2022-02-08 深圳壹账通智能科技有限公司 Navigation caliper H5 page layout method, device, equipment and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130102762A (en) * 2012-03-08 2013-09-23 주식회사 청호컴넷 Apparatus and method for screen creation based on i/o model, and storage medium recording program for implementing method thereof
CN110795911A (en) * 2019-09-16 2020-02-14 中国平安人寿保险股份有限公司 Real-time adding method and device of online text label and related equipment
CN111208999A (en) * 2020-01-07 2020-05-29 深圳迅策科技有限公司 Template-based instruction generation method and device, terminal equipment and storage medium
CN112115338A (en) * 2020-09-15 2020-12-22 平安信托有限责任公司 Page query request processing method, device, equipment and storage medium
CN112241876A (en) * 2020-10-26 2021-01-19 浪潮云信息技术股份公司 All-element dynamic combing method for government affair service affairs
CN112330308A (en) * 2021-01-05 2021-02-05 广州互联网法院 Case management system and method and electronic device
CN113190229A (en) * 2021-05-19 2021-07-30 中国建设银行股份有限公司 Method and device for generating government affair page
CN114020246A (en) * 2021-11-05 2022-02-08 深圳壹账通智能科技有限公司 Navigation caliper H5 page layout method, device, equipment and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘彬;李晓鹏;: "基于Silverlight的气象信息查询系统设计与应用", 气象科技, no. 03, 15 June 2016 (2016-06-15), pages 27 - 31 *

Similar Documents

Publication Publication Date Title
CN109359194B (en) Method and apparatus for predicting information categories
CN110321544B (en) Method and device for generating information
CN111158795A (en) Report generation method, device, medium and electronic equipment
CN113485781A (en) Report generation method and device, electronic equipment and computer readable medium
US11423219B2 (en) Generation and population of new application document utilizing historical application documents
CN113626223A (en) Interface calling method and device
CN113657113A (en) Text processing method and device and electronic equipment
CN111984234A (en) Method and device for processing work order
CN114282129A (en) Information system page generation method, system, electronic equipment and storage medium
CN111488386B (en) Data query method and device
CN110489326B (en) IDS-based HTTPAPI debugging method device, medium and equipment
CN115658127A (en) Data processing method and device, electronic equipment and storage medium
CN115454956A (en) Log generation method and device, electronic equipment and storage medium
CN114896004A (en) Data processing method and device, electronic equipment and storage medium
CN115033634A (en) Data acquisition method, data acquisition device, electronic equipment and medium
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN112131379A (en) Method, device, electronic equipment and storage medium for identifying problem category
CN113761415A (en) Page display method and device
CN112784195A (en) Page data publishing method and system
CN111178014A (en) Method and device for processing business process
CN116301869B (en) Front-end page configuration management and control system, method, equipment and medium
CN114818918A (en) Service processing method and device, electronic equipment and storage medium
CN110807089B (en) Question answering method and device and electronic equipment
CN114117310A (en) Page generation method and device, electronic equipment and computer readable medium
CN116644104A (en) Search engine management method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination