CN116909575A - Product model deployment method - Google Patents

Product model deployment method Download PDF

Info

Publication number
CN116909575A
CN116909575A CN202310534922.XA CN202310534922A CN116909575A CN 116909575 A CN116909575 A CN 116909575A CN 202310534922 A CN202310534922 A CN 202310534922A CN 116909575 A CN116909575 A CN 116909575A
Authority
CN
China
Prior art keywords
json object
production environment
product
local database
product model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310534922.XA
Other languages
Chinese (zh)
Inventor
朱咪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Life Property and Casualty Insurance Co Ltd
Original Assignee
China Life Property and Casualty Insurance Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Life Property and Casualty Insurance Co Ltd filed Critical China Life Property and Casualty Insurance Co Ltd
Priority to CN202310534922.XA priority Critical patent/CN116909575A/en
Publication of CN116909575A publication Critical patent/CN116909575A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a method for deploying a product model, and relates to the technical field of computers. One embodiment of the method comprises the following steps: in a test environment, integrating product information into a JSON object; storing the JSON object in a local database; selecting the JSON object corresponding to the local database in a production environment; the JSON object is deployed from a local database to the production environment. The implementation mode solves the technical defects that the efficiency is low and configuration errors are easy to generate in the prior art, and further achieves the technical effect of deploying the product model of the test environment to the production environment efficiently, rapidly and accurately.

Description

