Data processing method and system based on page change
By adopting a data processing method based on page changes in the insurance system to dynamically update the page content, the problem of template redevelopment in traditional insurance systems is solved, processing efficiency and cost control are improved, and real-time release and business timeliness needs are supported.
Patent Information
- Application Number
- CN202411745659.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-03-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Dynamic page editing and updates cannot be performed between traditional insured paper warranty policies and electronic insurance policies, resulting in the need to redevelop the template every time a new product is changed or added, which is time-consuming and has high maintenance costs.
Provide a data processing method based on page changes, including determining a query script based on user's needs in the preset page template, verifying the process to generate an execution script, determining the query result in the cache based on the execution script, and generating page rendering data through the target data and quantity information.
It realizes dynamic update of pages, improves processing efficiency, controls costs, solves the problem of template redevelopment in traditional insurance systems, and supports real-time release to meet business timeliness needs.
Smart Images

Figure CN119692934A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method and system based on page change. Background Art
[0002] In recent years, technological innovation has brought new impetus to the development of the insurance industry, and the digital transformation of the insurance industry has been vigorously carried out in various main companies. Among them, electronic insurance policies have the same legal effect as paper insurance certificates that are consistent with their content or their summary.
[0003] Insurance institutions can implement electronic insurance business models to effectively solve problems such as waste of paper costs, low signing timeliness, high document management costs, and difficulty in identifying customer authenticity in the traditional insurance business process, while also achieving the results of optimizing processes, reducing costs and increasing efficiency.
[0004] However, there is a problem that traditional paper insurance policies and electronic insurance policies cannot be dynamically edited and updated, which means that the template needs to be redeveloped every time a change or new product is added, which is time-consuming and has high maintenance costs. Summary of the invention
[0005] In view of the above problems, the present application is proposed to provide a data processing method and system based on page changes that overcome the above problems or at least partially solve the above problems, including:
[0006] A data processing method based on page change, the method comprising:
[0007] Determine the query script in the preset page template according to the input parameter data corresponding to the user's needs;
[0008] Perform verification processing according to the query script to generate an execution script;
[0009] Determining a query result in a preset cache according to the execution script, wherein the query result includes target data and quantity information corresponding to the target data;
[0010] Perform value logic configuration processing according to the target data and the quantity information to generate page rendering data.
[0011] Furthermore, the step of determining the query script in the preset page template according to the input parameter data corresponding to the user's needs includes:
[0012] Determine the target ID in the preset page template according to the input parameter data;
[0013] The query script is generated by editing the script according to the target ID.
[0014] Furthermore, the step of generating an execution script by performing verification processing based on the query script includes:
[0015] Determining a target rule in a preset database according to the target ID corresponding to the query script;
[0016] Determining whether the query script is abnormal according to the target rule;
[0017] When there is no abnormality in the query script, the query script is determined to be a script without abnormality;
[0018] Generate an execution script based on the normal script and the age of the policy.
[0019] Furthermore, the step of generating an execution script based on the normal script and the age of the insurance policy includes:
[0020] Obtaining policy information within the non-abnormal script;
[0021] Determine the policy's age based on the policy information;
[0022] Classifying the insurance policy information into one of a new insurance policy and an old insurance policy according to the newness or oldness of the insurance policy;
[0023] When the policy information is the new policy, the original data source in the verification script is replaced with the first target data source, and the execution script is generated after the replacement; or,
[0024] When the policy information is the old policy, the original data source in the verification script is replaced with the second target data source and the original data table in the verification script is replaced with the first target data table, and the execution script is generated after the replacement.
[0025] Further, the step of determining a query result in a preset cache according to the execution script, wherein the query result includes target data and quantity information corresponding to the target data, comprises:
[0026] Determining whether an identical script exists in the preset cache according to the execution script;
[0027] When there is no target script identical to the execution script in the preset cache, the query result is generated according to the execution script.
[0028] Furthermore, the step of performing value logic configuration processing according to the target data and the quantity information to generate page rendering data includes:
[0029] Determine a response data type according to the target data and the quantity information, wherein the response data type includes an object and a collection;
[0030] When the quantity information is equal to 1, the response data type corresponding to the target data is determined to be an object; or,
[0031] When the quantity information is greater than 1, the target data is determined as the response data type as a set;
[0032] Generate return data according to the object or the collection;
[0033] The value logic configuration processing is performed according to the returned data to generate page rendering data.
[0034] Furthermore, the step of performing value logic configuration processing according to the returned data to generate page rendering data includes:
[0035] Determining a mapping relationship according to the returned data;
[0036] Determining a code value processing logic according to the mapping relationship, wherein the code value processing logic includes sequentially performing date format processing, unit value processing, list set processing, and placeholder processing;
[0037] The returned data is sequentially rendered according to the code value processing logic to generate a target value;
[0038] Transcoding is performed according to the target value to generate the page rendering data.
[0039] In one embodiment of the present application, a data processing system based on page changes is also disclosed, the system comprising:
[0040] A first determination module is used to determine a query script in a preset page template according to input parameter data corresponding to user requirements;
[0041] A first generating module, used for performing verification processing according to the query script to generate an execution script;
[0042] A first determination module, configured to determine a query result in a preset cache according to the execution script, wherein the query result includes target data and quantity information corresponding to the target data;
[0043] The second generating module is used to perform value logic configuration processing according to the target data and the quantity information to generate page rendering data.
[0044] In one embodiment of the present application, a computer device is also disclosed, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the steps of the data processing method based on page changes as described above are implemented.
[0045] In one embodiment of the present application, a computer-readable storage medium is further disclosed. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps of the data processing method based on page change as described above are implemented.
[0046] This application has the following advantages:
[0047] In an embodiment of the present application, compared with the situation in the prior art where dynamic page editing and updating cannot be performed between traditional paper insurance policies and electronic insurance policies, resulting in the need to redevelop templates every time a change or addition of new products occurs, which is time-consuming and has high maintenance costs. The present application provides a solution that can be dynamically updated, improves processing efficiency, and effectively controls costs, specifically: a data processing method based on page changes, the method comprising: determining a query script in a preset page template based on input parameter data corresponding to user needs; performing verification processing based on the query script to generate an execution script; determining query results in a preset cache based on the execution script, wherein the query results include target data and quantity information corresponding to the target data; performing value logic configuration processing based on the target data and the quantity information to generate page rendering data. An execution script is generated by performing verification processing based on the query script; a query result is determined in a preset cache based on the execution script, wherein the query result includes target data and quantity information corresponding to the target data; and page rendering data is generated by performing value logic configuration processing based on the target data and the quantity information. This solves the problem that dynamic page editing and updating cannot be performed between traditional paper insurance policies and electronic insurance policies, resulting in the need to redevelop templates every time a new product is changed or added, which is time-consuming and has high maintenance costs. This effectively improves data processing efficiency and can achieve real-time publishing without restarting background services, effectively meeting business requirements for data timeliness. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0049] Figure 1 It is a step flow chart of a data processing method based on page change provided by an embodiment of the present application;
[0050] Figure 2 It is a structural block diagram of a data processing system based on page change provided by an embodiment of the present application;
[0051] Figure 3 is a structural schematic diagram of a computer device provided by an embodiment of the present invention;
[0052] Figure 4 It is an overall framework diagram of a data processing method based on page change provided in one embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to make the objects, features and advantages of the present application more obvious and understandable, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0054] Reference Figure 1 and Figure 4 , showing a step flow chart and an overall framework diagram of a data processing method based on page change provided by an embodiment of the present application;
[0055] A data processing method based on page change, the method comprising:
[0056] S110, determining a query script in a preset page template according to input parameter data corresponding to user requirements;
[0057] S120, performing verification processing according to the query script to generate an execution script;
[0058] S130, determining a query result in a preset cache according to the execution script, wherein the query result includes target data and quantity information corresponding to the target data;
[0059] S140: Perform value logic configuration processing according to the target data and the quantity information to generate page rendering data.
[0060] In an embodiment of the present application, compared with the situation in the prior art where dynamic page editing and updating cannot be performed between traditional paper insurance policies and electronic insurance policies, resulting in the need to redevelop templates every time a change or addition of new products occurs, which is time-consuming and has high maintenance costs. The present application provides a solution that can be dynamically updated, improves processing efficiency, and effectively controls costs, specifically: a data processing method based on page changes, the method comprising: determining a query script in a preset page template based on input parameter data corresponding to user needs; performing verification processing based on the query script to generate an execution script; determining query results in a preset cache based on the execution script, wherein the query results include target data and quantity information corresponding to the target data; performing value logic configuration processing based on the target data and the quantity information to generate page rendering data. An execution script is generated by performing verification processing based on the query script; a query result is determined in a preset cache based on the execution script, wherein the query result includes target data and quantity information corresponding to the target data; and page rendering data is generated by performing value logic configuration processing based on the target data and the quantity information. This solves the problem that dynamic page editing and updating cannot be performed between traditional paper insurance policies and electronic insurance policies, resulting in the need to redevelop templates every time a new product is changed or added, which is time-consuming and has high maintenance costs. This effectively improves data processing efficiency and can achieve real-time publishing without restarting background services, effectively meeting business requirements for data timeliness.
[0061] Next, a data processing method based on page change in this exemplary embodiment will be further described.
[0062] As described in step S110, a query script is determined in a preset page template based on input parameter data corresponding to user requirements.
[0063] In an embodiment of the present invention, the specific process of "determining a query script in a preset page template according to input parameter data corresponding to user requirements" in step S110 can be further explained in combination with the following description.
[0064] As described in the following steps,
[0065] The step of determining the query script in the preset page template according to the input parameter data corresponding to the user's needs includes:
[0066] S210, determining a target ID in the preset page template according to the input parameter data;
[0067] S220, editing the script according to the target ID to generate the query script.
[0068] It should be noted that the input data is the POST Body parameter, which can contain various types of data, such as user data, file data, and API request data;
[0069] User Data: When a user registers or sends data on a website, the POST Body parameter can contain the user's basic information, such as name, email, password, etc.; this information will be passed to the server, and the server will store this information in the database for subsequent use.
[0070] File data: When you need to upload a file, you can include the file data in the POST Body parameter and the server can store the file in the corresponding location.
[0071] API request data: When using RESTful API for communication, you can request the required data by passing a JSON-formatted data object through the POST Body parameter; this data is usually the parameters for operations such as querying, creating, or modifying data.
[0072] As an example, a preset page template is in the front end, and the ID to be queried, that is, the target ID, is determined in the preset page template through the input parameter data, and the corresponding query script is obtained through the target ID.
[0073] As described in step S120, verification processing is performed based on the query script to generate an execution script.
[0074] In an embodiment of the present invention, the specific process of "generating an execution script by performing verification processing according to the query script" in step S120 can be further explained in combination with the following description.
[0075] As described in the following steps,
[0076] S310, determining a target rule in a preset database according to the target ID corresponding to the query script;
[0077] S320, determining whether the query script is abnormal according to the target rule;
[0078] S330: When there is no abnormality in the query script, determining that the query script is a normal script;
[0079] S340, generating an execution script based on the normal script and the age of the insurance policy.
[0080] As an example, the query script transmitted by the front end and the corresponding target ID are scanned in the preset database to determine the target rules, where the target rules are used to check the normative rules of the corresponding script. The query script is determined to have abnormalities through the target rules, and the script without abnormalities is judged to be new and old to obtain the execution script.
[0081] In a specific implementation, the target rule can be a script checker, wherein the script checker can include a Groovy script checker and a SQL script checker, and the system supports two languages for multi-faceted functional support; the SQL script checker mainly checks SQL security, standardization, illegal characters, empty scripts, whether placeholders correspond one to one, and whether there are abnormal SQL injections in the query conditions, etc.; the Groovy script checker mainly performs non-empty checks.
[0082] As described in step S340, an execution script is generated based on the normal script and the age of the policy.
[0083] In one embodiment of the present invention, the specific process of "generating an execution script based on the normal script and the age of the insurance policy" in step S340 can be further explained in combination with the following description.
[0084] As described in the following steps,
[0085] S410, obtaining insurance policy information in the normal script;
[0086] S420, determining the policy's age based on the policy information;
[0087] S430, classifying the insurance policy information into one of a new insurance policy and an old insurance policy according to the newness or oldness of the insurance policy;
[0088] S440, when the policy information is the new policy, the original data source in the verification script is replaced with the first target data source, and the execution script is generated after the replacement; or,
[0089] S450. When the policy information is the old policy, the original data source in the verification script is replaced with the second target data source and the original data table in the verification script is replaced with the first target data table, and the execution script is generated after the replacement.
[0090] It should be noted that by replacing the data source, the original and latest policy queries are judged to have different data sources and finally assembled into an executable SQL script.
[0091] As an example, the newness of the policy is determined by the policy information, and the data of the normal script is processed based on the newness of the policy. If it is a new policy, only the corresponding data source needs to be replaced; if it is an old policy, the data table and data source need to be replaced; and the execution script is obtained after the replacement is completed.
[0092] In a specific implementation, the old and new policy IDs are transmitted through the front-end script, and a new parameter is added to the SQL to judge. When the parameter is 0, the old policy ID, the script replaces the placeholder. For example, the front-end configuration parameter transmits the "originalFlag": "{@originalFlag}" field to the back-end. The back-end matches this ID through the code and replaces the following original SQL. The original SQL is as follows:
[0093] left join${dataSource}.@{image_}policy_plan pp on ppc.plan_id=pp.id@{and pp.policy_version='1'}
[0094] When the originalFlag flag is judged to be 0, the identifiers starting with @{ and ending with} are removed. After the original order is replaced, it becomes: left join${dataSource}.image_policy_plan pp on ppc.plan_id=pp.id and pp.policy_version='1'. The replacement rule for the new order is @{including all the contents in the middle}. The entire bracket content is replaced with blanks. After the new order is replaced, it becomes: left join${dataSource}.policy_planpp on ppc.plan_id=pp.id. In this way, the query logic of new and old policies can be achieved, and different table structures and different input parameters can be queried.
[0095] As described in step S130, a query result is determined in a preset cache according to the execution script, wherein the query result includes target data and quantity information corresponding to the target data.
[0096] In one embodiment of the present invention, the specific process of "determining a query result in a preset cache according to the execution script, wherein the query result includes target data and quantity information corresponding to the target data" in step S130 can be further explained in combination with the following description.
[0097] As described in the following steps,
[0098] S510, determining whether there is an identical script in the preset cache according to the execution script;
[0099] S520: When there is no target script identical to the execution script in the preset cache, the query result is generated according to the execution script.
[0100] It should be noted that the query result is the result obtained by executing the final logic, and the query result can execute SQL cache.
[0101] As an example, by determining whether there is an identical script in the preset cache, if the identical script exists, the script is stored in the preset cache; if the identical script does not exist, the query result is generated according to the current script.
[0102] In a specific implementation, the same script result is stored in the cache during execution to avoid consuming database performance the next time the same script is executed. The corresponding script is loaded through the GroovyShell.perse method and executed through the Script.run method. Different system source parameters can be selected through the @DS annotation to access different databases, and the corresponding SQL script can be executed through the @Select annotation.
[0103] In a specific implementation, because SQL is text data content, the logic for judging whether to use the cache for the same SQL is to encrypt the corresponding text with MD5 and match it with the MD5 encrypted data in the background cache. If they are consistent, they are the same script, otherwise they are different scripts and will not be cached.
[0104] As described in step S140, value logic configuration processing is performed according to the target data and the quantity information to generate page rendering data.
[0105] In an embodiment of the present invention, the specific process of "performing value logic configuration processing according to the target data and the quantity information to generate page rendering data" in step S140 can be further explained in combination with the following description.
[0106] As described in the following steps,
[0107] S610, determining a response data type according to the target data and the quantity information, wherein the response data type includes an object and a collection;
[0108] S620, when the quantity information is equal to 1, the response data type corresponding to the target data is determined to be an object; or,
[0109] S630, when the quantity information is greater than 1, determining the response data type of the target data as a set;
[0110] S640, generating return data according to the object or the collection;
[0111] S650: Perform value logic configuration processing according to the returned data to generate page rendering data.
[0112] As an example, the target data is encapsulated into the corresponding data type through quantity information, and the return data is generated according to the corresponding type.
[0113] In a specific implementation, the SQL script can convert values, determine whether it is a single piece of data or multiple pieces of data through quantity information, distinguish and generate corresponding collections or objects, thereby obtaining return data, and perform value logic configuration processing on the return data to obtain page rendering data.
[0114] As described in step S650, value logic configuration processing is performed according to the returned data to generate page rendering data.
[0115] In an embodiment of the present invention, the specific process of "performing value logic configuration processing according to the returned data to generate page rendering data" in step S650 can be further explained in combination with the following description.
[0116] As described in the following steps,
[0117] S710, determining a mapping relationship according to the returned data;
[0118] S720, determining a code value processing logic according to the mapping relationship, wherein the code value processing logic includes sequentially performing date format processing, unit value processing, list set processing, and placeholder processing;
[0119] S730, the returned data is rendered in sequence according to the code value processing logic to generate a target value;
[0120] S740: Perform transcoding processing according to the target value to generate the page rendering data.
[0121] As an example, a mapping relationship is determined by returning data, and a code value processing logic is determined by the mapping relationship. The final data rendering is performed according to the code value processing logic to obtain page rendering data.
[0122] In a specific implementation, the final data rendering is performed after the return data is obtained, which is mainly divided into processing code table conversion to Chinese, date format standardization conversion, whether to add unit conversion, whether to hide the corresponding field processing, whether to rename the current field processing, single-line list parsing processing, list list parsing processing, placeholder replacement value processing, uppercase Chinese number processing, etc.; after the above processing and conversion, the page rendering data message is finally obtained and displayed on the page.
[0123] Embodiment 1
[0124] The corresponding sql encoding id is matched with the input parameter information to find the corresponding script, and then the script specifications are checked to see if there is an error script. After the check is passed, the script is converted into a script that can be executed by the database through the input parameters. After the conversion is successful, the script that can be executed by the database is executed to query the corresponding results product_info (value record) and product_info_def (product extension field column). Then, the results are processed into a single object and multiple collections through the configured value return effect. Finally, the product_info value is hidden in the context, the product_info_def field is rendered, and the detailed value is configured by configuring the data set configuration for each field field mapping. For example, if you set the resetvalue of the engineering cost field to true, the engineeringCost value in product_info will be automatically assigned to the value of the engineeringCost node in product_info_def, and the unit yuan will be added to the field, and finally 118221633.97 yuan will be obtained; for another example, the engineering type field configuration has the resetvalue attribute set to true. Referring to the previous case assignment, since the database stores the code and is multi-level, it needs to be transcoded and the multi-levels are separated by / , so the configuration notes, after the final transcoding, the two values of engineering cost and engineering type are rendered to the page.
[0125] As for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0126] Reference Figure 2 , showing a structural block diagram of a data processing system based on page change provided by an embodiment of the present application;
[0127] A data processing system based on page change, the system comprising:
[0128] A first determination module 210, configured to determine a query script in a preset page template according to input parameter data corresponding to user requirements;
[0129] A first generating module 220, configured to generate an execution script by performing verification processing according to the query script;
[0130] A first determination module 230, configured to determine a query result in a preset cache according to the execution script, wherein the query result includes target data and quantity information corresponding to the target data;
[0131] The second generating module 240 is used to perform value logic configuration processing according to the target data and the quantity information to generate page rendering data.
[0132] In one embodiment of the present invention, the first determining module 210 includes:
[0133] A first determination submodule, used to determine a target ID in the preset page template according to the input parameter data;
[0134] The first generation submodule is used to edit the script according to the target ID to generate the query script.
[0135] In one embodiment of the present invention, the first generating module 220 includes:
[0136] A second determination submodule, used to determine a target rule in a preset database according to the target ID corresponding to the query script;
[0137] A third determination submodule is used to determine whether the query script is abnormal according to the target rule;
[0138] A fourth determination submodule is used to determine that the query script is a normal script when there is no abnormality in the query script;
[0139] The second generation submodule is used to generate an execution script based on the normal script and the age of the policy.
[0140] In one embodiment of the present invention, the second generating submodule includes:
[0141] A first acquisition unit, used for acquiring policy information in the normal script;
[0142] A first determining unit, configured to determine the policy age based on the policy information;
[0143] A first classification unit, configured to classify the policy information into one of a new policy and an old policy according to the newness or oldness of the policy;
[0144] a first generating unit, configured to replace the original data source in the verification script with the first target data source when the policy information is the new policy, and generate the execution script after the replacement; or
[0145] The second generating unit is used to replace the original data source in the verification script with the second target data source and the original data table in the verification script with the first target data table when the policy information is the old policy, and generate the execution script after the replacement.
[0146] In one embodiment of the present invention, the first determining module 230 includes:
[0147] A fifth determination submodule, configured to determine whether an identical script exists in the preset cache according to the execution script;
[0148] The third generating submodule is used to generate the query result according to the execution script when there is no target script identical to the execution script in the preset cache.
[0149] In one embodiment of the present invention, the second generating module 240 includes:
[0150] a sixth determination submodule, configured to determine a response data type according to the target data and the quantity information, wherein the response data type includes an object and a collection;
[0151] a seventh determination submodule, configured to determine the type of the response data corresponding to the target data as an object when the quantity information is equal to 1; or
[0152] an eighth determination submodule, configured to determine the type of the response data of the target data as a set when the quantity information is greater than 1;
[0153] A fourth generating submodule, used for generating return data according to the object or the collection;
[0154] The fifth generating submodule is used to perform value logic configuration processing according to the returned data to generate page rendering data.
[0155] In one embodiment of the present invention, the fifth generation submodule includes:
[0156] A second determining unit, configured to determine a mapping relationship according to the returned data;
[0157] A third determining unit is used to determine a code value processing logic according to the mapping relationship, wherein the code value processing logic includes sequentially performing date format processing, unit value processing, list set processing, and placeholder processing;
[0158] A third generating unit, configured to render the returned data in sequence according to the code value processing logic to generate a target value;
[0159] The fourth generating unit is used to perform transcoding processing according to the target value to generate the page rendering data.
[0160] The beneficial effects of this application are as follows: the script is directly transmitted through the front end, and the back end uses dynamic data processing logic from inspection to execution, result return, and value processing, so that it can efficiently query the real-time changing data in the background. If there is a field change in the front end, the page configuration can be directly modified by the script to achieve it, without the need to release a version or modify the code in the back end. It greatly saves development efficiency and improves business experience. The dynamic data processing mechanism can efficiently process business-end data, greatly reducing dependence on background services, and the desired business effect can be achieved without restarting the server. Significantly reduce development efficiency, and shift from the original back-end development to page configuration development. Significantly improve the online efficiency, from the original one-week online production time to one-day online production time.
[0161] Reference Figure 3 , showing a computer device of a data processing method based on page change of the present invention, which may specifically include the following:
[0162] The computer device 12 is in the form of a general-purpose computing device, and the components of the computer device 12 may include but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0163] The bus 18 represents one or more of several types of bus 18 structures, including a memory bus 18 or memory controller, a peripheral bus 18, an accelerated graphics port, a processor or a local bus 18 using any of a variety of bus 18 architectures. These architectures include, by way of example, but are not limited to, an Industry Standard Architecture (ISA) bus 18, a Micro Channel Architecture (MAC) bus 18, an Enhanced ISA bus 18, an Audio Video Electronics Standards Association (VESA) local bus 18, and a Peripheral Component Interconnect (PCI) bus 18.
[0164] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0165] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (commonly referred to as a "hard drive"). Although Figure 3Not shown, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory may include at least one program product having a set (e.g., at least one) of program modules 42, which are configured to perform the functions of various embodiments of the present invention.
[0166] A program / utility 40 having a set (at least one) of program modules 42 may be stored in, for example, a memory, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules 42, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0167] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, cameras, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs)), wide area networks (WANs), and / or public networks (e.g., the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be understood that although Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units 16, external disk drive arrays, RAID systems, tape drives, and data backup storage systems 34, etc.
[0168] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the data processing method based on page change provided in the embodiment of the present invention.
[0169] That is, when the processing unit 16 executes the program, it realizes: determining a query script in a preset page template based on input parameter data corresponding to user requirements; performing verification processing based on the query script to generate an execution script; determining a query result in a preset cache based on the execution script, wherein the query result includes target data and quantity information corresponding to the target data; performing value logic configuration processing based on the target data and the quantity information to generate page rendering data.
[0170] In an embodiment of the present invention, the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the data processing method based on page change provided in all embodiments of the present application is implemented:
[0171] That is, when the program is executed by the processor, it is implemented as follows: determining a query script in a preset page template based on input parameter data corresponding to user needs; performing verification processing based on the query script to generate an execution script; determining a query result in a preset cache based on the execution script, wherein the query result includes target data and quantity information corresponding to the target data; performing value logic configuration processing based on the target data and the quantity information to generate page rendering data.
[0172] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device.
[0173] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0174] The computer program code for performing the operation of the present invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.
[0175] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0176] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0177] The above is a detailed introduction to a data processing method and system based on page changes provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A data processing method based on page change, characterized in that: The method comprises: Determine the query script in the preset page template according to the input parameter data corresponding to the user's needs; Perform verification processing according to the query script to generate an execution script; Determining a query result in a preset cache according to the execution script, wherein the query result includes target data and quantity information corresponding to the target data; Perform value logic configuration processing according to the target data and the quantity information to generate page rendering data.
2. The method according to claim 1, characterized in that The step of determining the query script in the preset page template according to the input parameter data corresponding to the user's needs includes: Determine the target ID in the preset page template according to the input parameter data; The query script is generated by editing the script according to the target ID.
3. The method according to claim 1, characterized in that The step of performing verification processing according to the query script to generate an execution script comprises: Determining a target rule in a preset database according to the target ID corresponding to the query script; Determining whether the query script is abnormal according to the target rule; When there is no abnormality in the query script, the query script is determined to be a script without abnormality; Generate an execution script based on the normal script and the age of the policy.
4. The method according to claim 3, characterized in that The step of generating an execution script based on the normal script and the age of the policy includes: Obtaining policy information within the non-abnormal script; Determine the policy's age based on the policy information; Classifying the insurance policy information into one of a new insurance policy and an old insurance policy according to the newness or oldness of the insurance policy; When the policy information is the new policy, the original data source in the verification script is replaced with the first target data source, and the execution script is generated after the replacement; or, When the policy information is the old policy, the original data source in the verification script is replaced with the second target data source and the original data table in the verification script is replaced with the first target data table, and the execution script is generated after the replacement.
5. The method according to claim 1, characterized in that The step of determining a query result in a preset cache according to the execution script, wherein the query result includes target data and quantity information corresponding to the target data, comprises: Determining whether an identical script exists in the preset cache according to the execution script; When there is no target script identical to the execution script in the preset cache, the query result is generated according to the execution script.
6. The method according to claim 1, characterized in that The step of performing value logic configuration processing according to the target data and the quantity information to generate page rendering data includes: Determine a response data type according to the target data and the quantity information, wherein the response data type includes an object and a collection; When the quantity information is equal to 1, the response data type corresponding to the target data is determined to be an object; or, When the quantity information is greater than 1, the target data is determined as the response data type as a set; Generate return data according to the object or the collection; The value logic configuration processing is performed according to the returned data to generate page rendering data.
7. The method according to claim 6, characterized in that The step of performing value logic configuration processing according to the returned data to generate page rendering data includes: Determining a mapping relationship according to the returned data; Determining a code value processing logic according to the mapping relationship, wherein the code value processing logic includes sequentially performing date format processing, unit value processing, list set processing, and placeholder processing; The returned data is sequentially rendered according to the code value processing logic to generate a target value; Transcoding is performed according to the target value to generate the page rendering data.
8. A data processing system based on page changes, characterized in that: The system comprises: A first determination module is used to determine a query script in a preset page template according to input parameter data corresponding to user requirements; A first generating module, used for performing verification processing according to the query script to generate an execution script; A first determination module, configured to determine a query result in a preset cache according to the execution script, wherein the query result includes target data and quantity information corresponding to the target data; The second generating module is used to perform value logic configuration processing according to the target data and the quantity information to generate page rendering data.
9. A computer device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method according to any one of claims 1 to 7 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Page processing method and device, terminal equipment, server and storage medium
CN110825479A
Page rendering method and device, equipment and medium
CN114637938A
Dynamic page configuration method and device, computer equipment and storage medium
CN117492752A
Document generation method and device and storage medium
CN118657135A