CN111143354B - Form submitting method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN111143354B
CN111143354B CN201911250656.8A CN201911250656A CN111143354B CN 111143354 B CN111143354 B CN 111143354B CN 201911250656 A CN201911250656 A CN 201911250656A CN 111143354 B CN111143354 B CN 111143354B
Authority
CN
China
Prior art keywords
data item
data
submitted
name
home
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
CN201911250656.8A
Other languages
Chinese (zh)
Other versions
CN111143354A (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.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information 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 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN201911250656.8A priority Critical patent/CN111143354B/en
Publication of CN111143354A publication Critical patent/CN111143354A/en
Application granted granted Critical
Publication of CN111143354B publication Critical patent/CN111143354B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support

Landscapes

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

Abstract

The invention discloses a form submitting method, a form submitting device, electronic equipment and a storage medium. In the technical scheme of the invention, if the same data item exists in a plurality of forms, different attribute marks are only needed to be carried out on the form to which the data item belongs, and the different forms can use the same data item according to the attribute marks, so that the same data item in the plurality of forms can be shared for use, and the problem of data redundancy is avoided.

Description

Form submitting method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of software development technologies, and in particular, to a form submitting method, a form submitting device, an electronic device, and a storage medium.
Background
The form refers to a form unit for collecting data, one form is usually composed of a plurality of data items, and the data collected by the form are respectively stored in the corresponding data items according to different types. In general, in order to facilitate the server to verify the data on the web page, it is generally necessary to set a form in the web page, and after the form collects the data, the web page submits the form to the server, and the server verifies the name of the data item and specific data in the data item.
For example, when a user name and a password are required for displaying login on a web page login page, a user name data item and a password data item exist in a form corresponding to the web page, after the user fills in the user name and the password respectively, the user name is stored in the user name data item of the form corresponding to the web page, and the password is stored in the password data item. After the user name and the password are filled in, the user clicks to log in, the form is submitted to the server, and the server verifies whether the user name and the password logged in to the webpage are correct.
Currently, technicians often use JS (JavaScript, scripting language) to convert data items in a form into objects with JS logic, and then submit the data items with JS logic to a server using Ajax (Asynchronous JavaScript And XML, asynchronous JavaScript and XML (Extensible Markup Language, extensible markup language)). However, the method of converting by JS requires that each submitted form must be independent, each data item in the form is JS-encoded during the submission, if there is one identical data item in multiple forms submitted to the server, the data item must be presented in each form at the same time, and submitting multiple forms requires performing multiple JS encoding on the data item, resulting in a problem of data redundancy.
Disclosure of Invention
The invention provides a form submitting method, a form submitting device, electronic equipment and a storage medium, which solve the problem of data redundancy when a plurality of forms are submitted at present.
In a first aspect, the present invention provides a form submitting method, including:
extracting data items in all forms to be submitted, wherein the data items are different from each other, and each form to be submitted has a form name;
adding attribute marks for each data item, wherein the attribute marks comprise a home form mark and a data name mark, the home form mark is used for representing a home form of the data item, the data name mark is used for representing a data item name used in the home form to which the data item belongs, and the home form is a form to be submitted containing the data item;
forming a corresponding data item list for each form to be submitted according to the attribute marks and the form names of the forms to be submitted;
and acquiring a submitting address of the form to be submitted, and submitting the corresponding data item list to a designated position.
With reference to the first aspect, in a possible implementation manner of the first aspect, the step of extracting data items in all forms to be submitted includes:
integrating all data items in the form to be submitted into a data item set;
judging whether a shared data item exists in a data item set, wherein the shared data item refers to a data item with a plurality of same data items in the data item set;
if the shared data item exists in the data item set, deleting redundant data items, and only reserving one data item in the same data item, so that each data item in the data item set is different from each other.
With reference to the first aspect, in a possible implementation manner of the first aspect, the step of adding an attribute flag to each data item includes:
determining a home form of each data item, wherein the number of the home forms of each data item is several;
generating a different home form tag for each data item using the form name of each home form;
a different data name tag is generated for each data item using the data item name used in its home form and the form name of its home form for each data item.
With reference to the first aspect, in a possible implementation manner of the first aspect, the step of forming a corresponding data item list for each form to be submitted according to the attribute flag and the form name of the form to be submitted includes:
selecting all data items belonging to the form to be submitted from the data items subjected to attribute marking, wherein a pair of home form marks and data name marks containing the form names exist in each data item belonging to the form to be submitted;
and forming a data item list of the form to be submitted by utilizing the data item names of all the data items belonging to the form to be submitted.
With reference to the first aspect, in a possible implementation manner of the first aspect, after forming the data item list of the to-be-submitted form by using the data item names of all the data items belonging to the to-be-submitted form, the method further includes:
acquiring a data item value in each data item in the data item list;
the acquired data item value and the corresponding data item name form a key value object, wherein the data item name and the data item value in the key value object have an association relation;
the content of each data item is saved in the form of a key-value object in the list of data items.
In a second aspect, the present invention provides a form submitting device, comprising:
the extraction module is used for extracting data items in all forms to be submitted, wherein the data items are different from each other, and each form to be submitted has a form name;
the marking module is used for adding attribute marks for each data item, wherein the attribute marks comprise a home form mark and a data name mark, the home form mark is used for representing a home form of the data item, the data name mark is used for representing a data item name used in the home form to which the data item belongs, and the home form is a form to be submitted and contains the data item;
the data item list forming module is used for forming a corresponding data item list for each form to be submitted according to the attribute marks and the form names of the forms to be submitted;
and the submitting module is used for acquiring the submitting address of the form to be submitted and submitting the corresponding data item list to a designated position.
With reference to the second aspect, in a possible implementation manner of the second aspect, the extracting module includes:
the integration unit is used for integrating the data items in all the forms to be submitted into a data item set;
the judging unit is used for judging whether a shared data item exists in the data item set, wherein the shared data item refers to a data item with a plurality of same data items in the data item set; if the shared data item exists in the data item set, deleting redundant data items, and only reserving one data item in the same data item, so that each data item in the data item set is different from each other.
With reference to the second aspect, in a possible implementation manner of the second aspect, the marking module includes:
the home form determining unit is used for determining a home form of each data item, and the number of the home forms of each data item is several;
a home form mark generating unit for generating different home form marks for each data item by using the form name of each home form;
and the data name label generating unit is used for generating different data name labels for each data item by using the data item name used in the attribution form of each data item and the form name of the attribution form of each data item.
With reference to the second aspect, in a possible implementation manner of the second aspect, the data item list forming module includes:
the selecting unit is used for selecting all data items belonging to the form to be submitted from the data items subjected to attribute marking, and a pair of home form marks and data name marks containing the form names exist in each data item belonging to the form to be submitted;
and the data item list generating unit is used for forming a data item list of the form to be submitted by utilizing the data item names of all the data items belonging to the form to be submitted.
With reference to the second aspect, in a possible implementation manner of the second aspect, the method further includes:
the data item value acquisition module is used for acquiring the data item value of each data item in the data item list;
the key value object forming module is used for forming a key value object by the obtained data item value and the corresponding data item name, and the data item name and the data item value in the key value object have an association relation;
and the key value object storage module is used for storing the content of each data item in the data item list in the form of a key value object.
In a third aspect, the present invention provides an electronic device, comprising:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the form submitting method of the first aspect.
In a fourth aspect, the present invention also provides a storage medium having a computer program stored therein, the form submitting device executing the form submitting method of the first aspect when the computer program is executed by at least one processor of the form submitting device.
According to the technical scheme, the form submitting method, the form submitting device, the electronic equipment and the storage medium are provided, all data items of all forms to be submitted are firstly obtained, then attribute marks are added for each data item, a corresponding data item list is formed for each form to be submitted according to the attribute marks and the form names of the forms to be submitted, and only the data items in the data item list need to be submitted when the forms are submitted. In the technical scheme of the invention, if the same data item exists in a plurality of forms, different attribute marks are only needed to be carried out on the form to which the data item belongs, and the different forms can use the same data item according to the attribute marks, so that the same data item in the plurality of forms can be shared for use, and the problem of data redundancy is avoided.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a flowchart of a form submission method provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of an integrated data item set according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another form submission provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of a data item list according to an embodiment of the present invention;
FIG. 5 is a block diagram of a form submitting device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
At present, a technician usually converts data items in a form to be submitted to a server into objects with JS logic by utilizing JS, however, the method for converting by utilizing JS requires that each submitted form is independent, each data item in the form is subjected to JS coding during submitting, if one and the same data item exists in a plurality of forms submitted to the server, the data item is required to be simultaneously present in each form, and a plurality of forms are submitted, so that the data item is required to be subjected to multiple JS coding, and the problem of data redundancy is caused. Therefore, the invention provides a form submitting method, if the same data item exists in a plurality of forms, different attribute marks are only needed to be carried out on the form to which the data item belongs, and the different forms can use the same data item according to the attribute marks, so that the same data item in the plurality of forms can be shared for use, and the problem of data redundancy is avoided.
Fig. 1 is a flowchart of a form submitting method according to an embodiment of the present invention. As shown in fig. 1, the form submitting method provided by the embodiment of the invention includes the following steps:
s101, extracting data items in all to-be-submitted forms, wherein the data items are different from each other, and each to-be-submitted form has a form name. All data in the webpage are stored in the form to be submitted, and the data are correspondingly stored in different data items. If a plurality of forms to be submitted are provided, in order to avoid directly submitting a plurality of complete forms, the data items in all the forms to be submitted need to be extracted independently, the data items specifically comprise data item names and specific data item values in the data items, and for two or more data items with the same data item values, only one data item is reserved, and the rest data items with the same data item values are deleted, so that all the extracted data items are ensured to be different from each other. Specifically, the steps for extracting the data items in all the forms to be submitted in the embodiment of the invention are as follows:
s201, integrating all data items in the form to be submitted into a data item set, so that all data items are included in the data item set, and the data items may have the same data item value.
S202, judging whether a shared data item exists in a data item set, wherein the shared data item refers to a data item with a plurality of identical data items in the data item set, and in the embodiment of the invention, the identical data item refers to the data item with identical data item values, for example, one data item stores data 2019.7.30, and the other data item stores data 2019.7.30, which indicates that the two data item values are identical.
S203, if the shared data items exist in the data item set, deleting redundant data items, and only reserving one data item in the same data items, so that each data item in the data item set is different from each other. In the embodiment of the invention, a lot of shared data items may exist, so that the operation of deleting redundant data items is needed for each shared data item, and each data item is ensured to be different from each other.
FIG. 2 is a schematic diagram of an integrated data item set according to an embodiment of the present invention. As shown in fig. 2, a plurality of data items exist in the form to be submitted 1 and the form to be submitted 2, corresponding data is stored in each data item, 3 identical data items A, B and C exist in the form to be submitted 1 and the form to be submitted 2, after step S201, a data item set a may be obtained, and the data items in the form to be submitted 1 and the form to be submitted 2 are included in the data item set a, where the shared data items include two data items a, two data items B and two data items C, redundant data items in the shared data items are deleted, and only one data item a, one data item B and one data item C are reserved in the data item set a, so that the data items in the data item set a are different from each other.
It should be noted that, the form of the data item set provided in the embodiment of the present invention is not the only process capable of implementing the deletion of the redundant shared data item, the data item set only has an intermediate transition function, and other ways capable of implementing the deletion of the redundant shared data item may also belong to the protection scope of the present invention.
S102, adding attribute marks for each data item, wherein the attribute marks comprise a home form mark and a data name mark, the home form mark is used for representing a home form of the data item, the data name mark is used for representing a data item name used in the home form to which the data item belongs, and the home form is a form to be submitted containing the data item.
In the embodiment of the invention, the content of the whole form needs to be submitted in the form of separate data items, so that the data items need to be marked, each data item may belong to only one form to be submitted or may belong to a plurality of forms to be submitted, and marking the data item with the home form is beneficial to determining the home condition of the data item, for example, the data item A belongs to only form 1 to be submitted, the data item B belongs to both form 1 to be submitted and form 2 to be submitted, then the home form of the data item A is marked as belong=1, and the home form of the data item B is marked as belong=1 and belong=2. If a data item belongs to multiple forms to be submitted respectively, the names of the data items in different home forms may also be different, the data name label is favorable for determining the names of the data items when the data items belong to different forms to be submitted, for example, the data item name used when the data item a belongs to the form to be submitted 1 is useid, the data name of the data item a is labeled as 1_name=useid, the data item name used when the data item B belongs to the form to be submitted 1 is useid 1, the data item name used when the data item B belongs to the form to be submitted 2 is useid 2, and the data name of the data item B is labeled as 1_name=useid 1 and 2_name=useid 2.
The specific steps of adding attribute marks for each data item in the embodiment of the invention are as follows:
s301, determining a home form of each data item, wherein a plurality of home forms of each data item are provided. In the embodiment of the invention, the attribution form mark of each to-be-submitted form can be determined by judging whether the to-be-marked data item exists in each to-be-submitted form, and if one data item exists in a plurality of to-be-submitted forms at the same time, the attribution form mark of the data item is a plurality of, and the attribution form marks respectively correspond to the plurality of to-be-submitted forms.
S302, generating different attribution form marks for each data item by using the form name of each attribution form; as described above, the form name of the form 1 to be submitted is 1, the form name of the form 2 to be submitted is 2, and if the data item B belongs to the form 1 to be submitted and the form 2 to be submitted at the same time, the home form labels of the data item B are belong=1 and belong=2, respectively.
S303, generating different data name marks for each data item by using the data item name used in the attribution form of each data item and the form name of the attribution form of each data item. Since each form to be submitted corresponds to a different web page, it may be that there are identical data items between forms to be submitted, but the data item names of the identical data items in different forms to be submitted may be different due to the different web pages. As described above, the data item B belongs to the form 1 to be submitted with the data item name userid1, and the data item B belongs to the form 2 to be submitted with the data item name userid2, that is, when the same data item B belongs to different forms to be submitted, the data item names are different, and in order to distinguish the names of the data items B in different home forms, the data item B respectively generates the data name labels 1_name=userid 1 and 2_name=userid 2, where it can be seen that the form names in the form to be submitted and the data item names of the data items have a certain association relationship.
The name of the data item belonging to the form to be submitted is the name of the data item in the form to be submitted when the form to be submitted is submitted. In the invention, the form is submitted in the form of an independent data item, so that when the data item is submitted, the name of the data item in the corresponding form to be submitted and specific data in the data item are submitted to a designated position.
S103, forming a corresponding data item list for each form to be submitted according to the attribute marks and the form names of the forms to be submitted. Since the attribute mark comprises the home form mark and the data name mark, all data items belonging to a certain form to be submitted and the data item names which should be used when the data items belong to the form to be submitted can be obtained according to the home form mark and the data name mark.
In the embodiment of the invention, a corresponding data item list is formed for each form to be submitted according to the following steps:
s401, all data items belonging to the form to be submitted are selected from the data items subjected to attribute marking, and a pair of home form marking and data name marking containing the form name exists in each data item belonging to the form to be submitted. In the embodiment of the invention, the home form mark is expressed in the form of belong=x, wherein X represents the form name of the home form, if the form name of the form to be submitted is "3", whether the home form mark in the form of belong=3 exists in the home form mark of the data item can be judged, and if so, the data item can be determined to be the data item belonging to the form to be submitted. In addition, when the data items belong to a form to be submitted, the data name mark used when the data items belong to the form is provided, and the data name mark and the home form mark have a certain association relation, namely when all the data items belonging to the form to be submitted are selected, the names of the data items when the data items belong to the form to be submitted are also easily obtained. For example, the data name used when the data item belongs to the form 3 to be submitted is 3_name=date of birth, and then the corresponding data item name when the data item belongs to the form 3 to be submitted is "date of birth" is easily obtained.
S402, forming a data item list of the form to be submitted by using the data item names of all the data items belonging to the form to be submitted. The data item list in the embodiment of the invention is different from the form, has no fixed structure of the form, can be freely formed, and only needs to have data items in the data item list. The data items in the data item list in the embodiment of the invention can be specifically shown in the form of the names of the data items, but the data items themselves are stored with data, and when the form to be submitted is submitted, the data item list corresponding to the form to be submitted can be directly submitted to a designated position, and the server can directly verify the data items.
In the embodiment of the invention, the plurality of to-be-submitted forms can correspond to a plurality of different webpages, and when the plurality of different webpages need to be verified to the server, the to-be-submitted forms corresponding to the different webpages can be submitted according to the method in the embodiment of the invention.
However, it should be noted that, in the embodiment of the present invention, a plurality of forms to be submitted may be understood that forms formed by the same piece of web page data need to be submitted to different locations, but data needed by different locations are different, so that different data item lists may be formed again for different submitting locations for submitting. Fig. 3 is a schematic diagram of another form submission provided in the embodiment of the present invention, as shown in fig. 3, a web page M needs to be submitted to a department C and a department D, where the web page M corresponds to one form M, where there are a plurality of data items in the form M, the department C only needs data of the data item 1, the data item 2 and the data item 5, and the department D only needs data of the data item 3 and the data item 5.
Therefore, the form submitting method in the embodiment of the invention can split the form into the independent data items for submitting, if the same data item exists in the multiple forms, the same data item can be used by the different forms according to the attribute marks only by carrying out different attribute marks on the form to which the data item belongs, and thus, the same data item in the multiple forms can be shared for use, and the problem of data redundancy is avoided.
In addition, in the embodiment of the present invention, a key object may be established for each data item, and the key object of the data item is stored between the data item lists, so as to quickly find a specific data value in the data item according to the name of the data item or quickly find the name of the data item according to the specific data value in the data item, and fig. 4 is a schematic diagram of a data item list provided in the embodiment of the present invention, and as shown in fig. 4, the key object of each data item is stored in the data item list, for example, the birth year-1998.2.3, the name-Zhang three, the sex-man, and so on, and the steps for forming the data item list are as follows:
s501, acquiring a data item value in each data item in the data item list. The data item value in the embodiment of the invention refers to a specific data value in the data item, for example, the data item value in the data item of "birth year and month" is 1998.2.3, the data item value in the data item of "name" is Zhang Sanand the data item value in the data item of "sex" is Man.
S502, the acquired data item value and the corresponding data item name form a key value object, wherein the data item name and the data item value in the key value object have an association relationship, such as birth year-1998.2.3, name-Zhang San, sex-Man and the like, and the server can quickly find the content to be verified by using the association relationship, so that the verification speed is improved.
S503, storing the content of each data item in the form of a key object in the data item list.
Therefore, in the form submitting method provided by the embodiment of the invention, the data items are stored in the data item list in the form of the key value object, so that the verification efficiency of the form data can be improved.
S104, acquiring the submitting address of the form to be submitted, and submitting the corresponding data item list to a designated position. Each form to be submitted corresponds to a web page, and each web page has a specific submitting address, and a server at the submitting address is responsible for verifying the received form data. In the embodiment of the invention, the data items in the form to be submitted are independently extracted to form the data item list, the data item list is directly submitted to the submitting address of the form to be submitted, and the server directly verifies the content of the data item, so that a plurality of different forms can use the same data item, and the problem of data redundancy is avoided.
Fig. 5 is a block diagram of a form submitting device according to an embodiment of the present invention. As shown in fig. 5, a form submitting device provided in an embodiment of the present invention includes: the extracting module 51 is configured to extract data items in all to-be-submitted forms, where the data items are different from each other, and each to-be-submitted form has a form name; a marking module 52, configured to add an attribute mark to each data item, where the attribute mark includes a home form mark and a data name mark, where the home form mark is used to represent a home form of the data item, and the data name mark is used to represent a data item name used in a home form to which the data item belongs, and the home form is a form to be submitted that includes the data item; the data item list forming module 53 is configured to form a corresponding data item list for each form to be submitted according to the attribute flag and the form name of the form to be submitted; and the submitting module 54 is configured to obtain a submitting address of the form to be submitted, and submit the corresponding data item list to a specified location.
Optionally, the extracting module includes: the integration unit is used for integrating the data items in all the forms to be submitted into a data item set; the judging unit is used for judging whether a shared data item exists in the data item set, wherein the shared data item refers to a data item with a plurality of same data items in the data item set; if the shared data item exists in the data item set, deleting redundant data items, and only reserving one data item in the same data item, so that each data item in the data item set is different from each other.
Optionally, the marking module includes: the home form determining unit is used for determining a home form of each data item, and the number of the home forms of each data item is several; a home form mark generating unit for generating different home form marks for each data item by using the form name of each home form; and the data name label generating unit is used for generating different data name labels for each data item by using the data item name used in the attribution form of each data item and the form name of the attribution form of each data item.
Optionally, the data item list composition module includes: the selecting unit is used for selecting all data items belonging to the form to be submitted from the data items subjected to attribute marking, and a pair of home form marks and data name marks containing the form names exist in each data item belonging to the form to be submitted; and the data item list generating unit is used for forming a data item list of the form to be submitted by utilizing the data item names of all the data items belonging to the form to be submitted.
Optionally, the form submitting device further includes: the data item value acquisition module is used for acquiring the data item value of each data item in the data item list; the key value object forming module is used for forming a key value object by the obtained data item value and the corresponding data item name, and the data item name and the data item value in the key value object have an association relation; and the key value object storage module is used for storing the content of each data item in the data item list in the form of a key value object.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 6, the present invention further provides an electronic device, including: a memory 61 for storing program instructions; and a processor 62 for calling and executing program instructions in the memory to implement the form submitting method described in the above embodiment. Reference may be made in particular to the relevant description of the previous embodiments.
In this embodiment, the processor 62 and the memory 61 may be connected by a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
The embodiment of the invention also provides a storage medium, wherein the storage medium stores a computer program, and when at least one processor of the form submitting device executes the computer program, the form submitting device executes the form submitting method.
The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the service building apparatus and the service loading apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description in the method embodiments for the matters.
The embodiments of the present invention described above do not limit the scope of the present invention.

Claims (10)

1. A form submission method, comprising:
extracting data items in all forms to be submitted, wherein the data items are different from each other, and each form to be submitted has a form name;
adding attribute marks for each data item, wherein the attribute marks comprise a home form mark and a data name mark, the home form mark is used for representing a home form of the data item, the data name mark is used for representing a data item name used in the home form to which the data item belongs, and the home form is a form to be submitted containing the data item;
forming a corresponding data item list for each form to be submitted according to the attribute marks and the form names of the forms to be submitted;
acquiring a submitting address of the form to be submitted, and submitting the corresponding data item list to a designated position;
the step of extracting the data items in all the forms to be submitted comprises the following steps:
integrating all data items in the form to be submitted into a data item set;
judging whether a shared data item exists in a data item set, wherein the shared data item refers to a data item with a plurality of same data items in the data item set;
if the shared data item exists in the data item set, deleting redundant data items, and only reserving one data item in the same data item, so that each data item in the data item set is different from each other.
2. The method of claim 1, wherein the step of adding an attribute tag for each data item comprises:
determining a home form of each data item, wherein the number of the home forms of each data item is several;
generating a different home form tag for each data item using the form name of each home form;
a different data name tag is generated for each data item using the data item name used in its home form and the form name of its home form for each data item.
3. The method of claim 2, wherein the step of forming a corresponding list of data items for each of said forms to be submitted based on said attribute tags and the form names of said forms to be submitted, comprises:
selecting all data items belonging to the form to be submitted from the data items subjected to attribute marking, wherein a pair of home form marks and data name marks containing the form names exist in each data item belonging to the form to be submitted;
and forming a data item list of the form to be submitted by utilizing the data item names of all the data items belonging to the form to be submitted.
4. A method according to claim 3, wherein, after composing the list of data items of the form to be submitted using the data item names of all data items belonging to the form to be submitted, further comprising:
acquiring a data item value in each data item in the data item list;
the acquired data item value and the corresponding data item name form a key value object, wherein the data item name and the data item value in the key value object have an association relation;
the content of each data item is saved in the form of a key-value object in the list of data items.
5. A form presenting apparatus, comprising:
the extraction module is used for extracting data items in all forms to be submitted, wherein the data items are different from each other, and each form to be submitted has a form name;
the marking module is used for adding attribute marks for each data item, wherein the attribute marks comprise a home form mark and a data name mark, the home form mark is used for representing a home form of the data item, the data name mark is used for representing a data item name used in the home form to which the data item belongs, and the home form is a form to be submitted and contains the data item;
the data item list forming module is used for forming a corresponding data item list for each form to be submitted according to the attribute marks and the form names of the forms to be submitted;
the submitting module is used for acquiring the submitting address of the form to be submitted and submitting the corresponding data item list to a designated position;
wherein, the extraction module includes:
the integration unit is used for integrating the data items in all the forms to be submitted into a data item set;
the judging unit is used for judging whether a shared data item exists in the data item set, wherein the shared data item refers to a data item with a plurality of same data items in the data item set; if the shared data item exists in the data item set, deleting redundant data items, and only reserving one data item in the same data item, so that each data item in the data item set is different from each other.
6. The apparatus of claim 5, wherein the marking module comprises:
the home form determining unit is used for determining a home form of each data item, and the number of the home forms of each data item is several;
a home form mark generating unit for generating different home form marks for each data item by using the form name of each home form;
and the data name label generating unit is used for generating different data name labels for each data item by using the data item name used in the attribution form of each data item and the form name of the attribution form of each data item.
7. The apparatus of claim 6, wherein the data item list composition module comprises:
the selecting unit is used for selecting all data items belonging to the form to be submitted from the data items subjected to attribute marking, and a pair of home form marks and data name marks containing the form names exist in each data item belonging to the form to be submitted;
and the data item list generating unit is used for forming a data item list of the form to be submitted by utilizing the data item names of all the data items belonging to the form to be submitted.
8. The apparatus as recited in claim 7, further comprising:
the data item value acquisition module is used for acquiring the data item value of each data item in the data item list;
the key value object forming module is used for forming a key value object by the obtained data item value and the corresponding data item name, and the data item name and the data item value in the key value object have an association relation;
and the key value object storage module is used for storing the content of each data item in the data item list in the form of a key value object.
9. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in said memory to implement the form submission method of any of claims 1-4.
10. A storage medium having stored therein a computer program which, when executed by at least one processor of a form submitting device, performs the form submitting method of any one of claims 1-4.
CN201911250656.8A 2019-12-09 2019-12-09 Form submitting method and device, electronic equipment and storage medium Active CN111143354B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911250656.8A CN111143354B (en) 2019-12-09 2019-12-09 Form submitting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911250656.8A CN111143354B (en) 2019-12-09 2019-12-09 Form submitting method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111143354A CN111143354A (en) 2020-05-12
CN111143354B true CN111143354B (en) 2023-07-25

Family

ID=70517859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911250656.8A Active CN111143354B (en) 2019-12-09 2019-12-09 Form submitting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111143354B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287464A (en) * 2019-05-10 2019-09-27 平安科技(深圳)有限公司 The methods of exhibiting, device of option data, computer equipment and computer storage medium in list

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4580518B2 (en) * 1999-08-12 2010-11-17 慶和 白石 Database design system
US7370282B2 (en) * 2004-04-06 2008-05-06 Cary James C Grouping and displaying multiple tasks within an event object of an electronic calendar
JP2007026389A (en) * 2005-07-21 2007-02-01 Ntt Data Technology Corp Data input device
US7617219B2 (en) * 2006-06-22 2009-11-10 International Business Machines Corporation Enhanced handling of repeated information in a web form
CN101894148B (en) * 2010-06-23 2012-02-29 畅捷通信息技术股份有限公司 Method and device for judging whether form data items are quoted
CN106156133B (en) * 2015-04-09 2019-08-20 阿里巴巴集团控股有限公司 The method, apparatus and system that control table substance is submitted again
CN107403403B (en) * 2016-05-20 2020-10-09 大唐移动通信设备有限公司 Business data analysis method and device
CN107632972B (en) * 2017-08-31 2021-02-09 北京秒针人工智能科技有限公司 Form processing method and device
CN109308296A (en) * 2018-09-30 2019-02-05 税友软件集团股份有限公司 A kind of generation method, device and the computer readable storage medium of business datum table
CN109634585B (en) * 2018-11-27 2021-12-21 浙江万朋教育科技股份有限公司 Method for adaptively displaying and updating server data based on form

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287464A (en) * 2019-05-10 2019-09-27 平安科技(深圳)有限公司 The methods of exhibiting, device of option data, computer equipment and computer storage medium in list

Also Published As

Publication number Publication date
CN111143354A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
US10409892B2 (en) Formatting data by example
CN103888254A (en) Network information verification method and apparatus
CN109241003B (en) File management method and device
CN106611065B (en) Searching method and device
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN112800730A (en) Report form filling method and device
CN107908843B (en) Management system based on drawing of map label information
CN110365776B (en) Picture batch downloading method and device, electronic equipment and storage medium
CN109492149B (en) Crawler task processing method and device
CN111143354B (en) Form submitting method and device, electronic equipment and storage medium
CN111355709A (en) Data verification method and device, electronic equipment and computer readable storage medium
CN109977423B (en) Method and device for processing word, electronic equipment and readable storage medium
CN114169451A (en) Behavior data classification processing method, device, equipment and storage medium
CN111045983B (en) Nuclear power station electronic file management method, device, terminal equipment and medium
CN113704123A (en) Interface test method, device, equipment and storage medium
CN113177389A (en) Text processing method and device, electronic equipment and storage medium
CN112464618A (en) Method and device for paging document data, storage medium and electronic equipment
CN112685253A (en) Front-end error log collection method, device, equipment and storage medium
CN112527830A (en) Data query method, device, equipment and storage medium
CN108182202B (en) Content update notification method, content update notification device, electronic equipment and storage medium
CN106933856B (en) Webpage updating request generation method and device
CN111125567A (en) Equipment marking method and device, electronic equipment and storage medium
CN111832254A (en) Drawing label display processing method and device
CN106933852B (en) Webpage updating request generation method and device and response method and device thereof
CN116756226B (en) File generation method, device, server, user equipment and storage medium

Legal Events

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