CN112214476B - Method for managing and inquiring right item elements based on business model - Google Patents
Method for managing and inquiring right item elements based on business model Download PDFInfo
- Publication number
- CN112214476B CN112214476B CN202011235693.4A CN202011235693A CN112214476B CN 112214476 B CN112214476 B CN 112214476B CN 202011235693 A CN202011235693 A CN 202011235693A CN 112214476 B CN112214476 B CN 112214476B
- Authority
- CN
- China
- Prior art keywords
- item
- data
- model
- layer
- authority
- 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
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/211—Schema design and management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
The invention relates to a method for managing and inquiring right item elements based on a business model, which comprises the following steps: element input is carried out, and the right item elements to be combed are input into an element library; creating a rights item element model; appointing the table name and field name of the corresponding item library for the elements in the authority item element model; respectively binding corresponding authority item element models according to the types of the authority items; reading current transaction data from a third-party transaction library, reading each table information of related transactions through a unique identification UNID of the transactions, and summarizing the read information to form flat two-layer JSON data; and calling a model data conversion interface according to the two-layer JSON data formed by the current item data to generate an element model of the current item data and finish data adaptation. The invention can dynamically adjust the authority items in real time and meet the business requirements.
Description
Technical Field
The invention relates to the technical field of software design and development, in particular to a method for managing and inquiring right item elements based on a business model.
Background
Government affair business frequently changes, and the power matter key element also follows constantly changing along with the deepening of national government affair service, all adopts static key element model among the prior art, can't adapt to this kind of change, leads to subsequent maintenance upgrading cost higher, and the change at every turn all needs technical staff to design the model again, consumes manpower and financial resources.
Disclosure of Invention
In view of this, the present invention provides a method for managing and querying right items elements based on a business model, which can dynamically adjust the right items elements in real time to meet business requirements.
The invention is realized by adopting the following scheme: a method for managing, inquiring and adapting rights item elements based on a business model specifically comprises the following steps:
element input is carried out, and the right item elements to be combed are input into an element library;
creating a rights item element model;
specifying table names and field names of corresponding item libraries for the elements in the rights item element model;
respectively binding corresponding authority item element models according to the types of the authority items;
reading current item data from a third item library, reading out each table information of the related items through a unique identifier UNID of the items, and summarizing the read information to form flat two-layer JSON data;
and calling a model data conversion interface according to the two-layer JSON data formed by the current item data to generate an element model of the current item data and finish data adaptation.
Further, the creating authority item element model specifically includes: model information is first created, then groupings are added, and then element data in the element library is added for each grouping.
Further, the authority item element model adopts a JSON data structure.
Further, the invoking of the model data conversion interface to generate the element model of the current item data specifically includes the following steps:
performing basic reference checking;
inquiring corresponding authority item element model configuration data according to the area code, the model type and the item type in the entry;
and configuring data according to the power item element model, starting from the topmost grouping, performing sub-grouping and element traversal layer by layer according to the grouping, and constructing a JSON data structure layer by layer.
Furthermore, when the JSON data structure is built layer by layer, data is taken from the input reference according to the corresponding table name and field name in each element configuration content, and finally the conversion from the table-field JSON two-layer structure to the multi-layer structure of the power item model is completed.
The invention also provides a system for rights item element management and query adaptation based on a business model, comprising a memory, a processor and computer program instructions stored on the memory and executable by the processor, which when executed by the processor implement the method steps as described above.
The present invention also provides a computer readable storage medium having stored thereon computer program instructions executable by a processor, the computer program instructions, when executed by the processor, performing the method steps as described above.
Compared with the prior art, the invention has the following beneficial effects: according to the invention, by constructing the dynamic authority item model, the increase and decrease of the elements can be adjusted in real time, and the elements are displayed on the page in real time, so that the requirement of frequent change of government affair business can be met.
Drawings
FIG. 1 is a schematic flow chart of a method according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a rights item element model according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a flattened two-layer JSON data structure read from transaction data according to an embodiment of the present invention.
Fig. 4 is a diagram illustrating the conversion of a table-field JSON two-level structure to a rights item model according to an embodiment of the present invention.
Detailed Description
The invention is further explained below with reference to the drawings and the embodiments.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the present application. As used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
As shown in fig. 1, the present embodiment provides a method for managing and querying right item elements based on a business model, which specifically includes the following steps:
s1: element recording is carried out, and the key elements of the right items to be combed are recorded into an element library; for example: business transaction item coding, implementation coding, item basic coding, item type, item name, right source, office type, exercise level, exercise content, exercise range, service content and the like, and the combing right item elements are recorded into an element library;
s2: creating a rights item element model; specifically, the model information is firstly created, then the grouping is added, and then the element data in the element library is added for each grouping. The authority item element model adopts a JSON data structure, as shown in fig. 2:
s3: specifying table names and field names of corresponding item libraries for the elements in the rights item element model;
s4: respectively binding corresponding authority item element models according to the types of the authority items; since the requirements of the elements related to different types of rights items are different, corresponding rights item element models, such as a row license item model, a public service type item model, a collection type item model, etc., need to be respectively specified for different types of items.
S5: reading current item data from a third item library, reading out each table information related to the items through a unique identifier UNID of the items, and summarizing the read related information into a large JSONObject to form flat two-layer JSON data as shown in figure 3;
s6: and calling a model data conversion interface according to the two-layer JSON data formed by the current item data to generate an element model of the current item data and finish data adaptation. The calling of the model data conversion interface to generate the element model of the current item data specifically comprises the following steps:
s61: performing basic reference check; for example: data format check, UNID and PUNID data check of each table data in the authority item data.
S62: inquiring corresponding authority item element model configuration data according to the area code, the model type and the item type in the entry;
s63: and configuring data according to the power item element model, starting from the topmost grouping, performing sub-grouping and element traversal layer by layer according to the grouping, and constructing a JSON data structure layer by layer.
When the JSON data structure is constructed layer by layer, data is fetched from the entries according to the corresponding table name and field name in each element configuration content, and finally, conversion from the table-field JSON two-layer structure to the multi-layer structure of the rights item model is completed, as shown in fig. 4.
The present embodiment also provides a system for management and query adaptation of rights item elements based on a business model, comprising a memory, a processor and computer program instructions stored on the memory and executable by the processor, which when executed by the processor, implement the method steps as described above.
The present embodiments also provide a computer readable storage medium having stored thereon computer program instructions executable by a processor, the computer program instructions, when executed by the processor, performing the method steps as described above.
The foregoing is directed to preferred embodiments of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow. However, any simple modification, equivalent change and modification of the above embodiments according to the technical essence of the present invention are within the protection scope of the technical solution of the present invention.
Claims (4)
1. A method for managing and inquiring right item elements based on a business model is characterized by comprising the following steps:
element recording is carried out, and the key elements of the right items to be combed are recorded into an element library;
creating a rights item element model;
appointing the table name and field name of the corresponding item library for the elements in the authority item element model;
respectively binding corresponding authority item element models according to the types of the authority items;
reading current item data from a third item library, reading out each table information of the related items through a unique identifier UNID of the items, and summarizing the read information to form flat two-layer JSON data;
calling a model data conversion interface according to two-layer JSON data formed by the current item data to generate an element model of the current item data and finish data adaptation;
the creation authority item element model is specifically as follows: firstly, creating model information, then adding groups, and then adding element data in an element library for each group;
the calling of the model data conversion interface to generate the element model of the current item data specifically comprises the following steps:
performing basic reference checking;
inquiring corresponding configuration data of the authority item element model according to the region code, the model type and the item type in the parameter;
according to the configuration data of the power item element model, starting from the topmost grouping, sub-grouping and element traversing the lower layer by layer according to the grouping, and constructing a JSON data structure layer by layer;
when the JSON data structure is built layer by layer, data is taken from the input reference according to the corresponding table name and field name in each element configuration content, and finally, the conversion from the table-field JSON two-layer structure to the multi-layer structure of the power item model is completed.
2. The method for right item element management and query adaptation based on business model as claimed in claim 1, wherein the right item element model employs JSON data structure.
3. A business model-based rights item element management and query adaptation system comprising a memory, a processor and computer program instructions stored on the memory and executable by the processor, the computer program instructions when executed by the processor implementing the method steps of any of claims 1-2.
4. A computer-readable storage medium, having stored thereon computer program instructions executable by a processor, the computer program instructions, when executed by the processor, performing the method steps of any of claims 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011235693.4A CN112214476B (en) | 2020-11-09 | 2020-11-09 | Method for managing and inquiring right item elements based on business model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011235693.4A CN112214476B (en) | 2020-11-09 | 2020-11-09 | Method for managing and inquiring right item elements based on business model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112214476A CN112214476A (en) | 2021-01-12 |
CN112214476B true CN112214476B (en) | 2022-08-19 |
Family
ID=74056651
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011235693.4A Active CN112214476B (en) | 2020-11-09 | 2020-11-09 | Method for managing and inquiring right item elements based on business model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112214476B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108062222A (en) * | 2017-12-18 | 2018-05-22 | 山东浪潮云服务信息科技有限公司 | A kind of administrative power item generation method and device |
CN108268615A (en) * | 2018-01-02 | 2018-07-10 | 中国工商银行股份有限公司 | A kind of data processing method, device and system |
CN110955655A (en) * | 2018-09-26 | 2020-04-03 | 千寻位置网络有限公司 | Dynamic CMDB database model storage method and system |
CN111192005A (en) * | 2019-12-17 | 2020-05-22 | 腾讯云计算(北京)有限责任公司 | Government affair service processing method and device, computer equipment and readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10088979B2 (en) * | 2014-09-26 | 2018-10-02 | Oracle International Corporation | Recasting a form-based user interface into a mobile device user interface using common data |
-
2020
- 2020-11-09 CN CN202011235693.4A patent/CN112214476B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108062222A (en) * | 2017-12-18 | 2018-05-22 | 山东浪潮云服务信息科技有限公司 | A kind of administrative power item generation method and device |
CN108268615A (en) * | 2018-01-02 | 2018-07-10 | 中国工商银行股份有限公司 | A kind of data processing method, device and system |
CN110955655A (en) * | 2018-09-26 | 2020-04-03 | 千寻位置网络有限公司 | Dynamic CMDB database model storage method and system |
CN111192005A (en) * | 2019-12-17 | 2020-05-22 | 腾讯云计算(北京)有限责任公司 | Government affair service processing method and device, computer equipment and readable storage medium |
Non-Patent Citations (1)
Title |
---|
基于知识元的行政权力知识库模型构建与应用研究;王亚杰;《中国优秀博硕士学位论文全文数据库(硕士)社会科学I辑》;20170515;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112214476A (en) | 2021-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220092059A1 (en) | Dynamically materialized views for sheets based data | |
US11755606B2 (en) | Dynamically updated data sheets using row links | |
CN103049271B (en) | The method and apparatus of the description document of automatic generation api interface | |
US7873899B2 (en) | Mapping schemes for creating and storing electronic documents | |
US20040111728A1 (en) | Method and system for managing metadata | |
CN102999537A (en) | System and method for data migration | |
WO2000007120A1 (en) | Object to relational database mapping infrastructure in a customer care and billing system | |
CN110472068A (en) | Big data processing method, equipment and medium based on heterogeneous distributed knowledge mapping | |
CN110457666B (en) | Report generation method, system, electronic equipment and storage medium | |
CN103377336A (en) | Method and system for controlling computer system user rights | |
US6941309B2 (en) | Object integrated management system | |
CN104834860A (en) | Dynamic warehousing method for security events | |
CN101634942A (en) | Method and system for dynamically creating data tables | |
CN101980205A (en) | Universal page generating method | |
CN101499070A (en) | History and real-time data access system and method based on open database interface | |
CN106557307A (en) | The processing method and processing system of business datum | |
CN103345501A (en) | Method and device for updating database | |
US20070011177A1 (en) | Metadata-based form rendering and write-back | |
CN114443615A (en) | Database management system, related apparatus, method and medium | |
CN112214476B (en) | Method for managing and inquiring right item elements based on business model | |
KR102153259B1 (en) | Data domain recommendation method and method for constructing integrated data repository management system using recommended domain | |
CN110955658B (en) | Data organization and storage method based on Java intelligent contract | |
CN111858617A (en) | User searching method and device, computer readable storage medium and electronic equipment | |
CN108846002B (en) | Label real-time updating method and system | |
CN109992980A (en) | A kind of user right multi-model management method |
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 |