CN111143354A - 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
CN111143354A
CN111143354A CN201911250656.8A CN201911250656A CN111143354A CN 111143354 A CN111143354 A CN 111143354A CN 201911250656 A CN201911250656 A CN 201911250656A CN 111143354 A CN111143354 A CN 111143354A
Authority
CN
China
Prior art keywords
data item
data
submitted
name
attribution
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.)
Granted
Application number
CN201911250656.8A
Other languages
Chinese (zh)
Other versions
CN111143354B (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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • 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 forms can use the same data item according to the attribute mark only by carrying out different attribute marks on the form to which the data item belongs, 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 invention relates to the technical field of software development, in particular to a form submission method, a form submission device, electronic equipment and a storage medium.
Background
The form is a table unit for collecting data, one form usually consists 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. Generally, in order to facilitate the server to verify the data on the web page, a form is usually required to be set in the web page, 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 the specific data in the data item.
For example, a user name and a password required for login are displayed on a webpage login page, a user name data item and a password data item exist in a form corresponding to the webpage, and 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 webpage, and the password is stored in the password data item. After the user name and the password are filled in, the user name and the password are clicked to log in, the form is submitted to the server, and the server verifies whether the user name and the password for logging in the webpage are correct or not.
At present, 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 in the form of Ajax (Asynchronous JavaScript And XML, Asynchronous JavaScript And XML (Extensible Markup Language)). However, the method of switching using JS requires that each submitted form must be independent, JS encoding is performed on each data item in the form at the time of submission, and if there is one identical data item in a plurality of forms submitted to the server, this data item must be present in each form at the same time, and multiple JS encoding is performed on this data item, which causes 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, and solves the problem of data redundancy in the process of submitting a plurality of forms at present.
In a first aspect, the present invention provides a form submission 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 by the data item in the home form to which the data item belongs, and the home form is a to-be-submitted form 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 submission address of the form to be submitted, and submitting the corresponding data item list to a specified 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 the data items in all the forms to be submitted into a data item set;
judging whether a shared data item exists in the data item set or not, wherein the shared data item refers to a data item with a plurality of same data items in the data item set;
and if the shared data item exists in the data item set, deleting redundant data items, and only keeping one data item in the same data items, 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 the attribution form of each data item, wherein the attribution form of each data item comprises a plurality of attribution forms;
generating different attribution form marks for each data item by using the form name of each attribution form;
different data name tags are generated for each data item using the data item name used by each data item in its home form and the form name of its home form.
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 each data item belonging to the form to be submitted has a pair of attribution form mark and data name mark containing the form name;
and 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.
With reference to the first aspect, in a possible implementation manner of the first aspect, after the forming the list of data items of the to-be-submitted form by using the data item names of all 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;
forming a key value object by the acquired data item value and the corresponding data item name, wherein the data item name and the data item value in the key value object have an incidence relation;
the content of each data item is saved in the data item list in the form of a key value object.
In a second aspect, the present invention provides a form submitting apparatus, including:
the extraction module is used for extracting data items in all forms to be submitted, the data items are different from each other, and each form to be submitted has a form name;
the attribute mark comprises a attribution form mark and a data name mark, the attribution form mark is used for representing an attribution form of the data item, the data name mark is used for representing a data item name used by the data item in the attribution form to which the data item belongs, and the attribution form is a to-be-submitted form containing 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 submission module is used for acquiring the submission address of the form to be submitted and submitting the corresponding data item list to a specified 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; and if the shared data item exists in the data item set, deleting redundant data items, and only keeping one data item in the same data items, 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 attribution form determining unit is used for determining attribution forms of each data item, and the attribution forms of each data item are multiple;
the attribution form mark generating unit is used for generating different attribution form marks for each data item by utilizing the form name of each attribution form;
and the data name mark generating unit is used for generating different data name marks for each data item by utilizing the data item name used by each data item in the attributive form of the data item and the form name of the attributive form of the data item.
With reference to the second aspect, in a possible implementation manner of the second aspect, the data item list composing 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 each data item belonging to the form to be submitted has a pair of attribution form mark and data name mark containing the form name;
and the data item list generating unit is used for forming the 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.
With reference to the second aspect, in a possible implementation manner of the second aspect, the method further includes:
a data item value acquisition module for acquiring a data item value in each data item in the data item list;
the key value object composing module is used for composing the acquired data item value and the corresponding data item name into a key value object, and the data item name and the data item value in the key value object have an incidence 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;
a processor, configured to call and execute the program instructions in the memory to implement the form submission method of the first aspect.
In a fourth aspect, the present invention further provides a storage medium, in which a computer program is stored, and when at least one processor of a form submission apparatus executes the computer program, the form submission apparatus executes the form submission method according to the first aspect.
According to the technical scheme, the invention provides 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 forms can use the same data item according to the attribute mark only by carrying out different attribute marks on the form to which the data item belongs, 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 needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any inventive exercise.
FIG. 1 is a flow chart of a form submission method provided by an embodiment of the present invention;
FIG. 2 is a diagram illustrating a collection of consolidated data items according to an embodiment of the invention;
FIG. 3 is a schematic diagram of another form submission provided by embodiments of the present invention;
FIG. 4 is a diagram illustrating a data item list according to an embodiment of the present invention;
fig. 5 is a block diagram of a structure of a form submission apparatus 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, technicians usually use JS to convert data items in a form into an object with JS logic for the form to be submitted to a server, however, the method for converting using JS requires that each submitted form must be independent, JS encoding is performed on each data item in the form during submission, if one identical data item exists in a plurality of forms submitted to the server, the data item must be simultaneously present in each form, and multiple JS encoding is performed on the data item to submit the plurality of forms, which causes a problem of data redundancy. Therefore, the invention provides a form submission method, if the same data item exists in a plurality of forms, different forms can use the same data item according to the attribute mark only by carrying out different attribute marks on the form to which the data item belongs, 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 submission method according to an embodiment of the present invention. As shown in fig. 1, the form submission method provided in the embodiment of the present invention includes the following steps:
s101, 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. All data in the web page 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 exist, in order to avoid directly submitting a plurality of complete forms, all data items in 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 value, only one data item is reserved in the embodiment of the invention, and the rest data items with the same data item value are deleted, so that all the extracted data items are ensured to be different from each other. Specifically, the steps of extracting the data items in all the forms to be submitted in the embodiment of the present invention are as follows:
s201, integrating all data items in the form to be submitted into a data item set, so that the data item set comprises all data items, and the data items may have the same data item value.
S202, determine whether there is a shared data item in the data item set, where the shared data item refers to a data item in which multiple identical data items exist in the data item set, and the identical data items in the embodiments of the present invention refer to data items having identical data item values, for example, if one data item stores data 2019.7.30, and another data item also stores data 2019.7.30, it indicates that the two data items have identical values.
S203, 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. In the embodiment of the invention, a plurality of shared data items may exist, and then the operation of deleting redundant data items is required for each shared data item, so that each data item is ensured to be different, and thus, if a large number of same data items exist among forms to be submitted, a large amount of space for storing the same data items can be saved.
FIG. 2 is a diagram illustrating 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 1 to be submitted and the form 2 to be submitted, each data item stores corresponding data, 3 identical data items A, B and C exist in the form 1 to be submitted and the form 2 to be submitted, after step S201, a data item set a can be obtained, the data item set a includes all the data items in the form 1 to be submitted and the form 2 to be submitted, 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, only one data item a, one data item B and one data item C are reserved in the data item set a, and thus, 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 proposed in the embodiment of the present invention is not the only process that can implement deleting the redundant shared data items, the data item set only plays an intermediate transition role, and other manners that can implement deleting the redundant shared data items may also belong to the scope of the present invention.
S102, adding attribute marks for each data item, wherein the attribute marks comprise attribution form marks and data name marks, the attribution form marks are used for representing attribution forms of the data items, the data name marks are used for representing data item names used by the data items in the attribution forms to which the data items belong, and the attribution forms are to-be-submitted forms containing the data items.
In the embodiment of the present invention, the content of the entire form needs to be submitted in the form of a single data item, 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 multiple forms to be submitted, and marking the attributive form for the data item is beneficial to determining the attribution condition of the data item, for example, data item a only belongs to form 1 to be submitted, and data item B belongs to both form 1 to be submitted and form 2 to be submitted, then the attributive form for data item a is marked as belong ═ 1, and the attributive form for data item B is marked as belong ═ 1 and belong ═ 2. If a data item belongs to multiple forms to be submitted, the data item names of the data item in different attribution forms may also be different, and the data name tag is favorable for determining the data item names when the data item belongs to different forms to be submitted, for example, the data item name used when the data item a belongs to the form 1 to be submitted is userid, the data item name of the data item a is 1_ name ═ userid, the data item B belongs to the data item name used when the form 1 to be submitted is userid1, the data item name used when the form 2 to be submitted is userid2, and the data item name of the data item B is 1_ name ═ userid1 and 2_ name ═ userid 2.
The specific steps of adding attribute marks to each data item in the embodiment of the invention are as follows:
s301, determining the attribution form of each data item, wherein the attribution form of each data item comprises a plurality of attribution forms. In the embodiment of the invention, the attribution form mark of each data item can be determined by judging whether the data item to be marked exists in each form to be submitted or not, and if one data item exists in a plurality of forms to be submitted at the same time, the attribution form mark of the data item is a plurality of forms which correspond to the plurality of forms to be submitted respectively.
S302, different attribution form marks are generated 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 both the form 1 to be submitted and the form 2 to be submitted, the attributive form flags of the data item B are belong-1 and belong-2, respectively.
And S303, generating different data name marks for each data item by using the data item name of each data item used in the attributive form and the form name of the attributive form. Since each form to be submitted corresponds to a different web page, there may be the same data item between the forms to be submitted, but due to the difference in web pages, the data item names of the same data item in different forms to be submitted may be different. As described above, the data item B is attributed to the data item name userid1 used when the form 1 is to be submitted, and is attributed to the data item name userid2 used when the form 2 is to be submitted, 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 item B in the different forms to be submitted, data name marks 1_ name ═ userid1 and 2_ name ═ userid2 are respectively generated for the data item B, in which it can be seen that the form name in the form to be submitted has a certain association with the data item name of the data item.
The data item belongs to the name of the data item of the form to be submitted, namely the name of the data item when the form to be submitted is submitted. In the invention, the form is submitted in a form of an individual data item, so that when the data item is submitted, the name of the data item in the form to be submitted and the specific data in the data item corresponding to the data item are submitted to a specified position.
And 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. Because the attribute marks comprise the attribution form marks and the data name marks, all data items attributing to a form to be submitted and the data item names used when the data items attributing to the form to be submitted can be obtained according to the attribution form marks and the data name marks.
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 each data item belonging to the form to be submitted has a pair of a belonging form mark and a data name mark which contain the form name. In the embodiment of the present invention, the attribution form mark is represented in a form of belong ═ X, where X represents the form name of the attribution form, and if the form name of the form to be submitted is "3", it may be determined whether there is an attribution form mark in the form of belong ═ 3 in the attribution form mark of the data item, and if so, the data item may be determined as the data item belonging to the form to be submitted. In addition, when the data item belongs to a form to be submitted, the data item has a data name mark used when the data item belongs to the form, and the data name mark and the mark of the attribution form have a certain incidence relation, that is, when all the data items belonging to the form to be submitted are selected, the data item names of the data items belonging to the form to be submitted are also easy to obtain. For example, when the data item is attributed to the form 3 to be submitted, the data item name used is 3_ name — date of birth, and then the corresponding data item name when the data item is attributed to the form 3 to be submitted is easily obtained as "date of birth".
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, does not have a 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 present invention may be specifically shown in the form of data item names, but the data items themselves still hold data, and when the form to be submitted is submitted, the data item list corresponding to the form to be submitted may be directly submitted to a specified location, and the server may directly verify the data items.
In the embodiment of the invention, a plurality of forms to be submitted can correspond to a plurality of different webpages, and when the plurality of different webpages need to be verified to the server, the forms to be submitted 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, the multiple forms to be submitted may also be understood that the forms formed by the same piece of web page data need to be submitted to different locations, but the data needed by different locations is different, so that different data item lists may be formed again for different submission locations to be submitted. 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, the web page M corresponds to one form M, a plurality of data items exist 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, at this time, all data items in the form M may be extracted first according to the steps in the embodiment of the present invention, attribute marking is performed on the data items, it is determined whether the data items belong to the department C or the department D, or belong to two departments at the same time, a data item list C and a data item list D are generated for the department C and the department D, and finally, the data item list C is submitted to the department C, and the data item list D is submitted to the department D, thereby.
Therefore, the form submission method in the embodiment of the present invention can split the form into separate data items for submission, and if the same data item exists in multiple forms, different forms can use the same data item according to the attribute mark only by performing different attribute marks on the form to which the data item belongs, so that the same data item in multiple forms can be shared for use, thereby avoiding the problem of data redundancy.
In addition, in this embodiment of the present invention, a key value object may be established for each data item, and the key value 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 a name of the data item according to a specific data value in the data item, as shown in fig. 4, fig. 4 is a schematic diagram of a data item list provided in this embodiment of the present invention, and as shown in fig. 4, the key value object of each data item is stored in the data item list, such as year of birth-1998.2.3, name-zhang, gender-male, and the like, and the step of forming the data item list is as follows:
s501, obtaining a data item value in each data item in the data item list. The data item value in the embodiment of the present invention refers to a specific data value in the data item, for example, the data item value in the "year and month of birth" data item is 1998.2.3, the data item value in the "name" data item is zhang, and the data item value in the "gender" data item is male.
S502, the acquired data item value and the corresponding data item name form a key value object, the data item name and the data item value in the key value object have an association relationship, such as year and month of birth-1998.2.3, name-Zhang, gender-man and the like, and the association relationship can be used for enabling the server to quickly find the content needing to be verified, so that the verification speed is increased.
S503, saving the content of each data item in the form of a key value object in the data item list.
Therefore, in the form submission method in the embodiment of the invention, the data items are stored in the data item list in the form of key value objects, so that the verification efficiency of form data can be improved.
S104, acquiring the submission address of the form to be submitted, and submitting the corresponding data item list to a specified position. Each form to be submitted corresponds to a webpage, each webpage has a specific submission address, and a server at the submission address is responsible for verifying 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 submission address of the form to be submitted, and the server directly verifies the content of the data items, 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 structure of a form submission apparatus according to an embodiment of the present invention. As shown in fig. 5, the form submitting apparatus provided in the embodiment of the present invention includes: the extracting module 51 is configured to extract data items in all forms to be submitted, where the data items are different from each other, and each form to be submitted has a form name; a marking module 52, configured to add an attribute flag to each data item, where the attribute flag includes a home form flag and a data name flag, the home form flag is used to indicate a home form of the data item, the data name flag is used to indicate a data item name used by the data item in a home form to which the data item belongs, and the home form is a to-be-submitted form that includes the data item; a data item list composing module 53, configured to compose 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 submission module 54 is configured to obtain a submission address of the form to be submitted, and submit the corresponding data item list to a specified location.
Optionally, 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; and if the shared data item exists in the data item set, deleting redundant data items, and only keeping one data item in the same data items, so that each data item in the data item set is different from each other.
Optionally, the marking module includes: the attribution form determining unit is used for determining attribution forms of each data item, and the attribution forms of each data item are multiple; the attribution form mark generating unit is used for generating different attribution form marks for each data item by utilizing the form name of each attribution form; and the data name mark generating unit is used for generating different data name marks for each data item by utilizing the data item name used by each data item in the attributive form of the data item and the form name of the attributive form of the data item.
Optionally, the data item list composing 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 each data item belonging to the form to be submitted has a pair of attribution form mark and data name mark containing the form name; and the data item list generating unit is used for forming the 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.
Optionally, the form submitting apparatus further includes: a data item value acquisition module for acquiring a data item value in each data item in the data item list; the key value object composing module is used for composing the acquired data item value and the corresponding data item name into a key value object, and the data item name and the data item value in the key value object have an incidence 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 also provides an electronic device, including: a memory 61 for storing program instructions; and the processor 62 is configured to call and execute the program instructions in the memory to implement the form submission method according to the above embodiment. Reference may be made in particular to the description in relation to the preceding 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 a computer program is stored in the storage medium, and when at least one processor of the form submitting device executes the computer program, the form submitting device executes the form submitting method in the embodiment.
The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, for the embodiments of the service construction apparatus and the service loading apparatus, since they are substantially similar to the embodiments of the method, the description is simple, and the relevant points can be referred to the description in the embodiments of the method.
The above-described embodiments of the present invention should not be construed as limiting the scope of the present invention.

Claims (12)

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 by the data item in the home form to which the data item belongs, and the home form is a to-be-submitted form 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 submission address of the form to be submitted, and submitting the corresponding data item list to a specified position.
2. The method of claim 1, wherein the step of extracting the data items in all of the forms to be submitted comprises:
integrating the data items in all the forms to be submitted into a data item set;
judging whether a shared data item exists in the data item set or not, wherein the shared data item refers to a data item with a plurality of same data items in the data item set;
and if the shared data item exists in the data item set, deleting redundant data items, and only keeping one data item in the same data items, so that each data item in the data item set is different from each other.
3. The method of claim 1, wherein the step of adding attribute tags to each data item comprises:
determining the attribution form of each data item, wherein the attribution form of each data item comprises a plurality of attribution forms;
generating different attribution form marks for each data item by using the form name of each attribution form;
different data name tags are generated for each data item using the data item name used by each data item in its home form and the form name of its home form.
4. The method according to claim 3, wherein the step of forming a corresponding data item list for each of the forms to be submitted according to the attribute tags and the form names of the 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 each data item belonging to the form to be submitted has a pair of attribution form mark and data name mark containing the form name;
and 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.
5. The method of claim 4, wherein after composing the list of data items of the form to be submitted with the data item names attributed to all data items of the form to be submitted, the method further comprises:
acquiring a data item value in each data item in the data item list;
forming a key value object by the acquired data item value and the corresponding data item name, wherein the data item name and the data item value in the key value object have an incidence relation;
the content of each data item is saved in the data item list in the form of a key value object.
6. A form submission apparatus, comprising:
the extraction module is used for extracting data items in all forms to be submitted, the data items are different from each other, and each form to be submitted has a form name;
the attribute mark comprises a attribution form mark and a data name mark, the attribution form mark is used for representing an attribution form of the data item, the data name mark is used for representing a data item name used by the data item in the attribution form to which the data item belongs, and the attribution form is a to-be-submitted form containing 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 submission module is used for acquiring the submission address of the form to be submitted and submitting the corresponding data item list to a specified position.
7. The apparatus of claim 6, wherein the extraction module comprises:
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; and if the shared data item exists in the data item set, deleting redundant data items, and only keeping one data item in the same data items, so that each data item in the data item set is different from each other.
8. The apparatus of claim 6, wherein the marking module comprises:
the attribution form determining unit is used for determining attribution forms of each data item, and the attribution forms of each data item are multiple;
the attribution form mark generating unit is used for generating different attribution form marks for each data item by utilizing the form name of each attribution form;
and the data name mark generating unit is used for generating different data name marks for each data item by utilizing the data item name used by each data item in the attributive form of the data item and the form name of the attributive form of the data item.
9. The apparatus of claim 8, wherein the data item list composing 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 each data item belonging to the form to be submitted has a pair of attribution form mark and data name mark containing the form name;
and the data item list generating unit is used for forming the 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.
10. The apparatus of claim 9, further comprising:
a data item value acquisition module for acquiring a data item value in each data item in the data item list;
the key value object composing module is used for composing the acquired data item value and the corresponding data item name into a key value object, and the data item name and the data item value in the key value object have an incidence 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.
11. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling and executing program instructions in said memory to implement the form submission method of any of claims 1-5.
12. A storage medium having stored therein a computer program which, when executed by at least one processor of a form submission apparatus, causes the form submission apparatus to perform the form submission method of any of claims 1-5.
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 true CN111143354A (en) 2020-05-12
CN111143354B 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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6678693B1 (en) * 1999-08-12 2004-01-13 Toshiko Shiraishi Database design system, database design method and record medium
US20050222971A1 (en) * 2004-04-06 2005-10-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
US20080010586A1 (en) * 2006-06-22 2008-01-10 International Business Machines Corporation Enhanced handling of repeated information in a web form
CN101894148A (en) * 2010-06-23 2010-11-24 畅捷通软件有限公司 Method and device for judging whether form data items are quoted
CN106156133A (en) * 2015-04-09 2016-11-23 阿里巴巴集团控股有限公司 Method that control table substance is submitted to again, Apparatus and system
CN107403403A (en) * 2016-05-20 2017-11-28 大唐移动通信设备有限公司 A kind of business datum analysis method and device
CN107632972A (en) * 2017-08-31 2018-01-26 精硕科技(北京)股份有限公司 Sheet disposal method and apparatus
CN109308296A (en) * 2018-09-30 2019-02-05 税友软件集团股份有限公司 A kind of generation method, device and the computer readable storage medium of business datum table
CN109634585A (en) * 2018-11-27 2019-04-16 浙江万朋教育科技股份有限公司 A method of service end data is adaptively shown and updated based on list
CN110287464A (en) * 2019-05-10 2019-09-27 平安科技(深圳)有限公司 The methods of exhibiting, device of option data, computer equipment and computer storage medium in list

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6678693B1 (en) * 1999-08-12 2004-01-13 Toshiko Shiraishi Database design system, database design method and record medium
US20050222971A1 (en) * 2004-04-06 2005-10-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
US20080010586A1 (en) * 2006-06-22 2008-01-10 International Business Machines Corporation Enhanced handling of repeated information in a web form
CN101894148A (en) * 2010-06-23 2010-11-24 畅捷通软件有限公司 Method and device for judging whether form data items are quoted
CN106156133A (en) * 2015-04-09 2016-11-23 阿里巴巴集团控股有限公司 Method that control table substance is submitted to again, Apparatus and system
CN107403403A (en) * 2016-05-20 2017-11-28 大唐移动通信设备有限公司 A kind of business datum analysis method and device
CN107632972A (en) * 2017-08-31 2018-01-26 精硕科技(北京)股份有限公司 Sheet disposal method and apparatus
CN109308296A (en) * 2018-09-30 2019-02-05 税友软件集团股份有限公司 A kind of generation method, device and the computer readable storage medium of business datum table
CN109634585A (en) * 2018-11-27 2019-04-16 浙江万朋教育科技股份有限公司 A method of service end data is adaptively shown and updated based on list
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
CN111143354B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
US10409892B2 (en) Formatting data by example
CN108628741A (en) Webpage test method, device, electronic equipment and medium
CN105205180A (en) Knowledge map evaluation method and device
CN111191079B (en) Document content acquisition method, device, equipment and storage medium
CN109241003B (en) File management method and device
CN110688349A (en) Document sorting method, device, terminal and computer readable storage medium
CN112800730A (en) Report form filling method and device
CN108038655A (en) Recommendation method, application server and the computer-readable recording medium of department's demand
CN107908843B (en) Management system based on drawing of map label information
CN111143354B (en) Form submitting method and device, electronic equipment and storage medium
CN111931475A (en) Dynamic subscription book generation method, system, computer equipment and storage medium
CN115098362B (en) Page test method, page test device, electronic equipment and storage medium
CN113126981B (en) Medical data processing method and device based on Excel
CN113886906A (en) CAD drawing loading method, font file replacing method, device and storage medium
CN114169451A (en) Behavior data classification processing method, device, equipment and storage medium
CN112464618A (en) Method and device for paging document data, storage medium and electronic equipment
CN113177389A (en) Text processing method and device, electronic equipment and storage medium
CN111832254A (en) Drawing label display processing method and device
CN112784560A (en) Data display method and device
CN111222065A (en) Information display method and device, electronic equipment and medium
CN116756226B (en) File generation method, device, server, user equipment and storage medium
CN112181240B (en) Information display method and device
CN111882429B (en) Bank system field length segmentation method and device
CN111882430B (en) Intelligent scheduling method and device for banking system
CN110109842B (en) Method and device for testing numerical system

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