CN111414405A - Data acquisition method and device and electronic equipment - Google Patents

Data acquisition method and device and electronic equipment Download PDF

Info

Publication number
CN111414405A
CN111414405A CN202010209045.5A CN202010209045A CN111414405A CN 111414405 A CN111414405 A CN 111414405A CN 202010209045 A CN202010209045 A CN 202010209045A CN 111414405 A CN111414405 A CN 111414405A
Authority
CN
China
Prior art keywords
data
page
service
data acquisition
identifier
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
CN202010209045.5A
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.)
Beijing Tongbang Zhuoyi Technology Co ltd
Original Assignee
Beijing Tongbang Zhuoyi 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 Beijing Tongbang Zhuoyi Technology Co ltd filed Critical Beijing Tongbang Zhuoyi Technology Co ltd
Priority to CN202010209045.5A priority Critical patent/CN111414405A/en
Publication of CN111414405A publication Critical patent/CN111414405A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention relates to a data acquisition method, a data acquisition device and electronic equipment, wherein the method comprises the following steps: receiving a data acquisition request carrying a data identifier sent by a service system, determining a page basic element for inputting the service data to be acquired, adding the data identifier and the page basic element into a preset form maintenance page, and storing the service data into a field corresponding to the data identifier in a database if the service data input on the page basic element is received. The embodiment of the invention can dynamically update the form maintenance page automatically according to the data identification of the service data required to be acquired by the service system and synchronize the received service data to the database, so that the service system can inquire the service data corresponding to the data identification in the database without changing programs of a front end, a rear end and related service systems, the workload of developers and testers is reduced, unnecessary resource waste is reduced, time and energy are saved, and the efficiency is improved.

Description

