Interface method and system of data display subsystem
By obtaining the dynamic data sets in the database table and configuring the visual interface, the problem of large-screen and mobile data display customized development workload and lack of flexibility in the existing technology is solved, and the front-end personalized effect is realized and the rapid and senseless data statistics logic changes are achieved.
Patent Information
- Application Number
- CN202411891141.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-11
AI Technical Summary
The existing technology has problems such as large-scale development workload in data display on large screens and mobile devices, data logic changes require adjustment of back-end code, lack of flexibility, and BI products can only be displayed based on fixed template components and cannot be displayed in personalized form.
By obtaining the dynamic data sets in the database table and customizing the external publishing interface corresponding to the interface platform based on the visual interface, the data set and interface publishing are connected to reduce the development workload and subsequent changes.
It realizes the implementation of front-end personalized effects, reduces the cost and efficiency of data port development and subsequent changes, and supports fast and insensitive data statistics logic changes.
Smart Images

Figure CN119806621A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to an interface method and system for a data display subsystem. Background Art
[0002] Nowadays, most system constructions have requirements for multiple terminals, generally three terminals: PC terminal (business display terminal), large screen terminal (large screen display terminal), and mobile terminal (mobile display terminal). There are some mature BI products on the market for large screen terminals and mobile terminals, which can produce commonly used large screen display pages without development, but there are certain limitations. They can only be displayed through built-in component templates, and some personalized displays cannot be achieved. If BI products are not used, customized development is generally used, which has always been the conventional implementation method, but customized development also has its limitations. The development workload and data logic changes require adjustments to the backend code, which lacks sufficient flexibility.
[0003] Usually, large-screen terminals (large-screen display terminals) and mobile terminals (mobile display terminals) are all pursuing cool display effects, especially large-screen terminals (large-screen display terminals) compete on page display effects. Because each industry has its own characteristics in data dimensions and cannot serve as a comparison, in most cases, the most direct way to judge the design level of a large screen is to use the page display effect.
[0004] In summary, among the existing technologies, the overall workload of customized development is too large, and changes in data logic also require changes in backend code, system shutdown, and redeployment of services. BI products can only be displayed based on fixed template components and cannot be personalized, and there is also a learning cost for BI products. Summary of the invention
[0005] Based on this, the purpose of the present invention is to provide an interface method and system for a data display subsystem to solve the above-mentioned deficiencies in the prior art.
[0006] In a first aspect, the present invention provides an interface method for a data display subsystem, the method comprising:
[0007] Get dynamic data sets from database tables;
[0008] Customize the interface platform, and customize the external publishing interface corresponding to the interface platform based on the visual interface configuration;
[0009] Connecting the external publishing interface and the dynamic data set so that the interface platform receives the dynamic data set and defines the dynamic data set;
[0010] The dynamic data set after definition is modified to obtain data modification information, so that the data modification information can realize data statistical logic changes through an external publishing interface.
[0011] Compared with the prior art, the beneficial effects of the present invention are: by configuring and customizing the external publishing interface corresponding to the interface platform through a visual interface, and connecting the external publishing interface with a dynamic data set, the data set and interface release can be realized, thereby ensuring the realization of the front-end personalized effect, and reducing the cost and efficiency of data port development and subsequent changes. When changing the subsequent data statistical logic, it is only necessary to change the data set, so that quick and seamless changes can be achieved.
[0012] Furthermore, the step of obtaining the dynamic data set in the database table includes:
[0013] Acquire some basic data in the database table based on the visualization interface configuration;
[0014] Initialize a number of the basic data, and merge the initialized basic data to obtain a dynamic data set.
[0015] Furthermore, the step of obtaining some basic data in the database table based on the visualization interface configuration includes:
[0016] Determine the sources of some of the basic data;
[0017] If several basic data are derived from different database tables, management relationships corresponding to several basic data are established.
[0018] Furthermore, the step of customizing the external publishing interface corresponding to the interface platform based on the visual interface configuration includes:
[0019] Customize and customize the external publishing interface of the interface platform based on the visual interface configuration;
[0020] Specify the interface path, interface request method and interface protocol of the externally published interface.
[0021] Furthermore, the step of configuring and customizing the external publishing interface of the interface platform based on the visual interface includes:
[0022] Customizing the input and output of the external publishing interface;
[0023] Test the input and output of the external publishing interface.
[0024] In a second aspect, the present invention provides an interface system for a data display subsystem, the system comprising:
[0025] The acquisition module is used to obtain dynamic data sets in the database table;
[0026] A customization module is used to customize the interface platform and customize the external publishing interface corresponding to the interface platform based on the visual interface configuration;
[0027] A docking module, used for docking the external publishing interface and the dynamic data set, so that the interface platform receives the dynamic data set and defines the dynamic data set;
[0028] The modification module is used to modify the dynamic data set after definition to obtain data modification information, so that the data modification information can realize data statistical logic changes via an external publishing interface.
[0029] Furthermore, the acquisition module includes:
[0030] An acquisition unit, configured to acquire a number of basic data in the database table based on a visualization interface configuration;
[0031] The initialization unit is used to initialize a number of the basic data and merge the initialized basic data to obtain a dynamic data set.
[0032] Furthermore, the customization module includes:
[0033] A customization unit, configured to customize the external publishing interface of the interface platform based on a visual interface configuration;
[0034] The designation unit is used to designate the interface path, interface request mode and interface protocol of the externally published interface.
[0035] In a third aspect, the present invention provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned interface method of the data display subsystem.
[0036] In a fourth aspect, the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned interface method of the data display subsystem when executing the computer program. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a flow chart of the interface method of the data display subsystem in the first embodiment of the present invention;
[0038] Figure 2 Schematic diagram of the method for specifying the interface platform in the first embodiment of the present invention;
[0039] Figure 3A schematic diagram of query output of interface custom configuration in the first embodiment of the present invention;
[0040] Figure 4 is a schematic diagram of a corresponding interface test in the first embodiment of the present invention;
[0041] Figure 5 It is a structural block diagram of the interface system of the data display subsystem in the second embodiment of the present invention;
[0042] Figure 6 It is a structural block diagram of a computer device in the third embodiment of the present invention.
[0043] Description of main component symbols:
[0044] 11. Acquisition module; 12. Customization module; 13. Docking module; 14. Modification module;
[0045] 10. Memory; 20. Processor; 30. Computer program.
[0046] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0047] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0048] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0050] See also Figure 1 , which shows an interface method of a data display subsystem in a first embodiment of the present invention, and the method includes steps S1 to S4:
[0051] S1, obtain the dynamic data set in the database table;
[0052] Specifically, the step S1 includes steps S11 to S12:
[0053] S11, acquiring some basic data in the database table based on the visualization interface configuration;
[0054] Specifically, the step S11 includes steps S111 to S112:
[0055] S111, determining the sources of some basic data;
[0056] S112: If the basic data are from different database tables, establish management relationships corresponding to the basic data.
[0057] S12, initializing a number of the basic data, and merging the initialized basic data to obtain a dynamic data set;
[0058] It can be understood that by combining the required basic data together, a dynamic data set can be obtained for use by the interface. The data set platform can dynamically set the corresponding data from the database table through interface settings. If the data comes from multiple tables, the corresponding management relationship can also be specified. Certain indicators that need to be obtained can also be customized, and dynamic query conditions are supported.
[0059] S2, customizing the interface platform, and customizing the external publishing interface corresponding to the interface platform based on the visual interface configuration;
[0060] It needs to be explained that the interface platform can be customized through front-end customized development.
[0061] Specifically, the step S2 includes steps S21 to S22:
[0062] S21, configuring and customizing the external publishing interface of the interface platform based on the visual interface;
[0063] Specifically, the step S21 includes steps S211 to S212:
[0064] S211, customizing the input and output of the external publishing interface;
[0065] S212, testing the input and output of the external publishing interface;
[0066] S22, specifying the interface path, interface request method and interface protocol of the externally published interface;
[0067] It is understandable that the interface platform can configure the interface published to the outside through a visual interface, and can specify information such as the interface path, interface request method (POST, GET), interface protocol (HTTP, HTTPS), etc. Figure 2 As shown;
[0068] The input and output of the interface can be customized. The input can be the query condition for input filtering, and the output is the specific indicator returned, such as Figure 3 As shown; after adding the corresponding interface, you can test it to see whether the returned data is reasonable. Figure 4 shown.
[0069] It is worth noting that the interface supports dynamic paging query. The data format code returned by the interface is shown in Table 1:
[0070] Table 1
[0071]
[0072]
[0073] It is worth mentioning that dynamic implementation through data set and interface publishing can not only ensure the realization of front-end personalized effects, but also reduce the cost and efficiency of data interface development and subsequent changes.
[0074] S3, connecting the external publishing interface and the dynamic data set, so that the interface platform receives the dynamic data set and defines the dynamic data set;
[0075] It should be explained that after adding an interface, the interface platform will generate the corresponding appid and appkey. When the front end accesses the corresponding interface and brings the corresponding key, the interface data can be obtained normally. The returned data format is shown in Table 2:
[0076] Table 2
[0077]
[0078]
[0079] S4, modifying the defined dynamic data set to obtain data modification information, so that the data modification information can be used to implement data statistical logic modification via an external publishing interface;
[0080] It should be explained that when making changes to the data statistics logic, only the dynamic data set needs to be modified, so that fast and seamless changes can be achieved. And through the platform's data set and interface publishing functions, the decoupling of page display and data return is achieved. While ensuring personalized display needs, the interface is dynamically configured, reducing the workload of development, and when the data statistics logic changes, it can respond quickly and solve the problem without the need for additional code development and deployment.
[0081] In summary, the interface method of the data display subsystem in the above embodiment of the present invention can realize the release of data sets and interfaces by customizing the external publishing interface corresponding to the interface platform through the visual interface configuration, and connecting the external publishing interface with the dynamic data set, thereby ensuring the realization of the front-end personalized effect, and reducing the cost and efficiency of data port development and subsequent changes. When changing the subsequent data statistical logic, it is only necessary to change the data set, so that fast and seamless changes can be achieved.
[0082] Embodiment 2
[0083] The second embodiment of the present invention also provides an interface system for a data display subsystem, see Figure 5 , shown is an interface system of a data display subsystem in a second embodiment of the present invention, the system comprising:
[0084] The acquisition module 11 is used to acquire the dynamic data set in the database table;
[0085] A customization module 12, used to customize the interface platform and customize the external publishing interface corresponding to the interface platform based on the visual interface configuration;
[0086] A docking module 13, used for docking the external publishing interface and the dynamic data set, so that the interface platform receives the dynamic data set and defines the dynamic data set;
[0087] The modification module 14 is used to modify the defined dynamic data set to obtain data modification information, so that the data modification information can be used to implement data statistical logic changes via an external publishing interface.
[0088] In some optional embodiments, the acquisition module 11 includes:
[0089] An acquisition unit, configured to acquire a number of basic data in the database table based on a visualization interface configuration;
[0090] The initialization unit is used to initialize a number of the basic data and merge the initialized basic data to obtain a dynamic data set.
[0091] In some optional embodiments, the acquiring unit includes:
[0092] A determination subunit, used for determining the sources of some of the basic data;
[0093] The formulation subunit is used to determine if a number of the basic data are derived from different database tables, and then formulate management relationships corresponding to the number of the basic data.
[0094] In some optional embodiments, the customization module 12 includes:
[0095] A customization unit, configured to customize the external publishing interface of the interface platform based on a visual interface configuration;
[0096] The designation unit is used to designate the interface path, interface request mode and interface protocol of the externally published interface.
[0097] In some optional embodiments, the customization unit includes:
[0098] A configuration subunit, used to customize the input and output of the external publishing interface;
[0099] The test subunit is used to test the input and output of the external publishing interface.
[0100] The functions or operation steps implemented when the above modules and units are executed are generally the same as those in the above method embodiments, and will not be repeated here.
[0101] The interface system of the data display subsystem provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the system embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0102] Embodiment 3
[0103] The present invention also provides a computer device, see Figure 6 , shown is a computer device in the third embodiment of the present invention, including a memory 10, a processor 20, and a computer program 30 stored in the memory 10 and executable on the processor 20, and the processor 20 implements the above-mentioned interface method of the data display subsystem when executing the computer program 30.
[0104] The memory 10 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10 may be an internal storage unit of a computer device, such as a hard disk of the computer device. In other embodiments, the memory 10 may also be an external storage device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc. Further, the memory 10 may also include both an internal storage unit of a computer device and an external storage device. The memory 10 may be used not only to store application software and various types of data installed in the computer device, but also to temporarily store data that has been output or is to be output.
[0105] Among them, in some embodiments, the processor 20 can be an electronic control unit (Electronic Control Unit, abbreviated as ECU, also known as a vehicle computer), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run the program code stored in the memory 10 or process data, such as executing access restriction programs, etc.
[0106] It should be pointed out that Figure 6 The structure shown does not constitute a limitation on the computer device. In other embodiments, the computer device may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0107] The embodiment of the present invention further provides a readable storage medium on which a computer program is stored. When the program is executed by a processor, the interface method of the data display subsystem as described above is implemented.
[0108] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0109] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0110] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0111] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0112] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. An interface method for a data display subsystem, characterized in that: The method comprises: Get dynamic data sets from database tables; Customize the interface platform, and customize the external publishing interface corresponding to the interface platform based on the visual interface configuration; Connecting the external publishing interface and the dynamic data set so that the interface platform receives the dynamic data set and defines the dynamic data set; The dynamic data set after definition is modified to obtain data modification information, so that the data modification information can realize data statistical logic changes through an external publishing interface.
2. The interface method of the data display subsystem according to claim 1, characterized in that: The step of obtaining the dynamic data set in the database table includes: Acquire some basic data in the database table based on the visualization interface configuration; Initialize a number of the basic data, and merge the initialized basic data to obtain a dynamic data set.
3. The interface method of the data display subsystem according to claim 2, characterized in that: The step of obtaining a number of basic data in the database table based on the visual interface configuration includes: Determine the sources of some of the basic data; If several basic data are derived from different database tables, management relationships corresponding to several basic data are established.
4. The interface method of the data display subsystem according to claim 1, characterized in that: The step of configuring and customizing the external publishing interface corresponding to the interface platform based on the visual interface includes: Customize and customize the external publishing interface of the interface platform based on the visual interface configuration; Specify the interface path, interface request method and interface protocol of the externally published interface.
5. The interface method of the data display subsystem according to claim 4, characterized in that: The step of configuring and customizing the interface platform based on the visual interface and publishing the interface to the outside world comprises: Customizing the input and output of the external publishing interface; Test the input and output of the external publishing interface.
6. An interface system for a data display subsystem, characterized in that: The system comprises: The acquisition module is used to obtain dynamic data sets in the database table; A customization module is used to customize the interface platform and customize the external publishing interface corresponding to the interface platform based on the visual interface configuration; A docking module, used for docking the external publishing interface and the dynamic data set, so that the interface platform receives the dynamic data set and defines the dynamic data set; The modification module is used to modify the dynamic data set after definition to obtain data modification information, so that the data modification information can realize data statistical logic changes via an external publishing interface.
7. The interface system of the data display subsystem according to claim 6, characterized in that: The acquisition module comprises: An acquisition unit, configured to acquire a number of basic data in the database table based on a visualization interface configuration; The initialization unit is used to initialize a number of the basic data and merge the initialized basic data to obtain a dynamic data set.
8. The interface system of the data display subsystem according to claim 6, characterized in that: The customized module includes: A customization unit, configured to customize the external publishing interface of the interface platform based on a visual interface configuration; The designation unit is used to designate the interface path, interface request mode and interface protocol of the externally published interface.
9. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the interface method of the data display subsystem as described in any one of claims 1 to 5 is implemented.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the interface method of the data presentation subsystem according to any one of claims 1 to 5 is implemented.