Product model deployment method
Technical Field
The application relates to the technical field of computers, in particular to a method for deploying a product model.
Background
At present, a plurality of informatization systems need to be tested and adjusted in a test environment in a release production environment, a product model necessarily needs to be configured in the test environment, a production environment is configured in one set, the traditional release production environment mode mainly comprises three modes, and the following technical defects exist for each mode:
1. for the standard test environment product information, the production environment product information is manually configured, and the manual configuration mode is time-consuming and labor-consuming and has low efficiency.
2. Excel form data is exported through a test environment, and then imported on a production environment, wherein the method only supports incremental import, and when a plurality of tables are involved, the excel form data needs to be imported for a plurality of times, and parameters need to be manually fine-tuned.
3. The sql script is exported through the test environment database, and the sql data is imported on the production environment database, so that the database needs to be operated, the sql script needs to be manually modified, and the operation difficulty is high.
Disclosure of Invention
In view of the above, the embodiment of the application provides a method for deploying a product model, which can solve the technical defects of low efficiency and easy configuration error in the prior art, and further achieve the technical effect of deploying the product model of a test environment to a production environment efficiently, rapidly and accurately.
To achieve the above object, according to an aspect of an embodiment of the present application, there is provided a method for product model deployment, including:
in a test environment, integrating product information into a JSON object;
storing the JSON object in a local database;
selecting the JSON object corresponding to the local database in a production environment;
the JSON object is deployed from a local database to the production environment.
Optionally, deploying the JSON object from a local database at the production environment includes:
parsing the JSON object of the local database in a production environment;
determining a custom parameter according to the production environment and the parsed JSON object;
and assembling the parsed JSON object and the custom parameters, and storing an assembled result in a production environment database to realize the deployment of the JSON object in the production environment from a local database.
Optionally, in the testing environment, integrating the product information into JSON objects includes:
determining the type of a product model to be deployed;
if the product model to be deployed is determined to be an incremental product model, incremental product information corresponding to the product is collected;
and integrating the incremental product information into a JSON object.
Optionally, in the testing environment, integrating the product information into JSON objects includes:
determining the type of a product model to be deployed;
if the product model to be deployed is determined to be a full-quantity product model, collecting full-quantity product information corresponding to the product;
integrating the full-volume product information into a JSON object.
Optionally, the full-volume product information includes at least one of:
project information, product information, sales information, docking control information, rule information.
According to yet another aspect of an embodiment of the present application, there is provided an apparatus for product model deployment, including:
the information integration module is used for integrating the product information into JSON objects in the test environment;
the local saving module is used for saving the JSON object in a local database;
the selecting module is used for selecting the JSON object corresponding to the local database in the production environment;
and the deployment module is used for deploying the JSON object from a local database to the production environment.
Optionally, the deployment module is configured to deploy the JSON object from a local database in the production environment, and includes:
parsing the JSON object of the local database in a production environment;
determining a custom parameter according to the production environment and the parsed JSON object;
and assembling the parsed JSON object and the custom parameters, and storing an assembled result in a production environment database to realize the deployment of the JSON object in the production environment from a local database.
Optionally, in the testing environment, integrating the product information into JSON objects includes:
determining the type of a product model to be deployed;
if the product model to be deployed is determined to be an incremental product model, incremental product information corresponding to the product is collected;
and integrating the incremental product information into a JSON object.
According to another aspect of an embodiment of the present application, there is provided an electronic device for product model deployment, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of product model deployment provided by the present application.
According to yet another aspect of an embodiment of the present application, there is provided a computer readable medium having stored thereon a computer program which when executed by a processor implements the method of product model deployment provided by the present application.
One embodiment of the above application has the following advantages or benefits:
the application integrates the product information into the JSON object so as to realize the technical means of quick deployment, thereby solving the technical defects of low efficiency and easy configuration error in the prior art and further achieving the technical effect of deploying the product model of the test environment to the production environment efficiently, quickly and accurately.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the application and are not to be construed as unduly limiting the application. Wherein:
FIG. 1 is a schematic illustration of the main flow of a method of product model deployment according to an embodiment of the application;
FIG. 2 is a flow chart of a method of incremental product model deployment according to an embodiment of the present application;
FIG. 3 is a flow chart of a method of full volume product model deployment according to an embodiment of the present application;
FIG. 4 is a schematic diagram of the major modules of an apparatus for product model deployment according to an embodiment of the present application;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
fig. 6 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
FIG. 1 is a schematic diagram of the main flow of a method of product model deployment according to an embodiment of the application. As shown in fig. 1, a method for product model deployment includes:
step S101, integrating product information into JSON objects in a test environment;
step S102, storing the JSON object in a local database;
step S103, selecting the JSON object corresponding to the local database in the production environment;
step S104, deploying the JSON object in the production environment from a local database.
The application integrates the product information into the JSON object so as to realize the technical means of quick deployment, thereby solving the technical defects of low efficiency and easy configuration error in the prior art and further achieving the technical effect of deploying the product model of the test environment to the production environment efficiently, quickly and accurately.
The application can quickly, efficiently and accurately synchronize the product model of the test environment to the production environment, has simple and efficient operation, further greatly shortens the workload and time for releasing the production environment, and improves the data correctness of the production environment. In addition, the application uses the JSON format to store data, the data format is simpler, the formats are all compressed, the occupied bandwidth is small, and the JSON format is easier to analyze compared with the XML format or the ZIP packet mode.
The method and the device can provide two modes of release, namely a full-quantity release mode and an increment release mode, the full-quantity release mode is concise and efficient, an operator can perform full-quantity release by one key only by filling part of user-defined parameter information, the operation complexity is reduced, the operation efficiency and the accuracy are improved, and the increment release mode provides a solution of how to perform targeted increment release of a product model under the existing condition of a production environment.
Deploying the JSON object from a local database, whether a full or incremental product model deployment, at the production environment, comprising:
parsing the JSON object of the local database in a production environment;
determining a custom parameter according to the production environment and the parsed JSON object;
and assembling the parsed JSON object and the custom parameters, and storing an assembled result in a production environment database to realize the deployment of the JSON object in the production environment from a local database.
The application provides an interface for inquiring the product mapping relation of a test environment and a production environment. Can be used to trace back to the product model of the test environment through the product model of the production environment.
FIG. 2 is a flow chart of a method of incremental product model deployment according to an embodiment of the present application;
the full release steps mainly comprise:
s2.1, export of a product model:
in the test environment, an operator selects a product model passing the test, opens a export interface, clicks a full export button, and the system collects full information of the product model and outputs data to the local in json data format.
S2.2, importing a product model:
in the production environment, an operator opens an import interface, clicks a full import button, and selects a local json-format product model, and at the moment, a custom data filling page is displayed for filling out the custom parameter information of the production environment. And after the writing is finished, the system pops up the mapping information of the parameters of the test environment and the production environment. The operator can also query the test environment and production environment parameter mapping information in the test environment and production environment parameter mapping query interface.
That is, in a test environment, integrating product information into JSON objects includes:
determining the type of a product model to be deployed;
if the product model to be deployed is determined to be an incremental product model, incremental product information corresponding to the product is collected;
and integrating the incremental product information into a JSON object.
FIG. 3 is a flow chart of a method of full volume product model deployment according to an embodiment of the present application;
the step of increment release mainly comprises the following steps:
s3.1 derivation of product model
In the test environment, an operator selects a part of parameter interfaces of a product model passing through the test, opens a export interface, clicks an increment export button, and the system collects increment information of the product model and outputs data to the local in a json data format.
S3.2 import of product models
In the production environment, an operator opens an import interface, clicks an increment import button, and selects product model increment information in a local json format. At this time, a custom data filling page is displayed for filling out the custom parameter information of the production environment, after filling out, the custom data filling page is stored, the system can analyze each item of parameter information of the product model, and the parameter information is written into the production environment to realize incremental release.
That is, in a test environment, integrating product information into JSON objects includes:
determining the type of a product model to be deployed;
if the product model to be deployed is determined to be an incremental product model, incremental product information corresponding to the product is collected;
and integrating the incremental product information into a JSON object. Wherein the full-scale product information includes, but is not limited to, at least one of:
project information, product information, sales information, docking control information, rule information.
FIG. 4 is a schematic diagram of the major modules of an apparatus for product model deployment according to an embodiment of the present application.
As shown in fig. 4, an apparatus for product model deployment, comprising: comprising the following steps:
the information integration module is used for integrating the product information into JSON objects in the test environment;
the local saving module is used for saving the JSON object in a local database;
the selecting module is used for selecting the JSON object corresponding to the local database in the production environment;
and the deployment module is used for deploying the JSON object from a local database to the production environment.
Optionally, the deployment module is configured to deploy the JSON object from a local database in the production environment, and includes:
parsing the JSON object of the local database in a production environment;
determining a custom parameter according to the production environment and the parsed JSON object;
and assembling the parsed JSON object and the custom parameters, and storing an assembled result in a production environment database to realize the deployment of the JSON object in the production environment from a local database.
Optionally, in the testing environment, integrating the product information into JSON objects includes:
determining the type of a product model to be deployed;
if the product model to be deployed is determined to be an incremental product model, incremental product information corresponding to the product is collected;
and integrating the incremental product information into a JSON object.
FIG. 5 illustrates an exemplary system architecture 500 to which a product model deployment method or device of embodiments of the present application may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 505 via the network 504 using the terminal devices 501, 502, 503 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and process the received data such as the product information query request, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the product model deployment method provided in the embodiment of the present application is generally executed by the server 505, and accordingly, the product model deployment device is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use in implementing an embodiment of the present application. The terminal device shown in fig. 6 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
The computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present application may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a sending module, an obtaining module, a determining module, and a first processing module. The names of these modules do not in some cases limit the module itself, and for example, the transmitting module may also be described as "a module that transmits a picture acquisition request to a connected server".
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include:
in a test environment, integrating product information into a JSON object;
storing the JSON object in a local database;
selecting the JSON object corresponding to the local database in a production environment;
the JSON object is deployed from a local database to the production environment.
According to the technical scheme provided by the embodiment of the application, the following technical effects can be achieved:
the application integrates the product information into the JSON object so as to realize the technical means of quick deployment, thereby solving the technical defects of low efficiency and easy configuration error in the prior art and further achieving the technical effect of deploying the product model of the test environment to the production environment efficiently, quickly and accurately.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (10)

