CN112115338A - Page query request processing method, device, equipment and storage medium - Google Patents

Page query request processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112115338A
CN112115338A CN202010970104.0A CN202010970104A CN112115338A CN 112115338 A CN112115338 A CN 112115338A CN 202010970104 A CN202010970104 A CN 202010970104A CN 112115338 A CN112115338 A CN 112115338A
Authority
CN
China
Prior art keywords
field
page
template
query request
project
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
CN202010970104.0A
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.)
Ping An Trust Co Ltd
Original Assignee
Ping An Trust 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 Ping An Trust Co Ltd filed Critical Ping An Trust Co Ltd
Priority to CN202010970104.0A priority Critical patent/CN112115338A/en
Publication of CN112115338A publication Critical patent/CN112115338A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to the technical field of computers, and discloses a page query request processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a query item identifier and a display requirement field contained in a page query request; searching a project template corresponding to the query project identifier and decomposing the project template to obtain a plurality of page templates; determining a page template to be displayed from the page template according to the display requirement field; the method comprises the steps of obtaining page data corresponding to a display requirement field, generating a front-end display page according to the page data and a page template to be displayed, obtaining a project template according to a query project identifier, then decomposing the template in real time, and selecting the template to be displayed from the decomposed page template according to the display requirement field for data filling. The page data can be stored in a block chain.

Description

