CN111352983A - Service attribute dynamic expansion method and device, computer equipment and storage medium - Google Patents

Service attribute dynamic expansion method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111352983A
CN111352983A CN201811585299.6A CN201811585299A CN111352983A CN 111352983 A CN111352983 A CN 111352983A CN 201811585299 A CN201811585299 A CN 201811585299A CN 111352983 A CN111352983 A CN 111352983A
Authority
CN
China
Prior art keywords
service
service attribute
data
attribute
column
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
CN201811585299.6A
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 Ubtech Technology Co ltd
Original Assignee
Shenzhen Ubtech 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 Ubtech Technology Co ltd filed Critical Shenzhen Ubtech Technology Co ltd
Priority to CN201811585299.6A priority Critical patent/CN111352983A/en
Priority to PCT/CN2018/123611 priority patent/WO2020132890A1/en
Publication of CN111352983A publication Critical patent/CN111352983A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • 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/25Integrating or interfacing systems involving database management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application relates to a method for dynamically expanding service attributes, which comprises the following steps: acquiring service attributes and service attribute data which are stored in a line storage mode and correspond to the service objects; and converting the service attribute and the corresponding service attribute data into a column form by a row-column conversion mode and displaying the column form in a data table. The method only needs to store the business attribute to be expanded in a line storage mode, and then can realize dynamic expansion of the business attribute through line-column conversion without adding a new table structure, so that the method is simple and convenient, greatly reduces the development cost and improves the development efficiency. In addition, a service attribute dynamic expansion device, a computer device and a storage medium are also provided.

Description

