CN115328892A - Business form data structure processing method, system, electronic device and medium - Google Patents

Business form data structure processing method, system, electronic device and medium Download PDF

Info

Publication number
CN115328892A
CN115328892A CN202211257637.XA CN202211257637A CN115328892A CN 115328892 A CN115328892 A CN 115328892A CN 202211257637 A CN202211257637 A CN 202211257637A CN 115328892 A CN115328892 A CN 115328892A
Authority
CN
China
Prior art keywords
service
index item
identification code
business
index
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
CN202211257637.XA
Other languages
Chinese (zh)
Other versions
CN115328892B (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.)
Internet Moment Beijing Information Technology Co ltd
Original Assignee
Internet Moment Beijing 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 Internet Moment Beijing Information Technology Co ltd filed Critical Internet Moment Beijing Information Technology Co ltd
Priority to CN202211257637.XA priority Critical patent/CN115328892B/en
Publication of CN115328892A publication Critical patent/CN115328892A/en
Application granted granted Critical
Publication of CN115328892B publication Critical patent/CN115328892B/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/21Design, administration or maintenance of databases
    • G06F16/219Managing data history or versioning
    • 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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The invention belongs to the technical field of computer data processing, and aims to provide a method, a system, electronic equipment and a medium for processing a business form data structure. The invention can flexibly define the business form according to the requirements of the business scene; meanwhile, in the invention, the business form can coexist in multiple versions, namely, the same business form without application scenes can be defined into multiple versions, and the business data values of the corresponding multiple versions do not need to be processed additionally, so that the processing of the multiple versions of business forms and historical business data values is facilitated in complex business scenes; in addition, from the access angle of the business data value, the invention can flexibly and efficiently access data in the business data set from a plurality of angles such as index items, business forms and the like.

Description

