Method and system for quickly constructing public security population business platform
By integrating a dedicated component library for public security and population services and a multi-source heterogeneous data access engine, combined with automated code generation and a multi-terminal application engine, the problems of low efficiency, cumbersome access, and insufficient security in the development of public security and population service platforms have been solved, enabling rapid construction and a unified interface, and improving development efficiency and data security.
Patent Information
- Application Number
- CN202511713541.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-20
- Publication Date
- 2026-04-24
AI Technical Summary
Existing technologies for developing public security population business platforms suffer from problems such as low development efficiency, cumbersome data access, high cost of building multiple terminals, inconsistent interface styles, and insufficient data security.
It adopts an integrated security population business-specific component library, a multi-source heterogeneous data access engine, an automated code generation and multi-terminal application engine. The data access engine enables efficient access and unified management of multi-source heterogeneous data, the front-end component library generates a unified style interface, the back-end component library is called to realize business processes and data encryption, and the multi-terminal application engine enables rapid deployment.
It enabled the rapid construction of a public security population business platform, improved development efficiency, simplified the data access process, ensured the consistency of interface style and data security, and reduced the construction cost of multi-terminal applications.
Smart Images

Figure CN121919205A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for rapidly constructing a public security population business platform, and also to a system for implementing this method, belonging to the field of computer application technology. Background Technology
[0002] The public security population business is the core of public security management, covering multiple scenarios such as population information registration and management, household registration transfer approval, security and prevention of key units, and population data statistical analysis. It is characterized by strong professionalism, prominent special features, complex data sources, and urgent needs for multi-terminal applications.
[0003] In terms of business compatibility, public security and population management involves numerous industry-specific rules. For example, household registration transfer approval requires a multi-level process involving initial review at the community level, secondary review at the district level, and final review at the municipal level. Security measures for key units require differentiated inspection standards based on unit type. However, general development frameworks do not pre-define relevant modules, requiring developers to write business logic code from scratch. Taking a provincial population information management system as an example, the household registration transfer approval module alone requires nearly a thousand lines of code and repeated debugging, with a development cycle of 2-3 weeks for a single module, resulting in low overall development efficiency. Regarding data access, business data exhibits a "multi-source heterogeneous" characteristic, with significant differences in database formats across different cities. Real-time data needs to be obtained through different protocol interfaces, and general data access tools lack unified adaptation capabilities, requiring the separate development of access scripts, which increases workload and is prone to access failures due to compatibility issues. Furthermore, different systems are built by different teams using different technical frameworks, resulting in significant differences in interface styles and a high rate of operational errors. Multi-terminal applications require separate code development for PC, visualization dashboards, and mobile applications, leading to a surge in development costs. Moreover, the general framework lacks a dedicated data security protection mechanism, requiring the additional development of encryption modules. If the algorithm or key management is not handled properly, it can easily lead to the risk of leakage of sensitive personal information.
[0004] Chinese invention patent CN108984166A discloses a rapid development tool system for human-computer interaction software. This technical solution allows for convenient development of the front-end, middle-end, and back-end through a single software development tool, but it still suffers from insufficient adaptation to public security population management, cumbersome data access, and high costs associated with building multi-terminal systems. Summary of the Invention
[0005] The primary technical problem to be solved by this invention is to provide a method for rapidly constructing a public security population business platform.
[0006] Another technical problem that this invention aims to solve is to provide a system for rapidly constructing a public security population business platform.
[0007] To achieve the above-mentioned technical objectives, the present invention adopts the following technical solution: According to a first aspect of the present invention, a method for rapidly constructing a public security population business platform is provided, comprising the following steps: S1: Through the data access engine, call the pre-configured database adapter or API interface adapter to establish a communication connection with the external heterogeneous data source, extract or receive the raw business data from the external data source; use the data conversion module in the data access engine to convert the raw business data into standard data that conforms to the system's predetermined format, and load it into the data center using the Hadoop distributed file system; S2: Instantiate the selected security and population business-specific component from the pre-built front-end component library. The security and population business-specific component includes display components and interactive components. Apply a unified CSS style library to the instantiated component to generate a unified style front-end interface code. S3: Using the code generation engine, generate corresponding basic data operation code based on the data table structure of the data center; call the workflow engine component in the backend component library to define and execute a business process instance based on the security approval rules; call the data encryption and decryption component in the backend component library to perform cryptographic encryption on sensitive business data fields in transmission or storage in accordance with the national cryptographic algorithm; S4: Through the unified authentication management suite, user login requests are authenticated and access tokens are issued; through the system management suite, role and permission mapping relationships are created and stored in the system based on the RBAC model to achieve fine-grained control over user access operations. S5: Through a multi-terminal application engine, the generated front-end interface code is responsively adapted, packaged into application packages suitable for PC browsers, mobile devices and large-screen displays, and deployed to the corresponding target servers through an automated deployment tool.
[0008] Preferably, step S1 specifically includes: In the data access engine's adapter selection interface, select the database adapter, configure the database connection parameters, set the data extraction rules, and execute SQL query statements to extract data via JDBC connection.
[0009] Preferably, step S1 further includes: In the adapter selection interface of the data access engine, select the protocol interface adapter, configure the interface URL, request method, request header parameters and request body format, and receive data by sending HTTPS requests or listening for Web Socket messages.
[0010] Preferably, in step S2, the display components include a population information list display component, an age structure statistical chart component, and a key unit security card component; the interactive components include a name input verification component, a data ownership unit selection component, and a query condition input component.
[0011] Preferably, in step S3, generating basic code through a code generation engine specifically includes: S31: In the code generation engine interface, select the database table for which you want to generate code, check the functions you want to generate, set the code generation path and package name, and generate code for each layer. S32: Execute the data update task through the task scheduling engine, which is implemented using the Quartz framework.
[0012] Preferably, in step S3, hot data is cached through a data cache management component. The data cache management component is optimized for frequently accessed static data, and the cached data types include administrative division data, data belonging to units, and business dictionary data.
[0013] Preferably, in step S4, identity authentication is achieved through a unified authentication management suite, and a JWT-formatted token is generated after successful authentication.
[0014] Preferably, step S4 includes the following sub-steps: S41: The organizational structure management module displays departmental levels using a tree structure; S42: The user management module enables user creation, batch import, and viewing of login records and operation logs; S43: Create roles, assign operation permissions, and associate users with roles based on the RBAC model through the permission management module; S44: Customize the system menu through the menu management module; S45: Maintain commonly used business dictionaries through the dictionary management module; S46: Configure system parameters through the configuration management module; S47: Login logs, operation logs, interface logs, and system logs are recorded through the log management module.
[0015] Preferably, step S5 includes the following sub-steps: S51: Adapts to PC characteristics by using the browser compatibility processing module built into the multi-platform application engine to load corresponding compatibility scripts for the differences in characteristics of different browsers. S52: Through the large-screen dedicated component library provided by the multi-terminal application engine, the large-screen dedicated component library includes heat map component, geographic information map component, and data dashboard component. Set the canvas resolution according to the actual size of the large screen, drag and drop the large screen component onto the canvas, and set the component data refresh frequency. S53: Reconstructs front-end components for mobile devices through a multi-platform application engine, optimizes component size and interaction methods, and integrates native mobile device functions.
[0016] According to a second aspect of the present invention, a system for rapidly constructing a public security population business platform is provided, comprising a processor and a memory; wherein the memory is coupled to the processor and is used to store a computer program, which, when executed by the processor, enables the processor to implement the above-described method.
[0017] Compared with existing technologies, this invention achieves rapid construction and standardized deployment of business systems by constructing an integrated component library for public security population business, a multi-source heterogeneous data access engine, and an automated code generation and multi-terminal application engine. This significantly improves development efficiency, simplifies data access processes, ensures the uniformity of interface style, the reliability of data security, and the good adaptability of multi-terminal applications. It fundamentally solves the technical problems of insufficient business adaptability, cumbersome data access, and high cost of multi-terminal construction in traditional development models. Attached Figure Description
[0018] Figure 1 A flowchart illustrating a method for rapidly constructing a public security population business platform, as provided in the first embodiment of the present invention; Figure 2 This is a flowchart of data access in the first embodiment of the present invention; Figure 3 This is a flowchart of constructing the front-end interface in the first embodiment of the present invention; Figure 4 This is a flowchart illustrating the invocation of a backend component in the first embodiment of the present invention; Figure 5 This is a flowchart illustrating the configuration of a service suite in the first embodiment of the present invention; Figure 6 This is a flowchart of optimizing multi-terminal access in the first embodiment of the present invention; Figure 7 This is a system architecture diagram for the rapid construction of a public security population business platform, provided as a second embodiment of the present invention. Detailed Implementation
[0019] The technical content of the present invention will now be described in detail with reference to the accompanying drawings and specific embodiments.
[0020] First Embodiment like Figure 1As shown, the first embodiment of the present invention provides a method for rapidly constructing a public security population business platform, which includes at least the following steps: S1: Through the data access engine, call the pre-configured database adapter or API interface adapter to establish a communication connection with the external heterogeneous data source, extract or receive the raw business data from the external data source; use the data conversion module in the data access engine to convert the raw business data into standard data that conforms to the system's predetermined format, and load it into the data center using the Hadoop distributed file system; S2: Instantiate the selected security and population business-specific component from the pre-built front-end component library. The security and population business-specific component includes display components and interactive components. Apply a unified CSS style library to the instantiated component to generate a unified style front-end interface code. S3: Using the code generation engine, generate corresponding basic data operation code based on the data table structure of the data center; call the workflow engine component in the backend component library to define and execute a business process instance based on the security approval rules; call the data encryption and decryption component in the backend component library to perform cryptographic encryption on sensitive business data fields in transmission or storage in accordance with the national cryptographic algorithm; S4: Through the unified authentication management suite, user login requests are authenticated and access tokens are issued; through the system management suite, role and permission mapping relationships are created and stored in the system based on the RBAC model to achieve fine-grained control over user access operations. S5: Through a multi-terminal application engine, the generated front-end interface code is responsively adapted, packaged into application packages suitable for PC browsers, mobile devices and large-screen displays, and deployed to the corresponding target servers through an automated deployment tool.
[0021] In one embodiment of the present invention, step S1 achieves efficient access and unified management of multi-source heterogeneous data by pre-setting multiple types of adapters and an automated data processing flow. The data access engine includes two core modules: one is an access adapter for commonly used databases, which has built-in drivers for each database, eliminating the need for developers to import them separately; the other is a multi-protocol interface adapter that can adapt to the interface specifications of various business systems.
[0022] like Figure 2As shown, developers first select the corresponding adapter based on the type of external data source: for a local population database, check "Oracle Database Access Adapter" in the adapter selection interface of the data access engine; for a local real-time business system, select "Web Socket Protocol Interface Adapter". Next, enter the connection parameters in the configuration interface: when selecting the database adapter, fill in the database IP address, port number, database instance name, login username, and password; when selecting the protocol interface adapter, fill in the interface URL, request method, request header parameters, and request body format.
[0023] After clicking the "Test Connection" button, the data access engine automatically sends a test request. If a "Connection Successful" message is returned, continue setting the data extraction / reception rules: Initial data is extracted in full, and the extraction time is set to nighttime to avoid affecting the operation of the business system; incremental data is extracted based on timestamps, and the extraction frequency is set to once every 30 minutes; real-time data establishes a long connection through the Web Socket adapter, and the message listening frequency is set to once per second to ensure real-time reception of business data.
[0024] After initiating the data processing flow, the system first extracts / receives external data through the selected adapters: the database adapter uses JDBC connections to execute SQL queries to extract data, while the protocol interface adapter receives data by sending HTTPS requests or listening for WebSocket messages. Next, the system enters the data transformation phase. The built-in data transformation module calls preset format conversion templates to uniformly convert external data in different formats such as JSON, XML, and CSV into a system-defined relational data format. During the transformation process, a data cleaning submodule is simultaneously activated to automatically remove null fields, correct errors in ID number digits, and standardize date formats. Finally, the cleaned, uniformly formatted data is loaded into the system data center, which uses the Hadoop Distributed File System (HDFS), via a distributed data loading tool. The data center is equipped with at least three data nodes to achieve redundant data storage and ensure data security. Simultaneously, an index is created using the HBase database to improve data query efficiency.
[0025] In one embodiment of the present invention, step S2, based on a pre-built business-specific front-end component library, achieves rapid construction and style consistency of the front-end interface through visual layout and unified style control. The front-end component library includes three main categories: display components, interactive components, and front-end printing components, and all components have undergone compatibility testing.
[0026] like Figure 3As shown, the components are specifically designed for public security and population management scenarios: the population management scenario includes a population information list display component and an age structure statistical chart component; the key unit management scenario includes a key unit security card component (the left side of the card displays the unit name and address, the right side displays the security level indicator (red - high risk, yellow - medium risk, green - low risk), the most recent inspection time and inspection results, and detailed inspection records are displayed when the mouse hovers over them).
[0027] The interactive components incorporate built-in security-specific verification rules and operational logic: the name input verification component verifies the name length, whether it contains non-Chinese characters, and whether the name uses standard Chinese characters in real time when the user enters a name. It also provides input for special characters such as uncommon characters and automatically verifies the 18-digit encoding format when entering an ID number; the data ownership unit selection component displays administrative divisions in a tree structure, expanding layer by layer from the provincial level to the community level, and supports fuzzy search for unit names in the search box, automatically filling in the unit code after selection; the query condition input component provides three input methods: text input, drop-down selection, and date selection, and supports multi-condition queries with "AND / OR" logic.
[0028] The front-end printing component is optimized for commonly used business documents: it supports printing templates for household registration pages, population information statistics reports, and inspection reports of key units, has a built-in printer adaptation module that can automatically identify the connected printer model, supports custom paper size, printing orientation, and number of copies, and the preview interface can be zoomed to view the printing effect and supports partial printing.
[0029] When developers build the interface, they first select the required components in the component library interface. For example, when developing the "Population Query Page" for a provincial population information management system, they select the "Population Information List Display Component," "Name Input Validation Component," "Data Affiliation Unit Selection Component," "Query Condition Input Component," and "Front-end Printing Component." They then enter a drag-and-drop layout interface, with the component list on the left, the page design area in the middle, and the component property configuration panel on the right. Components are placed in the design area by dragging and dropping them, their position and size are adjusted, and component parameters are set in the property panel.
[0030] After completing the layout, apply a unified theme style: the theme style includes a business-specific color scheme, font style, and control style. After application, the system automatically synchronizes the styles of all page components. If you need to fine-tune the style of a specific component, you can set it individually in the properties panel, and the scope of fine-tuning is constrained by the theme style to ensure overall style consistency. Finally, click the "Save Preview" button to preview the interface effect in your browser. After confirming that everything is correct, generate the front-end code, which includes component references, layout logic, and style files, supporting subsequent secondary development.
[0031] In one embodiment of the present invention, step S3 includes the following steps: S31: In the code generation engine interface, select the database table for which you want to generate code, check the functions you want to generate, set the code generation path and package name, and generate code for each layer. S32: Execute the data update task through the task scheduling engine, which is implemented using the Quartz framework.
[0032] Specifically, step S3 achieves rapid integration of core functions by calling a pre-built backend component library, reducing redundant development and allowing focus on personalized implementation of business logic. All components in the backend component library provide detailed interface documentation and support debugging via tools such as Postman.
[0033] like Figure 4 As shown, the code generation engine connects to the system database. Developers select the database table for which code needs to be generated in the engine interface, check the functions to be generated, set the code generation path and package name, and click the "Generate" button. The engine automatically generates code for each layer according to the table structure. Developers only need to add personalized business logic in the business layer. For example, in the "Household Registration Transfer Application Update" code, add the judgment logic that "the application information can only be modified when the review status is 'Pending Review'".
[0034] The task scheduling engine is implemented using the Quartz framework and supports visual task configuration: developers can enter the task name, select the execution cycle, set the execution script, and configure the number of retries after task execution failure in the scheduling interface. After the task starts, the engine automatically records execution logs, which are stored in the system log library and can be queried by task name and time range. When execution fails, an email is automatically sent to the configured email address, and the email content includes the task name, failure time, failure reason, and log link.
[0035] The reporting engine supports custom report design and multi-format export: Developers can drag and drop database fields into the report template area in the report design interface, set field display names, data aggregation rules, select report display format, and set report title, header style, and data row style. After the design is completed, the report data can be previewed, and the report column width and sorting method can be adjusted. The export function supports Excel, PDF, and CSV formats, and the exported files are automatically named.
[0036] The workflow engine is used to build public security business approval processes. Taking the household registration transfer approval process as an example, developers drag and drop "Start Node," "Approval Node," and "End Node" onto the canvas in the workflow designer interface and set node attributes: the "Start Node" is associated with the "Household Registration Transfer Application Form," and the process starts after the applicant submits the form; the "Approval Node" is divided into "Community Police Initial Review," "District Police Secondary Review," and "City Final Review," with each node having a handler, processing time limit, and approval options; the "Flow Rules" are set to "Community Police Approved → District Police Secondary Review," "District Police Approved → City Final Review," and "Any Node Fails → Return to Applicant." After the workflow design is completed, it supports simulated running tests. After inputting test data, the workflow flow can be checked to see if it meets expectations. After the test is error-free, the workflow is published, and the system automatically generates a workflow instance ID. When the applicant submits the application, the workflow interface is called to start the instance, and the handler receives the approval task in the "To-Do Tasks" list after logging into the system.
[0037] The data caching management component is optimized for frequently accessed static data: cached data types include administrative division data, data belonging to specific units, and business dictionary data. Developers can set the cache data type and cache expiration time in the cache configuration interface. The component uses Redis as the cache database for data storage and supports cache preheating, cache refresh, and cache penetration protection. When querying data, the system prioritizes retrieving it from the cache. If the cache hits, the data is returned directly; otherwise, the database is queried and the cache is updated synchronously, significantly reducing the number of database accesses.
[0038] The data encryption / decryption component employs national cryptographic algorithms to ensure the security of sensitive data. Encryption targets include sensitive fields such as citizen identification numbers, names, addresses, and contact numbers. The encryption process is divided into storage encryption and transmission encryption. For storage encryption, the component uses the SM4 symmetric encryption algorithm. The key is uniformly generated and distributed by the system key management center, with a key length of 128 bits. The encrypted data is stored in the database as a hexadecimal string. For transmission encryption, the API interface communication data is encrypted using the HTTPS protocol to prevent data interception during transmission. The component provides encryption / decryption interfaces. Developers can call the "SM4_encrypt" interface to encrypt sensitive data and the "SM4_decrypt" interface to decrypt data in their code. The key management center supports periodic key rotation, which is completed automatically without affecting the normal operation of the system.
[0039] In one embodiment of the present invention, step S4 includes the following sub-steps: S41: The organizational structure management module displays departmental levels using a tree structure; S42: The user management module enables user creation, batch import, and viewing of login records and operation logs; S43: Create roles, assign operation permissions, and associate users with roles based on the RBAC model through the permission management module; S44: Customize the system menu through the menu management module; S45: Maintain commonly used business dictionaries through the dictionary management module; S46: Configure system parameters through the configuration management module; S47: Login logs, operation logs, interface logs, and system logs are recorded through the log management module.
[0040] Specifically, step S4 enables rapid integration of core business functions and granular access control by configuring pre-built business application suites, without requiring extensive code development. The business application suite library is designed based on a microservice architecture, with each suite capable of independent deployment and upgrades, and communication between suites achieved through service registration and discovery mechanisms.
[0041] like Figure 5 As shown, the unified authentication management suite supports multi-dimensional identity authentication: providing three login methods: account password login, facial recognition login, and USB Key login. Account password login requires verification of both username and password; facial recognition login connects to a face database interface, where the suite compares facial feature values after the user uploads a face image, and authentication is successful if the similarity exceeds 90%; USB Key login requires inserting a dedicated USB Key, and the suite reads the certificate information within the Key for identity verification. After successful authentication, the suite generates a JWT format token containing the user's employee ID, department, and role / permission information. The token's validity period is set to 8 hours, after which it automatically expires, requiring the user to log in again. The token is transmitted via HTTP request headers and supports token refresh.
[0042] The system management suite covers core user operation and maintenance needs: The organization management module uses a tree structure to display department levels, supporting the addition, modification, and deletion of departments. Deletion requires verification of whether a user exists in the department; if so, it prompts the user to be transferred first. The user management module supports user creation, batch import of users, and viewing user login records and operation logs. The permission management module is based on the RBAC model, first creating roles, assigning operation permissions to roles with granular permission down to the button level, and then associating users with roles. A user can be associated with multiple roles, and permissions are automatically stacked. The menu management module supports customizing system menus, setting menu names, icons, access paths, etc. The display order is supported, and menu hiding is also supported. The dictionary management module maintains commonly used business dictionaries, such as the "Household Registration Type" dictionary which includes "Agricultural Household," "Non-Agricultural Household," "Family Household," and "Collective Household." It supports adding, modifying, and disabling dictionary entries, and modifications are automatically synchronized to all components that reference the dictionary. The configuration management module supports setting system parameters, such as data backup frequency, log retention period, and API interface timeout. Parameter modifications require administrator password verification. The log management module records four types of logs: login logs, operation logs, interface logs, and system logs. Logs can be queried by time range, log type, and keywords, and can be exported to Excel format.
[0043] The business function suites are designed for core public security and population management operations: the population management suite includes household registration, household migration, population information query, and population statistical analysis; the key unit management suite includes key unit information entry, daily inspection registration, and risk warning and handling. When configuring the business function suites, developers select the required suites in the suite management interface and enter the parameter configuration page: when configuring the population statistical analysis suite, select the statistical dimension, statistical period, and data update frequency; when configuring the key unit daily inspection suite, select the inspection item template, inspection result options, and rectification period. After configuration, click "Enable Suite," and the suite will be automatically integrated into the system without requiring any coding.
[0044] In one embodiment of the present invention, step S5 includes the following sub-steps: S51: Adapts to PC characteristics by using the browser compatibility processing module built into the multi-platform application engine to load corresponding compatibility scripts for the differences in characteristics of different browsers. S52: Through the large-screen dedicated component library provided by the multi-terminal application engine, the large-screen dedicated component library includes heat map component, geographic information map component, and data dashboard component. Set the canvas resolution according to the actual size of the large screen, drag and drop the large screen component onto the canvas, and set the component data refresh frequency. S53: Reconstructs front-end components for mobile devices through a multi-platform application engine, optimizes component size and interaction methods, and integrates native mobile device functions.
[0045] Specifically, step S5 utilizes the automated adaptation and one-click deployment capabilities of the multi-platform application engine to enable rapid delivery of applications across PCs, large-screen visualizations, and mobile devices, meeting the needs of different usage scenarios. The multi-platform application engine supports "develop once, deploy across multiple platforms," with core adaptation logic encapsulated as an independent module, eliminating the need for developers to concern themselves with underlying adaptation details.
[0046] like Figure 6 As shown, the PC browser application adaptation focuses on compatibility and user experience: the engine has a built-in browser compatibility handling module that loads corresponding compatibility scripts for the differences in features of different browsers, ensuring that the page layout is not messed up and interactive functions work normally. At the same time, the responsive layout is optimized according to the common resolutions of PC monitors to ensure that key operation controls are not obstructed. The PC application supports the browser's full-screen mode, which hides the address bar and toolbar after clicking the "full-screen" button, making it suitable for use at fixed workstations in command centers.
[0047] The visualization dashboard application is optimized for high resolution and data display effects: the engine provides a dedicated component library for large screens, supporting vector graphics rendering without distortion when zoomed in, including heatmap components, geographic information map components, and data dashboard components. Developers set the canvas resolution according to the actual size of the large screen, drag and drop large screen components onto the canvas, adjust the component size and position, and set the component data refresh rate. The large screen application supports multi-screen splicing, and the engine automatically handles the component joints to avoid data display breaks. During deployment, the large screen application is set to start automatically on boot, and automatically displays in full screen after startup, supporting remote control.
[0048] Mobile application adaptation focuses on touch operation and device compatibility: The engine refactors front-end components for mobile devices, optimizing component size and interaction methods. When the keyboard pops up, it automatically pushes the page up to avoid obscuring the input box. It adapts to different mobile device screen sizes, using a Flex layout to ensure components adapt to screen width. It integrates native mobile device functions: the location function calls the phone's GPS or BeiDou positioning module to obtain the precise location of police officers during on-site inspections, automatically filling the "Inspection Location" field in the key unit inspection record; the camera function supports scanning ID cards and taking on-site photos; the Bluetooth function supports connection to mobile police terminals to synchronize inspection data and business credentials.
[0049] Multi-platform application deployment employs an automated process: PC browser applications are packaged into WAR files using Maven, and the engine automatically deploys these WAR files to the Tomcat web server, configuring the server port, maximum number of connections, and session timeout. Visual dashboard applications are packaged into static HTML files and deployed to an Nginx server, with static resource caching strategies configured. Mobile applications are packaged to generate iOS and Android installation packages respectively. Upon deployment completion, the engine automatically sends a deployment report to the configured email address, including information such as the deployment platform, deployment time, server address, and access URL, and supports one-click rollback.
[0050] Second Embodiment Based on the above method, the second embodiment of the present invention provides a system for rapidly constructing a public security population business platform. For example... Figure 7 As shown, the system includes one or more processors and a memory. The memory is coupled to the processor and is used to store computer programs that, when executed by the processor, can implement the methods described in the above embodiments.
[0051] The processor controls the overall operation of the system to complete all or part of the steps described above. This processor can be a central processing unit (CPU), graphics processing unit (GPU), field-programmable gate array (FPGA), application-specific integrated circuit (ASIC), digital signal processing (DSP) chip, etc. The memory stores various types of data to support the operation of the system. This data may include, for example, instructions for any application or method operating on the system, as well as application-related data. The memory can be implemented using any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, etc.
[0052] In one exemplary embodiment, the system may be implemented by a computer chip or physical entity, or by a product with certain functions, to perform the methods described above and achieve the same technical effects as those methods described above. A typical embodiment is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, an in-vehicle human-machine interface device, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.
[0053] In another exemplary embodiment, the present invention also provides a computer-readable storage medium including program instructions that, when executed by a processor, implement the steps of the method in any of the above embodiments. For example, the computer-readable storage medium may be the memory including the program instructions described above, which can be executed by a processor to complete the above method and achieve the same technical effects as the above method.
[0054] It should be noted that the above embodiments are merely illustrative examples, and the technical solutions of each embodiment can be combined, all of which are within the protection scope of this invention.
[0055] The method and system for rapidly constructing a public security population business platform provided by this invention have been described in detail above. Any obvious modifications made by those skilled in the art without departing from the essence of this invention will constitute an infringement of the patent rights of this invention and will incur corresponding legal liability.
Claims
1. A method for rapidly constructing a public security population business platform, characterized in that... Includes the following steps: S1: Through the data access engine, call the pre-configured database adapter or API interface adapter to establish a communication connection with the external heterogeneous data source, extract or receive the raw business data from the external data source; use the data conversion module in the data access engine to convert the raw business data into standard data that conforms to the system's predetermined format, and load it into the data center using the Hadoop distributed file system; S2: Instantiate the selected security and population business-specific component from the pre-built front-end component library. The security and population business-specific component includes display components and interactive components. Apply a unified CSS style library to the instantiated component to generate a unified style front-end interface code. S3: Using a code generation engine, generate corresponding basic data operation code based on the data table structure of the data center; Call the workflow engine component in the backend component library to define and execute a business process instance based on security approval rules; call the data encryption / decryption component in the backend component library to perform cryptographic encryption on sensitive business data fields in transmission or storage in accordance with national cryptographic algorithms; S4: Authenticate user login requests and issue access tokens through a unified authentication management suite; By using the system management suite, role-permission mapping relationships are created and stored in the system based on the RBAC model to achieve fine-grained control over user access operations; S5: Through a multi-terminal application engine, the generated front-end interface code is responsively adapted, packaged into application packages suitable for PC browsers, mobile devices and large-screen displays, and deployed to the corresponding target servers through an automated deployment tool.
2. The method as described in claim 1, characterized in that... Step S1 specifically includes: In the data access engine's adapter selection interface, select the database adapter, configure the database connection parameters, set the data extraction rules, and execute SQL query statements to extract data via JDBC connection.
3. The method as described in claim 2, characterized in that... Step S1 further includes: In the adapter selection interface of the data access engine, select the protocol interface adapter, configure the interface URL, request method, request header parameters and request body format, and receive data by sending HTTPS requests or listening for Web Socket messages.
4. The method as described in claim 1, characterized in that... In step S2, the display components include a population information list display component, an age structure statistical chart component, and a key unit security card component; the interactive components include a name input verification component, a data ownership unit selection component, and a query condition input component.
5. The method as described in claim 1, characterized in that... In step S3, the basic code is generated through a code generation engine, specifically including: S31: In the code generation engine interface, select the database table for which you want to generate code, check the functions you want to generate, set the code generation path and package name, and generate code for each layer. S32: Execute the data update task through the task scheduling engine, which is implemented using the Quartz framework.
6. The method as described in claim 1, characterized in that... In step S3, hot data is cached through a data cache management component. The data cache management component is optimized for frequently accessed static data, and the cached data types include administrative division data, data belonging to the unit, and business dictionary data.
7. The method as described in claim 1, characterized in that... In step S4, identity authentication is achieved through a unified authentication management suite, and a JWT-formatted token is generated after successful authentication.
8. The method as described in claim 1, characterized in that... Step S4 includes the following sub-steps: S41: The organizational structure management module displays departmental levels using a tree structure; S42: The user management module enables user creation, batch import, and viewing of login records and operation logs; S43: Create roles, assign operation permissions, and associate users with roles based on the RBAC model through the permission management module; S44: Customize the system menu through the menu management module; S45: Maintain commonly used business dictionaries through the dictionary management module; S46: Configure system parameters through the configuration management module; S47: Login logs, operation logs, interface logs, and system logs are recorded through the log management module.
9. The method as described in claim 1, characterized in that... Step S5 includes the following sub-steps: S51: Adapts to PC characteristics by using the browser compatibility processing module built into the multi-platform application engine to load corresponding compatibility scripts for the differences in characteristics of different browsers. S52: Through the large-screen dedicated component library provided by the multi-terminal application engine, the large-screen dedicated component library includes heat map component, geographic information map component, and data dashboard component. Set the canvas resolution according to the actual size of the large screen, drag and drop the large screen component onto the canvas, and set the component data refresh frequency. S53: Reconstructs front-end components for mobile devices through a multi-platform application engine, optimizes component size and interaction methods, and integrates native mobile device functions.
10. A system for rapidly constructing a public security population business platform, characterized in that... It includes a processor and a memory; wherein the memory is coupled to the processor and is used to store a computer program that, when executed by the processor, causes the processor to implement the method described in any one of claims 1 to 9.
Citation Information
Patent Citations
A rapid development tool system for human-computer interaction software
CN108984166A