Service attribute dynamic expansion method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer processing, and in particular, to a method and an apparatus for dynamically extending a service attribute, a computer device, and a storage medium.
Background
At the beginning of project design, a database table structure meeting the business needs to be designed according to business requirements. At the beginning of a business, a corresponding table structure can be completely designed according to actual requirements, but with the expansion of the business, the corresponding table structure needs to be popularized to other clients, and under the scene that the client flow is similar, the client needs to meet the expansion requirement of own characteristics, so that the corresponding table structure needs to be newly added, development work can be increased undoubtedly, the development cost is high, and the efficiency is low.
Disclosure of Invention
In view of the above, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for dynamically extending business attributes with low development cost and high efficiency.
In a first aspect, an embodiment of the present invention provides a method for dynamically extending a service attribute, where the method includes:
acquiring service attributes and service attribute data which are stored in a line storage mode and correspond to the service objects;
and converting the service attribute and the corresponding service attribute data into a column form by a row-column conversion mode and displaying the column form in a data table.
In one embodiment, before the obtaining the service attribute and the service attribute data, which are stored in a line storage manner and correspond to the service object, the method further includes: receiving a business attribute corresponding to a business object through a configuration interface, and establishing a corresponding relation between the business object and the business attribute; receiving the input service attribute data corresponding to each service attribute; and storing the service attribute and the service attribute data in a line storage mode.
In one embodiment, each piece of data in the service attribute data corresponds to a data identifier and an attribute identifier; the converting the service attribute and the corresponding service attribute data into a column form by a row-column conversion mode to be displayed in a data table includes: acquiring a data identifier and a corresponding attribute identifier corresponding to each piece of data in the service attribute data; and converting the service attribute and the corresponding service attribute data into a column form for displaying in a data table in a row-column conversion mode according to the data identifier and the attribute identifier.
In one embodiment, the converting the service attribute and the corresponding service attribute data into a column format for displaying in a data table according to the data identifier and the attribute identifier by way of row-column conversion includes: acquiring service attribute data to be converted into a column, and converting the service attribute data into the column in a row-column conversion mode, wherein the column comprises service attribute data corresponding to a plurality of service attributes; acquiring a data identifier corresponding to each piece of data in the service attribute data, and converting the service attribute data corresponding to the same data identifier into the same row in the column according to the data identifier; and reserving service attribute data corresponding to the service attributes of the columns in the same row according to the attribute identification of the service attributes.
In one embodiment, the retaining, in the same row and according to the attribute identifier of the service attribute, service attribute data corresponding to the service attribute of the column includes: removing service attribute data which is not corresponding to the service attribute in the same row according to the attribute identification of the service attribute to obtain a removed result; and when the removed result contains the punctuation marks, removing the punctuation marks to obtain the data only containing the service attribute data corresponding to the service attribute.
In one embodiment, before the converting the service attribute and the corresponding service attribute into a column format in a row-column conversion manner and displaying the column format in a data table, the method further includes: acquiring inherent service attributes corresponding to the service objects and corresponding inherent service attribute data; determining a service attribute data structure corresponding to the service object according to the inherent service attribute and the service attribute stored in the line storage mode; the converting the service attributes and the corresponding service attributes into column forms in a row-column conversion manner to be displayed in a data table, including: and displaying the inherent service attribute data and the service attribute data stored in the row storage mode in a data table in a column mode according to the service attribute data structure.
In a second aspect, an embodiment of the present invention provides a device for dynamically extending a service attribute, where the device includes:
the acquisition module is used for acquiring the service attribute and the service attribute data which are stored in a line storage mode and correspond to the service object;
and the conversion module is used for converting the service attributes and the corresponding service attributes into a column form in a row-column conversion mode and displaying the column form in a data table.
In one embodiment, the apparatus further comprises: the system comprises an establishing module, a processing module and a processing module, wherein the establishing module is used for receiving a business attribute corresponding to a business object through a configuration interface and establishing a corresponding relation between the business object and the business attribute; the receiving module is used for receiving the recorded service attribute data corresponding to each service attribute; and the storage module is used for storing the service attribute and the service attribute data in a line storage mode.
In one embodiment, each piece of data in the service attribute data corresponds to a data identifier and an attribute identifier; the conversion module is further configured to obtain a data identifier and a corresponding attribute identifier corresponding to each piece of data in the service attribute data, and convert the service attribute and the corresponding service attribute data into a column format for display in a data table according to the data identifier and the attribute identifier by way of row-column conversion.
In one embodiment, the conversion module is further configured to obtain service attribute data to be converted into a column, and convert the service attribute data into the column in a row-column conversion manner, where the column includes service attribute data corresponding to a plurality of service attributes; acquiring a data identifier corresponding to each piece of data in the service attribute data, and converting the service attribute data corresponding to the same data identifier into the same row in the column according to the data identifier; and reserving service attribute data corresponding to the service attributes of the columns in the same row according to the attribute identification of the service attributes.
In one embodiment, the conversion module is further configured to remove, according to the attribute identifier of the service attribute, service attribute data that is not corresponding to the service attribute in the same row to obtain a removed result, and when the removed result includes a punctuation mark, remove the punctuation mark to obtain service attribute data that only includes the service attribute corresponding to the service attribute.
In one embodiment, the apparatus further comprises: the inherent acquisition module is used for acquiring inherent service attributes corresponding to the service objects and corresponding inherent service attribute data; a determining module, configured to determine a service attribute data structure corresponding to the service object according to the inherent service attribute and the service attribute stored in the line storage manner; the conversion module is further configured to display, in a data table, the inherent service attribute data and the service attribute data stored in a row storage manner in a column form according to the service attribute data structure.
In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to execute the following steps:
acquiring service attributes and service attribute data which are stored in a line storage mode and correspond to the service objects;
and converting the service attribute and the corresponding service attribute data into a column form by a row-column conversion mode and displaying the column form in a data table.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the processor is caused to execute the following steps:
acquiring service attributes and service attribute data which are stored in a line storage mode and correspond to the service objects;
and converting the service attribute and the corresponding service attribute data into a column form by a row-column conversion mode and displaying the column form in a data table.
The business attribute dynamic expansion method, the device, the computer equipment and the storage medium are used for displaying the business attribute and the corresponding business attribute data in a data table in a row-column conversion mode by acquiring the business attribute and the business attribute data which are stored in a row-storage mode and correspond to the business object. The dynamic expansion of the business attributes can be realized only by storing the business attributes to be expanded in a row storage mode and then by row-column conversion, a new table structure does not need to be added, the dynamic expansion is simple and convenient, the development cost is greatly reduced, and the development efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a diagram of an application environment of a method for dynamic service attribute extension in an embodiment;
FIG. 2 is a flow diagram of a method for dynamic expansion of service attributes in one embodiment;
FIG. 3 is a diagram illustrating a row-to-column conversion in one embodiment;
FIG. 4 is a flowchart of a method for dynamic expansion of service attributes in another embodiment;
FIG. 5 is a diagram illustrating an interface for configuring business attributes, according to an embodiment;
FIG. 6 is a schematic diagram of an interface for entering service attribute data corresponding to a service attribute in one embodiment;
FIG. 7 is a diagram illustrating a process for converting business attribute data presented in columns, in accordance with an embodiment;
FIG. 8 is a diagram illustrating removal of non-service attribute data and punctuation in one embodiment;
FIG. 9 is a flowchart of a method for dynamic expansion of service attributes in yet another embodiment;
FIG. 10 is a block diagram showing the structure of a dynamic service attribute expansion apparatus according to an embodiment;
fig. 11 is a block diagram showing the structure of a service attribute dynamic extension apparatus in another embodiment;
fig. 12 is a block diagram showing the structure of a service attribute dynamic extension apparatus in another embodiment;
FIG. 13 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is an application environment diagram of a method for dynamically extending service attributes in an embodiment. Referring to fig. 1, the method for dynamically extending service attributes is applied to a system for dynamically extending service attributes. The service attribute dynamic expansion system comprises a terminal 110 and a server 120, wherein the terminal 110 receives service attributes corresponding to service objects through a configuration interface, establishes a corresponding relationship between the service objects and the service attributes, receives input service attribute data corresponding to each service attribute, stores the service attributes and the service attribute data in a line storage mode, uploads the service attributes and the service attribute data to the server 120, and sends the acquired service attributes and the service attribute data stored in the line storage mode corresponding to the service objects to the terminal 110 after the subsequent server 120 receives a service attribute acquisition request, and the terminal 110 converts the service attributes and the corresponding service attribute data into a column form through a line-row conversion mode and displays the column form in a data table.
In another embodiment, the method for dynamically extending the service attribute may be directly applied to the terminal 110, where the terminal 110 receives the service attribute corresponding to the service object through a configuration interface, establishes a corresponding relationship between the service object and the service attribute, receives the entered service attribute data corresponding to each service attribute, stores the service attribute and the service attribute data in a line storage manner, obtains the service attribute and the service attribute data stored in the line storage manner corresponding to the service object after receiving the service attribute obtaining request, and converts the service attribute and the corresponding service attribute data into a column form through a line-column conversion manner to be displayed in a data table in a column form.
As shown in fig. 2, a method for dynamically extending service attributes is provided, where the method for dynamically extending service attributes is applied to a computer device, and specifically includes the following steps:
step 202, obtaining the service attribute and the service attribute data which are stored in a line storage mode and correspond to the service object.
The service object refers to a service of which the service attribute is to be extended. For example, if there are three services A, B, C that need to be extended for service attribute, then A, B, C are service objects respectively. In one embodiment, since there may be a plurality of business objects, the association relationship between the business object and the business attribute may be recorded by a metadata object, which refers to data describing data, that is, a metadata object is introduced to describe the relationship between the business object and the business attribute. In one embodiment, the corresponding service attribute and the service attribute data corresponding to the service attribute are obtained through the incidence relation between the service object and the service attribute recorded in the metadata object. The service attribute refers to several attributes contained in the service, and the attributes are generally represented by "field", for example, if the attribute contains a "name" attribute, the attribute is represented by a "name" field, and the corresponding service attribute data is specific data corresponding to the "name", such as "zhang san".
Conventionally, if the service attribute of a service object is to be expanded, a table structure needs to be redesigned, that is, if the data table is a data table with 5 columns, and if the data table is to be expanded into 8 columns, the data table needs to be redesigned to include 8 columns, so that the corresponding development cost is high, and the development efficiency is low. The embodiment of the application provides a new method for realizing dynamic attribute extension, firstly, the service attribute to be extended of the service object and the corresponding service attribute data are stored in a line storage mode, and as the number of the line records is not limited in quantity and can be extended infinitely theoretically, the service attribute and the service attribute data can be stored in a line storage mode. The setting of the service attribute and the service attribute data can be customized and set by a user according to the requirement through a configuration interface.
Step 204, the service attribute and the corresponding service attribute data are converted into a column form by a row-column conversion mode and displayed in a data table.
In order to display the service attribute and the corresponding service attribute data in a column form, the service attribute and the corresponding service attribute data need to be displayed in a data table in a column-row conversion manner, so that the purpose of dynamically expanding the service attribute is achieved. Fig. 3 is a schematic diagram of an embodiment, where service attributes and service attribute data stored in a line storage manner are subjected to line-row conversion to obtain service attributes and service attribute data displayed in a column form. The dynamic expansion method of the service attribute can realize the dynamic expansion of the service attribute through line-column conversion without adding or changing a table structure, and has low development cost and high efficiency. And the service attribute can be dynamically added, deleted, changed and checked, and the flexibility is high.
The business attribute dynamic expansion method comprises the steps of obtaining business attributes and business attribute data which correspond to business objects and are stored in a line storage mode, and then converting the business attributes and the corresponding business attribute data into a column form in a line-column conversion mode to be displayed in a data table. The dynamic expansion of the business attributes can be realized only by storing the business attributes to be expanded in a row storage mode and then by row-column conversion, a new table structure does not need to be added, the dynamic expansion is simple and convenient, the development cost is greatly reduced, and the development efficiency is improved.
As shown in fig. 4, in an embodiment, before acquiring the service attribute and the service attribute data stored in a line storage manner corresponding to the service object, the method further includes:
step 206, receiving the service attribute corresponding to the service object through the configuration interface, and establishing a corresponding relationship between the service object and the service attribute.
In order to facilitate a user to customize a service attribute corresponding to a service object according to actual requirements, a corresponding configuration interface is developed, the service attribute corresponding to the service object configured by the user is received through the configuration interface, and the received service attribute and the corresponding service object are correspondingly stored, wherein the storage mode can be realized by introducing a metadata object, namely, the relationship between the service object and the service attribute is described through the metadata object. As shown in fig. 5, which is an interface schematic diagram of setting a service attribute in a configuration interface in an embodiment, through the configuration interface, a user can freely configure a service attribute and service attribute data corresponding to a service object.
Step 208, receiving the entered service attribute data corresponding to each service attribute.
The service attribute data refers to specific content which is recorded and corresponds to the service attribute. For example, if the service attribute is "name", the corresponding service attribute data is the specific name, such as "zhang san", "li si", "wang wu", and the like. After the service attribute is determined, corresponding service attribute data can be recorded under the service attribute, and the recording mode can be a scanning recording mode, a manual recording mode or a loading recording mode. Fig. 6 is a schematic interface diagram illustrating entry of service attribute data corresponding to a service attribute in an embodiment.
Step 210, storing the service attribute and the service attribute data in a line storage manner.
Since the line records have no number limitation, the service attributes and the service attribute data can be saved in a line storage manner. And the corresponding service attribute and the service attribute data can be displayed in a data table in a column form through column-row conversion. According to the method for dynamically expanding the service attributes, the user only needs to simply configure the corresponding service attributes and the corresponding service attribute data, a professional development technology is not needed, and the development threshold is greatly reduced.
In one embodiment, each piece of service attribute data corresponds to a data identifier and an attribute identifier; the business attribute and the corresponding business attribute data are converted into a column form by a row-column conversion mode and are displayed in a data table, and the method comprises the following steps: acquiring a data identifier and a corresponding attribute identifier corresponding to each piece of data in the service attribute data; and converting the service attribute and the corresponding service attribute data into a column form for displaying in a data table in a row-column conversion mode according to the data identifier and the attribute identifier.
Each piece of data in the service attribute data corresponds to a data identifier, and the data identifier is used for uniquely identifying the attribution of the data, for example, if data about people is entered, the unique number corresponding to each person is the corresponding data identifier. The data in the same row in the data table correspond to the same data identifier. For example, if the demographic information includes name, gender, and age, it is assumed that the corresponding service attribute data of the same row are: zhang three, man, 24, then these three service attribute data correspond to the same data identification, represent the data of the same person. The attribute identifier is used for uniquely identifying one attribute, and the data in the same column in the data table corresponds to the same attribute identifier. For example, the column of "name" corresponds to the business data corresponding to the name, which is the business identifier. And converting the same data identifier into the same row according to the data identifier and the attribute identifier, and converting the same attribute identifier into the same column, so that the business attribute and the business attribute data are displayed in a data table in a column form. That is, the position of each piece of data in the service attribute data can be determined according to the data identifier and the attribute identifier, so that the data is regularly arranged in the data table, each row in the data table corresponds to the data with the same data identifier, and each column corresponds to the data with the same attribute identifier.
In one embodiment, the method for displaying the service attribute and the corresponding service attribute data in the data table in a column form by row-column conversion according to the data identifier and the attribute identifier includes: acquiring service attribute data to be converted into a column, and converting the service attribute data into the column in a row-column conversion mode, wherein the column comprises service attribute data corresponding to a plurality of service attributes; acquiring a data identifier corresponding to each piece of data in the service attribute data, and converting the service attribute data corresponding to the same data identifier into the same row in a column according to the data identifier; and reserving service attribute data corresponding to the column service attributes in the same row according to the attribute identification of the service attributes.
The method comprises the steps of obtaining service attribute data to be converted into a column, converting all the service data into the column through line-column conversion, converting the service attribute data of the same data identifier into the same row of the column according to a data identifier, and reserving the service attribute data corresponding to the service attribute identifier corresponding to the column in the same row according to the attribute identifier of the service attribute corresponding to the column. As shown in fig. 7, it is a schematic process diagram of an embodiment, in which the data is converted into a column, the service attribute data of the same data identifier is converted into the same row, and only the service attribute data corresponding to the service attribute is retained. And obtaining the service attribute data corresponding to each column of service attributes through the processing after the line-row conversion.
In one embodiment, the retaining the service attribute data corresponding to the column service attribute in the same row according to the attribute identifier of the service attribute includes: removing the service attribute data corresponding to the non-service attribute in the same row according to the attribute identification of the service attribute to obtain a removed result; and when the removed result contains the punctuation mark, removing the punctuation mark to obtain the service attribute data only containing the service attribute corresponding to the service attribute.
All the service data are converted into a column through row-column conversion, the service attribute data identified by the same data are converted into the same row of the column, because the same row contains the service attribute data of a plurality of service attributes, and only one service attribute corresponds to one column, the service attribute data corresponding to the non-service attribute in the same row, that is, the service attribute data not belonging to the column, is removed to obtain a removal result, and when the removal result contains a punctuation mark, the punctuation mark (for example, a comma) is also required to be correspondingly removed, as shown in fig. 8, which is a schematic diagram of removing the service attribute data corresponding to the non-service attribute and the punctuation mark in one embodiment.
As shown in fig. 9, in an embodiment, a method for dynamically extending a service attribute is provided, which specifically includes the following steps:
step 902, obtaining the inherent service attribute corresponding to the service object and the corresponding inherent service attribute data.
The service attribute dynamic expansion method may be implemented based on a previously designed data table, and for the purpose of differentiation, the service attribute and the service attribute data that may be set in the previously designed data table are referred to as "inherent service attribute" and "inherent service attribute data".
Step 904, obtaining the service attribute and the service attribute data stored in the line storage mode corresponding to the service object.
When the service attribute needs to be extended on the basis of the inherent attribute, the service attribute and the service attribute which need to be extended are stored in a line storage mode.
Step 906, determining a service attribute data structure corresponding to the service object according to the inherent service attribute and the service attribute stored in the line storage mode.
The service attribute data structure refers to structural features formed by all service attributes corresponding to the service object. The service attribute data structure includes all service attributes and the location of each service attribute in the table. When the service attribute corresponding to the service object needs to be displayed, the inherent service attribute needs to be acquired, and the dynamically expanded service attribute stored in a line storage manner also needs to be acquired, so that the corresponding service attribute data structure can be obtained according to the inherent service attribute and the dynamically expanded service attribute, and the service attribute can be conveniently displayed subsequently according to the service attribute data structure.
Step 908, displaying the inherent service attribute and the inherent service attribute data in a column form according to the service attribute data structure, and displaying the service attribute and the service attribute data stored in a row storage manner in a column display manner through row-column conversion.
The inherent service attributes and the corresponding inherent service attribute data exist in a data table in a column form, and the dynamically expanded service attributes exist in a row storage manner, so that the dynamically expanded service attributes need to be displayed in the data table in a row-column conversion manner, and all the service attributes corresponding to the service object are displayed in the data table in a column form. The dynamic service attribute expansion mode can realize the purpose of dynamically expanding the service attributes without changing the existing data table structure, is simple and convenient, and has low development cost, good efficiency and low development threshold.
As shown in fig. 10, an embodiment of the present invention provides a device for dynamically extending service attributes, where the device includes:
an obtaining module 1002, configured to obtain a service attribute and service attribute data, which are stored in a line storage manner and correspond to a service object;
the conversion module 1004 is configured to convert the service attribute and the corresponding service attribute into a column format in a row-column conversion manner, and display the column format in a data table.
As shown in fig. 11, in one embodiment, the apparatus further comprises:
an establishing module 1006, configured to receive a service attribute corresponding to a service object through a configuration interface, and establish a correspondence between the service object and the service attribute;
a receiving module 1008, configured to receive the entered service attribute data corresponding to each service attribute;
a saving module 1010, configured to save the service attribute and the service attribute data in a line storage manner.
In one embodiment, each piece of the service attribute data corresponds to a data identifier and an attribute identifier; the conversion module is further configured to obtain a data identifier and a corresponding attribute identifier corresponding to each piece of data in the service attribute data, and convert the service attribute and the corresponding service attribute data into a column format for display in a data table according to the data identifier and the attribute identifier by way of row-column conversion.
In one embodiment, the conversion module is further configured to obtain service attribute data to be converted into a column, and convert the service attribute data into the column by way of line-row conversion, where the column includes service attribute data corresponding to a plurality of service attributes; acquiring a data identifier corresponding to each piece of data in the service attribute data, and converting the service attribute data corresponding to the same data identifier into the same row in the column according to the data identifier; and reserving service attribute data corresponding to the service attributes of the columns in the same row according to the attribute identification of the service attributes.
In an embodiment, the conversion module is further configured to remove, according to the attribute identifier of the service attribute, service attribute data that is not corresponding to the service attribute in the same row to obtain a removed result, and when the removed result includes a punctuation mark, remove the punctuation mark to obtain service attribute data that only includes the service attribute corresponding to the service attribute.
As shown in fig. 12, in one embodiment, the apparatus further comprises:
an inherent acquiring module 1012, configured to acquire an inherent service attribute corresponding to the service object and corresponding inherent service attribute data;
a determining module 1014, configured to determine, according to the inherent service attribute and the service attribute stored in the line storage manner, a service attribute data structure corresponding to the service object;
the conversion module is further configured to display, in a data table, the inherent service attribute data and the service attribute data stored in a row storage manner in a column form according to the service attribute data structure.
FIG. 13 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer may be a terminal. As shown in fig. 13, the computer device includes a processor, a memory, a display screen, and a network interface connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and also stores a computer program, and when the computer program is executed by a processor, the computer program can enable the processor to realize the dynamic expansion method of the service attribute. The internal memory may also have a computer program stored therein, which when executed by the processor, causes the processor to perform the method for dynamically extending the service attribute. The display screen is used for displaying the data table and corresponding data, and the network interface is used for communicating with the outside. Those skilled in the art will appreciate that the architecture shown in fig. 13 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the service attribute dynamic extension method provided by the present application may be implemented in the form of a computer program, and the computer program may be run on a computer device as shown in fig. 13. The memory of the computer device can store various program templates which form the service attribute dynamic expansion device. Such as an acquisition module 1002 and a conversion module 1004.
A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of: acquiring service attributes and service attribute data which are stored in a line storage mode and correspond to the service objects; and converting the service attribute and the corresponding service attribute data into a column form by a row-column conversion mode and displaying the column form in a data table.
In one embodiment, before the obtaining of the service attribute and the service attribute data stored in the line memory corresponding to the service object, the computer program is further configured to, when executed by the processor, perform the following steps: receiving a business attribute corresponding to a business object through a configuration interface, and establishing a corresponding relation between the business object and the business attribute; receiving the input service attribute data corresponding to each service attribute; and storing the service attribute and the service attribute data in a line storage mode.
In one embodiment, each piece of the service attribute data corresponds to a data identifier and an attribute identifier; the converting the service attribute and the corresponding service attribute data into a column form by a row-column conversion mode to be displayed in a data table includes: acquiring a data identifier and a corresponding attribute identifier corresponding to each piece of data in the service attribute data; and converting the service attribute and the corresponding service attribute data into a column form for displaying in a data table in a row-column conversion mode according to the data identifier and the attribute identifier.
In an embodiment, the converting the service attribute and the corresponding service attribute data into a column format for displaying in a data table according to the data identifier and the attribute identifier by way of row-column conversion includes: acquiring service attribute data to be converted into a column, and converting the service attribute data into the column in a row-column conversion mode, wherein the column comprises service attribute data corresponding to a plurality of service attributes; acquiring a data identifier corresponding to each piece of data in the service attribute data, and converting the service attribute data corresponding to the same data identifier into the same row in the column according to the data identifier; and reserving service attribute data corresponding to the service attributes of the columns in the same row according to the attribute identification of the service attributes.
In an embodiment, the retaining, in the same row according to the attribute identifier of the service attribute, service attribute data corresponding to the service attribute of the column includes: removing service attribute data which is not corresponding to the service attribute in the same row according to the attribute identification of the service attribute to obtain a removed result; and when the removed result contains the punctuation marks, removing the punctuation marks to obtain the data only containing the service attribute data corresponding to the service attribute.
In an embodiment, before the converting the service attribute and the corresponding service attribute into a column format by a row-column conversion manner and displaying in a data table, the method further includes: acquiring inherent service attributes corresponding to the service objects and corresponding inherent service attribute data; determining a service attribute data structure corresponding to the service object according to the inherent service attribute and the service attribute stored in the line storage mode; the converting the service attributes and the corresponding service attributes into column forms in a row-column conversion manner to be displayed in a data table, including: and displaying the inherent service attribute data and the service attribute data stored in the row storage mode in a data table in a column mode according to the service attribute data structure.
A computer-readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of: acquiring service attributes and service attribute data which are stored in a line storage mode and correspond to the service objects; and converting the service attribute and the corresponding service attribute data into a column form by a row-column conversion mode and displaying the column form in a data table.
In one embodiment, before the obtaining of the service attribute and the service attribute data stored in the line memory corresponding to the service object, the computer program is further configured to, when executed by the processor, perform the following steps: receiving a business attribute corresponding to a business object through a configuration interface, and establishing a corresponding relation between the business object and the business attribute; receiving the input service attribute data corresponding to each service attribute; and storing the service attribute and the service attribute data in a line storage mode.
In one embodiment, each piece of the service attribute data corresponds to a data identifier and an attribute identifier; the converting the service attribute and the corresponding service attribute data into a column form by a row-column conversion mode to be displayed in a data table includes: acquiring a data identifier and a corresponding attribute identifier corresponding to each piece of data in the service attribute data; and converting the service attribute and the corresponding service attribute data into a column form for displaying in a data table in a row-column conversion mode according to the data identifier and the attribute identifier.
In an embodiment, the converting the service attribute and the corresponding service attribute data into a column format for displaying in a data table according to the data identifier and the attribute identifier by way of row-column conversion includes: acquiring service attribute data to be converted into a column, and converting the service attribute data into the column in a row-column conversion mode, wherein the column comprises service attribute data corresponding to a plurality of service attributes; acquiring a data identifier corresponding to each piece of data in the service attribute data, and converting the service attribute data corresponding to the same data identifier into the same row in the column according to the data identifier; and reserving service attribute data corresponding to the service attributes of the columns in the same row according to the attribute identification of the service attributes.
In an embodiment, the retaining, in the same row according to the attribute identifier of the service attribute, service attribute data corresponding to the service attribute of the column includes: removing service attribute data which is not corresponding to the service attribute in the same row according to the attribute identification of the service attribute to obtain a removed result; and when the removed result contains the punctuation marks, removing the punctuation marks to obtain the data only containing the service attribute data corresponding to the service attribute.
In an embodiment, before the converting the service attribute and the corresponding service attribute into a column format by a row-column conversion manner and displaying in a data table, the method further includes: acquiring inherent service attributes corresponding to the service objects and corresponding inherent service attribute data; determining a service attribute data structure corresponding to the service object according to the inherent service attribute and the service attribute stored in the line storage mode; the converting the service attributes and the corresponding service attributes into column forms in a row-column conversion manner to be displayed in a data table, including: and displaying the inherent service attribute data and the service attribute data stored in the row storage mode in a data table in a column mode according to the service attribute data structure.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for dynamically extending service attributes is characterized in that the method comprises the following steps:
acquiring service attributes and service attribute data which are stored in a line storage mode and correspond to the service objects;
and converting the service attribute and the corresponding service attribute data into a column form by a row-column conversion mode and displaying the column form in a data table.
2. The method according to claim 1, before said obtaining the service attribute and the service attribute data stored in a line storage manner corresponding to the service object, further comprising:
receiving a business attribute corresponding to a business object through a configuration interface, and establishing a corresponding relation between the business object and the business attribute;
receiving the input service attribute data corresponding to each service attribute;
and storing the service attribute and the service attribute data in a line storage mode.
3. The method according to claim 1, wherein each piece of the service attribute data corresponds to a data identifier and an attribute identifier;
the converting the service attribute and the corresponding service attribute data into a column form by a row-column conversion mode to be displayed in a data table includes:
acquiring a data identifier and a corresponding attribute identifier corresponding to each piece of data in the service attribute data;
and converting the service attribute and the corresponding service attribute data into a column form for displaying in a data table in a row-column conversion mode according to the data identifier and the attribute identifier.
4. The method according to claim 3, wherein the converting the service attribute and the corresponding service attribute data into a column format for presentation in a data table according to the data identifier and the attribute identifier by means of row-column conversion comprises:
acquiring service attribute data to be converted into a column, and converting the service attribute data into the column in a row-column conversion mode, wherein the column comprises service attribute data corresponding to a plurality of service attributes;
acquiring a data identifier corresponding to each piece of data in the service attribute data, and converting the service attribute data corresponding to the same data identifier into the same row in the column according to the data identifier;
and reserving service attribute data corresponding to the service attributes of the columns in the same row according to the attribute identification of the service attributes.
5. The method according to claim 4, wherein said retaining service attribute data corresponding to the service attribute of the column in the same row according to the attribute identifier of the service attribute comprises:
removing service attribute data which is not corresponding to the service attribute in the same row according to the attribute identification of the service attribute to obtain a removed result;
and when the removed result contains the punctuation marks, removing the punctuation marks to obtain the data only containing the service attribute data corresponding to the service attribute.
6. The method according to claim 1, further comprising, before the converting the service attributes and the corresponding service attributes into column format by row-column conversion for presentation in a data table:
acquiring inherent service attributes corresponding to the service objects and corresponding inherent service attribute data;
determining a service attribute data structure corresponding to the service object according to the inherent service attribute and the service attribute stored in the line storage mode;
the converting the service attributes and the corresponding service attributes into column forms in a row-column conversion manner to be displayed in a data table, including:
and displaying the inherent service attribute data and the service attribute data stored in the row storage mode in a data table in a column mode according to the service attribute data structure.
7. An apparatus for dynamically extending service attributes, the apparatus comprising:
the acquisition module is used for acquiring the service attribute and the service attribute data which are stored in a line storage mode and correspond to the service object;
and the conversion module is used for converting the service attributes and the corresponding service attributes into a column form in a row-column conversion mode and displaying the column form in a data table.
8. The apparatus of claim 7, further comprising:
the system comprises an establishing module, a processing module and a processing module, wherein the establishing module is used for receiving a business attribute corresponding to a business object through a configuration interface and establishing a corresponding relation between the business object and the business attribute;
the receiving module is used for receiving the recorded service attribute data corresponding to each service attribute;
and the storage module is used for storing the service attribute and the service attribute data in a line storage mode.
9. A computer device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 6.
CN201811585299.6A 2018-12-24 2018-12-24 Service attribute dynamic expansion method and device, computer equipment and storage medium Pending CN111352983A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811585299.6A CN111352983A (en) 2018-12-24 2018-12-24 Service attribute dynamic expansion method and device, computer equipment and storage medium
PCT/CN2018/123611 WO2020132890A1 (en) 2018-12-24 2018-12-25 Service attribute dynamic expansion method, apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811585299.6A CN111352983A (en) 2018-12-24 2018-12-24 Service attribute dynamic expansion method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111352983A true CN111352983A (en) 2020-06-30