Business form data structure processing method, system, electronic device and medium
Technical Field
The invention belongs to the technical field of computer data processing, and particularly relates to a method, a system, electronic equipment and a medium for processing a business form data structure.
Background
The business form, which may also be called an electronic form, displays a paper form by an informatization means, is a main way and means for data acquisition and display in an application system, and is also a main processing object in a workflow system. In the prior art, the following two processing methods are generally adopted for a service form:
a. determining a required data index item according to the service requirement, and then defining a service form according to the determined data index item; in the mode, because the index items are fixed, the execution efficiency of the business form is high, and data can be rapidly acquired;
b. defining the index item as a variable according to specific service requirements so as to realize flexible definition of a service form; specifically, the index items stored in the form are defined in the form of variables, such as definition: index item name, index item code and index item value, so as to flexibly set index attribute information such as name, code and value in the form; in the processing mode, the form definition mode is relatively flexible, and index items can be flexibly increased or decreased in the business form.
However, in the process of using the prior art, the inventor finds that at least the following problems exist in the prior art:
in the first form processing mode, the flexibility of form definition is poor, and after a service is changed, if index items in a service form need to be increased or decreased and the service form needs to be redefined, the service form needs to be redeveloped to change all related contents in the service form, so that the change of the service form cannot be completed quickly in time and efficiency; in the second form processing manner, if multiple versions of service forms need to be processed uniformly, the time for reading a certain piece of data is relatively complex, and in the worst case, the data in the full-service form needs to be compared once to achieve the purpose, which results in low efficiency in processing the service forms.
In addition, in some scenarios where historical service forms and corresponding data in the service forms need to be retained, both the two manners cannot be directly implemented, and specifically, only one data is stored in the current service form, a series of historical forms need to be defined, and the data is stored in the historical forms, so that a plurality of additional forms need to be additionally defined in both the two form processing manners, and thus, the processing efficiency of the service forms is not high.
Disclosure of Invention
The present invention is directed to solve the above technical problems to at least some extent, and the present invention provides a method, a system, an electronic device, and a medium for processing a service form data structure.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, a method for processing a service form data structure is provided, including:
acquiring index items and basic attribute information thereof, allocating unique index item identification codes to the index items according to the basic attribute information, and then constructing an index item set according to the index item identification codes corresponding to the index items and the basic attribute information; the index item set comprises index item identification codes and basic attribute information corresponding to a plurality of index items;
selecting an appointed index item from the index item set, acquiring form item attribute information of the appointed index item, allocating a unique form item identification code to the appointed index item according to the form item attribute information, and constructing a service form according to the form item identification code, the index item identification code and the form attribute information corresponding to the appointed index item; the business form is used for collecting business data values under specified index items;
extracting a service data value in the service form, acquiring a form item identification code and an index item identification code corresponding to the service data value, and then constructing a service data set according to the form item identification code and the index item identification code corresponding to the service data value and the service data value;
and receiving a condition to be queried, and reading all service data values and/or service forms matched with the condition to be queried from the service data set according to the condition to be queried.
The method can flexibly define the service form according to the requirement of a service scene, and particularly, after an index item set comprising a plurality of index items is constructed, a specified index item can be selected from the index item set to construct a corresponding service form, so that the flexible definition of the service form is realized; meanwhile, in the invention, the business form can coexist in multiple versions, namely, the same business form without application scenes can be defined into multiple versions, and the business data values of the corresponding multiple versions do not need to be processed additionally, so that the processing of the multiple versions of business forms and the historical business data values is facilitated under the complex business scene, and specifically, the business data values in the multiple business forms can be accessed in the business data set, thereby realizing the coexistence of the multiple versions of business forms; in addition, from the access angle of the service data value, the invention can flexibly access data in the service data set from a plurality of angles such as the index item and the service form, and the like, and particularly, when data is queried, only the query is directly carried out in the service data set, so that the problem that the condition to be queried is respectively compared with a plurality of service forms is avoided, and the incidence relations exist between the service form and the index item set, between the service data set and the service form and between the service data set and the index item set, thereby facilitating the realization of the efficient access of the data.
In one possible design, the condition to be queried comprises an index item identification code of an assigned value; when the condition to be queried is an index item identification code of an appointed value, reading all service data values and/or service forms matched with the condition to be queried from the service data set according to the condition to be queried, wherein the reading comprises the following steps:
reading all service data values matched with the assigned values of the index item identification codes from the service data set according to the index item identification codes of the assigned values; or the like, or, alternatively,
and reading all service data values matched with the assigned value of the index item identification code from the service data set according to the index item identification code of the assigned value, and reading a service form corresponding to the index item identification code of the assigned value from the service data set.
In one possible design, the index item identification code adopts an index item hash value, and the basic attribute information of the index item comprises an index item name, an index item code and an index item type; correspondingly, the index item identification code of any index item is:
hash(x)=MD5(n+c+t);
the method comprises the following steps that MD5 (×) is an information abstract algorithm, n is an index item name, c is an index item code, and t is an index item type.
In one possible design, the form item identification code adopts a form item hash value, and the form item attribute information of the specified index item comprises a service form identification code, a service form name, a service form version number and the sequence of the specified index item in the service form; correspondingly, the form item identification code of any specified index item in the service form is as follows:
hash(y)=MD5(hash(t)+name+ver+order);
the method comprises the following steps that MD5 (x) is an information abstract algorithm, hash (t) is a business form identification code, name is a business form name, ver is a business form version number, and order is the sequence of a current specified index item in a business form.
In one possible design, the service form identification code adopts a service form hash value, the service form identification code is obtained according to service form attribute information, and the service form attribute information comprises a service form name and a service form version number; correspondingly, the identification code of any service form is:
hash(t)=MD5(name+ver);
and the MD5 (, the name) is the name of the business form, and the ver is the version number of the business form.
In one possible design, the condition to be queried includes a business form identification code with an assigned value; when the condition to be queried is a service form identification code with an appointed value, reading all service data values and/or service forms matched with the condition to be queried from the service data set according to the condition to be queried, wherein the reading comprises the following steps:
and reading all service data values in the service form and the service form corresponding to the assigned value service form identification code from the service data set according to the assigned value service form identification code.
In one possible design, after obtaining the form item identification code and the index item identification code corresponding to the service data value, the method further includes:
allocating a unique data identification code for the service data value according to the form item identification code corresponding to the service data value, and then constructing a service data set according to the data identification code, the form item identification code and the index item identification code corresponding to the service data value and the service data value;
the data identification code adopts a data hash value, and the data identification code is as follows:
hash(z)=MD5(hash(y)+random(key));
the MD5 (, x) is an information digest algorithm, the hash (y) is a table entry identifier, and the random (key) is a random number.
In a second aspect, a system for processing a service form data structure is provided, which is used to implement the method for processing a service form data structure according to any one of the above items; the business form data structure processing system comprises:
the index item set building module is used for obtaining the index items and the basic attribute information thereof, distributing unique index item identification codes for the index items according to the basic attribute information, and building an index item set according to the index item identification codes corresponding to the index items and the basic attribute information; the index item set comprises index item identification codes and basic attribute information corresponding to a plurality of index items;
the business form construction module is in communication connection with the index item set construction module and is used for selecting an appointed index item from the index item set, acquiring form item attribute information of the appointed index item, distributing a unique form item identification code for the appointed index item according to the form item attribute information, and constructing a business form according to the form item identification code, the index item identification code and the form attribute information corresponding to the appointed index item; the business form is used for collecting business data values under specified index items;
the business data set building module is in communication connection with the business form building module and is used for extracting business data values in the business form, acquiring form item identification codes and index item identification codes corresponding to the business data values, and building a business data set according to the form item identification codes and the index item identification codes corresponding to the business data values and the business data values;
and the data query module is in communication connection with the business data set construction module and is used for receiving the conditions to be queried and reading all business data values and/or business forms matched with the conditions to be queried from the business data set according to the conditions to be queried.
In a third aspect, an electronic device is provided, including:
a memory for storing computer program instructions; and the number of the first and second groups,
a processor for executing the computer program instructions to perform the operations of the business form data structure processing method as in any one of the above.
In a fourth aspect, there is provided a computer readable storage medium for storing computer readable computer program instructions configured to, when executed, perform the operations of the business form data structure processing method according to any one of the above.
Drawings
Fig. 1 is a flowchart of a method for processing a service form data structure according to embodiment 1;
FIG. 2 is a schematic diagram of selecting a specific index item from the index item set to define a business form in embodiment 1;
fig. 3 is a schematic diagram illustrating an example of querying a service data set according to an index identifier assigned to a value in embodiment 1;
FIG. 4 is a diagram showing the relationship among a set of index items, a business form, and a set of business data in example 1;
fig. 5 is a block diagram of a system for processing a service form data structure according to embodiment 2.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be briefly described below with reference to the accompanying drawings and the embodiments or the description in the prior art, it is obvious that the following description of the structure of the drawings is only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts. It should be noted that the description of the embodiments is provided to help understanding of the present invention, but the present invention is not limited thereto.
Example 1:
a first aspect of the present embodiment provides a method for processing a service form data structure, which may be, but is not limited to be, executed by a computer device or a virtual machine with certain computing resources, for example, executed by an electronic device such as a personal computer, a smart phone, a personal digital assistant, or a wearable device, or executed by a virtual machine.
As shown in fig. 1, a method for processing a service form data structure may include, but is not limited to, the following steps:
s1, acquiring index items and basic attribute information thereof, distributing unique index item identification codes for the index items according to the basic attribute information, and then constructing an index item set according to the index item identification codes corresponding to the index items and the basic attribute information; the index item set comprises index item identification codes and basic attribute information corresponding to a plurality of index items; it should be understood that, in the present embodiment, a plurality of index items are stored in the index item set with their corresponding index item identification codes. In this embodiment, each index item has global uniqueness and inseparable atomicity in the system, and the same index item is not repeatedly settable.
Specifically, in this embodiment, the index item identification code adopts an index item hash value, and the basic attribute information of the index item includes an index item name, an index item code, and an index item type; correspondingly, the index item identification code of any index item is:
hash(x)=MD5(n+c+t);
the method comprises the following steps that MD5 (×) is an information abstract algorithm, n is an index item name, c is an index item code, and t is an index item type.
It should be noted that MD5 is fully spelled as MD5 Message-Digest Algorithm, and MD5 (x) is a widely used cryptographic hash function, based on which a 128-bit (16-byte) hash value (hash value) can be generated to ensure the integrity of information transmission.
S2, selecting an appointed index item from the index item set, acquiring form item attribute information of the appointed index item, allocating a unique form item identification code to the appointed index item according to the form item attribute information, and constructing a service form according to the form item identification code, the index item identification code and the form attribute information corresponding to the appointed index item, wherein as shown in FIG. 2, a schematic diagram of a certain (service) form is defined for selecting the appointed index item from the index item set; the business form is used for collecting business data values under the specified index items; it should be noted that the business form is composed of the specified index items in the index item set, so that each specific index item in the business form is conveniently and flexibly processed, and the flexible definition of the business form is realized. Specifically, the specified index item in the business form may be one or more index items in the index item set, that is, when the business form is built, an adaptive one or more index items may be selected from the index item set.
It should be further noted that, in this embodiment, an association relationship is established between an assigned index item in a service form and an index item set through an index item identification code of the assigned index item, and each assigned index item is allocated with a corresponding form item identification code in the service form, so that the service form can establish an association relationship with the index item set through the index item identification code corresponding to the assigned index item, and thus a relative decoupling relationship between the index item set and the service form can be maintained, redundancy of the service form is reduced, a storage space is saved, and independence of mutual evolution between the index item set and the service form is also facilitated to be maintained.
In this embodiment, the form item identification code adopts a form item hash value, and the form item attribute information of the specified index item includes a service form identification code, a service form name, a service form version number, and an order of the specified index item in the service form; correspondingly, the form item identification code of any specified index item in the service form is as follows:
hash(y)=MD5(hash(t)+name+ver+order);
the method comprises the following steps that MD5 (x) is an information abstract algorithm, hash (t) is a business form identification code, name is a business form name, ver is a business form version number, and order is the sequence of a current specified index item in a business form.
In the form item attribute information of the designated index item, the position of the designated index item in the service form can be obtained according to the order of the designated index item in the service form.
Specifically, the service form identification code adopts a service form hash value, the service form identification code is obtained according to service form attribute information, and the service form attribute information comprises a service form name and a service form version number; correspondingly, the identifier of any business form is:
hash(t)=MD5(name+ver);
and the MD5 (, the name) is the name of the business form, and the ver is the version number of the business form.
It should be noted that, the setting of the service form identification code can facilitate to obtain all the index items of the whole form at one time according to the assigned service form identification code in the service processing process, so as to generate the form, or obtain all the service data values corresponding to the whole form at one time according to the assigned service form identification code.
S3, extracting a service data value in the service form, and acquiring a form item identification code and an index item identification code corresponding to the service data value; it should be noted that, the service data value is acquired through a defined service form, and is real-time data input by a user in the service form, such as a service form of a certain type of automobile tire is defined, and the performance specification parameter of the tire acquired through the service form is the service data value in the service form; and then constructing a service data set according to the form item identification code and the index item identification code corresponding to the service data value and the service data value, namely, the form item identification code and the index item identification code corresponding to the service data value and the service data value are stored in the service data set.
Specifically, in this embodiment, a unique data identification code is allocated to the service data value according to the form item identification code corresponding to the service data value, and then a service data set is constructed according to the data identification code, the form item identification code, and the index item identification code corresponding to the service data value, that is, the data identification code, the form item identification code, and the index item identification code corresponding to the service data value, and the service data value are stored in the service data set. It should be noted that, in this embodiment, a unique data identification code is allocated to the service data value, and the service data value can be uniquely identified, so that the service data value is used to read the service data value in some scenarios where the specified data needs to be read separately.
The data identification code adopts a data hash value, and the data identification code is as follows:
hash(z)=MD5(hash(y)+random(key));
the MD5 (, x) is an information digest algorithm, the hash (y) is a table entry identifier, and the random (key) is a random number.
It should be noted that, in the scene of cross-form data retrieval and the like, the index item may be retrieved in the service data set, and all numerical values of the corresponding service form may be conveniently obtained through the form item identification code corresponding to the retrieval result, so that the data has efficient and reliable relevance in application operations such as data saving and reading.
It should be understood that, in this embodiment, the service form establishes an association relationship with the index item set through the index item identification code corresponding to the specified index item, the service data set establishes an association relationship with the service form through the form item identification code corresponding to the service data value, and the service data set establishes an association relationship with the index item set through the index item identification code corresponding to the service data value, so as to implement association between the service form and the index item set, and association between the service data set and the service form, between the service data set and the index item set.
Specifically, in this embodiment, an association relationship diagram among the index item set, the service form, and the service data set is shown in fig. 4.
And S4, receiving a condition to be inquired, and reading all service data values and/or service forms matched with the condition to be inquired from the service data set according to the condition to be inquired.
In this embodiment, the condition to be queried includes an index item identification code of an assigned value; when the condition to be queried is an index item identification code with an appointed value, reading all service data values and/or service forms matched with the condition to be queried from the service data set according to the condition to be queried, wherein the reading comprises the following steps:
reading all service data values matched with the assigned values of the index item identification codes from the service data set according to the index item identification codes of the assigned values; or the like, or, alternatively,
and reading all service data values matched with the assigned value of the index item identification code from the service data set according to the index item identification code of the assigned value, and reading a service form corresponding to the index item identification code of the assigned value from the service data set.
Based on the method, the matched data values can be read from the index angle in the service data set, so that a user can conveniently obtain a service form comprising the index identification code with the designated value and all service data values in the form.
For example, as shown in fig. 3, if an index item of a hub size is defined in the index item set, the index item is used in all hub business forms of multiple models, and when the conditions to be queried are: when all hubs with the hub size =20 inches, all hub data meeting the query condition can be read from the service data set, that is, all service data values matched with the hub size =20 inches; of course, the corresponding data of the whole service form can be conveniently read according to the corresponding form item identification code through the wheel hub data meeting the conditions.
Further, in this embodiment, after reading all the service data values matching with the assigned value of the index entry identification code from the service data set, the method further includes: and visually displaying all the service data values matched with the assigned values of the index item identification codes.
In this embodiment, the condition to be queried includes a service form identification code of an assigned value; when the condition to be queried is a service form identification code with an appointed value, reading all service data values and/or service forms matched with the condition to be queried from the service data set according to the condition to be queried, wherein the reading comprises the following steps:
and reading all service data values in the service form and the service form corresponding to the assigned value service form identification code from the service data set according to the assigned value service form identification code.
Based on this, the corresponding data value in the matched business form can be read from the business data set from the perspective of the business form, so that the user can conveniently obtain the specified business form and all the business data values in the form.
Further, in this embodiment, after reading all service data values in the service form and the service form corresponding to the service form identification code with the assigned value from the service data set, the method further includes: and visually displaying all service data values in the service form and the service form corresponding to the service form identification code with the assigned value.
The embodiment can flexibly define the service form according to the requirements of the service scene, specifically, after an index item set comprising a plurality of index items is constructed, a specified index item can be selected from the index item set to construct a corresponding service form, so that the flexible definition of the service form is realized; meanwhile, in the embodiment, the business form can coexist in multiple versions, that is, the same business form without an application scene can be defined into multiple versions, and the business data values of the corresponding multiple versions do not need to be processed additionally, so that the processing of the multiple versions of business forms and the historical business data values is facilitated in a complex business scene, and specifically, the business data values in the multiple business forms can be accessed in a business data set, thereby realizing the coexistence of the multiple versions of business forms; in addition, from the access angle of the business data value, the invention can flexibly access data in the business data set with high efficiency from a plurality of angles such as the index item and the business form, and particularly, when data query is carried out, only the query is directly carried out in the business data set, so that the problem that the conditions to be queried are respectively compared with a plurality of business forms is avoided, and the incidence relations exist between the business form and the index item set, between the business data set and the business form, and between the business data set and the index item set, so that the data can be accessed with high efficiency.
Example 2:
the embodiment provides a system for processing a service form data structure, which is used for implementing the method for processing the service form data structure in the embodiment 1; as shown in fig. 5, the service form data structure processing system includes:
the index item set building module is used for acquiring index items and basic attribute information thereof, distributing unique index item identification codes for the index items according to the basic attribute information, and then building an index item set according to the index item identification codes corresponding to the index items and the basic attribute information; the index item set comprises index item identification codes and basic attribute information corresponding to a plurality of index items;
the business form construction module is in communication connection with the index item set construction module and is used for selecting an appointed index item from the index item set, acquiring form attribute information of the appointed index item, distributing a unique form identification code for the appointed index item according to the form attribute information, and constructing a business form according to the form identification code, the index item identification code and the form attribute information corresponding to the appointed index item; the business form is used for collecting business data values under the specified index items;
the business data set building module is in communication connection with the business form building module and is used for extracting business data values in the business form, acquiring form item identification codes and index item identification codes corresponding to the business data values, and building a business data set according to the form item identification codes and the index item identification codes corresponding to the business data values and the business data values;
and the data query module is in communication connection with the business data set construction module and is used for receiving the conditions to be queried and reading all business data values and/or business forms matched with the conditions to be queried from the business data set according to the conditions to be queried.
Example 3:
on the basis of embodiment 1 or 2, this embodiment discloses an electronic device, and this device may be a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like. The electronic device may be referred to as a terminal, a portable terminal, a desktop terminal, etc., and as shown in fig. 3, the electronic device includes:
a memory for storing computer program instructions; and the number of the first and second groups,
a processor for executing the computer program instructions to perform the operations of the business form data structure processing method according to any of embodiment 1.
Example 4:
on the basis of any embodiment of embodiments 1 to 3, this embodiment discloses a computer-readable storage medium for storing computer-readable computer program instructions, where the computer program instructions are configured to, when executed, perform the operation of the business form data structure processing method according to embodiment 1.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above can be implemented by a general purpose computing device, they can be centralized in a single computing device or distributed over a network of multiple computing devices, and they can alternatively be implemented by program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: modifications of the technical solutions described in the embodiments or equivalent replacements of some technical features may still be made. And such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Finally, it should be noted that: the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for processing a service form data structure is characterized in that: the method comprises the following steps:
acquiring index items and basic attribute information thereof, allocating unique index item identification codes to the index items according to the basic attribute information, and then constructing an index item set according to the index item identification codes corresponding to the index items and the basic attribute information; the index item set comprises index item identification codes and basic attribute information corresponding to a plurality of index items;
selecting an appointed index item from the index item set, acquiring form item attribute information of the appointed index item, allocating a unique form item identification code to the appointed index item according to the form item attribute information, and constructing a service form according to the form item identification code, the index item identification code and the form attribute information corresponding to the appointed index item; the business form is used for collecting business data values under the specified index items;
extracting a service data value in the service form, acquiring a form item identification code and an index item identification code corresponding to the service data value, and then constructing a service data set according to the form item identification code and the index item identification code corresponding to the service data value and the service data value;
and receiving a condition to be queried, and reading all service data values and/or service forms matched with the condition to be queried from the service data set according to the condition to be queried.
2. The method of claim 1, wherein the method comprises: the conditions to be inquired comprise index item identification codes with assigned values; when the condition to be queried is an index item identification code of an appointed value, reading all service data values and/or service forms matched with the condition to be queried from the service data set according to the condition to be queried, wherein the reading comprises the following steps:
reading all service data values matched with the assigned values of the index item identification codes from the service data set according to the index item identification codes of the assigned values; or the like, or a combination thereof,
and reading all service data values matched with the assigned value of the index item identification code from the service data set according to the index item identification code of the assigned value, and reading a service form corresponding to the index item identification code of the assigned value from the service data set.
3. The method of claim 1, wherein the method comprises: the index item identification code adopts an index item hash value, and the basic attribute information of the index item comprises an index item name, an index item code and an index item type; correspondingly, the index item identification code of any index item is:
hash(x)=MD5(n+c+t);
the method comprises the following steps that MD5 (×) is an information abstract algorithm, n is an index item name, c is an index item code, and t is an index item type.
4. The method of claim 1, wherein the method comprises: the form item identification code adopts a form item hash value, and the form item attribute information of the designated index item comprises a service form identification code, a service form name, a service form version number and the sequence of the designated index item in the service form; correspondingly, the form item identification code of any specified index item in the service form is as follows:
hash(y)=MD5(hash(t)+name+ver+order);
the method comprises the following steps that MD5 (x) is an information abstract algorithm, hash (t) is a business form identification code, name is a business form name, ver is a business form version number, and order is the sequence of a current specified index item in a business form.
5. The method of claim 4, wherein the method comprises: the service form identification code adopts a service form hash value, the service form identification code is obtained according to service form attribute information, and the service form attribute information comprises a service form name and a service form version number; correspondingly, the identifier of any business form is:
hash(t)=MD5(name+ver);
and the MD5 (, the name) is the name of the business form, and the ver is the version number of the business form.
6. A method for processing a service form data structure according to claim 4 or 5, characterized in that: the conditions to be inquired comprise the identification codes of the business form with the designated values; when the condition to be queried is a service form identification code with an appointed value, reading all service data values and/or service forms matched with the condition to be queried from the service data set according to the condition to be queried, wherein the reading comprises the following steps:
and reading all service data values in the service form and the service form corresponding to the assigned value service form identification code from the service data set according to the assigned value service form identification code.
7. The method of claim 1, wherein the method comprises: after the form item identification code and the index item identification code corresponding to the service data value are obtained, the method further comprises the following steps:
allocating a unique data identification code for the service data value according to the form item identification code corresponding to the service data value, and then constructing a service data set according to the data identification code, the form item identification code and the index item identification code corresponding to the service data value and the service data value;
the data identification code adopts a data hash value, and the data identification code is as follows:
hash(z)=MD5(hash(y)+random(key));
wherein, MD5 (x) is an information abstract algorithm, hash (y) is a list item identification code, and random (key) is a random number.
8. A system for processing a business form data structure, comprising: -means for implementing a business form data structure processing method according to any one of claims 1 to 7; the business form data structure processing system comprises:
the index item set building module is used for obtaining the index items and the basic attribute information thereof, distributing unique index item identification codes for the index items according to the basic attribute information, and building an index item set according to the index item identification codes corresponding to the index items and the basic attribute information; the index item set comprises index item identification codes and basic attribute information corresponding to a plurality of index items;
the business form construction module is in communication connection with the index item set construction module and is used for selecting an appointed index item from the index item set, acquiring form item attribute information of the appointed index item, distributing a unique form item identification code for the appointed index item according to the form item attribute information, and constructing a business form according to the form item identification code, the index item identification code and the form attribute information corresponding to the appointed index item; the business form is used for collecting business data values under the specified index items;
the business data set building module is in communication connection with the business form building module and is used for extracting business data values in the business form, acquiring form item identification codes and index item identification codes corresponding to the business data values, and building a business data set according to the form item identification codes and the index item identification codes corresponding to the business data values and the business data values;
and the data query module is in communication connection with the service data set construction module and is used for receiving the conditions to be queried and reading all service data values and/or service forms matched with the conditions to be queried from the service data set according to the conditions to be queried.
9. An electronic device, characterized in that: the method comprises the following steps:
a memory for storing computer program instructions; and the number of the first and second groups,
a processor for executing the computer program instructions to carry out the operations of the business form data structure processing method of any one of claims 1 to 7.
10. A computer-readable storage medium storing computer-readable computer program instructions, characterized in that: the computer program instructions are configured to perform the operations of the business form data structure processing method of any one of claims 1 to 7 when executed.
CN202211257637.XA 2022-10-14 2022-10-14 Business form data structure processing method, system, electronic device and medium Active CN115328892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211257637.XA CN115328892B (en) 2022-10-14 2022-10-14 Business form data structure processing method, system, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211257637.XA CN115328892B (en) 2022-10-14 2022-10-14 Business form data structure processing method, system, electronic device and medium

