CN116795845A - Data display method, device, terminal equipment and readable storage medium - Google Patents

Data display method, device, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN116795845A
CN116795845A CN202311061959.1A CN202311061959A CN116795845A CN 116795845 A CN116795845 A CN 116795845A CN 202311061959 A CN202311061959 A CN 202311061959A CN 116795845 A CN116795845 A CN 116795845A
Authority
CN
China
Prior art keywords
business object
database
data
information
component
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
CN202311061959.1A
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.)
Shenzhen Jinzheng Software Technology Co ltd
Original Assignee
Shenzhen Jinzheng Software 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 Shenzhen Jinzheng Software Technology Co ltd filed Critical Shenzhen Jinzheng Software Technology Co ltd
Priority to CN202311061959.1A priority Critical patent/CN116795845A/en
Publication of CN116795845A publication Critical patent/CN116795845A/en
Pending legal-status Critical Current

Links

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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • 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/26Visual data mining; Browsing structured data
    • 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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application is suitable for the technical field of data processing, and provides a data display method, a device, terminal equipment and a readable storage medium. The data display method comprises the following steps: configuring a first business object to obtain first business object information; creating a database table in a database based on the first business object information; receiving a setting instruction, setting a component based on the setting instruction, and obtaining component information; creating a table field of a database table based on the component information; setting an acquisition component based on the first business object information, and acquiring first business object data corresponding to the first business object in the database table by using the acquisition component to obtain business data; and displaying the service data based on the table field. The embodiment of the application can realize the collection and display of complex service data, has strong expansibility and can display the service data in a self-defined way.

Description

