[go: up one dir, main page]

CN108153716B - Form processing method and device, storage medium and electronic equipment - Google Patents

Form processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108153716B
CN108153716B CN201711437701.1A CN201711437701A CN108153716B CN 108153716 B CN108153716 B CN 108153716B CN 201711437701 A CN201711437701 A CN 201711437701A CN 108153716 B CN108153716 B CN 108153716B
Authority
CN
China
Prior art keywords
data
business
entity
service
json
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711437701.1A
Other languages
Chinese (zh)
Other versions
CN108153716A (en
Inventor
袁天明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201711437701.1A priority Critical patent/CN108153716B/en
Publication of CN108153716A publication Critical patent/CN108153716A/en
Application granted granted Critical
Publication of CN108153716B publication Critical patent/CN108153716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Processing Of Solid Wastes (AREA)

Abstract

The disclosure relates to a form processing method, a form processing device, a storage medium and electronic equipment, which are used for solving the technical problem that the form data processing efficiency is low in the prior art. The form processing method comprises the following steps: when an instruction submitted by a form is detected, according to each business entity bound with the form, packaging business data used for updating or inserting the form into first json data corresponding to each business entity, wherein the business entities are associated with an existing business table in a database, the key value of each first json data is identification information of the business entity, and the value is an entity attribute key value pair of the business entity; adding the first json data into a data center, and transferring the first json data to a background through the data center; the business data for updating or inserting the form is stored in a business table associated with each business entity respectively by analyzing each first json data in the data center.

Description

Form processing method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a form processing method and apparatus, a storage medium, and an electronic device.
Background
The form is a data acquisition tool commonly used on a Web page, can be used for collecting information and feedback opinions of users, and is a bridge for communication between a website database manager and visitors. In the related art, the service data of each form corresponds to a service table in the database, and is displayed in a single form page. Therefore, when a business process is approved or business data is entered through a form, if the business data of one form needs to be stored in a plurality of business tables in a database, a plurality of form pages are generally used for displaying, and when a plurality of forms are submitted, data of each form is stored respectively, or a developer writes a program by himself to realize multi-table storage of the data, so that the solution is complicated, and the processing efficiency of the form data is low.
Disclosure of Invention
The present disclosure provides a form processing method, an apparatus, a storage medium, and an electronic device, so as to solve a technical problem in the prior art that the processing efficiency of form data is low.
In order to achieve the above object, a first aspect of the present disclosure provides a form processing method, including:
when an instruction submitted by a form is detected, encapsulating business data used for updating or inserting the form into first json data corresponding to each business entity according to each business entity bound with the form, wherein the business entities are associated with an existing business table in a database, the key value of each first json data is identification information of the business entity, and the value is an entity attribute key value pair of the business entity;
adding the first json data to a data center and transferring the first json data to a background through the data center;
and respectively storing the service data for updating or inserting the form into a service table associated with each service entity by analyzing each first json data in the data center.
Optionally, the step of storing the service data for updating or inserting the form into a service table associated with each service entity by parsing each first json data in the data center includes:
respectively taking the identifier of each business entity as a key value to perform hash calculation so as to search first json data serving as a value from the data center;
determining an update data set or an insertion data set of a service table associated with each service entity according to the entity attribute key value pair in each first json data;
and updating service data to each corresponding service table according to each updating data set, or inserting service data to each corresponding service table according to the inserting data set.
Optionally, the method further comprises:
when an instruction for opening the form is detected, inquiring service data according to the inquiry data set of each service table;
packaging the inquired service data into second json data corresponding to each service entity associated with the service table;
adding the second json data into a data center and transferring the second json data to a foreground through the data center;
and assigning the control of the form by the service data obtained by query by analyzing each second json data in the data center so as to show the form.
Optionally, the assigning the queried service data to the control of the form by analyzing each second json data in the data center includes:
performing hash calculation by taking the identifier of each business entity as a key value respectively so as to find second json data serving as a value from the data center;
determining the business data of the entity attribute of each business entity according to the entity attribute key value in each second json data;
and assigning a value to the control bound with the entity attribute in the form according to the service data of the entity attribute of each service entity.
Optionally, the method further comprises:
and when the form is initially drawn, binding the entity attribute in each business entity with the control in the form one by one, wherein the key value in the entity attribute key value pair is the identification information of the entity attribute, and the value is the business data of the control bound by the entity attribute.
A second aspect of the present disclosure provides a form processing apparatus, the apparatus including:
the system comprises a first data packaging module, a second data packaging module and a third data packaging module, wherein the first data packaging module is used for packaging business data used for updating or inserting a form into first json data corresponding to each business entity according to each business entity bound with the form when an instruction submitted by the form is detected, the business entities are associated with existing business tables in a database, the key value of each first json data is identification information of the business entity, and the value is an entity attribute key value pair of the business entity;
the first json data transmission module is used for adding the first json data into a data center and transmitting the first json data to a background through the data center;
and the service data storage module is used for respectively storing the service data for updating or inserting the form into a service table associated with each service entity by analyzing each first json data in the data center.
Optionally, the apparatus further comprises:
the business data query module is used for querying business data according to the query data set of each business table when an instruction for opening the form is detected;
a second data encapsulation module, configured to encapsulate the queried service data into second json data corresponding to each service entity associated with the service table;
a second json data transfer module configured to add the second json data to a data center and transfer the second json data to a foreground through the data center;
and the form display module is used for assigning the queried business data to the control of the form by analyzing each second json data in the data center so as to display the form.
Optionally, the apparatus further comprises:
and the association module is used for binding the entity attribute in each business entity with the control in the form one by one when the form is initially drawn, wherein the key value in the entity attribute key value pair is the identification information of the entity attribute, and the value is the business data of the control bound by the entity attribute.
A third aspect of the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the form processing method provided by the first aspect of the present disclosure.
A fourth aspect of the present disclosure provides an electronic device, comprising:
a computer-readable storage medium provided by a third aspect of the disclosure; and
one or more processors to execute the program in the computer-readable storage medium.
According to the technical scheme, when an instruction submitted by the form is detected, the business data used for updating or inserting the form is packaged into first json data corresponding to each business entity according to each business entity bound with the form, then the first json data is added into a data center, the first json data is transmitted to a background through the data center, and the business data used for updating or inserting the form is respectively stored into a business table associated with each business entity by analyzing each first json data in the data center. Therefore, each first json data in the data center is traversed in sequence, the analysis results of the first json data are stored in the plurality of service tables respectively, multi-table storage of form data can be achieved, and when linkage of the data exists among the forms, the processing efficiency of the form data is effectively improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a schematic flowchart of a form processing method according to an embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a form processing method according to an embodiment of the present disclosure.
Fig. 3 is a schematic diagram of a form provided by an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a form processing apparatus according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of a form processing apparatus according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of a form processing apparatus according to an embodiment of the present disclosure.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
In the background art, it has been described that in the prior art, because a multi-table storage method solution for form data is complicated, the processing efficiency of the form data is low. To solve the above problem, an embodiment of the present disclosure provides a form processing method, please refer to fig. 1, fig. 1 is a flowchart of the form processing method provided by the embodiment of the present disclosure, as shown in fig. 1, the method includes the following steps:
and S11, when the instruction submitted by the form is detected, packaging the business data used for updating or inserting the form into first json data corresponding to each business entity according to each business entity bound with the form.
Specifically, if there is a click operation in a specific area of the form or a preset time period is taken as a period, an instruction for instructing the form to submit may be generated. For example, the preset duration is 5s, an instruction for submitting a form is generated every 5s, and when the instruction is detected, the service data for updating or inserting the form may be encapsulated into the first json data corresponding to each service entity according to each service entity bound to the form. The json format data is a lightweight data exchange format, has a simple and clear hierarchical structure, can be completely independent of a text format of a programming language to store and represent data, is easy to read and write, and is convenient for machine analysis and generation. In the process of actually creating a business entity, the business entity is associated with a business table existing in a database, and the table structure of one possible business entity is shown in table 1:
table 1 table structure of service entities
Figure BDA0001526106110000061
Illustratively, the service entity identifier may be a customized identifying field, which is one of the attributes of the service entity, and one possible service entity attribute table structure is shown in table 2:
table 2 service entity attribute table structure
Figure BDA0001526106110000062
And packaging the service data of the form into first json data by combining the table 1 and the table 2, wherein the key value of the obtained first json data is the identification information of the corresponding service entity, and the value is the entity attribute key value pair of the service entity.
And S12, adding the first json data into the data center, and transferring the first json data to the background through the data center.
S13, storing the service data for updating or inserting the form into the service table associated with each service entity respectively by parsing each first json data in the data center.
In a possible implementation manner, the first json data in the data center is parsed into service data for updating or inserting a form, and the service data is stored in a service table associated with a service entity bound to the form, and the specific method steps are as follows: and respectively performing hash calculation by taking the identifier of each service entity as a key value so as to find first json data serving as a value from a data center, determining an update data set or an insertion data set of a service table associated with each service entity according to an entity attribute key value pair in each first json data, and updating service data to each corresponding service table according to each update data set or inserting service data into each corresponding service table according to the insertion data set.
By adopting the method, each first json data in the data center is analyzed, each first json data in the data center is sequentially traversed, the analysis results of the first json data are respectively stored in a plurality of service tables, multi-table storage of form data can be realized, the service data can be rapidly updated according to the identification information of the service entities and the entity attribute key value pairs thereof, and the processing efficiency of the form data is effectively improved when data linkage exists among the forms.
Fig. 2 is a flowchart of a form processing method provided by an embodiment of the present disclosure, and as shown in fig. 2, the method includes the following steps:
and S21, binding the entity attributes in each business entity with the controls in the form one by one when the form is drawn initially.
In the process of actually creating the business entities, a plurality of business entities are created according to an existing business table, and the attributes of the business entities are bound with the controls in the table, wherein key values in the key value pairs of the entity attributes are identification information of the entity attributes, and value is business data of the controls bound by the entity attributes. Illustratively, fig. 3 is a schematic diagram of a form provided by an embodiment of the present disclosure, and referring to fig. 3, the form includes two data fields: the basic personal information on the dotted line and the publication information under the dotted line correspond to a business entity in each data field. For example, referring to the table structures related to the business entities shown in table 1 and table 2, the business entities corresponding to the basic personal information may include a plurality of business entity attributes, and four form controls of name, gender, graduation institution, and title are respectively bound; the business entity corresponding to the publication information may include a plurality of business entity attributes, and four form controls of journal category, author, publication, and impact factor are respectively bound.
It should be noted that, on the control of each binding entity, a data bind is recorded in the source code as "entry _ id, entry _ property", where the entry _ id (service entity identifier) is a key value for searching for a data store, the data store is used as json data and is also a key-value pair, and the key value of the key-value pair is the property _ id (attribute id), so that the service data of the bound control can be found according to the service entity attribute identifier.
And S22, when the instruction submitted by the form is detected, packaging the business data used for updating or inserting the form into first json data corresponding to each business entity according to each business entity bound with the form.
And S23, adding the first json data into the data center, and transferring the first json data to the background through the data center.
S24, storing the service data for updating or inserting the form into the service table associated with each service entity respectively by parsing each first json data in the data center.
And S25, when the command of opening the form is detected, inquiring the service data according to the inquiry data set of each service table.
Specifically, according to the binding relationship between the business entity and the form control, a corresponding data set is generated in the business table, each business table may have a query data set, an update data set, or an insert data set, and when the form control binds a plurality of entities, that is, the form data is stored in a plurality of business tables, a plurality of data sets are generated, as shown in table 3, the data sets are generated by performing multi-table storage on the form data according to an exemplary embodiment:
TABLE 3 data set
Name (R) Association control Type (B)
body _0_ personal information _ query body_0 Query Personal information
body _0_ personal information _ Modify body_0 Modifying Personal information
body _0_ personal information _ Add-on body_0 Adding new Personal information
body _0_ DIZDATA _ query body_0 Query DIZDATA
body _0_ DIZDATA _ Modify body_0 Modifying DIZDATA
body _0_ DIZDATA _ NEW ADD body_0 Adding new DIZDATA
When the instruction for opening the form is detected, the instruction for opening the form can be an instruction generated by clicking a specified area range of the form to trigger a Click event, and then business data is inquired from the inquiry data set of the corresponding business table according to the identification information of the form.
And S26, encapsulating the service data obtained by query into second json data of each service entity associated with the corresponding service table.
Exemplarily, the service data obtained by querying from the query dataset is encapsulated, and after the encapsulation, second json data of each service entity associated with the service table can be obtained, where a key value of the second json data is identification information of a corresponding service entity, and a value is an entity attribute key value pair of the service entity.
And S27, adding the second json data into the data center, and transferring the second json data to the foreground through the data center.
And S28, assigning values to the control of the form according to the business data obtained by query by analyzing each second json data in the data center so as to display the form.
The process of assigning the queried service data to the control of the form may specifically be: and respectively performing hash calculation by taking the identifier of each business entity as a key value so as to find second json data serving as a value from the data center, determining the business data of the entity attribute of each business entity according to the entity attribute key value in each second json data, assigning a value to a control bound with the entity attribute in the form according to the business data of the entity attribute of each business entity, and performing self-rendering through the control to complete the display of the form.
By adopting the method, the assignment of the control of each bound entity attribute is carried out by traversing and analyzing the second json data stored in the data center, and when the inquired business data is packaged as the second json data of each business entity associated with the business table and fed back to the foreground, the business data of the entity attribute of each business entity can be determined according to the second json data so as to rapidly complete the assignment of the form control. Compared with the existing processing mode that a plurality of requests need to be sent when the form acquires the data of a plurality of service tables and the data of one service table is loaded each time, the form data can be loaded more efficiently, the performance consumption of a form engine is reduced, and the form data redisplay efficiency is improved.
Fig. 4 is a block diagram of a form processing apparatus provided by the embodiment of the present disclosure, and the apparatus 400 may be implemented as part of or all of an electronic device through software, hardware, or a combination of both. Referring to fig. 4, the apparatus 400 includes:
a first data encapsulation module 410, configured to, when an instruction submitted by a form is detected, encapsulate, according to each service entity bound to the form, service data used for updating or inserting the form into first json data corresponding to each service entity, where the service entity is associated with a service table existing in a database, a key value of each first json data is identification information of the service entity, and a value is an entity attribute key-value pair of the service entity;
a first json data transfer module 420, configured to add the first json data to the data center, and transfer the first json data to a background through the data center;
and the service data storage module 430 is configured to store the service data for updating or inserting the form into the service table associated with each service entity by parsing each first json data in the data center.
The service data storage module 430 may be specifically configured to perform hash calculation by using the identifier of each service entity as a key value, so as to find the first json data serving as a value from the data center; determining an update data set or an insertion data set of a business table associated with each business entity according to the entity attribute key value pair in each first json data; and updating the service data to each corresponding service table according to each updating data set, or inserting the service data into each corresponding service table according to the inserting data set.
By adopting the device, each first json data in the data center is sequentially traversed by analyzing each first json data in the data center, and the analysis result of the first json data is respectively stored in a plurality of service tables, so that multi-table storage of form data can be realized, the service data can be rapidly updated according to the identification information of the service entities and the entity attribute key value pairs thereof, and the processing efficiency of the form data is effectively improved when data linkage exists among the forms.
Fig. 5 is a block diagram of a form processing apparatus provided by the embodiment of the present disclosure, and the apparatus 400 may be implemented as part of or all of an electronic device through software, hardware, or a combination of both. Referring to fig. 5, the apparatus 400 may further include:
the service data query module 450 is configured to query the service data according to the query data set of each service table when detecting the instruction to open the form;
a second data encapsulation module 460, configured to encapsulate the queried service data into second json data of each service entity associated with the corresponding service table;
a second json data transfer module 470 to add the second json data to the data center and to transfer the second json data to the foreground through the data center;
the form presentation module 480 is configured to assign a value to a control of the form according to the queried service data by analyzing each second json data in the data center, so as to present the form.
The form presentation module 480 may be specifically configured to perform hash calculation by using the identifier of each service entity as a key value, so as to find the second json data serving as a value from the data center; determining the business data of the entity attribute of each business entity according to the entity attribute key value in each second json data; and assigning a value to the control bound with the entity attribute in the form according to the service data of the entity attribute of each service entity.
Optionally, the apparatus 400 further comprises:
the association module 440 is configured to, when the form is initially drawn, bind the entity attribute in each service entity with the control in the form one by one, where a key value in the entity attribute key value pair is identification information of the entity attribute, and a value is service data of the control bound by the entity attribute.
By adopting the device, the assignment of the control of each bound entity attribute is performed by traversing and analyzing the second json data stored in the data center, and when the inquired business data is packaged into the second json data of each business entity associated with the business table and fed back to the foreground, the business data of the entity attribute of each business entity can be determined according to the second json data so as to rapidly complete the assignment of the form control. Compared with the existing processing mode that a plurality of requests need to be sent when the form acquires the data of a plurality of service tables and the data of one service table is loaded each time, the form data can be loaded more efficiently, the performance consumption of a form engine is reduced, and the form data redisplay efficiency is improved.
Fig. 6 is a block diagram of a form processing apparatus 600 according to an embodiment of the present disclosure. As shown in fig. 6, the form processing apparatus 600 may include: a processor 601, a memory 602, multimedia components 603, input/output (I/O) interfaces 604, and communication components 605.
The processor 601 is configured to control the overall operation of the form processing apparatus 600, so as to complete all or part of the steps in the form processing method. The memory 602 is used to store various types of data to support operation at the form processing apparatus 600, which may include, for example, instructions for any application or method operating on the form processing apparatus 600, as well as application-related data.
The Memory 602 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
The multimedia component 603 may include a screen, which may be, for example, a touch screen, and an audio component for outputting and/or inputting audio signals. The received audio signal may further be stored in the memory 602 or transmitted through the communication component 605. The audio assembly also includes at least one speaker for outputting audio signals.
The I/O interface 604 provides an interface between the processor 601 and other interface modules, which may be keyboards, buttons, etc. These buttons may be virtual buttons or physical buttons.
The communication component 605 is used for wired or wireless communication between the form processing apparatus 600 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 605 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the form Processing apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components, for performing the above form Processing method.
The disclosed embodiments provide a computer readable storage medium comprising program instructions, such as a memory 602 comprising program instructions, having stored thereon one or more computer programs executable by a processor 601 of a form processing apparatus 600 to perform the form processing methods provided by the disclosed embodiments.
The disclosed embodiments also provide an electronic device, which includes the computer-readable storage medium provided by the above-described disclosed embodiments, and one or more processors configured to execute the program in the computer-readable storage medium. For details, reference is made to the corresponding description above, and details are not repeated here.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (8)

1. A method of form processing, the method comprising:
when an instruction submitted by a form is detected, encapsulating business data used for updating or inserting the form into first json data corresponding to each business entity according to each business entity bound with the form, wherein the business entities are associated with an existing business table in a database, the key value of each first json data is identification information of the business entity, and the value is an entity attribute key value pair of the business entity;
adding the first json data to a data center and transferring the first json data to a background through the data center;
respectively storing the service data for updating or inserting the form into a service table associated with each service entity by analyzing each first json data in the data center;
the method further comprises the following steps:
when an instruction for opening the form is detected, inquiring service data according to the inquiry data set of each service table;
packaging the inquired service data into second json data corresponding to each service entity associated with the service table;
adding the second json data into a data center and transferring the second json data to a foreground through the data center;
and assigning the control of the form by the service data obtained by query by analyzing each second json data in the data center so as to show the form.
2. The method of claim 1, wherein the storing the service data for updating or inserting the form into the service table associated with each service entity by parsing each of the first json data in the data center comprises:
respectively taking the identifier of each business entity as a key value to perform hash calculation so as to search first json data serving as a value from the data center;
determining an update data set or an insertion data set of a service table associated with each service entity according to the entity attribute key value pair in each first json data;
and updating service data to each corresponding service table according to each updating data set, or inserting service data to each corresponding service table according to the inserting data set.
3. The method of claim 1, wherein the assigning the queried business data to the form control by parsing each of the second json data in the data center comprises:
performing hash calculation by taking the identifier of each business entity as a key value respectively so as to find second json data serving as a value from the data center;
determining the business data of the entity attribute of each business entity according to the entity attribute key value in each second json data;
and assigning a value to the control bound with the entity attribute in the form according to the service data of the entity attribute of each service entity.
4. The method according to any one of claims 1 to 3, further comprising:
and when the form is initially drawn, binding the entity attribute in each business entity with the control in the form one by one, wherein the key value in the entity attribute key value pair is the identification information of the entity attribute, and the value is the business data of the control bound by the entity attribute.
5. A form processing apparatus, the apparatus comprising:
the system comprises a first data packaging module, a second data packaging module and a third data packaging module, wherein the first data packaging module is used for packaging business data used for updating or inserting a form into first json data corresponding to each business entity according to each business entity bound with the form when an instruction submitted by the form is detected, the business entities are associated with existing business tables in a database, the key value of each first json data is identification information of the business entity, and the value is an entity attribute key value pair of the business entity;
the first json data transmission module is used for adding the first json data into a data center and transmitting the first json data to a background through the data center;
a service data storage module, configured to separately store, in a service table associated with each service entity, the service data used for updating or inserting the form by analyzing each first json data in the data center;
the device further comprises:
the business data query module is used for querying business data according to the query data set of each business table when an instruction for opening the form is detected;
a second data encapsulation module, configured to encapsulate the queried service data into second json data corresponding to each service entity associated with the service table;
a second json data transfer module configured to add the second json data to a data center and transfer the second json data to a foreground through the data center;
and the form display module is used for assigning the queried business data to the control of the form by analyzing each second json data in the data center so as to display the form.
6. The apparatus of claim 5, further comprising:
and the association module is used for binding the entity attribute in each business entity with the control in the form one by one when the form is initially drawn, wherein the key value in the entity attribute key value pair is the identification information of the entity attribute, and the value is the business data of the control bound by the entity attribute.
7. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
8. An electronic device, comprising:
the computer-readable storage medium recited in claim 7; and
one or more processors to execute the program in the computer-readable storage medium.
CN201711437701.1A 2017-12-26 2017-12-26 Form processing method and device, storage medium and electronic equipment Active CN108153716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711437701.1A CN108153716B (en) 2017-12-26 2017-12-26 Form processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711437701.1A CN108153716B (en) 2017-12-26 2017-12-26 Form processing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108153716A CN108153716A (en) 2018-06-12
CN108153716B true CN108153716B (en) 2021-05-04

Family

ID=62462016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711437701.1A Active CN108153716B (en) 2017-12-26 2017-12-26 Form processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108153716B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162301B (en) * 2019-04-01 2023-07-04 贵州力创科技发展有限公司 Form rendering method, form rendering device and storage medium
CN111027295B (en) * 2019-11-11 2023-12-12 浙江大搜车软件技术有限公司 Data processing method, device, computer equipment and storage medium
CN112163485B (en) * 2020-09-18 2023-11-24 杭州海康威视系统技术有限公司 Data processing method and device, database system and electronic equipment
CN112699649A (en) * 2021-01-04 2021-04-23 广东金赋科技股份有限公司 Method for filling in word form
CN113010473B (en) * 2021-03-05 2023-02-28 山东英信计算机技术有限公司 A method and device for editing YAML files
CN113342782B (en) * 2021-06-29 2023-03-24 山东旗帜信息有限公司 Data monitoring method, device and medium based on expressway

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373339B2 (en) * 2004-07-06 2008-05-13 Sap Ag Method and system for linking personnel, organizational, and budgetary elements
CN101997732A (en) * 2009-08-14 2011-03-30 华为技术有限公司 Method, device and system for inquiring service
CN104008209A (en) * 2014-06-20 2014-08-27 南京大学 Reading-writing method for MongoDB cluster geographic data stored with GeoJSON format structuring method
CN106570054A (en) * 2016-09-23 2017-04-19 浪潮电子信息产业股份有限公司 Method for persisting Web form data
CN107423061A (en) * 2017-07-12 2017-12-01 江苏速度信息科技股份有限公司 A kind of list generation method based on ISON data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7373339B2 (en) * 2004-07-06 2008-05-13 Sap Ag Method and system for linking personnel, organizational, and budgetary elements
CN101997732A (en) * 2009-08-14 2011-03-30 华为技术有限公司 Method, device and system for inquiring service
CN104008209A (en) * 2014-06-20 2014-08-27 南京大学 Reading-writing method for MongoDB cluster geographic data stored with GeoJSON format structuring method
CN106570054A (en) * 2016-09-23 2017-04-19 浪潮电子信息产业股份有限公司 Method for persisting Web form data
CN107423061A (en) * 2017-07-12 2017-12-01 江苏速度信息科技股份有限公司 A kind of list generation method based on ISON data

Also Published As

Publication number Publication date
CN108153716A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN108153716B (en) Form processing method and device, storage medium and electronic equipment
US8645355B2 (en) Mapping Uniform Resource Locators of different indexes
CN110221901A (en) Container asset creation method, apparatus, equipment and computer readable storage medium
CN109614085B (en) Function realizing method, device, computer equipment and storage medium
US20150302110A1 (en) Decoupling front end and back end pages using tags
CN107391528B (en) Front-end component dependent information searching method and equipment
CN112256772A (en) Data service method, device and readable storage medium
CN107656729A (en) Updating device, method and the computer-readable recording medium of List View
CN105550206A (en) Version control method and device for structured query language
CN103827778A (en) Enterprise tools enhancements
CN106055567A (en) Providing app store search results
EP3486798A1 (en) Reporting and data governance management
CN103984549A (en) General paging query method and system based on SSH framework
CN110737662B (en) Data analysis method, device, server and computer storage medium
CN117010358A (en) Message card generation method, device, computer equipment and storage medium
US20210149870A1 (en) Method, apparatus, and computer program product for improved tracking of state data
CN114003818A (en) Page recommendation method, device, server and storage medium
CN113190236A (en) HQL script checking method and device
CN118427218A (en) State information configuration method and device, electronic equipment, storage medium and computer program product
US9524076B2 (en) Web page management method and apparatus and storage medium thereof
US9779387B2 (en) Business-to-business document user interface and integration design
CN108629003B (en) Content loading method and device
US10318524B2 (en) Reporting and data governance management
CN116166634A (en) Data blood relationship graph construction method and device, storage medium and electronic equipment
US9460139B2 (en) Distributed storage system with pluggable query processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant