CN111259043A - Method, device, computer storage medium and terminal for realizing information processing - Google Patents

Method, device, computer storage medium and terminal for realizing information processing Download PDF

Info

Publication number
CN111259043A
CN111259043A CN202010019897.8A CN202010019897A CN111259043A CN 111259043 A CN111259043 A CN 111259043A CN 202010019897 A CN202010019897 A CN 202010019897A CN 111259043 A CN111259043 A CN 111259043A
Authority
CN
China
Prior art keywords
analysis
query
information
result set
result
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
CN202010019897.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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010019897.8A priority Critical patent/CN111259043A/en
Publication of CN111259043A publication Critical patent/CN111259043A/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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

A method, a device, a computer storage medium and a terminal for realizing information processing comprise: performing first analysis on the received query information, and packaging the query information into a first object which can be identified by the back end of a Java persistence layer application program interface (JPA) according to the result of the first analysis; and performing second analysis on a result set obtained according to the packaged first object query, and packaging the result set into a second object which can be identified by the layui front end according to the result of the second analysis. The embodiment of the invention reduces the complexity of the data query processing process and improves the efficiency of the data query processing.

Description

Method, device, computer storage medium and terminal for realizing information processing
Technical Field
The present disclosure relates to, but not limited to, internet technologies, and in particular, to a method, an apparatus, a computer storage medium, and a terminal for implementing information processing.
Background
Currently, many Java projects use Java persistence application program interface (JPA, Java persistence api) backgrounds for database operations, which is very convenient. layui (a front-end interface design (UI) framework written by adopting self module specifications, and following the writing and organization form of native hypertext markup language (HTML)/Cascading Style Sheet (CSS)/JS (which is a lightweight, interpreted or just-in-time compiled programming language with function priority)) has perfect styles and functions as a front-end technology, and meets the development requirements of most website interfaces. Therefore, the system framework of data query processing is formed by using the layui as a front end and the JPA as a background.
In the system framework with the layui as the front end and the JPA as the background, as shown in fig. 1, a flow diagram of data query processing in the related art is shown, and when paging query is performed, query information is submitted at the layui front end according to a set query condition, and the submitted query information is sent to the JPA background; after receiving the query information, the background needs a technician to manually add the relevant parameters contained in the query information into a set parameter list, and further convert the relevant parameters into objects recognizable by JPA; in addition, after the JPA queries the result set, a Page < T > object that the layu cannot receive the identification is output, and at this time, the technician still needs to manually convert the result set of the query into an object that the layu can receive the identification, so that the data obtained by converting the result set can be displayed at the front end of the layu.
In summary, at present, layu is used as a front end, JPA is used as a system framework of a background, a processing process for performing data query is complex and low in efficiency, and how to improve the processing efficiency of data query becomes a problem to be solved.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
Embodiments of the present invention provide a method, an apparatus, a computer storage medium, and a terminal for implementing information processing, which can reduce complexity of a data query processing process and improve efficiency of data query processing.
The embodiment of the invention provides a method for realizing information processing, which comprises the following steps:
performing first analysis on the received query information, and packaging the query information into a first object which can be identified by the back end of a Java persistence layer application program interface (JPA) according to the result of the first analysis;
and performing second analysis on a result set obtained according to the packaged first object query, and packaging the result set into a second object which can be identified by the layui front end according to the result of the second analysis.
In an exemplary embodiment, the query information includes one or any combination of the following paging parameters:
page, entry, object, and object information.
In an exemplary embodiment, after the encapsulating of the second object identifiable by the layui according to the result of the second analysis, the method further comprises:
feeding back the second object obtained by encapsulation to the layui front end.
In an exemplary embodiment, the performing a first analysis on the received query information includes:
performing the first analysis on the received query information through a preset class;
wherein the preset classes include: a parameter acquisition class.
In an exemplary embodiment, the second analyzing the result set obtained from the packaged first object query comprises:
performing the second analysis on the result set obtained by the query through a preset class;
wherein the preset classes include: a parameter acquisition class.
On the other hand, the embodiment of the present invention further provides a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions are used to execute the above method for implementing information processing.
In another aspect, an embodiment of the present invention further provides a terminal, including: a memory and a processor; wherein the content of the first and second substances,
the processor is configured to execute program instructions in the memory;
the program instructions read and execute the method for realizing the information processing on the processor.
In another aspect, an embodiment of the present invention further provides an apparatus for implementing information processing, where the apparatus includes: a first processing unit and a second processing unit; wherein the content of the first and second substances,
the first processing unit is used for: performing first analysis on the received query information, and packaging the query information into a first object which can be identified by the back end of a Java persistence layer application program interface (JPA) according to the result of the first analysis;
the second processing unit is used for: and performing second analysis on a result set obtained according to the packaged first object query, and packaging the result set into a second object which can be identified by the layui front end according to the result of the second analysis.
In an exemplary embodiment, the first processing unit is configured to perform a first analysis on the received query information, and includes:
performing the first analysis on the received query information through a preset class;
wherein the preset classes include: a parameter acquisition class.
In an exemplary embodiment, the first processing unit is configured to perform a second analysis on a result set obtained from the packaged first object query, and includes:
performing the second analysis on the result set obtained by the query through a preset class;
wherein the preset classes include: a parameter acquisition class.
Compared with the related art, the technical scheme of the application comprises the following steps: performing first analysis on the received query information, and packaging the query information into a first object which can be identified by the back end of a Java persistence layer application program interface (JPA) according to the result of the first analysis; and performing second analysis on a result set obtained according to the packaged first object query, and packaging the result set into a second object which can be identified by the layui front end according to the result of the second analysis. The embodiment of the invention reduces the complexity of the data query processing process and improves the efficiency of the data query processing.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a schematic flow chart illustrating a data query process according to the related art;
FIG. 2 is a flow chart of a method for implementing information processing according to an embodiment of the present invention;
fig. 3 is a block diagram of an apparatus for implementing information processing according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 2 is a flowchart of a method for implementing information processing according to an embodiment of the present invention, as shown in fig. 2, including:
step 201, performing a first analysis on the received query information, and packaging the query information into a first object identifiable by a java persistent layer application program interface (JPA) rear end according to a result of the first analysis;
in an exemplary embodiment, the query information includes one or any combination of the following paging parameters:
page, entry, object, and object information.
And step 202, performing second analysis on a result set obtained according to the packaged first object query, and packaging the result set into a second object which can be identified by the layui front end according to the result of the second analysis.
It should be noted that, the query information in the embodiment of the present invention may include query information sent by the layui front end.
In an exemplary embodiment, after encapsulating the second object identifiable by the layui according to the result of the second analysis, the method of an embodiment of the present invention further includes:
feeding back the second object obtained by encapsulation to the layui front end.
It should be noted that, the query result data in the embodiment of the present invention includes data of a Page < T > object.
In an exemplary embodiment, the performing a first analysis on the received query information includes:
performing the first analysis on the received query information through a preset class;
wherein the preset classes include: a parameter acquisition class.
It should be noted that the parameter acquisition class is a class of a programming language known to those skilled in the art.
In an exemplary embodiment, the second analyzing the result set obtained from the packaged first object query comprises:
performing the second analysis on the result set obtained by the query through a preset class;
wherein the preset classes include: a parameter acquisition class.
Compared with the related art, the technical scheme of the application comprises the following steps: performing first analysis on the received query information, and packaging the query information into a first object which can be identified by the back end of a Java persistence layer application program interface (JPA) according to the result of the first analysis; and performing second analysis on a result set obtained according to the packaged first object query, and packaging the result set into a second object which can be identified by the layui front end according to the result of the second analysis. The embodiment of the invention reduces the complexity of the data query processing process and improves the efficiency of the data query processing.
The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used for executing the method for realizing information processing.
An embodiment of the present invention further provides a terminal, including: a memory and a processor; wherein the content of the first and second substances,
the processor is configured to execute program instructions in the memory;
the program instructions read and execute the method for realizing the information processing on the processor.
Fig. 3 is a block diagram of an apparatus for implementing information processing according to an embodiment of the present invention, as shown in fig. 3, including: a first processing unit and a second processing unit; wherein the content of the first and second substances,
the first processing unit is used for: performing first analysis on the received query information, and packaging the query information into a first object which can be identified by the back end of a Java persistence layer application program interface (JPA) according to the result of the first analysis;
the second processing unit is used for: and performing second analysis on a result set obtained according to the packaged first object query, and packaging the result set into a second object which can be identified by the layui front end according to the result of the second analysis.
It should be noted that, the query information in the embodiment of the present invention may include query information sent by the layui front end.
The device of the embodiment of the invention can be arranged in a server at the back end of the JPA, and can also be arranged to be in communication connection with the back end of the JPA.
In an exemplary embodiment, the query information includes one or any combination of the following paging parameters:
page, entry, object, and object information.
In an exemplary embodiment, the apparatus of the embodiment of the present invention further includes a feedback unit, configured to:
feeding back the second object obtained by encapsulation to the layui front end.
It should be noted that, the query result data in the embodiment of the present invention includes data of a Page < T > object.
In an exemplary embodiment, the first processing unit is configured to perform a first analysis on the received query information, and includes:
performing the first analysis on the received query information through a preset class;
wherein the preset classes include: a parameter acquisition class.
It should be noted that the parameter acquisition class is a class of a programming language known to those skilled in the art.
In an exemplary embodiment, the first processing unit is configured to perform a second analysis on a result set obtained from the packaged first object query, and includes:
performing the second analysis on the result set obtained by the query through a preset class;
wherein the preset classes include: a parameter acquisition class.
Compared with the related art, the technical scheme of the application comprises the following steps: performing first analysis on the received query information, and packaging the query information into a first object which can be identified by the back end of a Java persistence layer application program interface (JPA) according to the result of the first analysis; and performing second analysis on a result set obtained according to the packaged first object query, and packaging the result set into a second object which can be identified by the layui front end according to the result of the second analysis. The embodiment of the invention reduces the complexity of the data query processing process and improves the efficiency of the data query processing.
"one of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art. "

