CN115328892B - 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 PDFInfo
- Publication number
- CN115328892B CN115328892B CN202211257637.XA CN202211257637A CN115328892B CN 115328892 B CN115328892 B CN 115328892B CN 202211257637 A CN202211257637 A CN 202211257637A CN 115328892 B CN115328892 B CN 115328892B
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims description 9
- 238000012545 processing Methods 0.000 claims abstract description 31
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000004590 computer program Methods 0.000 claims description 10
- 238000004891 communication Methods 0.000 claims description 9
- 238000010276 construction Methods 0.000 claims description 9
- 238000013461 design Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/219—Managing data history or versioning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query 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 service form according to the requirements of the service 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
Technical Field
The invention belongs to the technical field of computer data processing, and particularly relates to a method and a system for processing a business form data structure, electronic equipment and a medium.
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 the following definitions: 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 mode, 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, so that the processing efficiency of the service forms is low.
In addition, in some scenarios where historical business forms and corresponding data in the business forms need to be retained, both the above two manners cannot be directly implemented, and specifically, because only one piece of data needs to be stored in a current business form, a series of historical forms need to be defined, and the data is stored in the historical forms, multiple additional forms need to be defined separately when both the two forms processing manners are adopted, and thus the processing efficiency of the business 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 for 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 item 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.
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 appointed values of the index item identification codes from the service data set according to the index item identification codes with the appointed values, and reading a service form corresponding to the index item identification codes with the appointed values 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 the MD5 (, x) 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 a service form; correspondingly, the form item identification code of any specified index item in the business 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 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.
In one possible design, 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.
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));
wherein, MD5 (x) is an information abstract algorithm, hash (y) is a list item identification code, and 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 item 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 embodiment 1, in which a specific index item is selected from the index item set to define a business form;
fig. 3 is a schematic diagram illustrating a query performed in 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 business data set in embodiment 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:
the present embodiment provides a method for processing a service form data structure, which may be, but is not limited to, executed by a computer device or a virtual machine with certain computing resources, for example, 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, 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 and the basic attribute information corresponding to the index items; 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 attribute information of the appointed index item, allocating a unique form identification code to the appointed index item according to the form attribute information, and constructing a service form according to the form identification code, the index item identification code and the form attribute information corresponding to the appointed index item, wherein the schematic diagram is used for selecting the appointed index item from the index item set to define a certain (service) form as shown in FIG. 2; the business form is used for collecting business data values under the specified index items; it should be noted that the service form is composed of specified index items in the index item set, so that each specific index item in the service form is conveniently and flexibly processed, and the flexible definition of the service form is realized. Specifically, the specified index items 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 identifier code adopts a form item hash value, and the form item attribute information of the specified index item includes a service form identifier 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 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.
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 specified 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 specified 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 as to be used for reading 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));
wherein, MD5 (x) is an information abstract algorithm, hash (y) is a list item identification code, and 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 item angle in the service data set, so that a user can conveniently obtain a service form of the index item identification code comprising the specified 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 that match the assigned values of the index 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, and 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 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.
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 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 item 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 device for a terminal, a portable terminal, a desktop terminal, or the like, and as shown in fig. 3, the electronic device includes:
a memory for storing computer program instructions; and (c) a second step of,
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 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 (5)
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;
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 (, A) is an information abstract algorithm, n is an index item name, c is an index item code, and t is an index item type;
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 for 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 item attribute information corresponding to the appointed index item; the business form is used for collecting business data values under the specified index items;
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);
wherein, hash (t) is the identification code of the business form, name is the name of the business form, ver is the version number of the business form, and order is the sequence of the current specified index item in the business form;
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);
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;
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 condition to be inquired comprises an index item identification code of an appointed 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,
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;
the conditions to be inquired comprise the identification codes of the business form with the designated values; when the condition to be queried is the service form identification code with the designated 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 the business form corresponding to the business form identification code with the appointed value and all business data values in the business form from the business data set according to the business form identification code with the appointed value.
2. 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, hash (y) is a list item identification code, and random (key) is a random number.
3. A system for processing a business form data structure, comprising: -means for implementing a business form data structure processing method according to any of claims 1 to 2; 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 item 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.
4. 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 method of business form data structure processing of any of claims 1 to 2.
5. 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 of claims 1 to 2 when executed.
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 CN115328892A (en) | 2022-11-11 |
CN115328892B true 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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112464279A (en) * | 2020-11-26 | 2021-03-09 | 北京宏景世纪软件股份有限公司 | Method and system for realizing form design based on service drive |
CN115099205A (en) * | 2022-08-25 | 2022-09-23 | 宏景科技股份有限公司 | Table data management method, system, device and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102934106A (en) * | 2010-05-25 | 2013-02-13 | Ips株式会社 | Database, management server, and management program |
CN109254969A (en) * | 2018-08-31 | 2019-01-22 | 平安科技(深圳)有限公司 | Tables of data processing method, device, equipment and storage medium |
CN112783482B (en) * | 2021-01-21 | 2024-03-19 | 深圳乐信软件技术有限公司 | Visual form generation method, device, equipment and storage medium |
-
2022
- 2022-10-14 CN CN202211257637.XA patent/CN115328892B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112464279A (en) * | 2020-11-26 | 2021-03-09 | 北京宏景世纪软件股份有限公司 | Method and system for realizing form design based on service drive |
CN115099205A (en) * | 2022-08-25 | 2022-09-23 | 宏景科技股份有限公司 | Table data management method, system, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115328892A (en) | 2022-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111767143B (en) | Transaction data processing method, device, equipment and system | |
CN111897818B (en) | Data storage method, device, electronic equipment and storage medium | |
CN108205577B (en) | Array construction method, array query method, device and electronic equipment | |
US20180276262A1 (en) | Data Storage Method and Apparatus | |
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 | |
CN111813517A (en) | Task queue allocation method and device, computer equipment and medium | |
CN112631682B (en) | Applet processing method, device, equipment and storage medium | |
CN112256472B (en) | Distributed data retrieval method and device, electronic equipment and storage medium | |
CN104063377A (en) | Information processing method and electronic equipment using same | |
CN113434501A (en) | Storage method and device of relational database table and readable storage medium | |
CN113190551A (en) | Feature retrieval system construction method, feature retrieval method, device and equipment | |
CN115328892B (en) | Business form data structure processing method, system, electronic device and medium | |
CN113742332A (en) | Data storage method, device, equipment and storage medium | |
CN110888863A (en) | State field optimization method and device, electronic equipment and storage medium | |
CN110221778A (en) | Processing method, system, storage medium and the electronic equipment of hotel's data | |
CN115408547A (en) | Dictionary tree construction method, device, equipment 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 | |
CN110874246A (en) | Module loading method, system and equipment | |
CN117114091B (en) | Calculation graph processing method based on federal learning, computer equipment and storage medium | |
CN114490095B (en) | Request result determination method and device, storage medium and electronic device | |
US8849866B2 (en) | Method and computer program product for creating ordered data structure | |
CN108874804B (en) | Data storage method, data query method and device |
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 |