Data acquisition method and device and electronic equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data acquisition method and apparatus, and an electronic device.
Background
The current Enterprise Resource Planning (ERP) system includes: the system comprises a database and one or more service systems cascaded on the database; if a field needs to be added/deleted/updated in the database, all related service systems on the upper layer of the database need to be correspondingly changed. For example: if the service system A depends on the service system B, if the service system A wants to query one more target field, and if the service system B is responsible for storing the field, the service system B needs to store the increased target field, the service system B needs to increase one more target field from the database, and corresponding service layers, entity classes and web layers are increased.
When a certain business system needs to modify a field at present, all programs of related business systems need to be modified along with the field, so that front-end and back-end application programs need to be developed according to requirements in a customized manner, when front-end layout needs to be adjusted correspondingly, front-end codes need to be modified to achieve an expected effect, moreover, related personnel for development, testing and the like need to participate in updating of the codes every time, resources are consumed, similar repeated work is carried out repeatedly, manual implementation is troublesome, time is consumed, and meanwhile, more resources such as related personnel for development, testing and the like need to be occupied.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the application provides a data acquisition method, a data acquisition device and an electronic device.
In a first aspect, the present application provides a data acquisition method, which is applied to a front end, and the method includes:
receiving a data acquisition request of a service system, wherein the data acquisition request comprises: data identification of service data to be acquired;
determining a page basic element for inputting the service data to be acquired;
adding the data identification and the page basic element into a preset form maintenance page;
and if the business data input on the page basic element is received, storing the business data into a field corresponding to the data identification in a database.
Optionally, adding the data identifier and the page basic element to a preset form maintenance page includes:
adding the data identification to a preset dynamic page template;
adding the page basic element to a position corresponding to the data identifier in the dynamic page template;
performing page layout on the data identifier and the page basic element in the dynamic page template according to a preset layout rule;
and rendering the data identification and the page basic element in the dynamic page template.
Optionally, performing page layout on the data identifier and the page basic element in the dynamic page template according to a preset layout rule, including:
determining the width of a first grid where the data identifier is located according to a first layout attribute parameter in a preset layout rule;
determining the width of a second grid where the page basic elements are located according to a second layout attribute parameter in a preset layout rule;
and performing page layout on the dynamic page template according to the width of the first grid and the width of the second grid.
Optionally, the first layout property parameter includes: determining the width of a first grid where the data identifier is located according to a first layout attribute parameter in a preset layout rule by using a first row number, a first column number and a first column number, wherein the width comprises:
determining a first grid area where the data identifier is located according to the first row number and the first column number;
calculating a first proportion of the first row number to the page width according to a preset layout rule;
determining a width of the first mesh region according to the first ratio.
Optionally, the second layout property parameter includes: determining the width of a second grid where the page basic elements are located according to a second layout attribute parameter in a preset layout rule by using a second row number, a second column number and a second column number, wherein the width comprises:
determining a second grid area where the page basic element is located according to the second line number and the second column number;
calculating a second proportion of the second row number to the page width according to a preset layout rule;
determining a width of the second grid area according to the second ratio.
Optionally, rendering the data identifier and the page basic element in the dynamic page template includes:
analyzing the dynamic page template by using an analyzer according to a preset layout rule;
and rendering the data identification and the display style of the page basic element obtained by analysis.
In a second aspect, the present application provides a data acquisition method, which is applied to a service system, and the method includes:
sending a data acquisition request to a front end, wherein the data acquisition request comprises: data identification of service data to be acquired;
acquiring service data corresponding to the data identification in a database;
determining a page display element of the service data corresponding to the data identifier;
adding the data identification and the page display element into a preset form display page;
and displaying the business data in a form display page by using the page display element corresponding to the data identifier.
In a third aspect, the present application provides a data acquisition apparatus, applied to a front end, the apparatus comprising:
a first obtaining module, configured to receive a data obtaining request of a service system, where the data obtaining request includes: data identification of service data to be acquired;
the first determining module is used for determining a page basic element used for inputting the service data to be acquired;
the first adding module is used for adding the data identifier and the page basic element into a preset form maintenance page;
and the storage module is used for storing the business data into a field corresponding to the data identifier in a database if the business data input on the page basic element is received.
In a fourth aspect, the present application provides a data acquisition apparatus, which is applied to a service system, and the apparatus includes:
a sending module, configured to send a data acquisition request to a front end, where the data acquisition request includes: data identification of service data to be acquired;
the second acquisition module is used for acquiring the service data corresponding to the data identifier from a database;
the second determining module is used for determining the page display element of the service data corresponding to the data identifier;
the second adding module is used for adding the data identifier and the page display element into a preset form display page;
and the display module is used for displaying the business data in a form display page by using the page display element corresponding to the data identifier.
In a fifth aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor configured to implement the data acquisition method according to any one of the first aspect or the data acquisition method according to the second aspect when executing the program stored in the memory.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the embodiment of the invention determines the page basic element for inputting the service data to be obtained by receiving the data obtaining request which is sent by a service system and carries the data identification of the service data to be obtained, adds the data identification and the page basic element into a preset form maintenance page, and stores the service data into a field corresponding to the data identification in a database if the service data input on the page basic element is received.
The embodiment of the invention can automatically and dynamically update the form maintenance page according to the data identifier of the service data required to be acquired by the service system when the service system has the data acquisition requirement, and synchronize the service data into the field corresponding to the data identifier in the database when the form maintenance page receives the service data, so that the service system can inquire the service data corresponding to the data identifier in the database, when the service data required by one service system changes, the program of the front end, the rear end and the related service system does not need to be changed, the problem that the code logic needs to be correspondingly updated from the beginning of the database to the service layer, the entity class and the web layer of the storage system due to the service change can be avoided, the workload of developers and testers can be reduced, the unnecessary resource waste can be reduced, the time and energy can be saved, the efficiency is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
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, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of a data acquisition method according to an embodiment of the present application;
FIG. 2 is a flowchart of step S103 in FIG. 1;
FIG. 3 is a flowchart of step S203 in FIG. 2;
fig. 4 is a flowchart of another data acquisition method provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a data acquisition apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another data acquisition apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When a certain service system needs to modify a field at present, all related service systems need to be modified along with the field, so that front-end and back-end application programs need to be developed according to requirements in a customized manner, when front-end layout needs to be adjusted correspondingly, front-end codes need to be modified to achieve the expected effect, moreover, related personnel for development, testing and the like need to participate in updating of the codes every time, resources are consumed, similar repeated work is carried out repeatedly, manual implementation is troublesome, time consumption is high, and meanwhile, more resources such as related personnel for development, testing and the like need to be occupied. Fig. 1 is a data acquisition method provided in an embodiment of the present application, where the data acquisition method may be applied to a front end, the front end may store data in a database, and may also read data from the database, a business system may read data from the database, and interdependencies among the front end, the database, and the business system exist in business data, that is, correlations among the front end, the database, and the business system exist, and the data acquisition method may include the following steps:
step S101, receiving a data acquisition request of a service system.
In this embodiment of the present invention, the data obtaining request includes: data identification of service data to be acquired;
in practical applications, when one or more fields in the database need to be added/deleted/modified, the business system may send a data acquisition request to the front end to request the front end to add/delete/modify one or more fields in the database.
Step S102, determining page basic elements for inputting the service data to be acquired;
in the embodiment of the invention, in order to facilitate maintenance personnel to add/delete/modify one or more fields in the database by operating the front end, a dynamic page template containing one or more page basic elements can be constructed in advance, the dynamic page template is rendered to obtain a form maintenance page, the page basic elements can be input boxes, radio buttons, pull-down menus, check boxes, radio boxes, multi-check boxes or support file types, and the like, and the maintenance personnel can input service data corresponding to the data identification through the page basic elements.
In an embodiment of the present invention, the front end may pre-define a corresponding relationship between the data identifier and the page basic element, where the data identifiers of the service data of different data types correspond to different page basic elements, for example: the service data requested to be acquired by the service system is manually input by a maintenance worker, and the page basic element corresponding to the data identifier of the service data can be an input box; or, the service data requested to be obtained by the service system needs to be selected from a plurality of data, and the data identifier of the service data may be a radio button or the like, and may be set according to actual requirements, which is not limited in the present invention.
When the service data corresponding to the data identifier is multiple, because only one page basic element is added according to the corresponding relationship, in order to meet the actual requirement, the maintenance personnel can also manually add multiple page basic elements, and the multiple page basic elements and the data identifier all have corresponding relationships.
In this step, the front end may automatically determine the corresponding page base element according to the received data identifier according to the aforementioned correspondence.
In another embodiment of the present invention, after receiving the data acquisition request, the front end may further send a prompt including a data identifier, and the maintenance personnel may select one or more page basic elements to be used in the form maintenance page through a selection operation.
Step S103, adding the data identification and the page basic element into a preset form maintenance page;
since the data identifier of the service data and the page basic element used for inputting the service data required by the service system are determined, and the original form maintenance page does not contain the data identifier of the service data and the page basic element used for inputting the service data, in this step, the data identifier and the page basic element need to be added to the form maintenance page, so that maintenance personnel can input the service data through the page basic element according to the data identifier.
And step S104, if the business data input on the page basic element is received, storing the business data into a field corresponding to the data identification in a database.
In the embodiment of the present invention, a database stores in advance a large field and N query columns of various service data required by each associated service system, for example, the large field and the N query columns may be json data, the large field and the N query columns include various data sets or key-value data, etc., the large field may be used to store configuration information of a product, configuration information of a system, etc., and the N query columns may have an attribute value redundant from the large field and are used for conditional query. The query efficiency of the condition query can be improved through the index of the query column, and the query efficiency is comparable to that of the customized database storage.
In this step, the service data is stored in a field corresponding to the data identifier in the database, which is convenient for the service system to query and use according to the data identifier.
In practical application, the front end receives a data acquisition request sent by a service system, where the data acquisition request includes a data identifier of service data to be acquired, for example: the business system needs to store configuration information of 5 attributes in the database, so the data acquisition request carries attribute identifiers of 5 attributes ABCDE, after the front end receives the data acquisition request, the front end can determine page basic elements of the 5 attribute identifiers, the 5 attribute identifiers ABCDE and the page basic elements are added into a form maintenance page, after the page is generated, a maintainer can input values to be configured on the page, the business data is stored in the database, and finally the business data is stored in the database to obtain the configuration information including: a JSON large field of { a ═ … …, B ═ … …, C … …, D … …, E … … }.
And the database receives the query request sent by the service system, and searches and returns the field requested by the query request in the large field.
The embodiment of the invention determines the page basic element for inputting the service data to be obtained by receiving the data obtaining request which is sent by a service system and carries the data identification of the service data to be obtained, adds the data identification and the page basic element into a preset form maintenance page, and stores the service data into a field corresponding to the data identification in a database if the service data input on the page basic element is received.
The embodiment of the invention can automatically and dynamically update the form maintenance page according to the data identifier of the service data required to be acquired by the service system when the service system has the data acquisition requirement, and synchronize the service data into the field corresponding to the data identifier in the database when the form maintenance page receives the service data, so that the service system can inquire the service data corresponding to the data identifier in the database, when the service data required by one service system changes, the program of the front end, the rear end and the related service system does not need to be changed, the problem that the code logic needs to be correspondingly updated from the beginning of the database to the service layer, the entity class and the web layer of the storage system due to the service change can be avoided, the workload of developers and testers can be reduced, the unnecessary resource waste can be reduced, the time and energy can be saved, the efficiency is improved.
In another embodiment of the present invention, step S103 adds the data identifier and the page basic element to a preset form maintenance page, as shown in fig. 2, the method may include the following steps:
step S201, adding the data identification to a preset dynamic page template;
step S202, adding the page basic element to a position corresponding to the data identifier in the dynamic page template;
in practical application, illustratively, the page basic elements can be added to the same row of the data identifier corresponding to the page basic elements, so that maintenance personnel can more intuitively know the corresponding relation between the data identifier and the page basic elements, and can input business data corresponding to the data identifier conveniently.
Step S203, performing page layout on the data identifier and the page basic element in the dynamic page template according to a preset layout rule;
in the embodiment of the present invention, for example, the columns divided in the horizontal direction in the dynamic page template may be divided into 24 segments, the default line pitch is set to 50 pixels, and the preset layout rule may include: a first layout attribute parameter corresponding to the data identifier and a second layout parameter corresponding to the page basic element, wherein the first layout attribute parameter and the second layout attribute parameter both comprise: the row number is used for controlling the position in the horizontal direction, the column number is used for controlling the position in the longitudinal direction, and the column number is used for controlling the width of the area occupied by the data identification and the page basic elements.
Step S204, rendering the data identification and the page basic element in the dynamic page template.
In the embodiment of the present invention, the rendering is mainly performed on the data identifier and the display style of the page basic element in the dynamic page template.
In this step, the dynamic page template may be parsed by a parser according to a preset layout rule, and the parsed data identifier and the display style of the page basic element may be rendered.
In practical application, development or operation and maintenance personnel can draw out various dynamic page templates through pages, and assume that page basic elements for inputting and business data are input boxes, in step S202, an input box component can be added to a form maintenance page, and finally, the form maintenance page can be rendered into a page capable of maintaining data, similar to an add-delete-modify page in an ERP page, and different from the existing add-delete-modify-page, a background of each element is written down, but all the page basic elements of the application can be dynamically added, that is: the common page basic elements on the form maintenance page are defined in advance at the early stage, the form maintenance page for maintaining data is formed by the basic elements, and business data can be input from the page.
According to the embodiment of the invention, the data identifier and the page basic elements are added to the form maintenance page, and the layout and the rendering are automatically carried out, so that the form maintenance page is dynamically adjusted according to the service data requirement of the service system, and the service data can be conveniently input by a maintainer.
In another embodiment of the present invention, the step S203 performs a page layout on the data identifier and the page basic element in the dynamic page template according to a preset layout rule, as shown in fig. 3, the step may include the following steps:
step S301, determining the width of a first grid where the data identifier is located according to a first layout attribute parameter in a preset layout rule;
in an embodiment of the present invention, the first layout attribute parameter includes: a first row number, a first column number, and a first column number.
In this step, a first grid area where the data identifier is located may be determined according to the first row number and the first column number; calculating a first proportion of the first row number to the page width according to a preset layout rule; determining a width of the first mesh region according to the first ratio
Step S302, determining the width of a second grid where the page basic element is located according to a second layout attribute parameter in a preset layout rule;
in an embodiment of the present invention, the second layout attribute parameter includes: a second row number, a second column number, and a second column number.
In this step, a second grid area where the page basic element is located may be determined according to the second row number and the second column number; calculating a second proportion of the second row number to the page width according to a preset layout rule; determining a width of the second grid area according to the second ratio.
For example, element a has a row number of 10, a column number of 1, an element B has a row number of 10, a column number of 2, and a column number of 2, the display effect is A, B on the same row, B is behind a, and the width of B is 24X 2/3-16 segments, the width of a is 24X 1/3-8, and flexible configuration of page layout is realized through flexible variation of three attributes.
Step S303, performing page layout on the dynamic page template according to the width of the first grid and the width of the second grid.
According to the embodiment of the invention, the width of the first grid where the data identifier is located and the width of the second grid where the page basic element is located can be obtained according to the preset layout rule, and finally, the page layout is carried out according to the width of the first grid and the width of the second grid.
In another embodiment of the present invention, a data obtaining method is further provided, which is applied to a service system, and as shown in fig. 4, the data obtaining method includes:
step S401, sends a data acquisition request to the front end.
In the embodiment of the present invention, the data obtaining request includes: data identification of data to be acquired;
in practical applications, when one or more fields in the database need to be added/deleted/modified, the business system may send a data acquisition request to the front end to request the front end to add/delete/modify one or more fields in the database.
Step S402, acquiring service data corresponding to the data identification from a database;
in the foregoing embodiment, after receiving the service data input by the maintenance staff through the page basic element, the front end synchronizes the service data to the database, so that in the embodiment of the present invention, the service data corresponding to the data identifier can be acquired in the database.
Step S403, determining a page display element of the service data corresponding to the data identifier;
in the embodiment of the present invention, in order to facilitate a maintainer to know one or more added/deleted/modified fields, a dynamic page template including one or more page display elements may be pre-constructed, the dynamic page template is rendered to obtain a form display page, the page display elements may be used to display business data, and the page display elements may be rendered into various required display styles.
In an embodiment of the present invention, if the number of the pieces of service data acquired in the database is at least two, a plurality of page display elements may be added to the dynamic page template according to the number of the pieces of service data, and then a form display page is generated based on the dynamic page template, and at least two pairs of data identifiers and page display elements are displayed on the form display page.
Step S404, adding the data identifier and the page display element into a preset form display page;
similar to the manner of adding the data identifier and the page basic element to the form maintenance page in the foregoing embodiment of the invention, in this step, the data identifier may be added to a preset dynamic page template corresponding to the form presentation page, and then the page presentation element may be added to a position corresponding to the data identifier in the dynamic page template; and finally, performing page layout and rendering on the data identifier and the page display element in the dynamic page template according to a preset layout rule.
In the embodiment of the present invention, the dynamic page template for generating the form presentation page is similar to the dynamic page template for generating the form maintenance page in the foregoing embodiment, and both the dynamic page template and the dynamic page template can be automatically added in real time according to the page basic elements/page presentation elements determined in the actual application scenario, and after the page basic elements/page presentation elements are automatically added to the dynamic page template, the form maintenance page/form presentation page can be generated based on the dynamic page template, thereby facilitating dynamic input/presentation of service data.
Step S405, displaying the business data in a form display page by using the page display element corresponding to the data identifier.
According to the embodiment of the invention, the data acquisition request containing the data identifier is sent to the front end, so that the front end can automatically add the service data corresponding to the data identifier to the database, the service system can directly acquire the service data from the database, and the service data can be completely displayed without changing a program, so that the data acquisition efficiency is improved.
In another embodiment of the present invention, there is also provided a data acquisition apparatus applied to a front end, as shown in fig. 5, the apparatus including:
a first obtaining module 11, configured to receive a data obtaining request of a service system, where the data obtaining request includes: data identification of service data to be acquired;
a first determining module 12, configured to determine a page basic element used for inputting the service data to be acquired;
the first adding module 13 is configured to add the data identifier and the page basic element to a preset form maintenance page;
and the storage module 14 is configured to store the service data into a field corresponding to the data identifier in a database if the service data input on the page basic element is received. .
In another embodiment of the present invention, there is further provided a data acquiring apparatus applied to a service system, as shown in fig. 6, the apparatus includes:
a sending module 21, configured to send a data obtaining request to a front end, where the data obtaining request includes: data identification of service data to be acquired;
a second obtaining module 22, configured to obtain service data corresponding to the data identifier from a database;
a second determining module 23, configured to determine a page display element of the service data corresponding to the data identifier;
the second adding module 24 is configured to add the data identifier and the page display element to a preset form display page;
and the display module 25 is configured to display the service data in a form display page by using the page display element corresponding to the data identifier.
In another embodiment of the present invention, an electronic device is further provided, which includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the data acquisition method applied to the front end or the data acquisition method applied to the business system when executing the program stored in the memory.
In the electronic device provided in the embodiment of the present invention, the processor implements receiving a data acquisition request of the service system by executing a program stored in the memory, where the data acquisition request includes: data identification of service data to be acquired; determining a page basic element for inputting the service data to be acquired; adding the data identification and the page basic element into a preset form maintenance page; if the business data input on the page basic element is received, the business data is stored in the fields corresponding to the data identifications in the database, the business data can be ensured to be dynamically updated according to the data identifications of the business data required to be acquired by the business system when the business system has a data acquisition requirement, and the business data is synchronized to the fields corresponding to the data identifications in the database when the form maintenance page receives the business data, so that the business system can inquire the business data corresponding to the data identifications in the database, and when the business data required by one business system changes, programs of a front end, a rear end and related business systems do not need to be changed, thereby avoiding the problem that the storage system needs to add one field from the database to correspondingly update code logics of a business layer, an entity class and a web layer due to the change of the business, the workload of developers and testers is reduced, unnecessary resource waste is reduced, time and energy are saved, and the efficiency is improved.
Or, in the electronic device provided in the embodiment of the present invention, the processor implements sending of the data acquisition request to the front end by executing the program stored in the memory, where the data acquisition request includes: data identification of service data to be acquired; acquiring service data corresponding to the data identification in a database; determining a page display element of the service data corresponding to the data identifier; adding the data identification and the page display element into a preset form display page; and displaying the service data in a form display page by using a page display element corresponding to the data identifier, so that the service system can directly acquire the service data from a database, and the service data can be completely displayed without changing a program, thereby improving the data acquisition efficiency.
The communication bus 1140 mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus 1140 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The communication interface 1120 is used for communication between the electronic device and other devices.
The memory 1130 may include a Random Access Memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The processor 1110 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the integrated circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A data acquisition method, applied to a front end, the method comprising:
receiving a data acquisition request of a service system, wherein the data acquisition request comprises: data identification of service data to be acquired;
determining a page basic element for inputting the service data to be acquired;
adding the data identification and the page basic element into a preset form maintenance page;
and if the business data input on the page basic element is received, storing the business data into a field corresponding to the data identification in a database.
2. The data acquisition method according to claim 1, wherein adding the data identifier and the page base element to a preset form maintenance page comprises:
adding the data identification to a preset dynamic page template;
adding the page basic element to a position corresponding to the data identifier in the dynamic page template;
performing page layout on the data identifier and the page basic element in the dynamic page template according to a preset layout rule;
and rendering the data identification and the page basic element in the dynamic page template.
3. The data acquisition method of claim 2, wherein performing page layout on the data identifier and the page basic element in the dynamic page template according to a preset layout rule includes:
determining the width of a first grid where the data identifier is located according to a first layout attribute parameter in a preset layout rule;
determining the width of a second grid where the page basic elements are located according to a second layout attribute parameter in a preset layout rule;
and performing page layout on the dynamic page template according to the width of the first grid and the width of the second grid.
4. The data acquisition method according to claim 3, wherein the first layout property parameter includes: determining the width of a first grid where the data identifier is located according to a first layout attribute parameter in a preset layout rule by using a first row number, a first column number and a first column number, wherein the width comprises:
determining a first grid area where the data identifier is located according to the first row number and the first column number;
calculating a first proportion of the first row number to the page width according to a preset layout rule;
determining a width of the first mesh region according to the first ratio.
5. The data acquisition method according to claim 3, wherein the second layout property parameter includes: determining the width of a second grid where the page basic elements are located according to a second layout attribute parameter in a preset layout rule by using a second row number, a second column number and a second column number, wherein the width comprises:
determining a second grid area where the page basic element is located according to the second line number and the second column number;
calculating a second proportion of the second row number to the page width according to a preset layout rule;
determining a width of the second grid area according to the second ratio.
6. The data acquisition method of claim 2, wherein rendering the data identifier and the page base element in the dynamic page template comprises:
analyzing the dynamic page template by using an analyzer according to a preset layout rule;
and rendering the data identification and the display style of the page basic element obtained by analysis.
7. A method for data acquisition, the method comprising:
sending a data acquisition request to a front end, wherein the data acquisition request comprises: data identification of service data to be acquired;
acquiring service data corresponding to the data identification in a database;
determining a page display element of the service data corresponding to the data identifier;
adding the data identification and the page display element into a preset form display page;
and displaying the business data in a form display page by using the page display element corresponding to the data identifier.
8. A data acquisition apparatus, for use in a front end, the apparatus comprising:
a first obtaining module, configured to receive a data obtaining request of a service system, where the data obtaining request includes: data identification of service data to be acquired;
the first determining module is used for determining a page basic element used for inputting the service data to be acquired;
the first adding module is used for adding the data identifier and the page basic element into a preset form maintenance page;
and the storage module is used for storing the business data into a field corresponding to the data identifier in a database if the business data input on the page basic element is received.
9. A data acquisition apparatus, applied to a service system, the apparatus comprising:
a sending module, configured to send a data acquisition request to a front end, where the data acquisition request includes: data identification of service data to be acquired;
the second acquisition module is used for acquiring the service data corresponding to the data identifier from a database;
the second determining module is used for determining the page display element of the service data corresponding to the data identifier;
the second adding module is used for adding the data identifier and the page display element into a preset form display page;
and the display module is used for displaying the business data in a form display page by using the page display element corresponding to the data identifier.
10. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the data acquisition method according to any one of claims 1 to 6 or the data acquisition method according to claim 7 when executing a program stored in a memory.
CN202010209045.5A 2020-03-23 2020-03-23 Data acquisition method and device and electronic equipment Pending CN111414405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010209045.5A CN111414405A (en) 2020-03-23 2020-03-23 Data acquisition method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010209045.5A CN111414405A (en) 2020-03-23 2020-03-23 Data acquisition method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111414405A true CN111414405A (en) 2020-07-14