Claims (10)

1. A method of implementing information processing, comprising:
performing first analysis on the received query information, and packaging the query information into a first object which can be identified by the back end of a Java persistence layer application program interface (JPA) according to the result of the first analysis;
and performing second analysis on a result set obtained according to the packaged first object query, and packaging the result set into a second object which can be identified by the layui front end according to the result of the second analysis.
2. The method of claim 1, wherein the query information comprises one or any combination of the following paging parameters:
page, entry, object, and object information.
3. The method of claim 1, wherein after encapsulating the second object identifiable as a layui according to the results of the second analysis, the method further comprises:
feeding back the second object obtained by encapsulation to the layui front end.
4. The method according to any one of claims 1 to 3, wherein the performing a first analysis on the received query information comprises:
performing the first analysis on the received query information through a preset class;
wherein the preset classes include: a parameter acquisition class.
5. The method according to any one of claims 1 to 3, wherein the second analyzing the result set obtained from the packaged first object query comprises:
performing the second analysis on the result set obtained by the query through a preset class;
wherein the preset classes include: a parameter acquisition class.
6. A computer storage medium having stored therein computer-executable instructions for performing the method of implementing information processing according to any one of claims 1 to 5.
7. A terminal, comprising: a memory and a processor; wherein the content of the first and second substances,
the processor is configured to execute program instructions in the memory;
the program instructions read and execute the method for realizing information processing in any one of claims 1-5 on a processor.
8. An apparatus for implementing information processing, comprising: a first processing unit and a second processing unit; wherein the content of the first and second substances,
the first processing unit is used for: performing first analysis on the received query information, and packaging the query information into a first object which can be identified by the back end of a Java persistence layer application program interface (JPA) according to the result of the first analysis;
the second processing unit is used for: and performing second analysis on a result set obtained according to the packaged first object query, and packaging the result set into a second object which can be identified by the layui front end according to the result of the second analysis.
9. The apparatus as claimed in claim 8, wherein the first processing unit is configured to perform a first analysis on the received query information, and comprises:
performing the first analysis on the received query information through a preset class;
wherein the preset classes include: a parameter acquisition class.
10. The apparatus according to claim 8 or 9, wherein the first processing unit is configured to perform a second analysis on the result set obtained from the packaged first object query, and comprises:
performing the second analysis on the result set obtained by the query through a preset class;
wherein the preset classes include: a parameter acquisition class.
CN202010019897.8A 2020-01-09 2020-01-09 Method, device, computer storage medium and terminal for realizing information processing Pending CN111259043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010019897.8A CN111259043A (en) 2020-01-09 2020-01-09 Method, device, computer storage medium and terminal for realizing information processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010019897.8A CN111259043A (en) 2020-01-09 2020-01-09 Method, device, computer storage medium and terminal for realizing information processing