Family

ID=71127275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811585299.6A Pending CN111352983A (en) 2018-12-24 2018-12-24 Service attribute dynamic expansion method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN111352983A (en)
WO (1) WO2020132890A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201545A (en) * 2022-02-16 2022-03-18 希维科技(广州)有限公司 Data processing method and device, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004252655A (en) * 2003-02-19 2004-09-09 Seiko Epson Corp File conversion device developing table expressed by markup language
CN104537069A (en) * 2014-12-26 2015-04-22 远光软件股份有限公司 Receipt configuration and application system and method
CN105701112A (en) * 2014-11-26 2016-06-22 华为软件技术有限公司 Data processing method, apparatus and system
CN106557531A (en) * 2015-09-30 2017-04-05 伊姆西公司 Labyrinth object is converted into planarizing data
CN106919687A (en) * 2017-03-03 2017-07-04 济南浪潮高新科技投资发展有限公司 A kind of general internal storage data table row turns the implementation method of row displaying

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794123B (en) * 2014-01-20 2018-07-27 阿里巴巴集团控股有限公司 A kind of method and device building NoSQL database indexes for semi-structured data
CN104239580B (en) * 2014-10-13 2017-06-27 武汉大学 General purpose single field based on value row mapping splits data pick-up method and apparatus
CN106844324B (en) * 2017-02-22 2020-01-10 浪潮通用软件有限公司 Method for exporting variable column data into Excel format
CN107291961B (en) * 2017-08-08 2020-08-11 中国银行股份有限公司 Data processing method and device
CN108595627A (en) * 2018-04-23 2018-09-28 温州市鹿城区中津先进科技研究院 A kind of self-service data analysis Modeling Platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004252655A (en) * 2003-02-19 2004-09-09 Seiko Epson Corp File conversion device developing table expressed by markup language
CN105701112A (en) * 2014-11-26 2016-06-22 华为软件技术有限公司 Data processing method, apparatus and system
CN104537069A (en) * 2014-12-26 2015-04-22 远光软件股份有限公司 Receipt configuration and application system and method
CN106557531A (en) * 2015-09-30 2017-04-05 伊姆西公司 Labyrinth object is converted into planarizing data
CN106919687A (en) * 2017-03-03 2017-07-04 济南浪潮高新科技投资发展有限公司 A kind of general internal storage data table row turns the implementation method of row displaying

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
周虹\N\N\N,程劲: "Delphi中用QuickReport实现动态报表" *
汪辉;: "关系数据库中的行列互换" *
王忠群,谢晓东: "信息系统中软件重用和演化技术的研究" *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114201545A (en) * 2022-02-16 2022-03-18 希维科技(广州)有限公司 Data processing method and device, terminal equipment and storage medium
CN114201545B (en) * 2022-02-16 2022-04-22 希维科技(广州)有限公司 Data processing method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
WO2020132890A1 (en) 2020-07-02