Publications (2)

Publication Number Publication Date
CN115328892A true CN115328892A (en) 2022-11-11
CN115328892B CN115328892B (en) 2023-03-24

Family

ID=83914122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211257637.XA Active CN115328892B (en) 2022-10-14 2022-10-14 Business form data structure processing method, system, electronic device and medium

Country Status (1)

Country Link
CN (1) CN115328892B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120124110A1 (en) * 2010-05-25 2012-05-17 Ips Co., Ltd. Database, management server, and management program
CN109254969A (en) * 2018-08-31 2019-01-22 平安科技(深圳)有限公司 Tables of data processing method, device, equipment and storage medium
CN112464279A (en) * 2020-11-26 2021-03-09 北京宏景世纪软件股份有限公司 Method and system for realizing form design based on service drive
CN112783482A (en) * 2021-01-21 2021-05-11 深圳乐信软件技术有限公司 Visual form generation method, device, equipment and storage medium
CN115099205A (en) * 2022-08-25 2022-09-23 宏景科技股份有限公司 Table data management method, system, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120124110A1 (en) * 2010-05-25 2012-05-17 Ips Co., Ltd. Database, management server, and management program
CN109254969A (en) * 2018-08-31 2019-01-22 平安科技(深圳)有限公司 Tables of data processing method, device, equipment and storage medium
CN112464279A (en) * 2020-11-26 2021-03-09 北京宏景世纪软件股份有限公司 Method and system for realizing form design based on service drive
CN112783482A (en) * 2021-01-21 2021-05-11 深圳乐信软件技术有限公司 Visual form generation method, device, equipment and storage medium
CN115099205A (en) * 2022-08-25 2022-09-23 宏景科技股份有限公司 Table data management method, system, device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赖竹斌: "以档案为核心的大数据知识资源系统的开发与建设", 《云南档案》 *