Data display method, device, terminal equipment and readable storage medium
Technical Field
The present application belongs to the technical field of data processing, and in particular, relates to a data display method, a device, a terminal device, and a readable storage medium.
Background
As businesses evolve, more and more data is stored in the databases of the businesses, and users may utilize forms to present the data in the databases. Some databases have the characteristics of large data volume and complex data, but in the related technology, when the service data is displayed by using a form, the displayed service data is simpler, and the requirement of displaying the complex service data cannot be met.
Disclosure of Invention
The embodiment of the application provides a data display method, a device, terminal equipment and a readable storage medium, which can solve the problem that the related technology cannot meet the requirement of displaying complex service data.
In a first aspect, an embodiment of the present application provides a method for displaying data, including:
configuring a first business object to obtain first business object information;
creating a database table in a database based on the first business object information;
receiving a setting instruction, setting a component based on the setting instruction, and obtaining component information;
creating a table field of a database table based on the component information;
setting an acquisition component based on the first business object information, and acquiring first business object data corresponding to the first business object in the database table by using the acquisition component to obtain business data;
and displaying the service data based on the table field.
In a second aspect, an embodiment of the present application provides a data display apparatus, including:
the configuration module is used for configuring the first business object to obtain first business object information;
a first creation module for creating a database table in a database based on the first business object information;
the setting module is used for receiving the setting instruction and setting the component based on the setting instruction to obtain component information;
a second creation module for creating a table field of the database table based on the component information;
the acquisition module is used for setting an acquisition assembly based on the first business object information, and acquiring first business object data corresponding to the first business object in the database table by using the acquisition assembly to obtain business data;
and the display module is used for displaying the service data based on the table field.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements steps of a method for displaying data as described above when the processor executes the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the above-described data presentation method.
In a fifth aspect, an embodiment of the present application provides a computer program product, which when run on a terminal device, causes the terminal device to execute the method for presenting data as described above.
Compared with the prior art, the embodiment of the application has the beneficial effects that: the embodiment of the application obtains the first business object information by configuring the first business object, creates a database table in a database based on the first business object information, receives a setting instruction, sets a component based on the setting instruction to obtain component information, creates a table field of the database table based on the component information, sets a collection component based on the first business object information, collects first business object data corresponding to the first business object in the database table by using the collection component to obtain business data, and finally displays the business data based on the table field. The embodiment of the application can realize the collection and display of complex service data, has strong expansibility and can display the service data in a self-defined way.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, 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 application, 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 implementation flow chart of a data display method according to an embodiment of the present application;
fig. 2 is a schematic diagram of an implementation flow for acquiring second service object data according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an implementation of collecting first business object data according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an implementation flow of checking a database table according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an implementation flow for creating a database table according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a flow chart of implementation of a check table field according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an implementation flow of creating a table field according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a data display device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. All other embodiments, which can be made by a person skilled in the art without any inventive effort, are intended to be protected by the present application based on the embodiments of the present application.
It is noted that the terms "comprising," "including," and "having," and any variations thereof, in the description and claims of the application and in the foregoing figures, are intended to cover non-exclusive inclusions. For example, a process, method, terminal, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus. In the claims, specification, and drawings of the present application, relational terms such as "first" and "second", and the like are used solely to distinguish one entity/operation/object from another entity/operation/object without necessarily requiring or implying any such real-time relationship or order between such entities/operations/objects.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
As businesses evolve, more and more data is stored in the databases of the businesses, and users may utilize forms to present the data in the databases. Some databases have the characteristics of large data volume and complex data, but in the related technology, when the service data is displayed by using a form, the displayed service data is simpler, and the requirement of displaying the complex service data cannot be met.
Therefore, the embodiment of the application utilizes the acquisition component to acquire the business object data from the database table, can realize acquisition and display of complex business data, has strong expansibility and can display the business data in a self-defined way.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
Fig. 1 shows a schematic implementation flow chart of a data presentation method according to an embodiment of the present application, where the method may be applied to a terminal device. The terminal device may be a mobile phone, tablet computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, etc.
Specifically, the method for displaying the data may include the following steps S101 to S106.
Step S101, the first business object is configured to obtain first business object information.
Where a business object is a business object that has a set of attributes and values, operations, and associations with other business objects, a business object may be made up of one or more database objects, which are separate software entities made up of data and the functions that process the data. The first business object may comprise one or more business objects, as the application is not limited in this regard. The first business object information is related information after the first business object is configured.
In an embodiment of the present application, the terminal device may configure the first service object to provide a basis when the data list is recorded later, for example: the display ordering of the list data, the operation button authority of the list, the viewing authority of the data and the like. The user can control the system according to the setting rules by selecting the relevant configuration.
Step S102, a database table is created in the database based on the first business object information.
Wherein in a relational database, a database table is a collection of two-dimensional arrays used to represent and store relationships between data objects. The database table is composed of longitudinal columns and transverse rows, e.g., a database table of author-related information, each column containing a particular type of information for all authors, e.g., "surname", and each row containing all information for a particular author, e.g., surname, first name, address, etc.
In the embodiment of the application, after the first service object information is obtained, the terminal device can create a database table related to the first service object in the database, and the created database table can store the acquired data in the subsequent acquisition step.
Step S103, receiving a setting instruction, setting a component based on the setting instruction, and obtaining component information.
Wherein the setting instruction may be used to instruct the terminal device to set the component. The user may issue a setting instruction to the terminal device. A component is a simple package of data and methods. The components may have their own properties and methods. The attributes are simple visitors to the component data, and the methods are some simple and visible functions of the component. The component information is related information obtained by setting the component.
In the embodiment of the application, the number of the components can be one or more, the terminal equipment can receive the setting instruction, and set the components based on the setting instruction, and the setting of the components by the terminal equipment can comprise setting the properties of the components, setting the multidimensional display head, setting the display sequence of the editing components, setting the background color of the information of the components, setting the custom statistical dimension condition and the like, so the application is not limited to the above. The setting component can provide setting basis for data list loading and data acquisition in the display interface.
The terminal device may set the attributes of various components, for example, may set the attributes of the display component, and set the display component as the attributes of a verification frame, a value, a date, a popup window, a tree form, a custom popup window, and the like. The terminal device can be provided with a multidimensional display head so as to carry out friendly distinction on the information of the rename. The terminal equipment can also drag the display sequence of the editing component, so that the user can more intuitively see the data of the user. The terminal equipment can also make the service model display more clear by setting the background color of the component information. The terminal device can also set custom statistical dimension conditions, and can adopt either single statistical conditions or interval statistical conditions.
Step S104, a table field of the database table is created based on the component information.
Wherein the table field is a piece of independent information in the table that constitutes a record.
In the embodiment of the application, after the component information is obtained, the terminal equipment can establish the table field of the database table according to the component information so as to store the acquired data and use the acquired data for displaying a data list after the data is acquired subsequently.
Step S105, an acquisition component is set based on the first business object information, and the acquisition component is utilized to acquire first business object data corresponding to the first business object in the database table, so as to obtain business data.
With the increase of data volume, business objects are more and more diversified, and the acquisition requirement of diversified business data is more and more difficult to meet in the related technology.
In embodiments of the present application, the collection component may be one or more to correspond to different business objects. The acquisition component is used for acquiring related data of the first business object, so that the terminal equipment can set the acquisition component according to the first business object information, and associate the acquisition component with the first business object, so that the acquisition component can acquire the first business object data corresponding to the first business object in the database table, and obtain the business data.
According to the embodiment of the application, one or more acquisition components are arranged, so that diversified business data in the first business object can be correspondingly acquired, and the acquisition requirement on complex business is met.
And step S106, showing the service data based on the table field.
In the embodiment of the application, after the service data is obtained, the terminal equipment can store the collected service data and display the service data at the corresponding position of the table field in the corresponding data table.
Compared with the prior art, the embodiment of the application has the beneficial effects that: the embodiment of the application obtains the first business object information by configuring the first business object, creates a database table in a database based on the first business object information, receives a setting instruction, sets a component based on the setting instruction to obtain component information, creates a table field of the database table based on the component information, sets a collection component based on the first business object information, collects first business object data corresponding to the first business object in the database table by using the collection component to obtain business data, and finally displays the business data based on the table field. The embodiment of the application can realize the collection and display of complex service data, has strong expansibility and can display the service data in a self-defined way.
When data is displayed, other service data related to the service data to be displayed is sometimes required to be displayed together, and in the related technology, a user is required to manually acquire related service data one by one, so that the operation is complex and the method is not suitable for complex services.
In view of this, as shown in fig. 2, in some embodiments of the present application, before the service data is displayed based on the table field, an acquisition component is set based on the first service object information, and after the acquisition component is used to acquire the first service object data corresponding to the first service object in the database table, the method may further include steps S201 to S203.
Step S201, the second business object is associated with the first business object, and the associated attribute is obtained.
The second business object and the first business object are different business objects, and certain correlation exists between business data of the second business object and the first business object. For example, the first business object includes data such as level and attribute, and the second business object includes industry standard information related to level and attribute.
In the embodiment of the application, the terminal equipment can set logic rules, associate the second service object with the first service object, store the association attribute between the second service object and the first service object, and store the association attribute in a database, for example.
Step S202, second business object data corresponding to the second business object is stored in a database.
In the embodiment of the application, the terminal device can firstly acquire the second service object data corresponding to the second service object and store the second service object data in the database.
Step S203, according to the first business object information and the associated attribute, second business object data is obtained from the database, and business data is obtained.
In the embodiment of the application, when the user needs to use the second business object data in collecting the first business object data, the second business object data of the second business object can be searched from the database according to the first business object information and the association attribute between the first business object and the second business object, so as to obtain the business data. It should be appreciated that the service data in this embodiment may be assembled and combined with the service data in the step S105 and the step S106, and the combined service data may be used for displaying to the user.
It can be understood that the embodiment of the present application may be assembled with data inside the same service object, or may be assembled with external data (only the external data is required to be associated with the internal data to be displayed, and the subsequent assembling steps may refer to step S202 and step S203). The embodiment of the application can flexibly and simply display other service data related to the service data to be displayed together.
As shown in fig. 3, in some embodiments of the present application, the collecting component collects the first business object data corresponding to the first business object in the database table, which specifically may include step S301 and step S302.
Step S301, the components corresponding to the component information are associated with the first business object data, and an association relationship is obtained.
In the embodiment of the application, for some components needing to display the collected service data, such as a popup window, a tree form, a custom popup window and other components, the terminal equipment can set the components and the first service object to be associated and inquire, and after the association is completed, the association relationship between the components and the first service object can be stored in the database in an html form.
Step S302, based on the association relation, acquiring first business object data associated with the component to be acquired from a database table by utilizing the acquisition component.
The component to be acquired is a component corresponding to the component information in step S301.
In the embodiment of the application, when a user performs data acquisition, a form interface can be opened, at the moment, the terminal equipment can load html information in a database to obtain an association relationship, first business object data associated with the components to be acquired are read from the database according to the association relationship, and after the first business object data are acquired, the first business object data can be displayed in the components to be acquired. After the initial loading, the analyzed content can be set in the cache, and the subsequent steps can increase the acquisition efficiency according to the cache loading.
Before creating a database table in a database, it is necessary to check whether a corresponding database table already exists in the database. In view of this, as shown in fig. 4, in some embodiments of the present application, after configuring the first service object to obtain the first service object information, the above method may further include steps S401 to S404 before creating the database table in the database based on the first service object information.
Step S401, obtain the model ID, database table name and model name of the first business object.
Wherein, the business object can be used for setting a business model, and in the embodiment of the application, the business object can exist in the form of the business model.
In the embodiment of the application, the terminal device can directly acquire the model ID and the model name of the first service object, and can also acquire the database table name through a JdbcTemplate bean or Connection object.
Step S402, judging whether a database table name exists in the database.
In the embodiment of the application, after the terminal equipment acquires the database table name through the JdbcTemplate bean or Connection object, the terminal equipment judges whether the database table name consistent with the database table name exists in the database.
In step S403, if the database table name does not exist in the database, it is determined whether the model ID and the model name exist in the database.
In the embodiment of the present application, if the database table name consistent with the database table name does not exist in the database, the terminal device may further determine whether the model ID and the model name corresponding to the first service object exist in the database, so as to further determine whether the table corresponding to the first service object exists in the database.
In step S404, if the model ID and the model name do not exist in the database, the verification is passed.
In the embodiment of the present application, if the model ID and the model name do not exist in the database, it may be explained that the database table corresponding to the first service object does not exist in the database, and the verification is passed, and the terminal device may create the database table in the database based on the first service object information.
Specifically, in some embodiments of the present application, as shown in fig. 5, the creating a database table in the database based on the first service object information may specifically include steps S501 to S503.
Step S501, creating a library table sentence according to the first business object information.
Step S502, setting a main key and default field information of a database table.
Step S503, according to the database table statement, the primary key and the default field information, creating a database table in the database by using an execution method.
In the embodiment of the application, when the verification is passed, the terminal equipment can assemble and create a library table sentence, such as an SQL sentence, set a main key and default field information in the library table, execute the library table sentence by using an execute method in the state, and create service table information according to the main key and the default field information.
In other embodiments of the present application, when any of the database table name, model ID, and model name are present in the database, then the verification is not passed; and sending creation failure information to the user, wherein the creation failure information is used for prompting the user to fail to create the database table.
Before creating a table field of a database table, it is necessary to check whether a corresponding table field already exists in the database. In view of this, as shown in fig. 6, in some embodiments of the present application, after receiving the setting instruction and setting the component based on the setting instruction, and obtaining the component information, the method may further include step S601 and step S602 before creating the table field of the database table based on the component information.
Step S601, determining whether component information exists in the database.
In the embodiment of the application, the terminal equipment can acquire all the component information in the service model through a database MetaData class getColumns () method of JDBC, and check whether the component information exists in the database through traversing the set.
In step S602, if the component information does not exist in the database, the verification is passed.
In the embodiment of the present application, if the component information does not exist in the database, it may be stated that the table field corresponding to the first service object does not exist in the database, and the verification passes, and the terminal device may create the table field of the database table.
Specifically, as shown in fig. 7, in some embodiments of the present application, the creating the table field of the database table based on the component information may specifically include step S701 and step S702.
The component information may include a field name and a field type attribute corresponding to the field name. When the component is set, a field name is set, and a field type is set, wherein the field type comprises three types of numerical value, date and time and character string type.
Step S701, obtaining a database table name of the first service object.
In step S702, table fields of the database table are created using the execute method according to the database table name, the field name, and the field type attribute.
In the embodiment of the application, the terminal equipment can use an execution method in the state to create field information in the database according to the database table name of the first service object and the field name and field type attribute set by the component.
In other embodiments of the present application, when component information is present in the database, then the verification is not passed; and sending creation failure information to the user, wherein the creation failure information is used for prompting the user that the creation of the table field of the database table fails.
Fig. 8 is a schematic structural diagram of a data display device according to an embodiment of the present application, where the data display device 8 may be configured on a terminal device, and specifically, the data display device 8 may include:
the configuration module 801 is configured to configure the first service object to obtain first service object information.
A first creating module 802, configured to create a database table in a database based on the first business object information;
a setting module 803, configured to receive a setting instruction, and set a component based on the setting instruction, to obtain component information;
a second creating module 804, configured to create a table field of the database table based on the component information;
the collection module 805 is configured to set a collection component based on the first service object information, and collect, by using the collection component, first service object data corresponding to the first service object in the database table, to obtain service data;
and a display module 806, configured to display the service data based on the table field.
Compared with the prior art, the embodiment of the application has the beneficial effects that: the embodiment of the application obtains the first business object information by configuring the first business object, creates a database table in a database based on the first business object information, receives a setting instruction, sets a component based on the setting instruction to obtain component information, creates a table field of the database table based on the component information, sets a collection component based on the first business object information, collects first business object data corresponding to the first business object in the database table by using the collection component to obtain business data, and finally displays the business data based on the table field. The embodiment of the application can realize the collection and display of complex service data, has strong expansibility and can display the service data in a self-defined way.
In some embodiments of the present application, the display apparatus 8 of the foregoing data may further include an obtaining module, configured to associate the second service object with the first service object to obtain an association attribute; storing second business object data corresponding to the second business object into a database; and acquiring second business object data from the database according to the first business object information to obtain business data.
In some embodiments of the present application, the acquisition module 805 is further configured to: associating the components corresponding to the component information with the first business object data to obtain an association relation; based on the association relation, acquiring first business object data associated with the component to be acquired from a database table by utilizing the acquisition component.
In some embodiments of the present application, the display apparatus 8 of the foregoing data may further include a first determining module, configured to obtain a model ID, a database table name, and a model name of the first service object; judging whether a database table name exists in the database; if the database table name does not exist in the database, judging whether the model ID and the model name exist in the database; if the model ID and the model name do not exist in the database, checking is passed.
In some embodiments of the present application, the display device 8 of the above data may further include a second determining module, configured to determine whether component information exists in the database; and if the component information does not exist in the database, checking is passed.
In some embodiments of the application, the first creation module 802 is further configured to: creating a library table sentence according to the first service information; setting a main key and default field information of a database table; according to the database table statement, the primary key and the default field information, a database table is created in the database by using an execute method.
In some embodiments of the present application, the component information includes a field name and a field type attribute corresponding to the field name, and the second creating module 804 is further configured to: acquiring a database table name of a first business object; and creating the table fields of the database table by using an execution method according to the database table name, the field name and the field type attribute.
Fig. 9 is a schematic diagram of a terminal device according to an embodiment of the present application. The terminal device 9 may include: a processor 901, a memory 902, and a computer program 903, such as a data presentation program, stored in the memory 902 and executable on the processor 901. The processor 901 implements the steps in the embodiment of the method for displaying the respective data described above, such as steps S101 to S106 shown in fig. 1, when executing the computer program 903. Alternatively, the processor 901 may implement the functions of the modules/units in the above embodiments of the apparatus when executing the computer program 903, for example, a configuration module 801, a first creation module 802, a setting module 803, a second creation module 804, an acquisition module 805, and a presentation module 806 shown in fig. 8.
The computer program may be divided into one or more modules/units, which are stored in the memory 902 and executed by the processor 901 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used for describing the execution of the computer program in the terminal device.
The terminal device may include, but is not limited to, a processor 901, a memory 902. It will be appreciated by those skilled in the art that fig. 9 is merely an example of a terminal device and is not limiting of the terminal device, and may include more or fewer components than shown, or may combine some components, or different components, e.g., the terminal device may also include input and output devices, network access devices, buses, etc.
The processor 901 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 902 may be an internal storage unit of the terminal device, such as a hard disk or a memory of the terminal device. The memory 902 may also be an external storage device of the terminal device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like. Further, the memory 902 may also include both an internal storage unit and an external storage device of the terminal device. The memory 902 is used for storing the computer program and other programs and data required by the terminal device. The memory 902 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for convenience and brevity of description, the structure of the above terminal device may also refer to a specific description of the structure in the method embodiment, which is not repeated herein.
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 apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program can realize the steps in the data display method when being executed by a processor.
The embodiment of the application provides a computer program product which can realize the steps in the data display method when being executed on a mobile terminal.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other manners. For example, the apparatus/terminal device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the 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 (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application 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 application, and are intended to be included in the scope of the present application.

Claims (10)

1. A method for displaying data, comprising:
configuring a first business object to obtain first business object information;
creating a database table in a database based on the first business object information;
receiving a setting instruction, setting a component based on the setting instruction, and obtaining component information;
creating a table field of the database table based on the component information;
setting an acquisition component based on the first business object information, and acquiring first business object data corresponding to the first business object in the database table by using the acquisition component to obtain business data;
and displaying the service data based on the table field.
2. The method for displaying data according to claim 1, wherein before the displaying the service data based on the table field, an acquisition component is set based on the first service object information, and the acquisition component is used to acquire first service object data corresponding to the first service object in the database table, so as to obtain service data, and then the method further comprises:
associating a second business object with the first business object to obtain an association attribute;
storing second business object data corresponding to the second business object into the database;
and acquiring the second business object data from the database according to the first business object information and the association attribute to obtain the business data.
3. The method for displaying data according to claim 1, wherein the collecting, by using the collecting component, first business object data corresponding to the first business object in the database table includes:
associating the component corresponding to the component information with the first business object data to obtain an association relation;
and acquiring first business object data associated with the component to be acquired from the database table by utilizing the acquisition component based on the association relation.
4. The method for displaying data according to claim 1, wherein after said configuring the first business object to obtain the first business object information, before creating the database table in the database based on the first business object information, the method further comprises:
obtaining a model ID, a database table name and a model name of the first service object;
judging whether the database table name exists in the database or not;
if the database table name does not exist in the database, judging whether the model ID and the model name exist in the database;
and if the model ID and the model name do not exist in the database, checking to pass.
5. The method for displaying data according to claim 1, wherein after said receiving a setting instruction and setting a component based on said setting instruction, and obtaining component information, said method further comprises, before creating a table field of said database table based on said component information:
judging whether the component information exists in the database;
and if the component information does not exist in the database, checking to pass.
6. The method for displaying data according to claim 1, wherein creating a database table in the database based on the first business object information comprises:
creating a library table sentence according to the first service object information;
setting a main key and default field information of the database table;
and according to the database table statement, the primary key and the default field information, using an execute method to create the database table in the database.
7. The method for displaying data according to claim 1, wherein the component information includes a field name, a field type attribute corresponding to the field name, and the creating a table field of the database table based on the component information includes:
acquiring a database table name of a first business object;
and creating a table field of the database table by using an execute method according to the database table name, the field name and the field type attribute.
8. A data presentation device, comprising:
the configuration module is used for configuring the first business object to obtain first business object information;
a first creation module for creating a database table in a database based on the first business object information;
the setting module is used for receiving a setting instruction, setting a component based on the setting instruction and obtaining component information;
a second creating module for creating a table field of the database table based on the component information;
the acquisition module is used for setting an acquisition assembly based on the first business object information, and acquiring first business object data corresponding to the first business object in the database table by using the acquisition assembly to obtain business data;
and the display module is used for displaying the service data based on the table field.
9. A terminal 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 of presentation of data as claimed in any one of claims 1 to 7 when the computer program is executed.
10. A computer-readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the presentation method of data according to any one of claims 1 to 7.
CN202311061959.1A 2023-08-23 2023-08-23 Data display method, device, terminal equipment and readable storage medium Pending CN116795845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311061959.1A CN116795845A (en) 2023-08-23 2023-08-23 Data display method, device, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311061959.1A CN116795845A (en) 2023-08-23 2023-08-23 Data display method, device, terminal equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116795845A true CN116795845A (en) 2023-09-22

Family

ID=88046204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311061959.1A Pending CN116795845A (en) 2023-08-23 2023-08-23 Data display method, device, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116795845A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117933206A (en) * 2024-03-14 2024-04-26 武汉数澜科技有限公司 Service data processing method, device, equipment, storage medium and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688399A (en) * 2019-08-26 2020-01-14 远光软件股份有限公司 Stream type calculation real-time report system and method
CN112527783A (en) * 2020-11-27 2021-03-19 中科曙光南京研究院有限公司 Data quality probing system based on Hadoop
CN114238338A (en) * 2021-12-21 2022-03-25 武汉众邦银行股份有限公司 Multi-dimensional DevOps measurement index acquisition method
CN114911466A (en) * 2022-05-24 2022-08-16 中国人民解放军国防科技大学 Data quality control system of acquisition terminal
CN115169303A (en) * 2022-06-16 2022-10-11 国网福建省电力有限公司经济技术研究院 Report generation method and terminal
CN115905397A (en) * 2022-12-02 2023-04-04 平安银行股份有限公司 Visual display method, device, system and medium for business data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688399A (en) * 2019-08-26 2020-01-14 远光软件股份有限公司 Stream type calculation real-time report system and method
CN112527783A (en) * 2020-11-27 2021-03-19 中科曙光南京研究院有限公司 Data quality probing system based on Hadoop
CN114238338A (en) * 2021-12-21 2022-03-25 武汉众邦银行股份有限公司 Multi-dimensional DevOps measurement index acquisition method
CN114911466A (en) * 2022-05-24 2022-08-16 中国人民解放军国防科技大学 Data quality control system of acquisition terminal
CN115169303A (en) * 2022-06-16 2022-10-11 国网福建省电力有限公司经济技术研究院 Report generation method and terminal
CN115905397A (en) * 2022-12-02 2023-04-04 平安银行股份有限公司 Visual display method, device, system and medium for business data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117933206A (en) * 2024-03-14 2024-04-26 武汉数澜科技有限公司 Service data processing method, device, equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
AU2009238294B2 (en) Data transformation based on a technical design document
US9922383B2 (en) Patent claims analysis system and method
US7797356B2 (en) Dynamically detecting exceptions based on data changes
CN102541867A (en) Data dictionary generating method and system
US10579589B2 (en) Data filtering
Tassone et al. Visualizing digital forensic datasets: a proof of concept
CN113138973B (en) Data management system and working method
CN116795845A (en) Data display method, device, terminal equipment and readable storage medium
CN113312265A (en) Application method of test case and related product
US7308457B1 (en) Method and apparatus for providing customized filters to restrict datasets retrieved from a database
CN110019076B (en) Method, device and equipment for constructing multi-system log data and readable storage medium
CN114860699A (en) Data quality detection method, device, equipment and storage medium
CN111324510A (en) Log processing method and device and electronic equipment
CN111881660A (en) Report generation method and device, computer equipment and storage medium
CN116167441A (en) Knowledge graph of network security risk assessment and construction method
CN110543457A (en) Track type document processing method and device, storage medium and electronic device
CN111916164B (en) Method and device for realizing center-started investigation system in clinical research
CN114860819A (en) Method, device, equipment and storage medium for constructing business intelligent system
CN112685678B (en) Page configuration method, page configuration device, computer equipment and storage medium
CN111933228B (en) Method and device for realizing project distribution and management system in clinical research
CN113849158A (en) JSON-based interface factory system, interface generation method and medium thereof
US20060247867A1 (en) Customized and dynamic association of probe type with feature extraction algorithms
CN115757573B (en) Processing method and device of map data and storage medium
CN117056352A (en) Data display method, device, terminal equipment and readable storage medium
CN115718825B (en) Method and device for determining duration label and electronic equipment

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