Similar Documents

Publication Publication Date Title
CN106354840B (en) File processing method and device and distributed file system
CN109672888B (en) Picture compression method, equipment and computer readable storage medium
CN110866491A (en) Target retrieval method, device, computer readable storage medium and computer equipment
CN107679560B (en) Data transmission method and device, mobile terminal and computer readable storage medium
CN108052553B (en) Method and device for generating electronic manual, computer equipment and storage medium
CN110830716B (en) Image generation method and device, computer equipment and storage medium
CN104756080A (en) Augmenting capabilities of a host device
US20160110324A1 (en) Compression of cascading style sheet files
US9706006B2 (en) System and method of context aware adaption of content for a mobile device
CN105279778A (en) Method and terminal for picture color filling
CN110390641B (en) Image desensitizing method, electronic device and storage medium
CN115526160A (en) Rich text processing method, device and equipment and storage medium
CN108255898B (en) Page display method and device
CN109919220B (en) Method and apparatus for generating feature vectors of video
CN110602049A (en) Data transmission method, server and storage medium
CN111352983A (en) Service attribute dynamic expansion method and device, computer equipment and storage medium
CN114218175A (en) Resource cross-platform sharing method and device, terminal equipment and storage medium
CN107391100B (en) Configuration file generation method and device supporting multi-language bill
CN109710783B (en) Picture loading method and device, storage medium and server
CN109710436B (en) Space cleaning method, device, equipment and computer readable storage medium
CN111026613A (en) Log processing method and device
CN111352993A (en) Cross-platform data synchronization method and device and electronic equipment
CN107491269B (en) External memory file scanning display method, display terminal and storage medium
CN108614844B (en) Multimedia file generation method and device
CN110263110B (en) Geographic space data loading method and device based on rarefying algorithm and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200630