Also Published As

Publication number Publication date
CN115328892B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN111767143B (en) Transaction data processing method, device, equipment and system
CN108205577B (en) Array construction method, array query method, device and electronic equipment
US8301650B1 (en) Bloom filter compaction
US11030178B2 (en) Data storage method and apparatus
CN113704243A (en) Data analysis method, data analysis device, computer device, and storage medium
CN111897818A (en) Data storage method and device, electronic equipment and storage medium
CN111143446A (en) Data structure conversion processing method and device of data object and electronic equipment
WO2017095413A1 (en) Incremental automatic update of ranked neighbor lists based on k-th nearest neighbors
CN113434501A (en) Storage method and device of relational database table and readable storage medium
WO2017065795A1 (en) Incremental update of a neighbor graph via an orthogonal transform based indexing
CN115328892B (en) Business form data structure processing method, system, electronic device and medium
CN112256704A (en) Quick join method, storage medium and computer
CN116842012A (en) Method, device, equipment and storage medium for storing Redis cluster in fragments
CN110221778A (en) Processing method, system, storage medium and the electronic equipment of hotel's data
CN112783971B (en) Transaction recording method, transaction query method, electronic device and storage medium
CN112162731B (en) Data expansion method, device, storage medium and electronic device
CN114417069A (en) Page data interaction method and device and electronic equipment
CN114547184A (en) Personnel information synchronization method, terminal device and storage medium
CN112035471A (en) Transaction processing method and computer equipment
CN110888863A (en) State field optimization method and device, electronic equipment and storage medium
CN114490095B (en) Request result determination method and device, storage medium and electronic device
CN109918374A (en) The method and terminal device of mass data storage
CN117114091B (en) Calculation graph processing method based on federal learning, computer equipment and storage medium
CN108874804B (en) Data storage method, data query method and device
CN114880355A (en) Data processing method, electronic device, and computer-readable 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