Page query request processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a page query request.
Background
The front end is a foreground part of the website, and is operated on browsers such as a PC end and a mobile end to display webpages browsed by users. In general, in order to increase the loading speed of a web page and improve the web browsing experience of a user, developers may write corresponding static page templates for different page functions, so that the static pages are directly loaded to a client browser for display without being compiled by a server when being displayed.
Because the static page template is generally based on a static template written at the front end, different static templates are mostly not suitable for other scenes due to the limitation of application scenes, and meanwhile, a user cannot select page content to be viewed according to the query requirement of the user. Therefore, how to quickly respond to a request and display a request page meeting the user requirements when the front end receives a user query request is a technical problem to be solved urgently.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a page query request processing method, a page query request processing device, page query request processing equipment and a storage medium, and aims to solve the technical problems of quickly responding to a request and displaying a request page meeting the requirements of a user when the front end receives a user query request.
In order to achieve the above object, the present invention provides a method for processing a page query request, which comprises the following steps:
when a page query request is received, acquiring a query item identifier and a display requirement field contained in the page query request;
searching a project template corresponding to the query project identification in a preset database, and decomposing the project template to obtain a plurality of page templates;
determining a page template to be displayed from the page template according to the display requirement field;
and acquiring page data corresponding to the display requirement field, and generating a front-end display page according to the page data and the page template to be displayed.
Preferably, before the step of acquiring the query item identifier and the display requirement field included in the page query request when the page query request is received, the method further includes:
when a template assembling instruction is received, acquiring a basic field identifier, a characteristic field identifier and a service item identifier contained in the template assembling instruction;
reading a corresponding basic label field from a field element library according to the basic field identification;
reading a corresponding characteristic label field from the field element library according to the characteristic field identifier;
and acquiring a project frame to be assembled according to the service project identifier, and assembling the basic tag field and the characteristic tag field based on the project frame to be assembled to acquire a project template.
Preferably, before the step of acquiring the basic field identifier, the characteristic field identifier and the service item identifier included in the template assembly instruction when the template assembly instruction is received, the method further includes:
acquiring an input field type and a field length corresponding to a label field to be sorted;
checking the input field type and the field length;
and when the verification passes, constructing a field element library according to the input field type and the field identification corresponding to the label field to be sorted.
Preferably, the step of checking the input field type and the field length includes:
acquiring an actual field type corresponding to the label field to be sorted, and checking the input field type according to the actual field type;
detecting whether the length of the field exceeds a preset threshold value;
when the actual field type is consistent with the input field type and the field length does not exceed the preset threshold, judging that the verification is passed;
and when the actual field type is inconsistent with the input field type and/or the field length exceeds the preset threshold value, judging that the verification fails.
Preferably, after the step of obtaining the actual field type corresponding to the tag field to be sorted and checking the input field type according to the actual field type, the method further includes:
when the actual field type is inconsistent with the input field type, correcting the input field type according to the actual field type;
and when the correction is finished, executing the step of detecting whether the field length exceeds a preset threshold value.
Preferably, the step of constructing a field element library according to the input field type and the field identifier corresponding to the tag field to be sorted includes:
classifying the field identification corresponding to the label field to be sorted according to the input field type to obtain a field identification set corresponding to each input field type;
taking the field identification set as a key object, and taking the input field type to which the field identification set belongs as a value object to construct a key value pair;
and constructing a field element library according to the key value pairs.
Preferably, after the step of constructing the field element library according to the input field type and the field identifier corresponding to the tag field to be sorted when the check passes, the method further includes:
marking the tag field to be sorted according to the service item identifier selected by the user when the tag field to be sorted is input;
classifying the marked label fields to be sorted according to the basic information fields and the characteristic information fields;
and respectively storing the classified label fields into preset storage areas of the field element library.
In addition, to achieve the above object, the present invention further provides a page query request processing apparatus, including:
the device comprises a request receiving module, a display request receiving module and a display request sending module, wherein the request receiving module is used for acquiring a query item identifier and a display requirement field contained in a page query request when the page query request is received;
the template decomposition module is used for searching a project template corresponding to the query project identification in a preset database and decomposing the project template to obtain a plurality of page templates;
the page determining module is used for determining a page template to be displayed from the page templates according to the display requirement field;
and the page generation module is used for acquiring the page data corresponding to the display requirement field and generating a front-end display page according to the page data and the page template to be displayed.
In addition, to achieve the above object, the present invention further provides a page query request processing device, where the device includes: the page query processing method comprises the following steps of a memory, a processor and a page query request processing program which is stored on the memory and can run on the processor, wherein the page query request processing program is configured to realize the steps of the page query request processing method.
In addition, in order to achieve the above object, the present invention further provides a storage medium, where a page query request processing program is stored, and when being executed by a processor, the page query request processing program implements the steps of the page query request processing method as described above.
When a page query request is received, acquiring a query item identifier and a display requirement field contained in the page query request; searching a project template corresponding to the query project identification in a preset database, and decomposing the project template to obtain a plurality of page templates; determining a page template to be displayed from the page template according to the display requirement field; the method comprises the steps of acquiring page data corresponding to a display demand field, and generating a front-end display page according to the page data and a page template to be displayed. In addition, the page template to be displayed is quickly determined by inquiring the item identification and the display requirement field, and the page display efficiency is further improved.
Drawings
Fig. 1 is a schematic structural diagram of a page query request processing device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a page query processing method according to a first embodiment of the present invention;
FIG. 3 is a block diagram of a tag field configuration support framework in a first embodiment of a page query request processing method according to the present invention;
FIG. 4 is a flowchart illustrating a page query processing method according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a page query processing method according to a third embodiment of the present invention;
fig. 6 is a block diagram of a first embodiment of a page query request processing apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a page query request processing device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the page query request processing apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the architecture shown in FIG. 1 does not constitute a limitation of the page query request processing apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a page query request handler.
In the page query request processing apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the page query request processing device of the present invention may be disposed in the page query request processing device, and the page query request processing device invokes the page query request processing program stored in the memory 1005 through the processor 1001 and executes the page query request processing method provided by the embodiment of the present invention.
An embodiment of the present invention provides a method for processing a page query request, and referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of the method for processing a page query request according to the present invention.
In this embodiment, the page query request processing method includes the following steps:
step S10: when a page query request is received, acquiring a query item identifier and a display requirement field contained in the page query request;
it should be noted that the execution subject of the method of this embodiment may be a tag field configuration support framework (hereinafter referred to as a framework). Referring to fig. 3, fig. 3 is a block diagram of a tag field configuration support framework in a first embodiment of the page query request processing method according to the present invention.
As shown in fig. 3, the tag field configuration support framework in this embodiment may include: a front-end presentation module 301, a standard interface module 302, a back-end data service module 303, and a page configuration maintenance module 304.
The functions that the page configuration maintenance module 304 can implement mainly include field element management, project template management and page template management, and can perform configuration maintenance on a field element unit, a project template unit and a page template unit in the back-end data service module respectively. The standard interface module 302 is connected to the back-end data service module 303 and provides a data modification interface, a query interface, and a field display interface, and the front-end display module 301 can instantiate and modify the project template (stored in the back-end data service module 303) in the project template unit through the data modification interface, and can also verify the field element (stored in the back-end data service module 303) in the field element unit. The query interface in the standard interface module 302 may be used for the front-end presentation module 301, the association system, the external system, and the like to invoke a query, such as an example data screening query. The front-end display module 301 receives the page template sent by the back-end data service module 303 through the field display interface, and performs parsing, rendering and displaying on the page template.
It should be understood that the page query request may be a page access request triggered by a user on a human-computer interaction interface corresponding to the front-end presentation module 301, and in actual operation, the user may select a service item to be viewed and information of the service item to be viewed on the human-computer interaction interface according to an access requirement of the user. For example, if the user needs to check information such as the loan balance, the repayment period, and the repayment mode in the personal house loan item, the demand is displayed in the personal house loan item, that is, the business item, the loan balance, the repayment period, and the repayment mode. The method comprises the steps of inquiring item identification, namely identification information corresponding to business items, and displaying requirement fields, namely the identification information corresponding to requirements, wherein the identification information is character data formed by letters, numbers, characters or combinations thereof capable of representing objects.
Accordingly, the query item identifier in this step may be identification information of a service item to be queried by the user, such as a name, a code, a number, and the like. The display requirement field may be specific service item information that the user wants to view or needs to be displayed by the front-end display module under the service item selected by the user.
Step S20: searching a project template corresponding to the query project identification in a preset database, and decomposing the project template to obtain a plurality of page templates;
it should be noted that the project template may be a template file configured for each type of service project after the service projects are totally classified in advance according to different service types, and the template file may be decomposed into different page templates according to different display requirements, so that the front-end display module in the frame may analyze and render the page templates and display the page templates to the user.
It is understood that the business type may be a category to which a business project belongs, such as a business type of financing investment, savings, credit, settlement, securities trading, business insurance, etc. in the field of financial services. The business items, i.e. the specific items (products) to which each business type relates, for example, credit business of a bank, include: corporate credit business, personal credit business; the credit business of the legal person comprises project loan, mobile fund loan, small business loan, real estate business loan and the like; the personal credit business comprises personal house loan, personal consumption loan, personal operation loan and the like.
In a specific implementation, after extracting the query item identifier in the request, the framework may search for an item template corresponding to the query item identifier in a preset database, and decompose the item template to obtain a plurality of page templates.
Specifically, in this embodiment, the frame decomposes the project template, which may be to first obtain directory tags included in the project template, then decompose the project template into sub-templates under different directory tags according to the directory tags, then traverse all tag fields included in the sub-templates, record display association information of the tag fields according to a traversal order, and perform page division on the sub-templates according to the display association information and the size of a display page to obtain a plurality of page templates.
The display related information may be a probability value that two or more tag fields appear in the same page at the same time, and the probability that the tag fields, such as name, identification number, contact information, etc., appear in the same page is usually high, so that when the template decomposition is performed, the tag fields are decomposed into the same page for display with a high probability.
Step S30: determining a page template to be displayed from the page template according to the display requirement field;
it can be understood that the frame can select the page template to be displayed from the page templates analyzed from the project module according to the display requirement field after the display requirement field is acquired. Specifically, the frame may first read the service item information (field) included in the display requirement field, then match the page template according to the service item information, and then determine the page template to be displayed according to the page template.
It should be understood that, in the process of matching the page template according to the service item information, the frame preferentially selects the page template to be displayed, which includes all the service item information, and if no such page template exists, selects the page template with the highest matching degree (i.e., the largest value) as the page template to be displayed according to the matching degree between the service item information and the page template.
The calculation method of the matching degree may be a ratio of the service items included in the page template in the service item information included in the whole display requirement field, for example, the service item information included in the display requirement field is: the loan balance, the repayment period and the repayment mode are respectively provided, the service items contained in the page template A are the loan balance and the repayment period, the service items contained in the page template B are the repayment mode, the matching degree between the service item information and the page template A is 67%, and the matching degree between the service item information and the page template A is 33%.
It should be noted that, in an actual situation, the templates displayed to the user at the front end are all static templates, the user cannot select the page information that the user wants to see according to the actual needs of the user, and the frame of this embodiment can select and display the page template in real time according to the needs of the user, so that the query efficiency of the user is greatly improved, and the interference of invalid information and redundant information to the user information query is avoided.
Step S40: and acquiring page data corresponding to the display requirement field, and generating a front-end display page according to the page data and the page template to be displayed.
It should be understood that the page data is specific service item information related to the self-demand that the user wants to view, for example, what is left in the loan balance of the personal housing loan of the user a wants to view, and the specific amount belongs to the page data, and the page data needs to be obtained from a background database corresponding to the frame, then written into the page to be displayed, and rendered by the front end to generate the front end display page for the user to view. It is emphasized that, in order to further ensure the privacy and security of the page data, the page data may also be stored in a node of a block chain.
It should be noted that, in some cases, the to-be-displayed page template matched by the frame may not completely cover the service item corresponding to the display requirement field, or the to-be-displayed page template with the highest matching degree may include other service items besides the service item corresponding to the display requirement field, which may cause the finally-displayed page to be inconsistent with the page that the user actually wants to query. Therefore, as a solution, when the frame of this embodiment detects that the matched to-be-displayed page template does not match the page template of the actual demand, the template is adjusted in time, for example, redundant service items except the service item to be viewed may be hidden in the page display process, or the missing service item may be added to the to-be-displayed page template, so as to obtain a final page template meeting the display requirement.
In a specific implementation, after the frame acquires the page data corresponding to the display requirement field, a front-end display page can be generated according to the page data and the page template to be displayed, and then the front-end display page is displayed for a user to watch.
In this embodiment, when a page query request is received, a query item identifier and a display requirement field included in the page query request are obtained; searching a project template corresponding to the query project identification in a preset database, and decomposing the project template to obtain a plurality of page templates; determining a page template to be displayed from the page template according to the display requirement field; the method includes the steps that page data corresponding to a display requirement field are obtained, a front-end display page is generated according to the page data and a page template to be displayed, since the project template is accurately obtained according to a query project identifier carried in a request, the template is decomposed in real time, the template to be displayed is selected from the decomposed page template according to the display requirement field to be filled with data, compared with the existing mode that fixed page data are displayed through a static page, page display can be better carried out according to the display requirement of a user, and query experience is improved. In addition, the page template to be displayed is quickly determined by inquiring the item identification and the display requirement field, and the page display efficiency is further improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a page query request processing method according to a second embodiment of the present invention.
Based on the first embodiment, before the step S10, the method of this embodiment further includes:
step S01: when a template assembling instruction is received, acquiring a basic field identifier, a characteristic field identifier and a service item identifier contained in the template assembling instruction;
it should be understood that the template assembly instruction may be an instruction triggered by a framework developer to assemble a project template from field elements in a field element library.
In this step, the basic field identifier is an identifier of a basic information field, where the basic information field may be basic information of a service item. The identity of the feature field, i.e. the identity of the feature information field, where the feature information field may be specific to each service item or service item information distinct from the basic information field. The service item identifier represents the uniqueness of the service item and distinguishes character information of different service items.
In a specific implementation, when the framework receives a template assembly instruction, the framework analyzes the instruction to obtain a basic field identifier, a characteristic field identifier and a service item identifier contained in the instruction.
Step S02: reading a corresponding basic label field from a field element library according to the basic field identification;
the field element library may be an element library constructed from various information field tags. The information field tags can be different types or kinds of tag fields, such as project names, project standing items, time and date and the like of business projects, different tag fields can be integrated to form a special project template, the project template can be decomposed into different page templates according to the query requirements of different users, and the page template is subjected to data filling by the framework according to data requested by the users and then rendered to generate a page for displaying.
In a specific implementation, the framework may match the corresponding basic tag field from the field element library according to the basic field identifier, for example, read the corresponding basic tag field "time and date" from the field element library according to the basic field identifier "DD-YY-MM", read the corresponding basic tag field "finance" from the field element library according to the basic field identifier "finence", and so on.
Step S03: reading a corresponding characteristic label field from the field element library according to the characteristic field identifier;
likewise, the framework may read the corresponding feature tag field from the field element library according to the feature field identification, such as reading the corresponding feature tag field "commercial insurance" from the field element library according to the feature field identification, "arc policy" from the field element library, and so on.
Step S04: and acquiring a project frame to be assembled according to the service project identifier, and assembling the basic tag field and the characteristic tag field based on the project frame to be assembled to acquire a project template.
It should be noted that the project framework to be assembled may be a blank project template file which is not filled with data, the template files may be written in advance by developers according to different business projects, and when the framework is stored, the framework may be marked and stored by the corresponding business project identifier, so that the efficiency of acquiring the project template may be improved.
In a specific implementation, the framework can obtain an item framework to be assembled according to the service item identifier, and then embed the basic tag field and the feature tag field into the item framework to be assembled based on the item framework to be assembled to obtain the item template.
Further, in order to improve the assembly efficiency of the template items, the framework of the embodiment may mark the tag fields to be sorted according to the service item identifiers selected by the user when inputting the tag fields to be sorted; then classifying the marked label fields to be sorted according to the basic information fields and the characteristic information fields; and storing the classified label fields into preset storage areas of the field element library respectively, and improving the field reading efficiency of the frame by adopting a regional storage mode.
In this embodiment, when a template assembly instruction is received, a basic field identifier, a feature field identifier, and a service item identifier included in the template assembly instruction are obtained; reading a corresponding basic label field from a field element library according to the basic field identification; reading a corresponding characteristic label field from a field element library according to the characteristic field identifier; and acquiring a project frame to be assembled according to the service project identifier, and assembling the basic tag field and the characteristic tag field based on the project frame to be assembled to obtain a project template. According to the method, the project template containing the basic tag field and the characteristic tag field can be generated for different service projects, so that when a page query request for a certain service project is received, the corresponding project template can be quickly searched, then the page template is decomposed, the request is responded based on the page template, and the query efficiency of the request is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a page query request processing method according to a third embodiment of the present invention.
Based on the foregoing embodiments, in this embodiment, before the step S01, the method further includes:
step S1: acquiring an input field type and a field length corresponding to a label field to be sorted;
it should be noted that the tag field to be sorted may be a tag field corresponding to a service item of a different service type input by a user. When a new service project is added, a framework developer needs to input a project label field corresponding to the new added project, and before the project field labels are put in storage, a series of verification operations need to be performed to ensure the reliability and effectiveness of the fields put in storage.
It should be understood that the input field type may be a type of a tag field input by a user, such as a text type, a numerical type, etc., and the field length is the number of bytes of the tag field.
Further, in this embodiment, when a new service item is added, a developer instantiates the item template to obtain an item instance, and all subsequent item information is uniformly queried and modified in the item instance corresponding to the item. Instantiation refers to a process of creating an object by using a class in object-oriented programming and is called instantiation. For example, Date () is an object that creates a Date using a Date class, and is called an instantiation of the object.
Step S2: checking the input field type and the field length;
it should be noted that, the input field type is verified, that is, it is verified whether the tag field itself of the text type is input by the user as the tag field of the numerical type, or whether the tag field itself of the numerical type is input by the user as the tag field of the text type, if so, a situation that the input field type input by the user is not matched with the actual field type corresponding to the tag field is caused, and for such a tag field, it cannot be written into the field element library. For the field length check, a preset threshold (or a preset threshold range) may be set to check whether the field length exceeds the threshold or the range, and if so, the field length is determined not to pass the check, and the field is rejected to be written into the field element library.
In a specific implementation, a frame may first obtain an actual field type corresponding to the tag field to be sorted, and check the input field type according to the actual field type; meanwhile, detecting whether the length of the field exceeds a preset threshold value; when the actual field type is consistent with the input field type and the field length does not exceed the preset threshold, judging that the verification is passed; and when the actual field type is inconsistent with the input field type and/or the field length exceeds the preset threshold value, judging that the verification fails.
Further, in order to ensure the accuracy of the input field type, the framework in this embodiment corrects the input field type of the error in an automatic checking and repairing manner. Specifically, when the actual field type is inconsistent with the input field type, the input field type may be corrected according to the actual field type; and then when the correction is completed, the operation of detecting whether the field length exceeds a preset threshold value is executed. For example, if the input field type of the tag to be sorted input by the user is originally a numerical value type, but the actual field type of the tag to be sorted is a text type, at this time, the frame may correct the input field type to the actual field type.
Step S3: and when the verification passes, constructing a field element library according to the input field type and the field identification corresponding to the label field to be sorted.
It should be understood that when the frame passes the verification of the tag field to be sorted input by the user, the frame may construct the field element library according to the input field type and the field identifier corresponding to the tag field to be sorted. Specifically, the frame may classify the field identifiers corresponding to the tag fields to be sorted according to the input field types, and obtain a field identifier set corresponding to each input field type; then, the field identification set is used as a key object (key), and the input field type to which the field identification set belongs is used as a value object (value) to construct a key value pair (key: value); and then constructing a field element library according to the key value pairs.
The embodiment obtains the input field type and the field length corresponding to the label field to be sorted; checking the input field type and the field length; when the verification is passed, a field element library is constructed according to the input field type and the field identification corresponding to the label field to be sorted, so that the accuracy of the data in the field element library can be ensured. The technical scheme of the application can be applied to interactive management system interfaces similar to medical consultation management systems and the like so as to improve the accuracy of user data query and acquisition.
In addition, an embodiment of the present invention further provides a storage medium, where a page query request processing program is stored on the storage medium, and when being executed by a processor, the page query request processing program implements the steps of the page query request processing method described above.
Referring to fig. 6, fig. 6 is a block diagram illustrating a first embodiment of a page query request processing apparatus according to the present invention.
As shown in fig. 6, a page query request processing apparatus according to an embodiment of the present invention includes:
a request receiving module 601, configured to obtain, when a page query request is received, a query item identifier and a display requirement field that are included in the page query request;
the template decomposition module 602 is configured to search a preset database for an item template corresponding to the query item identifier, and decompose the item template to obtain a plurality of page templates;
a page determining module 603, configured to determine a page template to be displayed from the page templates according to the display requirement field;
the page generating module 604 is configured to obtain page data corresponding to the display requirement field, and generate a front-end display page according to the page data and the to-be-displayed page template.
In this embodiment, when a page query request is received, a query item identifier and a display requirement field included in the page query request are obtained; searching a project template corresponding to the query project identification in a preset database, and decomposing the project template to obtain a plurality of page templates; determining a page template to be displayed from the page template according to the display requirement field; the method includes the steps that page data corresponding to a display requirement field are obtained, a front-end display page is generated according to the page data and a page template to be displayed, since the project template is accurately obtained according to a query project identifier carried in a request, the template is decomposed in real time, the template to be displayed is selected from the decomposed page template according to the display requirement field to be filled with data, compared with the existing mode that fixed page data are displayed through a static page, page display can be better carried out according to the display requirement of a user, and query experience is improved. In addition, the page template to be displayed is quickly determined by inquiring the item identification and the display requirement field, and the page display efficiency is further improved.
Based on the first embodiment of the page query request processing apparatus of the present invention, another embodiment of the page query request processing apparatus of the present invention is provided.
As an implementation manner, the page query request processing apparatus further includes a template assembly module, configured to, when a template assembly instruction is received, obtain a basic field identifier, a feature field identifier, and a service item identifier that are included in the template assembly instruction; reading a corresponding basic label field from a field element library according to the basic field identification; reading a corresponding characteristic label field from the field element library according to the characteristic field identifier; acquiring a project frame to be assembled according to the service project identification, assembling the basic label field and the characteristic label field based on the project frame to be assembled, and acquiring a project template
As an implementation manner, the page query request processing apparatus further includes a field check module, configured to obtain an input field type and a field length corresponding to a tag field to be sorted; checking the input field type and the field length; and when the verification passes, constructing a field element library according to the input field type and the field identification corresponding to the label field to be sorted.
As an implementation manner, the field checking module is further configured to obtain an actual field type corresponding to the tag field to be sorted, and check the input field type according to the actual field type; detecting whether the length of the field exceeds a preset threshold value; when the actual field type is consistent with the input field type and the field length does not exceed the preset threshold, judging that the verification is passed; and when the actual field type is inconsistent with the input field type and/or the field length exceeds the preset threshold value, judging that the verification fails.
As an implementation manner, the field checking module is further configured to correct the input field type according to the actual field type when the actual field type is inconsistent with the input field type; and when the correction is completed, executing the operation of detecting whether the field length exceeds a preset threshold value.
As an implementation manner, the field checking module is further configured to classify the field identifier corresponding to the tag field to be sorted according to the input field type, so as to obtain a field identifier set corresponding to each input field type; taking the field identification set as a key object, and taking the input field type to which the field identification set belongs as a value object to construct a key value pair; and constructing a field element library according to the key value pairs.
As an implementation manner, the page query request processing apparatus further includes a field storage module, configured to mark the tag field to be sorted according to a service item identifier selected by a user when the tag field to be sorted is input; classifying the marked label fields to be sorted according to the basic information fields and the characteristic information fields; and respectively storing the classified label fields into preset storage areas of the field element library.
Other embodiments or specific implementation manners of the page query request processing apparatus of the present invention may refer to the above method embodiments, and are not described herein again.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., a rom/ram, a magnetic disk, an optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A page query request processing method is characterized by comprising the following steps:
when a page query request is received, acquiring a query item identifier and a display requirement field contained in the page query request;
searching a project template corresponding to the query project identification in a preset database, and decomposing the project template to obtain a plurality of page templates;
determining a page template to be displayed from the page template according to the display requirement field;
and acquiring page data corresponding to the display requirement field, and generating a front-end display page according to the page data and the page template to be displayed.
2. The method according to claim 1, wherein before the step of obtaining the query item identifier and the display requirement field included in the page query request when the page query request is received, the method further comprises:
when a template assembling instruction is received, acquiring a basic field identifier, a characteristic field identifier and a service item identifier contained in the template assembling instruction;
reading a corresponding basic label field from a field element library according to the basic field identification;
reading a corresponding characteristic label field from the field element library according to the characteristic field identifier;
and acquiring a project frame to be assembled according to the service project identifier, and assembling the basic tag field and the characteristic tag field based on the project frame to be assembled to acquire a project template.
3. The method of claim 2, wherein before the step of obtaining the basic field identifier, the characteristic field identifier and the service item identifier included in the template assembly instruction when the template assembly instruction is received, the method further comprises:
acquiring an input field type and a field length corresponding to a label field to be sorted;
checking the input field type and the field length;
and when the verification passes, constructing a field element library according to the input field type and the field identification corresponding to the label field to be sorted.
4. The method of claim 3, wherein said step of checking said input field type and said field length comprises:
acquiring an actual field type corresponding to the label field to be sorted, and checking the input field type according to the actual field type;
detecting whether the length of the field exceeds a preset threshold value;
when the actual field type is consistent with the input field type and the field length does not exceed the preset threshold, judging that the verification is passed;
and when the actual field type is inconsistent with the input field type and/or the field length exceeds the preset threshold value, judging that the verification fails.
5. The method according to claim 4, wherein after the step of obtaining the actual field type corresponding to the tag field to be sorted and checking the input field type according to the actual field type, the method further comprises:
when the actual field type is inconsistent with the input field type, correcting the input field type according to the actual field type;
and when the correction is finished, executing the step of detecting whether the field length exceeds a preset threshold value.
6. The method of claim 4, wherein the step of constructing the field element library according to the input field type and the field identifier corresponding to the tag field to be sorted comprises:
classifying the field identification corresponding to the label field to be sorted according to the input field type to obtain a field identification set corresponding to each input field type;
taking the field identification set as a key object, and taking the input field type to which the field identification set belongs as a value object to construct a key value pair;
and constructing a field element library according to the key value pairs.
7. The method of claim 3, wherein after the step of constructing a field element library according to the input field type and the field identification corresponding to the tag field to be sorted when the check is passed, the method further comprises:
marking the tag field to be sorted according to the service item identifier selected by the user when the tag field to be sorted is input;
classifying the marked label fields to be sorted according to the basic information fields and the characteristic information fields;
and respectively storing the classified label fields into preset storage areas of the field element library.
8. An apparatus for processing a page query request, the apparatus comprising:
the device comprises a request receiving module, a display request receiving module and a display request sending module, wherein the request receiving module is used for acquiring a query item identifier and a display requirement field contained in a page query request when the page query request is received;
the template decomposition module is used for searching a project template corresponding to the query project identification in a preset database and decomposing the project template to obtain a plurality of page templates;
the page determining module is used for determining a page template to be displayed from the page templates according to the display requirement field;
and the page generation module is used for acquiring the page data corresponding to the display requirement field and generating a front-end display page according to the page data and the page template to be displayed.
9. A page query request processing apparatus, characterized in that the apparatus comprises: a memory, a processor and a page query request handler stored on the memory and operable on the processor, the page query request handler being configured to implement the steps of the page query request handling method according to any of claims 1 to 7.
10. A storage medium having stored thereon a page query request processing program, which when executed by a processor implements the steps of the page query request processing method according to any one of claims 1 to 7.
CN202010970104.0A 2020-09-15 2020-09-15 Page query request processing method, device, equipment and storage medium Pending CN112115338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010970104.0A CN112115338A (en) 2020-09-15 2020-09-15 Page query request processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010970104.0A CN112115338A (en) 2020-09-15 2020-09-15 Page query request processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112115338A true CN112115338A (en) 2020-12-22