Family

ID=71491633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010209045.5A Pending CN111414405A (en) 2020-03-23 2020-03-23 Data acquisition method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111414405A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112684968A (en) * 2020-12-28 2021-04-20 北京五八信息技术有限公司 Page display method and device, electronic equipment and computer readable medium
CN112862349A (en) * 2021-03-04 2021-05-28 北京同邦卓益科技有限公司 Data processing method, device and equipment based on ABS (anti-lock braking system) service data
CN112947913A (en) * 2021-02-26 2021-06-11 金蝶软件(中国)有限公司 Service change method, device and computer storage medium
CN113448580A (en) * 2021-07-15 2021-09-28 中国银行股份有限公司 Page merging method, device, server, medium and product
CN113704344A (en) * 2021-08-30 2021-11-26 康键信息技术(深圳)有限公司 Data filing method, device, equipment and storage medium based on form template

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320365A (en) * 2008-07-09 2008-12-10 金蝶软件(中国)有限公司 Method and apparatus for dynamic layout of document page
CN103699608A (en) * 2013-12-13 2014-04-02 乐视网信息技术(北京)股份有限公司 Page distribution method and device
CN103699383A (en) * 2013-12-23 2014-04-02 乐视网信息技术(北京)股份有限公司 Method and device for controlling page presentation
CN107678736A (en) * 2017-10-09 2018-02-09 用友网络科技股份有限公司 A kind of business Page Template shows method, system and computer installation
CN107918548A (en) * 2017-07-25 2018-04-17 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium that business function is realized
CN108182102A (en) * 2018-01-02 2018-06-19 武汉斗鱼网络科技有限公司 Management through figures method, apparatus and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101320365A (en) * 2008-07-09 2008-12-10 金蝶软件(中国)有限公司 Method and apparatus for dynamic layout of document page
CN103699608A (en) * 2013-12-13 2014-04-02 乐视网信息技术(北京)股份有限公司 Page distribution method and device
CN103699383A (en) * 2013-12-23 2014-04-02 乐视网信息技术(北京)股份有限公司 Method and device for controlling page presentation
CN107918548A (en) * 2017-07-25 2018-04-17 平安科技(深圳)有限公司 Method, apparatus, computer equipment and the storage medium that business function is realized
CN107678736A (en) * 2017-10-09 2018-02-09 用友网络科技股份有限公司 A kind of business Page Template shows method, system and computer installation
CN108182102A (en) * 2018-01-02 2018-06-19 武汉斗鱼网络科技有限公司 Management through figures method, apparatus and readable storage medium storing program for executing

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112684968A (en) * 2020-12-28 2021-04-20 北京五八信息技术有限公司 Page display method and device, electronic equipment and computer readable medium
CN112947913A (en) * 2021-02-26 2021-06-11 金蝶软件(中国)有限公司 Service change method, device and computer storage medium
CN112862349A (en) * 2021-03-04 2021-05-28 北京同邦卓益科技有限公司 Data processing method, device and equipment based on ABS (anti-lock braking system) service data
CN112862349B (en) * 2021-03-04 2024-04-16 北京同邦卓益科技有限公司 Data processing method, device and equipment based on ABS service data
CN113448580A (en) * 2021-07-15 2021-09-28 中国银行股份有限公司 Page merging method, device, server, medium and product
CN113448580B (en) * 2021-07-15 2024-02-20 中国银行股份有限公司 Page merging method, device, server, medium and product
CN113704344A (en) * 2021-08-30 2021-11-26 康键信息技术(深圳)有限公司 Data filing method, device, equipment and storage medium based on form template