1. A method of product model deployment, comprising:
in a test environment, integrating product information into a JSON object;
storing the JSON object in a local database;
selecting the JSON object corresponding to the local database in a production environment;
the JSON object is deployed from a local database to the production environment.
2. The method of claim 1, wherein deploying the JSON object from a local database at the production environment comprises:
parsing the JSON object of the local database in a production environment;
determining a custom parameter according to the production environment and the parsed JSON object;
and assembling the parsed JSON object and the custom parameters, and storing an assembled result in a production environment database to realize the deployment of the JSON object in the production environment from a local database.
3. The method of claim 1, wherein integrating product information into JSON objects in a test environment comprises:
determining the type of a product model to be deployed;
if the product model to be deployed is determined to be an incremental product model, incremental product information corresponding to the product is collected;
and integrating the incremental product information into a JSON object.
4. The method of claim 1, wherein integrating product information into JSON objects in a test environment comprises:
determining the type of a product model to be deployed;
if the product model to be deployed is determined to be a full-quantity product model, collecting full-quantity product information corresponding to the product;
integrating the full-volume product information into a JSON object.
5. The method of claim 4, wherein the full-scale product information comprises at least one of:
project information, product information, sales information, docking control information, rule information.
6. An apparatus for product model deployment, comprising:
the information integration module is used for integrating the product information into JSON objects in the test environment;
the local saving module is used for saving the JSON object in a local database;
the selecting module is used for selecting the JSON object corresponding to the local database in the production environment;
and the deployment module is used for deploying the JSON object from a local database to the production environment.
7. The method of claim 1, wherein the deploying module for deploying the JSON object from a local database at the production environment comprises:
parsing the JSON object of the local database in a production environment;
determining a custom parameter according to the production environment and the parsed JSON object;
and assembling the parsed JSON object and the custom parameters, and storing an assembled result in a production environment database to realize the deployment of the JSON object in the production environment from a local database.
8. The method of claim 1, wherein integrating product information into JSON objects in a test environment comprises:
determining the type of a product model to be deployed;
if the product model to be deployed is determined to be an incremental product model, incremental product information corresponding to the product is collected;
and integrating the incremental product information into a JSON object.
9. An electronic device for product model deployment, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-5.
10. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-5.
CN202310534922.XA 2023-05-12 2023-05-12 Product model deployment method Pending CN116909575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310534922.XA CN116909575A (en) 2023-05-12 2023-05-12 Product model deployment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310534922.XA CN116909575A (en) 2023-05-12 2023-05-12 Product model deployment method

