Application service upgrading method of business system, server and medium
By obtaining and generating the requirements information for single-demand upgrades, obtaining the upgrade content of the target application service and adding it to the upgrade process, the problem of low service upgrade efficiency in the WiNEX environment is solved, and efficient and accurate application service upgrades are achieved.
Patent Information
- Application Number
- CN202411849552.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-03-18
AI Technical Summary
In the prior art, the service upgrade process in the WiNEX environment is inefficient, resulting in the irrelevant demand being upgraded, affecting the use of the normal environment, and the full product package is huge in size, which cannot achieve timely demand processing and problem repair.
By obtaining the current product version information of all application services in the target business system under the target operating environment and the requirements information of the software module, generate a list of single requirement files corresponding to the requirement number of the single requirement upgrade, obtain the upgrade content of the target application service, and add it to the upgrade process to perform the upgrade.
It has achieved the upgrade of the target software modules that only target application services, without affecting other application services or software modules, which facilitates timely repair and upgrade, improves the upgrade efficiency of application services, and shortens the upgrade time.
Smart Images

Figure CN119645465A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of service upgrade, and in particular to an application service upgrade method, server and medium of a business system. Background Art
[0002] In the WiNEX environment, there are multiple front-end services and back-end PBC services, equipped with corresponding middleware. Each service consists of multiple modules, which are independently completed and submitted by different developers during the development process. In certain periods, a single service may receive multiple requirements, resulting in increased complexity in the service upgrade process.
[0003] The current service upgrade process is to set a deadline, after which all services in the WiNEX environment are fully built. Each service will generate a complete artifact package, and use these artifact packages to replace the existing running code on the server, and then restart. This process may not only cause irrelevant requirements to be upgraded, thus affecting the normal use of the environment, but also cannot achieve timely demand processing and problem repair due to the large size of the full artifact package and the time required for construction and deployment.
[0004] Therefore, a new solution is urgently needed to efficiently implement the specific requirements of the WiNEX environment for separate installation and upgrade. Summary of the invention
[0005] The purpose of the present invention is to address the deficiencies in the above-mentioned prior art and provide a method, server and medium for upgrading application services of a business system to solve the problems of low efficiency of single upgrade in the prior art.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides an application service upgrade method for a business system, the method comprising:
[0008] Obtain the current product version information of all application services in the target business system under the target operating environment and the current demand information of all software modules under each application service;
[0009] Acquire a target change order, the target change order comprising: a single requirement set corresponding to a requirement number of a single requirement upgrade, the single requirement set comprising: single requirement file information of multiple target software modules;
[0010] Generate a single requirement file list corresponding to the requirement number of the single requirement upgrade according to the current product version information of all the application services, the current requirement information of all the software modules under the application services, and the single requirement information of the multiple target software modules; the single requirement file list records: the single requirement file information of the multiple target software modules;
[0011] According to the single requirement file information of the multiple target software modules, obtaining upgrade content of the target application services corresponding to the multiple target software modules in the target business system;
[0012] The upgrade content of the target application service is added to the upgrade process corresponding to the requirement to be upgraded, so as to execute the upgrade process to upgrade the target application service.
[0013] Optionally, the obtaining of current product version information of all application services in the target business system in the target operating environment and current demand information of all software modules under each application service includes:
[0014] Acquire the current product version information of each application service and the identification information of each application service from the service table of the target business system in the target operating environment;
[0015] According to the identification information of each application service, current demand information of all software modules under each application service is obtained from the product management table of each application service of the target business system under the target operating environment.
[0016] Optionally, obtaining the target change order includes:
[0017] Determining a target change order number from a plurality of change order numbers of the target business system;
[0018] According to the target change order number, the target change order is obtained.
[0019] Optionally, obtaining the target change order according to the target change order number includes:
[0020] According to the target change order number, query to obtain a single requirement list, a module list and a module mapping list, wherein the single requirement list includes: the requirement number of the single requirement upgrade, the module list includes: the requirement number of the single requirement upgrade and the single requirement file information of the multiple target software modules, and the module mapping list includes: the mapping relationship between each target software module and the application service;
[0021] The target change order is generated according to the single requirement list, the module list and the module mapping list.
[0022] Optionally, generating a single requirement file list corresponding to the requirement number of the single requirement upgrade according to the current product version information of all the application services, the current requirement information of all the software modules under the application services, and the single requirement information of the multiple target software modules includes:
[0023] Generating release plan requirement objects of the multiple target software modules according to the single requirement file information of the multiple target software modules;
[0024] The single requirement file list is generated according to the release plan requirement objects of the multiple target software modules and stored in a preset database.
[0025] Optionally, acquiring upgrade contents of target application services corresponding to the multiple target software modules in the target business system according to the single requirement file information of the multiple target software modules includes:
[0026] According to the single requirement file information of the multiple target software modules, downloading the single requirement files of the multiple target software modules to a preset product warehouse;
[0027] According to the identification information of the application service in the single requirement file information of the multiple target software modules, obtaining the current product version information of the target application service corresponding to the multiple target software modules;
[0028] Acquire product file information of the target application service from the product management table of the target application service;
[0029] Downloading the product package of the target application service to a temporary working directory of a preset software deployment server according to the product file information of the target application service;
[0030] According to the single requirement file information of each target software module, the single requirement file of each target software module is transferred to the corresponding position of each target software module in the product package of the target application service in the temporary working directory to obtain the product file of the target application service;
[0031] Packaging the artifact files of each target application service in the temporary working directory, generating a new artifact package of the target application service under the requirement number of the single requirement upgrade, and uploading it to the preset artifact warehouse;
[0032] Recording the product information of the new product package and the information of the multiple target software modules into the product management table of the target application service, and updating the product version information of the target application service in the service table of the target business system;
[0033] Generate upgrade content of the target application service according to the new product package.
[0034] Optionally, the single requirement list further includes: a requirement number of a database patch;
[0035] The step of generating the target change order according to the single requirement list, the module list and the module mapping list comprises:
[0036] The target change order is generated according to the requirement number of the single requirement upgrade, the requirement number of the database patch, the module list and the module mapping list.
[0037] Optionally, the target change order further includes: a database patch requirement number, and the method further includes:
[0038] According to the requirement number of the database patch, patch information of the database patch is obtained.
[0039] The patch information of the database patch is added to the upgrade process, so that the target database involved in the target business system is upgraded during the execution of the upgrade process.
[0040] In a second aspect, an embodiment of the present application provides a server, comprising: a processor and a storage medium, wherein the processor and the storage medium are communicatively connected via a bus, the storage medium stores program instructions executable by the processor, and the processor calls the program stored in the storage medium to execute the steps of the application service upgrade method of the business system as described in any of the above-mentioned first aspects.
[0041] In a third aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the application service upgrade method of the business system as described in any one of the first aspects above are executed.
[0042] Compared with the prior art, this application has the following beneficial effects:
[0043] The present application provides an application service upgrade method, server and medium of a business system, wherein the method obtains the current product version information of all application services in the target business system under the target operating environment and the current requirement information of all software modules under each application service; obtains the target change order, the target change order includes: a single requirement set corresponding to the requirement number of the single requirement upgrade, the single requirement set includes: single requirement file information of multiple target software modules; generates a single requirement file list corresponding to the requirement number of the single requirement upgrade according to the current product version information of all application services, the current requirement information of all software modules under each application service and the single requirement file information of multiple target software modules; the single requirement file list records: single requirement file information of multiple target software modules; obtains the upgrade content of the target application service corresponding to multiple target software modules in the target business system according to the single requirement file information of multiple target software modules; adds the upgrade content of the target application service to the upgrade process corresponding to the requirement to be upgraded, so as to execute the upgrade process to upgrade the target application service. Thus, only the target software module of the target application service is upgraded, and other application services and other software modules are not affected, which is convenient for timely repair and upgrade, improves the upgrade efficiency of the application service, and shortens the upgrade time of the application service. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0045] Figure 1 A flowchart of an application service upgrade method for a business system provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of a method flow for providing current product version information and current demand information provided in an embodiment of the present application;
[0047] Figure 3 A flowchart of a method for obtaining a target change order provided in an embodiment of the present application;
[0048] Figure 4 A flowchart of a method for obtaining a target change order according to a target change order number provided in an embodiment of the present application;
[0049] Figure 5 A method flow chart of generating a single requirement file list provided in an embodiment of the present application is shown;
[0050] Figure 6A flowchart of a method for obtaining upgrade content of a target application service provided in an embodiment of the present application;
[0051] Figure 7 A schematic diagram of a database upgrade method flow provided in an embodiment of the present application;
[0052] Figure 8 A schematic diagram of an application service upgrade method for a business system provided in an embodiment of the present application;
[0053] Fig. 9 A schematic diagram of a server provided in an embodiment of the present application.
[0054] Icons: 801 - first acquisition module, 802 - second acquisition module, 803 - generation module, 804 - third acquisition module, 805 - addition module, 901 - processor, 902 - storage medium. DETAILED DESCRIPTION
[0055] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0056] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. 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.
[0057] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0058] In addition, the terms “first”, “second”, etc., if used, are merely used to distinguish between the descriptions and should not be understood as indicating or implying relative importance.
[0059] It should be noted that, in the absence of conflict, the features in the embodiments of the present invention may be combined with each other.
[0060] The following is an explanation of a method for upgrading an application service of a business system provided in an embodiment of the present application through a specific example. Figure 1The present invention provides a flowchart of a method for upgrading an application service of a business system. The execution subject of the method is a server, which has a computing and processing function. Figure 1 As shown, the method includes:
[0061] S101 , obtaining current product version information of all application services in a target business system under a target operating environment and current demand information of all software modules under each application service.
[0062] For example, the target operating environment is determined by user selection, and the target operating environment may be a WiNEX environment.
[0063] Each application service can realize corresponding functions, and different business systems contain multiple different application services. The target business system is the business system to be upgraded. First, determine all application services in the target business system. Then, obtain the current product version information of all application services in the target business system and the current demand information of all software modules under each application service.
[0064] Each application service has a corresponding product package, each application service includes multiple software modules, and the product files in the product package correspond to multiple software modules. Among them, the current product version information represents the current version of the application service, and the current requirement information of all software modules represents the requirement information to be upgraded.
[0065] The current requirement information of the software module represents the update requirements of the previous round of the software module. The requirement information includes: requirement number, module name, module identifier, requirement submission identifier, and requirement submission time.
[0066] For example, the current product version information of all application services and the current demand information of all software modules under each application service are obtained from the upstream operation platform.
[0067] S102. Obtain the target change order.
[0068] The target change order includes: a single requirement set corresponding to the requirement number of the single requirement upgrade. The single requirement set includes: single requirement file information of multiple target software modules.
[0069] Each target change order contains a requirement number for a single requirement upgrade. The target change order is an upgrade request for the target business system in the target operating environment.
[0070] Each target software module corresponds to a set of single requirement file information, and the single requirement file can be obtained according to the single requirement file information.
[0071] For example, the target change order is obtained from an upstream operation platform.
[0072] S103: Generate a single requirement file list corresponding to the requirement number of the single requirement upgrade according to the current product version information of all application services, the current requirement information of all software modules under each application service, and the single requirement file information of multiple target software modules.
[0073] The single requirement file list records: single requirement file information of multiple target software modules. The single requirement file list also records: current requirement information of the target software module and current product version information of the application service corresponding to the target software module.
[0074] Generate a single requirement file list to facilitate subsequent upgrades based on the single requirement file information in the single requirement file list, and also to facilitate querying whether all single requirement files in the list have been downloaded.
[0075] According to multiple target software modules, the current product version information of all application services and the current requirement information of all software modules under each application service are used to determine the current requirement information of the target software module and the current product version information of the application service corresponding to the target software module, so that the current requirement information and the current product version information of the target software module can be updated after the upgrade is completed.
[0076] S104: Obtain upgrade contents of target application services corresponding to the multiple target software modules in the target business system according to the single requirement file information of the multiple target software modules.
[0077] According to the single requirement file information of multiple target software modules, the single requirement files of multiple target software modules can be obtained, and the single requirement files are files that the target software modules need to upgrade. The single requirement files are added to the product package of the target application service to obtain the upgrade content of the target application service.
[0078] S105: Add the upgrade content of the target application service to the upgrade process corresponding to the requirement to be upgraded, so as to execute the upgrade process to upgrade the target application service.
[0079] When executing the upgrade process, first stop the target application service, delete the old code running file directory, decompress the new upgrade content to the new running file directory, and finally restart the target application service to complete the upgrade.
[0080] Thus, only the target software module of the target application service is upgraded without affecting other application services and other software modules, which facilitates timely repair and upgrade, improves the upgrade efficiency of the application service, and shortens the upgrade time of the application service.
[0081] In summary, in this embodiment, the current product version information of all application services in the target business system under the target operating environment and the current requirement information of all software modules under each application service are obtained; the target change order is obtained, and the target change order includes: a single requirement set corresponding to the requirement number of the single requirement upgrade, and the single requirement set includes: single requirement file information of multiple target software modules; according to the current product version information of all application services, the current requirement information of all software modules under each application service, and the single requirement file information of multiple target software modules, a single requirement file list corresponding to the requirement number of the single requirement upgrade is generated; the single requirement file list records: single requirement file information of multiple target software modules; according to the single requirement file information of multiple target software modules, the upgrade content of the target application service corresponding to multiple target software modules in the target business system is obtained; the upgrade content of the target application service is added to the upgrade process corresponding to the requirement to be upgraded, so as to execute the upgrade process to upgrade the target application service. Thus, only the target software module of the target application service is upgraded without affecting other application services and other software modules, which is convenient for timely repair and upgrade, improves the upgrade efficiency of the application service, and shortens the upgrade time of the application service.
[0082] In the above Figure 1 On the basis of the corresponding embodiments, the embodiments of the present application also provide a method for current product version information and current demand information. Figure 2 A schematic diagram of a method flow for providing current product version information and current demand information in an embodiment of the present application. Figure 2 As shown, the current product version information of all application services in the target business system under the target operating environment and the current demand information of all software modules under each application service in S101 include:
[0083] S201 : Acquire current product version information of each application service and identification information of each application service from a service table of a target business system in a target operating environment.
[0084] The service table stores the current product version information and identification information of multiple application services. Each application service has unique identification information.
[0085] S202 . According to the identification information of each application service, obtain the current demand information of all software modules under each application service from the product management table of each application service of the target business system under the target operating environment.
[0086] Among them, the product management table not only records the current demand information, but also records the product file download address corresponding to the current product version information.
[0087] In summary, in this embodiment, the current product version information of each application service and the identification information of each application service are obtained from the service table of the target business system under the target operating environment; according to the identification information of each application service, the current demand information of all software modules under each application service is obtained from the product management table of each application service of the target business system under the target operating environment. Thus, the current product version information of the application service and the current demand information of all software modules are accurately obtained.
[0088] In the above Figure 1 Based on the corresponding embodiment, the embodiment of the present application also provides a method for obtaining a target change order. Figure 3 A flow chart of a method for obtaining a target change order provided in an embodiment of the present application. Figure 3 As shown, obtaining the target change order in S102 includes:
[0089] S301. Determine a target change order number from multiple change order numbers of a target business system.
[0090] Among them, the target business system will have multiple change order numbers, and each change order number corresponds to a change order.
[0091] For example, the user selects and determines the target change order number in the user interface of the upstream operation platform.
[0092] S302. Obtain the target change order according to the target change order number.
[0093] For example, each change order number corresponds to a change order. According to the target change order number, the target change order can be obtained.
[0094] In summary, in this embodiment, the target change order number is determined from multiple change order numbers of the target business system, and the target change order is obtained according to the target change order number, thereby accurately determining the target change order.
[0095] In the above Figure 3 On the basis of the corresponding embodiment, the embodiment of the present application also provides a method for obtaining a target change order according to a target change order number. Figure 4 A flow chart of a method for obtaining a target change order according to a target change order number provided in an embodiment of the present application. Figure 4 As shown, in S302, according to the target change order number, obtaining the target change order includes:
[0096] S401. According to the target change order number, query and obtain the single requirement list, module list and module mapping list.
[0097] The single requirement list includes: the requirement number of the single requirement upgrade, the module list includes: the requirement number of the single requirement upgrade and the single requirement file information of multiple target software modules, and the module mapping list includes: the mapping relationship between each target software module and the application service.
[0098] According to the target change order number, query the requirement numbers of multiple single requirement upgrades corresponding to the target change order number, and form a single requirement list based on the requirement numbers of the single requirement upgrades.
[0099] According to the requirement number of the single requirement upgrade, the software module identifier, software module type, download address of the single requirement file, target directory of the single requirement file in the product, and check value of the single requirement file corresponding to the requirement number are determined, and the module list is composed of the requirement number of the single requirement upgrade, target software module identifier, target software module type, download address of the single requirement file, target directory of the single requirement file in the product, and check value of the single requirement file. For example, the check value is an md5 value.
[0100] The application service where the target software module is located is determined according to the target software module, and a module mapping list is composed of the target software module identifier and the application service identifier where the target software module is located.
[0101] S402: Generate a target change order according to the single requirement list, the module list and the module mapping list.
[0102] The single requirement list, module list and module mapping list already contain the file information, software module information and application service information to be upgraded. The generated target change order also contains the above information, so as to facilitate accurate upgrade according to the target change order.
[0103] In summary, in this embodiment, according to the target change order number, the single requirement list, module list and module mapping list are queried to obtain the single requirement list including: the requirement number of the single requirement upgrade, the module list including: the requirement number of the single requirement upgrade and the single requirement file information of multiple target software modules, and the module mapping list including: the mapping relationship between each target software module and the application service; according to the single requirement list, module list and module mapping list, the target change order is generated. Thus, the target change order is accurately and comprehensively generated, so as to facilitate accurate upgrade according to the target change order.
[0104] In the above Figure 1 On the basis of the corresponding embodiment, the embodiment of the present application also provides a method for generating a single requirement file list. Figure 5 A flowchart of a method for generating a single requirement file list provided in an embodiment of the present application. Figure 5As shown, in S103, based on the current product version information of all application services, the current requirement information of all software modules under each application service, and the single requirement file information of multiple target software modules, a single requirement file list corresponding to the requirement number of the single requirement upgrade is generated, including:
[0105] S501. Generate release plan requirement objects of multiple target software modules according to single requirement file information of multiple target software modules.
[0106] Traverse all target software modules and generate release plan requirement objects for the target software modules one by one.
[0107] Specifically, the application service identifier and the application service name of the target software module are associated with the release plan requirement object. The download address of the single requirement file corresponding to the target software module, the target directory of the single requirement file in the work-in-progress file, and the checksum of the single requirement file are associated with the release plan requirement object.
[0108] Furthermore, the current requirement information of the target software module and the current product version information of the application service corresponding to the target software module are also associated with the release plan requirement object, so that the current requirement information and the current product version information of the target software module can be updated after the upgrade is completed.
[0109] The single requirement file of the target software module can be downloaded according to the download address of the single requirement file.
[0110] Among them, the verification value of the single requirement file is used to check whether the single requirement file has been downloaded.
[0111] S502: Generate a single requirement file list based on the release plan requirement objects of multiple target software modules and store it in a preset database.
[0112] The single requirement file list is stored in a preset database, so that the release plan requirement objects in the single requirement file list can be accurately obtained in subsequent steps, and then the single requirement file information can be obtained.
[0113] In summary, in this embodiment, based on the single requirement file information of multiple target software modules, release plan requirement objects of multiple target software modules are generated; based on the release plan requirement objects of multiple target software modules, a single requirement file list is generated and stored in a preset database. Thus, it is convenient to accurately obtain the single requirement file list.
[0114] In the above Figure 1 On the basis of the corresponding embodiment, the embodiment of the present application also provides a method for obtaining the upgrade content of the target application service. Figure 6A flow chart of a method for obtaining the upgrade content of a target application service provided in an embodiment of the present application. Figure 6 As shown, in S104, according to the single requirement file information of the multiple target software modules, the upgrade content of the target application service corresponding to the multiple target software modules in the target business system is obtained, including:
[0115] S601. According to the single requirement file information of multiple target software modules, the single requirement files of multiple target software modules are downloaded to a preset product warehouse.
[0116] The checksum of the single requirement file is used to check whether the single requirement file has been downloaded. If there is a single requirement file that has not been downloaded, continue downloading until the download is completed before proceeding to the next step.
[0117] S602: Acquire current product version information of target application services corresponding to the multiple target software modules according to identification information of the application services in the single requirement file information of the multiple target software modules.
[0118] In the above steps, the current product version information of all application services has been obtained. Therefore, the current product version information of the target application services corresponding to multiple target software modules can be obtained based on the identification information of the application services in the single requirement file information, so as to facilitate the subsequent upgrade and update of the current product version information of the target application services.
[0119] S603: Acquire the product file information of the target application service from the product management table of the target application service.
[0120] The product file information in the product management table includes: the product file download address.
[0121] S604: Download the product package of the target application service to a temporary working directory of a preset software deployment server according to the product file information of the target application service.
[0122] According to the product file download address of the target application service, the product package of the target application service is downloaded to the temporary working directory of the preset software deployment server, and the product package is decompressed.
[0123] In the temporary working directory, artifact files corresponding to multiple target software modules of the target application service are arranged in a preset order.
[0124] S605. According to the single requirement file information of each target software module, the single requirement file of each target software module is transferred to the corresponding position of each target software module in the product package of the target application service in the temporary working directory to obtain the product file of the target application service.
[0125] According to the target directory in the single requirement file information of each target software module, determine the position of the single requirement file in the product file of the target application service, and also determine the position of the single requirement file in the temporary working directory. Transfer the single requirement file of each target software module to the corresponding position of each target software module in the product package of the target application service in the temporary working directory to obtain the product file of the target application service. The new product file already contains the single requirement file that needs to be upgraded.
[0126] Therefore, only the target software module in the target application service can be upgraded accurately without affecting other application services and software modules, thereby improving the upgrade efficiency.
[0127] S606: Pack the artifact files of each target application service in the temporary working directory, generate a new artifact package of the target application service under the requirement number of the single requirement upgrade, and upload it to the preset artifact warehouse.
[0128] S607 , recording the product information of the new product package and the information of the multiple target software modules into the product management table of the target application service, and updating the product version information of the target application service in the service table of the target business system.
[0129] The product version of the new product package is recorded, and the current product version information of the aforementioned target application service is updated.
[0130] S608: Generate upgrade content of the target application service according to the new product package.
[0131] Determine the new product package as the upgrade content of the target application service.
[0132] In summary, in this embodiment, according to the single requirement file information of multiple target software modules, the single requirement files of multiple target software modules are downloaded to the preset product warehouse; according to the identification information of the application service in the single requirement file information of multiple target software modules, the current product version information of the target application service corresponding to the multiple target software modules is obtained; the product file information of the target application service is obtained from the product management table of the target application service; according to the product file information of the target application service, the product package of the target application service is downloaded to the temporary working directory of the preset software deployment server; according to the single requirement file information of each target software module, the single requirement file of each target software module is transferred to the corresponding position of each target software module in the product package of the target application service in the temporary working directory, and the product file of the target application service is obtained; the product files of each target application service in the temporary working directory are packaged, and a new product package of the target application service under the requirement number of the single requirement upgrade is generated, and uploaded to the preset product warehouse; the product information of the new product package and the information of the multiple target software modules are recorded in the product management table of the target application service, and the product version information of the target application service in the service table of the target business system is updated; according to the new product package, the upgrade content of the target application service is generated. Thus, the upgrade efficiency is improved.
[0133] In the above Figure 4 On the basis of the corresponding embodiment, in another embodiment of the present application, the single requirement list further includes: a requirement number of the database patch; generating a target change order according to the single requirement list, the module list and the module mapping list in S402 includes:
[0134] Generate a target change order based on the requirement number of the single requirement upgrade, the requirement number of the database patch, the module list, and the module mapping list.
[0135] The upgrade requirements in the target change order include not only the upgrade requirements for the software model, but also the upgrade requirements for the database.
[0136] Each database patch requirement number corresponds to a patch information, which is used to upgrade the database.
[0137] In summary, in this embodiment, a target change order is generated according to a single requirement list, a module list, and a module mapping list, including: obtaining patch information of a database patch according to a requirement number of a database patch; generating a target change order according to a requirement number of a single requirement upgrade, patch information of a database patch, a module list, and a module mapping list. Thus, the upgrade requirement is expanded.
[0138] In the above Figure 1 On the basis of the corresponding embodiment, the embodiment of the present application also provides a database upgrade method. Figure 7A flowchart of a database upgrade method provided in an embodiment of the present application. Figure 7 As shown, the target change order also includes: patch information of the database patch, and the method also includes:
[0139] S701. Obtain patch information of a database patch according to a database patch requirement number.
[0140] S702: Add patch information of the database patch to the upgrade process, so as to upgrade the target database involved in the target business system during the execution of the upgrade process.
[0141] During the upgrade process, the patch information of the award database patch is added to the target database to complete the database upgrade.
[0142] In summary, in this embodiment, the patch information of the database patch is added to the upgrade process, so that the target database involved in the target business system is upgraded during the execution of the upgrade process, thereby accurately completing the database upgrade.
[0143] The following is a description of the application service upgrade method device, equipment and storage medium for executing a business system provided by the present application. The specific implementation process and technical effects are described above and will not be repeated below.
[0144] Figure 8 A schematic diagram of an application service upgrade method for a business system provided in an embodiment of the present application, such as Figure 8 As shown, the device comprises:
[0145] The first acquisition module 801 is used to acquire the current product version information of all application services in the target business system under the target operating environment and the current demand information of all software modules under each application service.
[0146] The second acquisition module 802 is used to acquire a target change order, where the target change order includes: a single requirement set corresponding to the requirement number of the single requirement upgrade, where the single requirement set includes: single requirement file information of multiple target software modules.
[0147] Generation module 803 is used to generate a single requirement file list corresponding to the requirement number of the single requirement upgrade based on the current product version information of all application services, the current requirement information of all software modules under each application service, and the single requirement file information of multiple target software modules; the single requirement file list records: the single requirement file information of multiple target software modules.
[0148] The third acquisition module 804 is used to acquire the upgrade content of the target application service corresponding to the multiple target software modules in the target business system according to the single requirement file information of the multiple target software modules.
[0149] The adding module 805 is used to add the upgrade content of the target application service to the upgrade process corresponding to the requirement to be upgraded, so as to execute the upgrade process to upgrade the target application service.
[0150] Furthermore, the first acquisition module 801 is specifically used to obtain the current product version information of each application service and the identification information of each application service from the service table of the target business system under the target operating environment; based on the identification information of each application service, the current demand information of all software modules under each application service is obtained from the product management table of each application service of the target business system under the target operating environment.
[0151] Furthermore, the second acquisition module 802 is specifically configured to determine a target change order number from a plurality of change order numbers of the target business system; and acquire the target change order according to the target change order number.
[0152] Furthermore, the second acquisition module 802 is specifically used to query and obtain a single requirement list, a module list and a module mapping list according to the target change order number, wherein the single requirement list includes: the requirement number of the single requirement upgrade, the module list includes: the requirement number of the single requirement upgrade and the single requirement file information of multiple target software modules, and the module mapping list includes: the mapping relationship between each target software module and the application service; and a target change order is generated according to the single requirement list, the module list and the module mapping list.
[0153] Furthermore, the third acquisition module 804 is specifically used to generate release plan requirement objects of multiple target software modules based on the single requirement file information of multiple target software modules and store them in a preset database; obtain the release plan requirement objects of multiple target software modules from the preset database, and generate the single requirement file information of multiple target software modules; and obtain the upgrade content of the target application services corresponding to the multiple target software modules in the target business system based on the single requirement file information of the multiple target software modules.
[0154] Further, the third acquisition module 804 is specifically used to download the single requirement files of multiple target software modules to a preset product warehouse according to the single requirement file information of multiple target software modules; obtain the current product version information of the target application services corresponding to the multiple target software modules according to the identification information of the application services in the single requirement file information of the multiple target software modules; obtain the product file information of the target application service from the product management table of the target application service; according to the product file information of the target application service, download the product package of the target application service to the temporary working directory of the preset software deployment server; according to the single requirement file information of each target software module, transfer the single requirement file of each target software module to the corresponding position of each target software module in the product package of the target application service in the temporary working directory to obtain the product file of the target application service; package the product files of each target application service in the temporary working directory, generate a new product package of the target application service under the requirement number of the single requirement upgrade, and upload it to the preset product warehouse; record the product information of the new product package and the information of the multiple target software modules in the product management table of the target application service, and update the product version information of the target application service in the service table of the target business system; according to the new product package, generate the upgrade content of the target application service.
[0155] Furthermore, the second acquisition module 802 is specifically used for the single requirement list further including: the requirement number of the database patch; generating a target change order according to the requirement number of the single requirement upgrade, the requirement number of the database patch, the module list and the module mapping list.
[0156] Furthermore, adding module 805, which is used for the target change order also includes: patch information of the database patch, obtaining the patch information of the database patch according to the requirement number of the database patch; adding the patch information of the database patch to the upgrade process, so as to upgrade the target database involved in the target business system during the execution of the upgrade process.
[0157] Fig. 9 A schematic diagram of a server provided in an embodiment of the present application, the server may be a device with computing and processing capabilities.
[0158] The server includes: a processor 901 and a storage medium 902. The processor 901 and the storage medium 902 are connected via a bus.
[0159] The storage medium 902 is used to store programs, and the processor 901 calls the programs stored in the storage medium 902 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0160] Optionally, the present invention also provides a storage medium, including a program, which is used to execute the above-mentioned method embodiment when executed by a processor. In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0161] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0162] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0163] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
Claims
1. A method for upgrading application services of a business system, characterized in that: The method comprises: Obtain the current product version information of all application services in the target business system under the target operating environment and the current demand information of all software modules under each application service; Acquire a target change order, the target change order comprising: a single requirement set corresponding to a requirement number of a single requirement upgrade, the single requirement set comprising: single requirement file information of multiple target software modules; Generate a single requirement file list corresponding to the requirement number of the single requirement upgrade according to the current product version information of all the application services, the current requirement information of all the software modules under the application services, and the single requirement information of the multiple target software modules; the single requirement file list records: the single requirement file information of the multiple target software modules; According to the single requirement file information of the multiple target software modules, obtaining upgrade content of the target application services corresponding to the multiple target software modules in the target business system; The upgrade content of the target application service is added to the upgrade process corresponding to the requirement to be upgraded, so as to execute the upgrade process to upgrade the target application service.
2. The method according to claim 1, characterized in that The obtaining of the current product version information of all application services in the target business system under the target operating environment and the current demand information of all software modules under each application service includes: Acquire the current product version information of each application service and the identification information of each application service from the service table of the target business system in the target operating environment; According to the identification information of each application service, current demand information of all software modules under each application service is obtained from the product management table of each application service of the target business system under the target operating environment.
3. The method according to claim 1, characterized in that The obtaining of the target change order includes: Determining a target change order number from a plurality of change order numbers of the target business system; According to the target change order number, the target change order is obtained.
4. The method according to claim 3, characterized in that The step of obtaining the target change order according to the target change order number includes: According to the target change order number, query to obtain a single requirement list, a module list and a module mapping list, wherein the single requirement list includes: the requirement number of the single requirement upgrade, the module list includes: the requirement number of the single requirement upgrade and the single requirement file information of the multiple target software modules, and the module mapping list includes: the mapping relationship between each target software module and the application service; The target change order is generated according to the single requirement list, the module list and the module mapping list.
5. The method according to claim 1, characterized in that: The step of generating a single requirement file list corresponding to the requirement number of the single requirement upgrade according to the current product version information of all the application services, the current requirement information of all the software modules under the application services, and the single requirement information of the multiple target software modules includes: Generating release plan requirement objects of the multiple target software modules according to the single requirement file information of the multiple target software modules; The single requirement file list is generated according to the release plan requirement objects of the multiple target software modules and stored in a preset database.
6. The method according to claim 5, characterized in that The step of acquiring upgrade contents of target application services corresponding to the multiple target software modules in the target business system according to the single requirement file information of the multiple target software modules includes: According to the single requirement file information of the multiple target software modules, downloading the single requirement files of the multiple target software modules to a preset product warehouse; According to the identification information of the application service in the single requirement file information of the multiple target software modules, obtaining the current product version information of the target application service corresponding to the multiple target software modules; Acquire product file information of the target application service from the product management table of the target application service; Downloading the product package of the target application service to a temporary working directory of a preset software deployment server according to the product file information of the target application service; According to the single requirement file information of each target software module, the single requirement file of each target software module is transferred to the corresponding position of each target software module in the product package of the target application service in the temporary working directory to obtain the product file of the target application service; Packaging the artifact files of each target application service in the temporary working directory, generating a new artifact package of the target application service under the requirement number of the single requirement upgrade, and uploading it to the preset artifact warehouse; Recording the product information of the new product package and the information of the multiple target software modules into the product management table of the target application service, and updating the product version information of the target application service in the service table of the target business system; Generate the upgrade content of the target application service according to the new product package information.
7. The method according to claim 4, characterized in that The single requirement list also includes: a requirement number of the database patch; The step of generating the target change order according to the single requirement list, the module list and the module mapping list comprises: The target change order is generated according to the requirement number of the single requirement upgrade, the requirement number of the database patch, the module list and the module mapping list.
8. The method according to claim 1, characterized in that The target change order also includes: a database patch requirement number, and the method further includes: Obtaining patch information of the database patch according to the requirement number of the database patch; The patch information of the database patch is added to the upgrade process, so that the target database involved in the target business system is upgraded during the execution of the upgrade process.
9. A server, characterized in that: include: A processor and a storage medium, wherein the processor and the storage medium are communicatively connected via a bus, the storage medium stores program instructions executable by the processor, and the processor calls the program stored in the storage medium to execute the steps of the application service upgrade method of the business system as described in any one of claims 1 to 8 above.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the application service upgrade method of the business system as described in any one of claims 1 to 8 are executed.