Similar Documents

Publication Publication Date Title
CN109614424B (en) Page layout generation method, device, computing equipment and medium
CN111414405A (en) Data acquisition method and device and electronic equipment
CN113094037B (en) Interaction method, development platform, equipment and storage medium for forms and workflows
CN106708484B (en) Method and device for establishing page
US20100332439A1 (en) Apparatus and method for supporting cause analysis
CN111126019B (en) Report generation method and device based on mode customization and electronic equipment
KR101275871B1 (en) System and method for producing homepage in SaaS ENVIRONMENT, A computer-readable storage medium therefor
CN111125560A (en) Data visualization processing method and device and computer system
CN111045653B (en) System generation method and device, computer readable medium and electronic equipment
CN107943466B (en) Database access statement generation method, device and equipment
CN112560422A (en) Chart processing method, device, equipment and medium
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
CN112433712A (en) Report display method and device, computer equipment and storage medium
CN114594927A (en) Low code development method, device, system, server and storage medium
US20180004374A1 (en) Process visualization toolkit
CN112527918A (en) Data processing method and device
CN110968311B (en) Front-end page construction method and device and electronic equipment
CN114997813A (en) Flow chart generation method, device, equipment and storage medium
CN114816389A (en) Management system building method, device, equipment and medium based on meta-model
CN114064786A (en) Data display method, data display device and server
CN111159991B (en) Report modeling design device and method
CN112667716A (en) Data processing method and device, electronic equipment and storage medium
JP2988911B1 (en) Automatic program generator
CN111444392A (en) Method, device and equipment for accessing cave library
CN112579664A (en) Processing method and device for chart linkage

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