Publications (1)

Publication Number Publication Date
CN111259043A true CN111259043A (en) 2020-06-09

Family

ID=70951145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010019897.8A Pending CN111259043A (en) 2020-01-09 2020-01-09 Method, device, computer storage medium and terminal for realizing information processing

Country Status (1)

Country Link
CN (1) CN111259043A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549982A (en) * 2016-01-14 2016-05-04 国网山东省电力公司物资公司 Automated development platform based on model configuration
CN109271403A (en) * 2018-09-28 2019-01-25 北京京东金融科技控股有限公司 A kind of operating method of data query, device, medium and electronic equipment
CN109739872A (en) * 2018-12-27 2019-05-10 苏州思必驰信息科技有限公司 A kind of implementation method, system and the operating method of SQL statement processing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549982A (en) * 2016-01-14 2016-05-04 国网山东省电力公司物资公司 Automated development platform based on model configuration
CN109271403A (en) * 2018-09-28 2019-01-25 北京京东金融科技控股有限公司 A kind of operating method of data query, device, medium and electronic equipment
CN109739872A (en) * 2018-12-27 2019-05-10 苏州思必驰信息科技有限公司 A kind of implementation method, system and the operating method of SQL statement processing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SUCL: "springboot+jpa+shiro+layui实现权限管理", 《HTTPS://CLOUD.TENCENT.COM/DEVELOPER/ARTICLE/1482248》 *
浪尽此生: "使用LAYUI时需要如何返回前端的数据(默认识别的格式)", 《HTTPS://WWW.E-LEARN.CN/TOPIC/1290776》 *