Family

ID=73802738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010970104.0A Pending CN112115338A (en) 2020-09-15 2020-09-15 Page query request processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112115338A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112800370A (en) * 2021-01-28 2021-05-14 金蝶蝶金云计算有限公司 Business document processing method and device, computer equipment and storage medium
CN113094048A (en) * 2021-04-02 2021-07-09 海信集团控股股份有限公司 Data display rule determining method, display method, device, equipment and medium
CN113469784A (en) * 2021-06-28 2021-10-01 康键信息技术(深圳)有限公司 Activity service auditing method, device, equipment and storage medium
CN113487286A (en) * 2021-07-14 2021-10-08 重庆大宽科技发展有限公司 Safety quality inspection system, method, computer equipment and storage medium
CN114513417A (en) * 2022-02-11 2022-05-17 新奥数能科技有限公司 Information configuration method and device of Internet of things equipment
CN114866359A (en) * 2022-07-07 2022-08-05 深圳市泽维电子科技有限公司 Information unloading processing method, system, terminal and storage medium
CN114896004A (en) * 2022-04-25 2022-08-12 中国建设银行股份有限公司 Data processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070277099A1 (en) * 2006-05-23 2007-11-29 Kojiro Nakayama Page source data generation method, page source data generation system, and program
CN102541529A (en) * 2010-12-30 2012-07-04 北京亿阳信通软件研究院有限公司 Query page generating device and method
CN109460527A (en) * 2018-09-25 2019-03-12 中国平安人寿保险股份有限公司 Product data configuration method, device, computer equipment and storage medium
CN109582909A (en) * 2018-12-19 2019-04-05 拉扎斯网络科技(上海)有限公司 Webpage automatic generation method, device, electronic equipment and storage medium
CN110347953A (en) * 2019-05-20 2019-10-18 中国平安财产保险股份有限公司 Page generation method, device, computer equipment and storage medium
CN110659349A (en) * 2019-09-23 2020-01-07 深圳前海微众银行股份有限公司 Log query method, device, equipment and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070277099A1 (en) * 2006-05-23 2007-11-29 Kojiro Nakayama Page source data generation method, page source data generation system, and program
CN102541529A (en) * 2010-12-30 2012-07-04 北京亿阳信通软件研究院有限公司 Query page generating device and method
CN109460527A (en) * 2018-09-25 2019-03-12 中国平安人寿保险股份有限公司 Product data configuration method, device, computer equipment and storage medium
CN109582909A (en) * 2018-12-19 2019-04-05 拉扎斯网络科技(上海)有限公司 Webpage automatic generation method, device, electronic equipment and storage medium
CN110347953A (en) * 2019-05-20 2019-10-18 中国平安财产保险股份有限公司 Page generation method, device, computer equipment and storage medium
CN110659349A (en) * 2019-09-23 2020-01-07 深圳前海微众银行股份有限公司 Log query method, device, equipment and computer readable storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112800370A (en) * 2021-01-28 2021-05-14 金蝶蝶金云计算有限公司 Business document processing method and device, computer equipment and storage medium
CN112800370B (en) * 2021-01-28 2024-04-30 金蝶蝶金云计算有限公司 Processing method and device of business document, computer equipment and storage medium
CN113094048A (en) * 2021-04-02 2021-07-09 海信集团控股股份有限公司 Data display rule determining method, display method, device, equipment and medium
CN113469784A (en) * 2021-06-28 2021-10-01 康键信息技术(深圳)有限公司 Activity service auditing method, device, equipment and storage medium
CN113487286A (en) * 2021-07-14 2021-10-08 重庆大宽科技发展有限公司 Safety quality inspection system, method, computer equipment and storage medium
CN113487286B (en) * 2021-07-14 2023-04-07 重庆大宽科技发展有限公司 Safety quality inspection system, method, computer equipment and storage medium
CN114513417A (en) * 2022-02-11 2022-05-17 新奥数能科技有限公司 Information configuration method and device of Internet of things equipment
CN114896004A (en) * 2022-04-25 2022-08-12 中国建设银行股份有限公司 Data processing method and device, electronic equipment and storage medium
CN114866359A (en) * 2022-07-07 2022-08-05 深圳市泽维电子科技有限公司 Information unloading processing method, system, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN112115338A (en) Page query request processing method, device, equipment and storage medium
US7159185B1 (en) Function objects
US20040030991A1 (en) Systems and methods for facilitating automatic completion of an electronic form
CA2684822C (en) Data transformation based on a technical design document
US20070022128A1 (en) Structuring data for spreadsheet documents
CN111339559A (en) Data processing method and device for desensitizing log
US11256912B2 (en) Electronic form identification using spatial information
US7130862B2 (en) Methods, systems and computer program prodcuts for validation of XML instance documents using Java classloaders
WO2003005189A9 (en) Method for creating browser-based user interface applications using a framework
CN113419728B (en) Marketing page building method, device, equipment and storage medium
CN115618371A (en) Desensitization method and device for non-text data and storage medium
US20170154021A1 (en) System and method for enablement of data masking for web documents
CN116340989A (en) Data desensitization method and device, electronic equipment and storage medium
CN112052364A (en) Sensitive information detection method, device, equipment and computer readable storage medium
CN114861218A (en) Data desensitization method and device
US8862976B1 (en) Methods and systems for diagnosing document formatting errors
RU2632149C2 (en) System, method and constant machine-readable medium for validation of web pages
US20070112675A1 (en) Goods and Services Locator Language for Uniform Resource Identifier Components
CN116757812A (en) Method, device, electronic equipment and storage medium for detecting abnormal data
US11507639B1 (en) Methods for identifying recurring web site accessibility issues and devices thereof
CN115145674A (en) Page jump method, device, equipment and medium based on dynamic anchor point
CN110502483B (en) Data processing method, data processing device, computer equipment and storage medium
CN114968220A (en) Dynamic portal design method and device
CN115186240A (en) Social network user alignment method, device and medium based on relevance information
US20150324333A1 (en) Systems and methods for automatically generating hyperlinks

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20201222