CN108647304B - Report display system, method, computer device and storage medium - Google Patents

Report display system, method, computer device and storage medium Download PDF

Info

Publication number
CN108647304B
CN108647304B CN201810437284.9A CN201810437284A CN108647304B CN 108647304 B CN108647304 B CN 108647304B CN 201810437284 A CN201810437284 A CN 201810437284A CN 108647304 B CN108647304 B CN 108647304B
Authority
CN
China
Prior art keywords
data
module
access request
report
display
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.)
Active
Application number
CN201810437284.9A
Other languages
Chinese (zh)
Other versions
CN108647304A (en
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 Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201810437284.9A priority Critical patent/CN108647304B/en
Publication of CN108647304A publication Critical patent/CN108647304A/en
Application granted granted Critical
Publication of CN108647304B publication Critical patent/CN108647304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a report display system, a report display method, computer equipment and a storage medium, wherein the report display system comprises: the system comprises a data processing module, a data storage module, a load balancing module and a data visualization display module which are connected in sequence; the data processing module is used for monitoring data in the database and writing newly-added data in the database into the data storage module; the data visualization display module is used for acquiring a basic template file according to the received data display request and sending a data access request to the load balancing module; the load balancing module is used for calling an interface of the data storage module through an http protocol according to the received data access request and returning the data inquired in the data storage module to the data visualization display module; and the data visualization display module is used for combining the basic template file and the data returned based on the data access request into a complete report and displaying the complete report so as to solve the problems of high concurrent production of the report and cool page display.

Description

Report display system, method, computer device and storage medium
Technical Field
The invention belongs to the technical field of data communication, and particularly relates to a report display system, a report display method, computer equipment and a storage medium.
Background
At present, when a service operator sends an access request through a system to acquire a report of service data in a big data platform, the system exports the data from hadoop (distributed computing) data to a relational database, a cognis brush model is used for generating the report, the report generating mode shows that the interface of the report is relatively simple, and the use scene of high-concurrency report fast generation cannot be met by adopting a report tool generating report based on tableau through direct connection spark.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a report display system, a report display method, a computer device, and a storage medium, which can realize high concurrency report generation and more beautiful report display.
The invention is realized in the following way:
the report display system comprises a data processing module, a data storage module, a load balancing module and a data visualization display module which are sequentially connected;
the data processing module is used for monitoring data in a database and writing newly-added data in the database into the data storage module;
the data visualization display module is used for acquiring a basic template file according to the received data display request and sending a data access request to the load balancing module;
the load balancing module is used for calling an interface of the data storage module through an http protocol according to the received data access request and returning the data inquired in the data storage module to the data visualization display module;
and the data visualization display module is used for combining the basic template file and the data returned based on the data access request into a complete report and displaying the complete report.
The report display method is applied to a report display system, and the system comprises a data processing module, a data storage module, a load balancing module and a data visualization display module which are connected in sequence;
the data processing module monitors data in a database and writes newly-added data in the database into the data storage module;
the data visualization display module acquires a basic template file according to the received data display request and sends a data access request to the load balancing module;
the load balancing module calls an interface of the data storage module through an http protocol according to the received data access request, and returns the data queried in the data storage module to the data visualization display module;
and the data visualization display module combines the basic template file and the data returned based on the data access request into a complete report and displays the complete report.
A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method as described above when the computer program is executed.
A computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of a method as described above.
The report display system, the report display method, the computer equipment and the storage medium provided by the embodiment of the invention are characterized in that the data processing module is used for monitoring the data in the database and writing the newly-added data in the database into the data storage module so as to realize the real-time writing of the data; the data visualization display module is used for acquiring a basic template file according to the received data display request, and sending a data access request to the load balancing module so as to receive the data display request; the load balancing module calls an interface of the data storage module through an http protocol according to the received data access request, and returns the data queried in the data storage module to the data visualization display module, so that high concurrent access is achieved, the data visualization display module combines the basic template file and the data returned based on the data access request into a complete report form and displays the complete report form, service personnel can quickly check report form information, and cool interface display is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a report display system provided in embodiment 1 of the present invention;
FIG. 2 is a schematic diagram of a data processing module in a report display system according to embodiment 1 of the present invention;
fig. 3 is a schematic structural diagram of a report display system according to embodiment 1 of the present invention in specific configuration;
fig. 4 is a schematic structural diagram of a report display system with an additional data buffer module according to embodiment 1 of the present invention;
FIG. 5 is a flowchart of a report display method according to embodiment 2 of the present invention;
fig. 6 is a schematic diagram of a computer device according to embodiment 4 of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
Referring to fig. 1, a schematic diagram of a report display system 10 according to an embodiment of the invention is shown.
As shown in fig. 1, the report display system 10 includes: a data processing module 101, a data storage module 102, a load balancing module 103 and a data visualization presentation module 104.
The data processing module 101 is configured to monitor data in the database and write newly added data in the database into the data storage module 102.
The data processing module 101 supports iterative operation on a distributed data set, can run in parallel in a Hadoop file system, and can also buffer the data set in a memory in memory cluster calculation to shorten access delay. Specifically, the data processing module 101 calls rdd.savetoes according to a user instruction, and writes newly added data in the database into the data storage module 102. For example, when data is newly added in the database, the data processing module 101 calls the data in the database through a user instruction, and guides the called data into the data storage module 102, and by setting the data processing module 101, the data storage module 102 is guided with the newly added data in the database in real time.
The data visualization display module 104 is configured to obtain the base template file according to the received data display request, and send a data access request to the load balancing module 103.
The base template file is set to different styles according to the requirements of the user, for example, a header is designed in the base template file, the display mode of each row is the same, but the data is different, each column may have different alignment modes and may have different display types, because the display types of each column are different, and each element in each row of data is generated by traversing the column configuration, which is a hash object. For example, when the user client sends an insurance performance sales report display request to the data visualization display module 104, a preset insurance performance sales report basic template file is obtained, and a data access request is sent to the load balancing module 103, so as to obtain the insurance performance sales data required by the data basic template file, the data visualization display module 104 is set to obtain the corresponding basic template file according to the data display request, and the data access request is sent to the load balancing module, and the data acquisition under high concurrency access is realized by combining the data visualization display module 104 and the load balancing module 103.
The load balancing module 103 is configured to call an interface of the data storage module 102 through an http protocol according to the received data access request, and return the data queried in the data storage module 102 to the data visualization display module 104.
When the load balancing module 103 receives a data access request sent by the data visualization display module 104, an interface of the data storage module 102 is called through an http protocol, data corresponding to the data access request is searched in the data storage module 102, and the searched data is sent to the data visualization display module 104 through the load balancing module 103. The two operations can be completed through the interface of the data storage module 102, on one hand, an XML file with a certain format is submitted to a search engine server to generate an index; on the other hand, a search request is provided through an http get operation, and a returned result in an XML format is obtained. The load balancing module 103 searches the data of the data access request in the data storage module 102 and sends the returned data to the data visualization display module 104, so that high concurrent access to the data is realized.
And the data visualization display module 104 is used for combining the basic template file and the data returned based on the data access request into a complete report and displaying the complete report.
Specifically, the data visualization display module 104 obtains the data returned based on the data access request, converts the data into grammar so as to obtain a JavaScript grammar character string conforming to the template content, merges the JavaScript grammar character string into the identified basic template file to form a JavaScript file, forms a complete report display according to the JavaScript file, and can realize a more attractive display report.
In the report display system 10 provided by the embodiment of the invention, the data processing module 101 is used for monitoring the data in the database and writing the newly added data in the database into the data storage module 102; the data visualization display module 104 is configured to obtain a basic template file according to the received data display request, and send a data access request to the load balancing module 103; the load balancing module 103 is configured to invoke an interface of the data storage module 102 through an http protocol according to a received data access request, and return the data queried in the data storage module 102 to the data visualization display module 104, so that high concurrent access is solved, and the data visualization display module 104 is configured to combine a basic template file and the data returned based on the data access request into a complete report and display the complete report, so that a service person can quickly look up report information, and cool interface display is realized.
Further, referring to FIG. 2, a schematic diagram of the data processing module 101 in the report display system 10 is shown.
As shown in fig. 2, the data processing module 101 includes a data loading interface 1011, a data writing interface 1013, and a data analyzing unit 1012, the data loading interface 1011 is connected to the database, the data analyzing unit 1012 is connected to the data loading interface 1011, the data writing interface 1013, and the data storing module 102, and the data writing interface 1013 is connected to the external terminal; a data parsing unit 1012 for receiving a code instruction written by an external terminal through the data writing interface 1013; the data parsing unit 1012 is further configured to interact with the database through the data loading interface 1011; the data parsing unit 1012 is further configured to parse the newly added data in the database, and send the parsed data to the data storage module 102.
Specifically, the database stores service data, when the data is newly added in the database, the newly added data is sent to the data analysis unit 1012 through the loading interface according to a user instruction, wherein the loading of the updated data from the database to the analysis unit may be without specifying a query condition, providing url of Driver, table name to be queried, and relevant attribute properties of the connection table, which may be a range of a certain field in the specified database, but the specified field must be a number, and the method of partitioning according to any field or reading the data by load is provided. The user command is connected with the external terminal through the data writing interface 1013, the user command can be a code, the code uses json RDD () method provided by spark SQL to enable the database to interact with the data processing module 101, further, the code command can enable the data processing module 101 to interact with the data storage module 102, if the data loaded from the database is not processed, the data loaded in the received database needs to be processed through the data analysis unit 1012, and the received data can be processed through a processing function in the user command and converted into the data identified by the data storage module 102, for example, the data is serialized into json documents. As an embodiment, the data processing module 101 is specifically spark, where spark is a distributed computing framework similar to MapReduce, and at the core is an elastic distributed data set, which provides a richer model than MapReduce, and can iterate multiple times in memory quickly to support complex data mining algorithms and graphic computing algorithms, where spark Streaming is a real-time computing framework built on spark, which expands the capability of spark to process large-scale Streaming data.
Further, please refer to fig. 3, which illustrates a schematic diagram of a specific configuration of the report display system 10.
As shown in fig. 3, the data visualization display module 104 is a reaction, the reaction includes a javascript core parsing engine 1041, the load balancing module 103 is a nginx, and the data storage module 102 is an elastesearch; the method comprises the steps that a reaction receives a data display request, a reaction-active basic module file is obtained according to the data display request, and a data access request is sent to the nginx; the nginx calls an interface of the elastiscearch through an http protocol according to the data access request, and returns the data inquired in the elastiscearch to the reaction; the method comprises the steps of (1) obtaining data returned based on a data access request; the reaction merges the data and the reaction-native basic module file into a bundle file, and injects the bundle file into a JavaScript core parsing engine 1041 in the reaction; the JavaScript core parsing engine 1041 exposes a complete report through Bridge of JavaScript and Object-C ends.
In the above steps, the data access request refers to obtaining a certain data in the database and displaying the data in a report form, for example, the data is sold in the eastern area of insurance service, the data is sold in the northern area of insurance service, the basic template file may include a basic library file such as a reaction-active system module or an es6 compatible poiyfill file for supporting normal startup of the user side, the basic module file of the reaction-active of the user side is obtained from a local installation resource of the user side, the local installation resource may be a APK (Android Package) package, IPA (iPhone Application) package or other installation package, the elastic search is used for real-time online analysis of big data scenes, and all data stored in each field in the elastic search is indexed by default, that is, each field has a special inverted index set for quick retrieval, and can be retrieved by any node of the cluster. Specifically, elasticsearch, nginx and the reaction are sequentially connected, when the client side needs to display service data, an access request is submitted to the reaction, when the reaction receives a data display request sent by the client side, a reaction-native base template file is obtained and displayed according to the data display request sent by the client side, and a data access request is sent to the nganx, the nganx calls an interface of an elastic search according to the data access request through an http protocol, data queried based on the data access request in the elastic search in a real-time manner is returned to the reaction, the reaction obtains the data returned based on the data access request, the data and the reaction-native base module file are combined into a bundle file, the bundle file is injected into a JavaScript core analysis engine 1041 in the reaction, the initialization of the reaction-native environment is completed through the reaction, the creation of an interface view is completed through calling a view component in the reaction-native, and the completion of the interface view is completed through a Bridge-JavaScript end and a Bridge-JavaScript end. Through the step, based on the compact report component, cool report display can be met, high concurrency and rapid report production can be met based on data of an elastic search index, and through combination of the nginx and the elastic search, malignant attack and caching of an external network to an intranet server are prevented, load balancing can be performed to reduce pressure and access safety control of the server, and user requests are distributed to a plurality of servers.
The method is characterized by being lightweight and efficient, is particularly suitable for real-time application interaction of data sensitivity, can be used for creating a Web user interaction interface, introduces a name render method for processing a browser DOM, takes received data as input, easily creates the user interaction interface, designs a concise view for each state of the application, and can also efficiently update a rendering interface when the data is changed, for example, by using the compact quick configuration echart graph, the data display returned by the data display request is specifically displayed through the echart graph. The foreground component modularization is realized by using the reaction, after the component modularization, the user-defined combination can be conveniently realized, the chart control multiplexing of echart is conveniently supported, the chart development is simplified, and the rendering performance is improved.
The nginx is a high-performance http and reverse proxy server and is also an IMAP/POP3/SMTP server, the nginx can directly support Rails and PHP programs to serve the outside internally and can also support the http proxy server to serve the outside, and the cinx is written by C, so that the system resource overhead and the CPU use efficiency are much better than those of Perlbal. The reaction realizes the modularization of a foreground component and uses the nginx support for load balancing in the development environment of nodejs, and the combination of the foreground component and the cinx support can be more stable under high concurrency access.
The elastiscearch is a Lucene-based search server, provides a distributed multi-user-capable full-text search engine, supports data indexing by json through http based on a RESTful web interface, can realize rapid and high-concurrency data analysis in a big data environment based on the index, and can support real-time data writing.
Further, please refer to fig. 4, which illustrates a schematic diagram of the report display system 10 with the data buffer module 105 added.
As shown in fig. 4, the report display system 10 further includes a data buffer module 105, where the data buffer module 105 is respectively connected with the load balancing module 103 and the data visualization display module 104;
the data visualization presentation module 104 sends a data access request to the data cache module 105;
the data caching module 105 searches for data corresponding to the data access request;
when the data caching module 105 finds out the data, the data caching module 105 returns the data to the data visualization display module 104;
when the data cache module 105 does not find the data, the data cache module 105 returns failure information of finding the data to the data visualization presentation module 104, and the data visualization presentation module 104 sends a data access request to the load balancing module 103.
In the above steps, the data caching module 105 is configured to cache returned data when the data access request is received, and when the data access request is received, find data corresponding to the data access request in the data caching module 105, specifically, receive the data access request, extract a keyword in the data access request, find corresponding data access information in the data caching module 105 according to a type of the keyword, send the data to the data visualization presentation module 104 when the data is found in the data caching module 105, and send the data access request to the load balancing module 103 when the data is not found in the data caching module 105, where the data caching module 105 is connected to the load balancing module 103 and the data visualization presentation module 104, and when the data is found in the data storage module 102 according to the data access request, the load balancing module 103 returns the data to the data visualization presentation module 104, and sends the found data to the data caching module 105, and when the data caching module 105 finds the data, the data visualization presentation module 104 periodically writes the received data into the load balancing module 103 or writes a file of an additional record to the disc; and the data access request sent by the data visual display module 104 is received by being connected with the data visual display module 104, and the searched data is sent to the data visual display module 104. In one embodiment, the data caching module 105 is a redis, which is a key-value storage system that supports relatively more value types stored, including string, list, set, zset (sort-ordered set), and hash (hash type), similar to Memcached. These data types all support push/pop, add/remove, and pick intersection union and difference and richer operations, and these operations are all atomic. On this basis, redis supports various ways of ordering, and as with memcached, data is cached in memory to ensure efficiency. By this step, the data cached by the data access request is quickly searched from the data cache module 105, so that quick searching is realized and working time is saved.
Further, the data buffer module 105 includes a data serialization processing unit 1051, a mapping relationship establishing unit 1052, and a data access request processing unit 1053.
The data serialization processing unit 1051 is configured to perform serialization processing on the data returned based on the data access request, generate cache data in a string format, and store the cache data.
The mapping relation establishment unit 1052 is configured to establish a mapping relation between the data access request and the cache data in the character string format.
The data access request processing unit 1053 is configured to, when receiving the data access request sent by the data visualization display module 104, send the cache data corresponding to the data access request to the data visualization display module 104 according to the mapping relationship.
Specifically, parameters of a memory caching mechanism are configured and set for caching by default, that is, when the load balancing module 103 queries data from the data storage module 102, the result of the query of the data access request is stored in the redis, the data returned based on the data access request is processed in a serialization manner, cached data in a character string format is generated and stored, when the cached data is already calculated data in the data caching module 105, the result is directly obtained from the redis when the user queries again, query calculation is not needed again, the same task is avoided being submitted in a short time, calculation is needed again, performance is improved, the redis has a distributed characteristic, and the database can be laterally expanded along with the increase of the data quantity, such as storage constraint caused by the increase of the data of a single-node database.
Example 2
Referring to fig. 5, a flowchart of a report display method according to an embodiment of the present invention is shown.
The report display method of the embodiment of the invention is applied to a report display system 10, and the system comprises a data processing module 101, a data storage module 102, a load balancing module 103 and a data visualization display module 104 which are connected in sequence; as shown in fig. 5, the report display method includes the steps of:
in step S201, the data processing module 101 monitors the data in the database and writes the newly added data in the database into the data storage module 102.
In step S202, the data visualization presentation module 104 obtains the base template file according to the received data display request, and sends a data access request to the load balancing module 103.
In step S203, the load balancing module 103 invokes the interface of the data storage module 102 through the http protocol according to the received data access request, and returns the data queried in the data storage module 102 to the data visualization display module 104.
In step S204, the data visualization presentation module 104 merges the basic template file and the data returned based on the data access request into a complete report and displays the complete report.
Further, the report display method is applied to the report display system 10, the data processing module 101 in the report display system 10 includes a data loading interface 1011, a data writing interface 1013 and a data analyzing unit 1012, the data loading interface 1011 is connected with the database, the data analyzing unit 1012 is respectively connected with the data loading interface 1011, the data writing interface 1013 and the data storing module 102, and the data writing interface 1013 is connected with the external terminal;
the data parsing unit 1012 receives a code instruction written by an external terminal through the data writing interface 1013;
the data parsing unit 1012 interacts with the database through the data loading interface 1011;
the data parsing unit 1012 parses the newly added data in the database, and sends the parsed data to the data storage module 102.
Further, the report display method is applied to the report display system 10, the data visualization display module 104 in the report display system 10 is a reaction, the reaction comprises a javascript core analysis engine 1041, the load balancing module 103 is a nginx, and the data storage module 102 is an elastiscearch;
the method comprises the steps that a reaction receives a data display request, a reaction-active basic module file is obtained according to the data display request, and a data access request is sent to the nginx;
the nginx calls an interface of the elastiscearch through an http protocol according to the data access request, and returns the data inquired in the elastiscearch to the reaction;
the method comprises the steps of (1) obtaining data returned based on a data access request;
the reaction merges the data and the reaction-native basic module file into a bundle file, and injects the bundle file into a JavaScript core parsing engine 1041 in the reaction;
the JavaScript core parsing engine 1041 exposes a complete report through Bridge of JavaScript and Object-C ends.
Further, the report display method is applied to the report display system 10, the report display system 10 further comprises a data caching module 105, and the data caching module 105 is respectively connected with the load balancing module 103 and the data visualization display module 104;
the data visualization presentation module 104 sends a data access request to the data cache module 105;
the data caching module 105 searches for data corresponding to the data access request;
when the data caching module 105 finds out the data, the data caching module 105 returns the data to the data visualization display module 104;
when the data cache module 105 does not find the data, the data cache module 105 returns failure information of finding the data to the data visualization presentation module 104, and the data visualization presentation module 104 sends a data access request to the load balancing module 103.
Further, the report display method is applied to the report display system 10, and the data buffer module 105 in the report display system 10 further includes:
carrying out serialization processing on the data returned based on the data access request, generating cache data in a character string format and storing the cache data;
establishing a mapping relation between the data access request and the cache data in the character string format;
when receiving the data access request sent by the data visual display module 104, sending the cache data corresponding to the data access request to the data visual display module 104 according to the mapping relation.
According to the report display method provided by the embodiment of the invention, the data processing module 101 monitors data in a database and writes newly-added data in the database into the data storage module 102; the data visualization display module 104 receives the data display request, acquires a basic template file according to the data display request, and sends a data access request to the load balancing module 103; the load balancing module 103 calls an interface of the data storage module 102 through an http protocol according to the data access request, and returns the data queried in the data storage module 102 to the data visualization display module 104, so that high concurrent access is solved, the data visualization display module 104 combines the basic template file and the data returned based on the data access request into a complete report form and displays the complete report form, so that service personnel can quickly look up report form information, and cool interface display is realized.
For method embodiments, reference is made to the description of parts of system embodiments for relevance, as it basically corresponds to the system embodiments.
Example 3
The present embodiment provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the method for displaying a report in embodiment 2, and in order to avoid repetition, a detailed description is omitted here. Alternatively, the computer program when executed by the processor implements the functions of each module/unit in the report display system 10 in embodiment 1, and in order to avoid repetition, a detailed description is omitted here.
It will be appreciated that the computer readable storage medium may comprise: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier wave signal, a telecommunications signal, and so forth.
Example 4
FIG. 6 is a schematic diagram of a computer device according to an embodiment of the present invention. As shown in fig. 6, the computer device 6 of this embodiment includes: a processor 63, a memory 61 and a computer program 62 stored in the memory 61 and executable on the processor 63. The steps of the report display method in the above embodiment 1, such as steps S201 to S204 shown in fig. 5, are realized when the processor 63 executes the computer program 62. Alternatively, the processor 63, when executing the computer program 62, implements the functions of the modules/units of the system embodiments described above, such as the functions of the modules 101 to 104 shown in fig. 1.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the system is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (7)

1. The report display system is characterized by comprising a data processing module, a data storage module, a load balancing module, a data visualization display module and a data cache module which are connected with the load balancing module and the data visualization display module in sequence;
the data processing module is used for monitoring data in a database and writing newly-added data in the database into the data storage module, wherein the data storage module is an elastic search;
the data visual display module is used for acquiring a basic template file according to a received data display request and sending a data access request to the data cache module or the load balancing module, wherein the data visual display module is a reaction which comprises a Javascript core analysis engine;
the data caching module is used for caching returned data when the data access request returns the data, searching the data corresponding to the data access request, returning the data to the data visual display module when the data is searched, returning failure information for searching the data to the data visual display module when the data is not searched, and sending the data access request to the load balancing module by the data visual display module;
the load balancing module is used for calling an interface of the data storage module through an http protocol according to the received data access request and returning the data inquired in the data storage module to the data visualization display module, wherein the load balancing module is a nginx;
the data visualization display module is used for combining the basic template file and the data returned based on the data access request into a complete report and displaying the complete report;
the reaction is used for receiving a data display request, acquiring a reaction-native basic module file according to the data display request, and sending a data access request to the nginx;
the nginx is used for calling an interface of the elastiscearch through an http protocol according to the data access request, and returning the data inquired in the elastiscearch to the reaction;
the act is used for acquiring data returned based on the data access request;
the reaction is used for merging the data and the reaction-active basic module file into a bundle file, and injecting the bundle file into a JavaScript core analysis engine in the reaction;
the JavaScript core parsing engine is used for displaying a complete report through Bridge of the JavaScript end and the Object-C end.
2. The report display system of claim 1, wherein the data processing module comprises a data loading interface, a data writing interface and a data analyzing unit, the data loading interface is connected with the database, the data analyzing unit is respectively connected with the data loading interface, the data writing interface and the data storing module, and the data writing interface is connected with an external terminal;
the data analysis unit is used for receiving the code instruction written by the external terminal through the data writing interface;
the data analysis unit is also used for interacting with the database through the data loading interface;
the data analysis unit is further configured to analyze the newly added data in the database, and send the analyzed data to the data storage module.
3. The report display system of claim 1, wherein the data caching module comprises:
the data serialization processing unit is used for serializing the data returned based on the data access request, generating and storing the cache data in the character string format;
the mapping relation establishing unit is used for establishing a mapping relation between the data access request and the cache data in the character string format;
and the data access request processing unit is used for sending the cache data corresponding to the data access request to the data visual display module according to the mapping relation when the data access request sent by the data visual display module is received.
4. The report display method is characterized in that the method is applied to a report display system, and the system comprises a data processing module, a data storage module, a load balancing module, a data visualization display module and a data cache module which are connected with the load balancing module and the data visualization display module in sequence;
the data processing module monitors data in a database and writes newly-added data in the database into the data storage module, wherein the data storage module is an elastic search;
the data visualization display module acquires a basic template file according to the received data display request and sends a data access request to the data caching module or the load balancing module, wherein the data visualization display module is a reaction which comprises a Javascript core analysis engine;
the data caching module is used for caching returned data when the data access request returns the data, searching the data corresponding to the data access request, returning the data to the data visual display module when the data is searched, returning failure information for searching the data to the data visual display module when the data is not searched, and sending the data access request to the load balancing module by the data visual display module;
the load balancing module calls an interface of the data storage module through an http protocol according to the received data access request, and returns the data queried in the data storage module to the data visualization display module, wherein the load balancing module is a nginx;
the data visualization display module combines the basic template file and the data returned based on the data access request into a complete report and displays the complete report;
the reaction is used for receiving a data display request, acquiring a reaction-native basic module file according to the data display request, and sending a data access request to the nginx;
the nginx is used for calling an interface of the elastiscearch through an http protocol according to the data access request, and returning the data inquired in the elastiscearch to the reaction;
the act is used for acquiring data returned based on the data access request;
the reaction is used for merging the data and the reaction-active basic module file into a bundle file, and injecting the bundle file into a JavaScript core analysis engine in the reaction;
the JavaScript core parsing engine is used for displaying a complete report through Bridge of the JavaScript end and the Object-C end.
5. The report display method according to claim 4, wherein the data processing module comprises a data loading interface, a data writing interface and a data analyzing unit, the data loading interface is connected with the database, the data analyzing unit is respectively connected with the data loading interface, the data writing interface and the data storing module, and the data writing interface is connected with an external terminal;
the data analysis unit receives a code instruction written by the external terminal through the data writing interface;
the data analysis unit interacts with the database through the data loading interface;
the data analysis unit analyzes the newly added data in the database and sends the analyzed data to the data storage module.
6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the report displaying method according to any of claims 4 to 5 when the computer program is executed by the processor.
7. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the report display method of any of claims 4 to 5.
CN201810437284.9A 2018-05-09 2018-05-09 Report display system, method, computer device and storage medium Active CN108647304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810437284.9A CN108647304B (en) 2018-05-09 2018-05-09 Report display system, method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810437284.9A CN108647304B (en) 2018-05-09 2018-05-09 Report display system, method, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN108647304A CN108647304A (en) 2018-10-12
CN108647304B true CN108647304B (en) 2023-11-21

Family

ID=63753922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810437284.9A Active CN108647304B (en) 2018-05-09 2018-05-09 Report display system, method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN108647304B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933613A (en) * 2019-03-20 2019-06-25 南京金信通信息服务有限公司 A kind of method and system accessing SAP BW report result set
CN110471774A (en) * 2019-06-28 2019-11-19 苏宁云计算有限公司 A kind of data processing method and device based on unified task schedule
CN110750414B (en) * 2019-09-06 2023-03-21 未鲲(上海)科技服务有限公司 Mobile data monitoring and analyzing method and device, computer equipment and storage medium
CN110797103A (en) * 2019-10-28 2020-02-14 重庆亚德科技股份有限公司 Reasonable medicine-taking monitoring system
CN110990465A (en) * 2019-11-28 2020-04-10 北京明略软件系统有限公司 Data export method and device, electronic equipment and storage medium
CN111143481A (en) * 2019-12-20 2020-05-12 中国建设银行股份有限公司 Method, device and equipment for connecting unassociated look-up table and storage medium
CN112632945B (en) * 2020-12-17 2022-11-08 上海哔哩哔哩科技有限公司 Report construction method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102999584A (en) * 2012-11-14 2013-03-27 厦门亿力吉奥信息科技有限公司 Electric GIS (Gas Insulated Switchgear) cross-platform spatial data service method and system
CN103514106A (en) * 2012-06-20 2014-01-15 北京神州泰岳软件股份有限公司 Method for caching data
CN106569856A (en) * 2016-11-02 2017-04-19 腾讯音乐娱乐(深圳)有限公司 Method and device of loading application view resource file
CN107391550A (en) * 2017-06-06 2017-11-24 广东广业开元科技有限公司 A kind of report form generation method and system based on big data mould plate technique
CN107544916A (en) * 2016-06-29 2018-01-05 迈普通信技术股份有限公司 A kind of caching method and storage device
CN107679141A (en) * 2017-09-25 2018-02-09 上海壹账通金融科技有限公司 Data storage method, device, equipment and computer-readable recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9552431B2 (en) * 2010-11-24 2017-01-24 Visa International Service Association Unified online content manager apparatuses, methods, and systems

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514106A (en) * 2012-06-20 2014-01-15 北京神州泰岳软件股份有限公司 Method for caching data
CN102999584A (en) * 2012-11-14 2013-03-27 厦门亿力吉奥信息科技有限公司 Electric GIS (Gas Insulated Switchgear) cross-platform spatial data service method and system
CN107544916A (en) * 2016-06-29 2018-01-05 迈普通信技术股份有限公司 A kind of caching method and storage device
CN106569856A (en) * 2016-11-02 2017-04-19 腾讯音乐娱乐(深圳)有限公司 Method and device of loading application view resource file
CN107391550A (en) * 2017-06-06 2017-11-24 广东广业开元科技有限公司 A kind of report form generation method and system based on big data mould plate technique
CN107679141A (en) * 2017-09-25 2018-02-09 上海壹账通金融科技有限公司 Data storage method, device, equipment and computer-readable recording medium

Also Published As

Publication number Publication date
CN108647304A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
CN108647304B (en) Report display system, method, computer device and storage medium
KR101824222B1 (en) Fast rendering of websites containing dynamic content and stale content
CN110032604B (en) Data storage device, translation device and database access method
CN102455913B (en) The customization of indicating template
CN109063196B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN105095280A (en) Caching method and apparatus for browser
CN106294695A (en) A kind of implementation method towards the biggest data search engine
CN104252536A (en) Hbase-based internet log data inquiring method and device
CN104765840A (en) Big data distributed storage method and device
CN103699674A (en) Webpage storing method, webpage opening method, webpage storing device, webpage opening device and webpage browsing system
CN104794190A (en) Method and device for effectively storing big data
CN114356971A (en) Data processing method, device and system
CN112905618A (en) Data processing method and device
US20170060922A1 (en) Method and device for data search
US11853301B1 (en) Sharing compiled code for executing queries across query engines
CN111352951A (en) Data export method, device and system
CN110110184B (en) Information inquiry method, system, computer system and storage medium
CN113051221B (en) Data storage method, device, medium, equipment and distributed file system
CN108959294B (en) Method and device for accessing search engine
US9742818B2 (en) Pushing events to web pages used for interaction with applications
CN109710604A (en) Data processing method, device, system, computer readable storage medium
CN105138545A (en) Method and system for asynchronously pre-reading directory entries in distributed file system
CN102467502A (en) Retrieval method and system
US10296580B1 (en) Delivering parsed content items
CN107656985B (en) Webpage query method and system

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
GR01 Patent grant
GR01 Patent grant