Similar Documents

Publication Publication Date Title
CN110221824B (en) Method and device for generating component
US7970779B2 (en) Application interface including dynamic transform definitions
CN107798064B (en) Page processing method, electronic device and computer readable storage medium
CN112612982A (en) Webpage preloading method and device and computer equipment
CN111859205A (en) Analytic method and equipment for batch processing tasks
US8914420B2 (en) Populating data structures of software applications with input data provided according to extensible markup language (XML)
CN111259043A (en) Method, device, computer storage medium and terminal for realizing information processing
CN110688594A (en) Page jump method and device for front end of webpage
CN110716804A (en) Method and device for automatically deleting useless resources, storage medium and electronic equipment
CN110674171A (en) Script generation method and device and data processing method and device
CN116151199A (en) Method, device and equipment for generating network-connected vehicle test report
CN115080114A (en) Application program transplanting processing method, device and medium
CN113612816A (en) Data acquisition method, system, terminal and computer readable storage medium
CN114254229A (en) Webpage rendering method and device
CN112558964A (en) Webpage generation method, computer equipment and storage medium
CN110471708B (en) Method and device for acquiring configuration items based on reusable components
CN112541327A (en) Data reading method and device, electronic equipment and storage medium
CN111459819A (en) Software testing method and device, electronic equipment and computer readable medium
US9672294B2 (en) Partial data report generation with data costing notification
CN109376023B (en) Method and equipment for generating calling information and issuing return code group
CN112764732B (en) Code generation method and device applied to loading target resource
CN111078198A (en) Front-end page processing method, device, equipment and computer-readable storage medium
CN114116063A (en) Business process processing method and device, computer equipment and storage medium
CN113608817A (en) Bullet frame processing method and system
CN114969599A (en) Method, device and system for internationalizing webpage language

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200609

RJ01 Rejection of invention patent application after publication