Publications (1)

Publication Number Publication Date
CN116909575A true CN116909575A (en) 2023-10-20

Family

ID=88365605

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310534922.XA Pending CN116909575A (en) 2023-05-12 2023-05-12 Product model deployment method

Country Status (1)

Country Link
CN (1) CN116909575A (en)

Similar Documents

Publication Publication Date Title
CN107451109B (en) Report generation method and system
CN110780874B (en) Method and device for generating information
CN110232091B (en) Method, system and apparatus for synchronizing data
CN109815107A (en) The method and apparatus of automatic test
CN113505302A (en) Method, device and system for supporting dynamic acquisition of buried point data and electronic equipment
CN111444077A (en) Method and device for generating flow node test data
CN113190517B (en) Data integration method and device, electronic equipment and computer readable medium
CN111443909A (en) Method and device for generating page
CN107368407B (en) Information processing method and device
CN113515462A (en) Method, device, equipment and storage medium for testing
CN112579406B (en) Log call chain generation method and device
CN116881166A (en) Method, device and system for generating test script
CN110806967A (en) Unit testing method and device
CN116909575A (en) Product model deployment method
CN112783903B (en) Method and device for generating update log
CN112131095B (en) Pressure testing method and device
CN113378346A (en) Method and device for model simulation
US20170093951A1 (en) Systems and methods for enhancing performance of resource state polling
CN113704079A (en) Interface testing method and device based on Protobuf
CN113536748A (en) Method and device for generating chart data
CN112579428A (en) Interface testing method and device, electronic equipment and storage medium
CN113268417B (en) Task execution method and device
CN108984189B (en) Module parsing method and device
CN113778886B (en) Processing method and device for test cases
CN112468543B (en) Method, device, equipment and computer readable medium for publishing information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination