CN117075951A - Program maintenance method, program maintenance device, computer equipment and storage medium - Google Patents

Program maintenance method, program maintenance device, computer equipment and storage medium Download PDF

Info

Publication number
CN117075951A
CN117075951A CN202311061557.1A CN202311061557A CN117075951A CN 117075951 A CN117075951 A CN 117075951A CN 202311061557 A CN202311061557 A CN 202311061557A CN 117075951 A CN117075951 A CN 117075951A
Authority
CN
China
Prior art keywords
program
target
code
new
package
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
CN202311061557.1A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202311061557.1A priority Critical patent/CN117075951A/en
Publication of CN117075951A publication Critical patent/CN117075951A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a program maintenance method, a program maintenance device, computer equipment and a storage medium, relates to the technical field of computers, and can be used in the technical field of finance and technology or other related fields. The method comprises the following steps: in the process of calling a target service code from a multi-level program package of a target program to execute the current service of the target program based on the target version check code of the target program, responding to a maintenance request of the target program and generating a new version check code for a new service code of the target program; adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate a new service code to execute future services of the target program. By adopting the method, the synchronous operation of the service and the program maintenance can be realized, and the problem of update failure caused by occupation of the service is avoided.

Description

Program maintenance method, program maintenance device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technology, and in particular, to a program maintenance method, apparatus, computer device, and storage medium, which can be used in the field of financial science and technology or other related fields.
Background
With the rapid development of computers, the demands of various fields for computers are increasing, and competition of various industries is becoming increasingly strong. Every industry is expanding and innovative. Such as the financial industry, which is becoming increasingly popular.
The financial industry often deploys a host database for carrying core services, wherein the services access the database in a program manner, i.e., the services indirectly realize functions of adding, deleting, modifying, searching and the like of service data through programs. With the change of business functions, the version of the program often needs to be updated synchronously to complete the maintenance of the version. When the service is running, the program called by the service is in an occupied state, so that the occupied program cannot be updated normally, and the coverage of version contents cannot be realized. In the traditional mode, the service is paused first, and then the maintenance of the program is realized, namely, the maintenance of the program is completed under the condition of service interruption, but the maintenance mode is not beneficial to the operation of the system, and the working efficiency of the system is affected.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a program maintenance method, apparatus, computer device, and storage medium that can perform business and program maintenance synchronously.
In a first aspect, the present application provides a program maintenance method, the method comprising:
in the process of calling a target service code from a multi-level program package of a target program to execute the current service of the target program based on the target version check code of the target program, responding to a maintenance request of the target program and generating a new version check code for a new service code of the target program;
adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate a new service code to execute future services of the target program.
In one embodiment, adding the new version check code and the new service code to the multi-level package of the target program includes:
generating a new program package for the new service code of the target program in the multi-level program package according to the level information of the multi-level program package of the target program; and adding the new service code and the new version check code into the new program package.
In one embodiment, the method further comprises:
and deleting the program packages except for the program packages of the latest version in the multi-level program packages under the condition that the program cleaning event is detected.
In one embodiment, a program clean-up event is detected, including at least one of:
detecting that the hierarchy information of the multi-hierarchy package is greater than a hierarchy threshold; detecting that the current time reaches the preset cleaning time of the multi-level program package; a purge request is received for a multi-level package.
In one embodiment, generating a new version check code for a new service code of a target program includes:
and generating a new version check code for the new service code of the target program according to the historical version check code of the target program.
In one embodiment, invoking the target service code from the multi-level package of the target program to execute the current service of the target program based on the target version check code of the target program comprises:
responding to the service processing request, determining a target version check code of a target service code which needs to be called by the current service of the execution target program; judging whether a target version check code exists in a multi-level program package of the target program; and if the target service code exists, calling the target service code corresponding to the target version check code from the multi-level program package of the target program, and executing the current service of the target program.
In a second aspect, the application further provides a program maintenance device. The device comprises:
The generating module is used for responding to a maintenance request of the target program in the process of calling the target service code from the multi-level program package of the target program to execute the current service of the target program based on the target version check code of the target program, and generating a new version check code for the new service code of the target program;
the adding module is used for adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate a new service code to execute future services of the target program.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
in the process of calling a target service code from a multi-level program package of a target program to execute the current service of the target program based on the target version check code of the target program, responding to a maintenance request of the target program and generating a new version check code for a new service code of the target program;
adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate a new service code to execute future services of the target program.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
in the process of calling a target service code from a multi-level program package of a target program to execute the current service of the target program based on the target version check code of the target program, responding to a maintenance request of the target program and generating a new version check code for a new service code of the target program;
adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate a new service code to execute future services of the target program.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
in the process of calling a target service code from a multi-level program package of a target program to execute the current service of the target program based on the target version check code of the target program, responding to a maintenance request of the target program and generating a new version check code for a new service code of the target program;
Adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate a new service code to execute future services of the target program.
According to the program maintenance method, the device, the computer equipment and the storage medium, the multi-level program package capable of storing different versions of service codes and the version check code capable of being used for positioning the service codes are introduced, and in the process of calling the target service code from the multi-level program package of the target program to execute the current service of the target program based on the target version check code of the target program, the maintenance request of the target program can be responded, namely, a new version check code is generated for the new service code of the target program, and the new version check code and the new service code are added into the multi-level program package of the target program; wherein the new version check code is used to locate a new service code to target future services of the program. According to the scheme, the multi-level program package and the version check code are maintained, so that the synchronous operation of service and program maintenance is realized, and the problem of update failure caused by occupation of the service is avoided.
Drawings
FIG. 1 is an application environment diagram of a program maintenance method according to an embodiment of the present application;
FIG. 2 is a flowchart of a program maintenance method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of adding a new service code to a multi-level package according to an embodiment of the present application;
FIG. 4 is a schematic flow chart of a service execution service for calling a service code provided in an embodiment of the present application;
FIG. 5 is a flowchart illustrating another method for maintaining a program according to an embodiment of the present application;
FIG. 6 is a block diagram of a program maintenance device according to an embodiment of the present application;
FIG. 7 is a block diagram illustrating another program maintenance apparatus according to an embodiment of the present application;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The financial industry often deploys a host database to carry core services, such as sending wages, repayment of application cards, and accounting, where the services access the database in a program manner, that is, the services implement functions of adding, deleting, modifying, checking, and the like, of service data indirectly through programs. However, as financial services become more and more diversified, programs are updated more and more frequently, so that it is important to achieve good maintenance of programs. In the process of service operation, the program called by the service is in an occupied state, and at the moment, the program called by the service cannot be updated because the coverage of version contents cannot be realized.
In the traditional mode, the program maintenance mode is to realize the update maintenance of the program by suspending the service, namely, the maintenance of the program is completed under the condition of service interruption, but the maintenance mode is not beneficial to the operation of the system and affects the working efficiency of the system.
Based on this, in order to complete maintenance of a program without affecting business processing, the present embodiment provides a program maintenance method. The method can be executed by a server or a terminal with rich computing resources, or can be realized by interaction between the server and the terminal. For example, the program maintenance method provided by the embodiment of the application can be applied to an application environment as shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process, such as data for the object of each service. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. Optionally, in the process of calling the target service code of the target program to execute the current service, the terminal 102 may send a processing request for the target program to the server 104, and the server 104 may complete maintenance of the target program on the premise of not interrupting the service based on the program maintenance flow provided by the embodiment of the present application. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and internet of things devices. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
Fig. 2 is a flowchart of a program maintenance method according to an embodiment of the present application, and the method is executed by a server as an example. As shown in fig. 2, the program maintenance method includes the steps of:
s201, in the process of calling the target service code from the multi-level program package of the target program to execute the current service of the target program based on the target version check code of the target program, responding to the maintenance request of the target program and generating a new version check code for the new service code of the target program.
The target program is a logic code capable of realizing one or more service functions. The check code is a marker for performing program version consistency control; alternatively, the check code will be updated synchronously when the source code of the target program changes. The new service code is a new code obtained after updating and maintaining the source code of the target program. The new version check code is generated synchronously with the update and maintenance of the target program and is used for matching the updated and maintained target program.
The multi-level program package is used for realizing the maintenance function of the program copy, can be used for storing program packages of different versions of the target program, and can only maintain one service code with the same name in one program package. Alternatively, the target program may have one or more service code versions, where the service code versions are all named by the same name, and the service codes of different versions have different version check codes, and the service codes of different versions are respectively located in different program packages, so that each service code version can be distinguished.
The maintenance request is a request for maintaining an update of the target program. The target version check code is the version check code corresponding to the target service code in the target program.
Optionally, in the process of calling the target service code corresponding to the target version check code of the target program and executing the current service of the target program, if a maintenance request for the target program is obtained, the server generates a copy for the source program of the target program, retains the previous program version, updates and maintains the copy source code, compiles the updated and maintained copy source code into a feasible program to obtain a new service code, and simultaneously generates a new version check code corresponding to the new service code to realize synchronous update of the code and the check code.
For example, when a deposit service is executed, a target program Pi of the deposit is required to be called, when maintenance is required to be performed on the target program, a copy Pi of the program is generated, the maintained program Pi is updated to be a new service code of the deposit, a new source code of the deposit service is compiled into a viable program, and a new version check code of the new service code of the deposit service is generated and is a new version check code uniquely corresponding to the new service code Pi of the deposit service.
S202, adding the new version check code and the new service code into a multi-level program package of the target program.
Wherein the new version check code is used to locate a new service code to execute future services of the target program.
It can be understood that after the update maintenance is completed on the target program, a new service code and a new version check code are obtained; when a service (i.e., future service) needs to be called in the future, a new service code can be directly called to execute the future service.
For example, the multi-level package performs update maintenance on the deposit target program Pi in the package L1, and stores the updated and maintained new service code Pi and new version check code 01-20230601-v1 in the multi-level package L2 of the deposit target program Pi. And when the deposit service is executed, determining that the version check codes of the target program Pi to be called and the target program to be called are 01-20230601-v1, searching service codes corresponding to the version check codes 01-20230601-v1 in a multi-level program package of the deposit target program Pi, and calling the service codes to execute the storage service.
In the program maintenance method, by introducing the multi-level program package capable of storing different versions of service codes and the version check code capable of being used for positioning the service codes, in the process of calling the target service code from the multi-level program package of the target program to execute the current service of the target program based on the target version check code of the target program, the maintenance request of the target program can be responded, namely, a new version check code is generated for the new service code of the target program, and the new version check code and the new service code are added into the multi-level program package of the target program; wherein the new version check code is used to locate a new service code to target future services of the program. According to the scheme, the multi-level program package and the version check code are maintained, so that the synchronous operation of service and program maintenance is realized, and the problem of update failure caused by occupation of the service is avoided.
Alternatively, there may be multiple ways to generate the new version check code, which is not limited in the embodiment of the present application. One way is to generate a new version check code for a new service code of the target program based on the historical version check code of the target program. For example, the version check code of the target program is composed of three parts of service type-updating time-version, the latest version check code in the historical version check code of the target program is 01-20230801-v8, and then the new version check code is generated for the new service code of the target program to be 01-20230807-v9. It can be appreciated that the check code generation mode is beneficial to searching the target program, and meanwhile, information such as the version of the corresponding target program can be known from the check code.
Alternatively, the check code may be randomly generated. Aiming at a new service code of a target program, randomly generating a check code, preventing the check code from being repeated, searching in a multi-level program package of the target program, and taking the randomly generated check code as a new version check code if the same check code does not exist; if the same check codes exist, a check code is generated again randomly, and the multi-level program package of the target program is searched again to check whether the same check codes exist. It can be appreciated that the check code is generated in a simpler manner and at a relatively high speed.
On the basis of the above embodiment, the embodiment of the present application will be explained in detail with reference to the above embodiment S202. Specifically, the embodiment of the application relates to a process of adding a new version check code and a new service code to a multi-level program package of a target program, as shown in fig. 3, and specifically includes the following steps:
s301, generating a new program package for the new service code of the target program in the multi-level program package according to the level information of the multi-level program package of the target program.
The hierarchical information of the multi-level package includes, but is not limited to, the current level number and the hierarchical arrangement. The current hierarchical level is the level of the latest version of the current multi-level package.
Optionally, a new package for storing new service codes may be added to the multi-level package of the target program, and the name of the new package is determined based on the hierarchical arrangement of the multi-level package and the current level of the multi-level package.
For example, if the hierarchical arrangement mode of the multi-level package is an incremental mode and the current level of the multi-level package of the target program is 8 levels, the level of adding the new package into the multi-level package should be 8+1, i.e. 9 levels; if the package name is named according to the number of levels, the name of the new package is L9, and the package L9 is used for storing the new service code and the new version check code.
S302, adding the new service code and the new version check code into the new program package.
Further, the new service code Pi is added to the new package L9 together with the new version check code 01-20230807-v9, so that the new package L9 provides code services for future services of the target program.
In this embodiment, a new program package is generated for a new service code of a target program, so that multiple copies of the program are updated, and service continuity is improved.
In order to better implement maintenance of the program, in one embodiment, a program cleaning event is set, and after the event is triggered, the program packages except for the program packages of the latest version in the multi-level program packages are deleted.
For example, the target program has n different versions, namely, the program package level of the target program reaches n, when a program cleaning event is detected, the multi-level program package of the target program is sorted and summarized, the first n-1 historical versions of the target program are cleaned and deleted, the target program of the latest version is reserved, namely, the target program in the program package Ln is copied into the program package L1, so that the program is conveniently called, and the searching efficiency of the target program is improved.
The situations in which the program cleaning event is detected may be classified into a plurality of situations, and specifically may include at least one of the following:
first case: it is detected that the hierarchical information of the multi-level package is greater than a hierarchical threshold.
Wherein the hierarchy threshold is a maximum of the hierarchy of the multi-level package.
The method includes the steps that a target program is continuously updated, updated new service codes and new version check codes are added to new program packages until program package levels reach a set program package level threshold, at the moment, a program cleaning event is triggered, and then the program packages of the target program need to be cleaned.
It should be noted that the level threshold may be set according to a service type, a service update frequency, a storage space, a system processing speed, and the like.
Illustratively, if some business programs in the financial business are updated frequently, the hierarchical thresholds of the business are set larger, avoiding frequent triggering of program cleaning events and preventing premature deletion of historical versions of the target program. For example, in the financial business, the transfer business flow is stable, the transfer program is updated infrequently, the level threshold can be set smaller, the transfer program of each version is stable, and the old version before the transfer program can be cleared away with confidence.
Second case: and detecting that the current time reaches the preset cleaning time of the multi-level program package.
For example, one implementation may be to set a time node and perform cleaning of the program periodically. For example, setting the zero point time of the last day of each month as the cleaning time of the multi-level program package, the zero point time of the last day of each month triggers a program cleaning event, thereby realizing cleaning of the multi-level program package.
Another implementation may be to set a cleaning time interval for the multi-level package, and periodically clean the program. The time when the program cleaning event is executed once is the starting time, the time when the program cleaning event is executed for the second time is the ending time, and the difference value of the two times is the cleaning time interval of the multi-level program package. When the set cleaning time interval of the multi-level program package is reached, a program cleaning event is triggered, and the program package of the target program is cleaned.
It should be noted that the multi-level package cleaning time interval may be set according to a service type, a service update frequency, a storage space, a system processing speed, and the like.
Third case: a purge request is received for a multi-level package.
The cleaning request may be a request sent by an operation and maintenance personnel to clean a multi-level program package of the target program.
For example, when the operator makes a fundamental improvement on the target program, and the improved target program has stable functions, and determines that the version before the target program is no longer needed, the operator can directly send a cleaning request for the multi-level program package to the target program.
In the embodiment, the program cleaning event is set to clean the target program, so that the storage space is saved, the calling efficiency of the program is improved, and the working efficiency of the system is improved.
Based on the above embodiments, the embodiment of the present application explains in detail the process of S201 in one embodiment of calling the target service code from the multi-level package of the target program to execute the current service of the target program based on the target version check code of the target program. As shown in fig. 4, the method specifically comprises the following steps:
s401, in response to the service processing request, determining a target version check code of a target service code which needs to be called by the current service of the execution target program.
The service processing request refers to a request initiated by a service demand end when the service demand end has a service processing demand. Optionally, the service processing request may include the current service and a target version check code of a target program required to be invoked for executing the current service.
Further, the server may extract the target version check code from the service processing request after acquiring the service processing request.
S402, judging whether a target version check code exists in a multi-level program package of the target program. If so, executing S403; if not, S404 is performed.
For example, when executing a certain service, determining a target program to be called by the service, and determining a target version check code for calling the target program; further, the multi-level package of the target program is searched until the same version check code is found in a certain package.
It should be noted that, the searching order of the packages may be that the searching is sequentially performed according to the time of the package creation, or may be that the searching is performed according to a time line from the earliest package creation to the latest package creation, or may be performed according to the reverse order.
For example, when receiving a transfer service processing request, determining a target program and a target version check code to be called by the transfer service, sequentially expanding and searching a multi-level program package of the target program according to a hierarchical searching order of the program package, and if searching is performed according to a time line, expanding and searching from the program package L1; if the target version check code is preferentially found in the program package L1, the search is ended; otherwise, continuing searching in the program package L2, ending the searching if the searching is found, otherwise, continuing expanding the searching in the next-stage program package; if the last stage program package Ln is searched and the same check code is not found yet, the searching fails, the calling of the target program is unsuccessful, and the service execution failure information is output.
S403, calling the target service code corresponding to the target version check code from the multi-level program package of the target program, and executing the current service of the target program.
For example, the multi-level program package of the target program is sequentially searched according to the searching order of the multi-level program package, and if the version check code identical to the target version check code of the target program is found in a certain program package, the searching is finished, and the target service code in the program package is called to execute the current service.
S404, outputting the service execution failure information.
For example, if the version check code identical to the target version check code is not searched in the multi-level program package of the target program, the search is ended, and the call failure of the target program is determined. At this time, service execution failure information including a failure cause may be output, and specifically, information that a service execution process is in error and a program version is inconsistent may be output.
In the embodiment, by introducing the check code and the multi-level program package, the consistency of the program version and the continuity of the service are ensured, and the working efficiency of the system is improved.
On the basis of the above embodiments, this embodiment provides an alternative example of a program maintenance method.
As shown in fig. 5, the specific implementation procedure is as follows:
s501, in response to a service processing request, determining a target version check code of a target service code which needs to be called by a current service executing a target program.
S502, judging whether a target version check code exists in a multi-level program package of the target program. If so, executing S503; if not, S509 is performed.
S503, calling the target service code corresponding to the target version check code from the multi-level program package of the target program, and executing the current service of the target program.
S504, responding to the maintenance request of the target program in the process of calling the target service code from the multi-level program package of the target program to execute the current service of the target program based on the target version check code of the target program.
S505, generating a new version check code for the new service code of the target program according to the historical version check code of the target program.
S506, generating a new program package for the new service code of the target program in the multi-level program package according to the level information of the multi-level program package of the target program.
S507, adding the new version check code and the new service code into a multi-level program package of the target program.
And S508, deleting the program packages except for the program packages of the latest version in the multi-level program packages under the condition that the program cleaning event is detected.
Wherein the program cleaning event includes at least one of: detecting that the hierarchy information of the multi-hierarchy package is greater than a hierarchy threshold; detecting that the current time reaches the preset cleaning time of the multi-level program package; a purge request is received for a multi-level package.
S509, outputting service execution failure information.
The specific process of S501 to S509 may refer to the description of the foregoing method embodiment, and its implementation principle and technical effect are similar, and are not repeated herein.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a program maintenance device for realizing the program maintenance method. The implementation of the solution provided by the apparatus is similar to the implementation described in the above method, so the specific limitation in one or more embodiments of the program maintenance apparatus provided below may refer to the limitation of the program maintenance method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 6, there is provided a program maintenance apparatus 1 including: generating a module 10 and adding a module 20, wherein:
the generating module 10 is configured to generate a new version check code for a new service code of the target program in response to a maintenance request for the target program in a process of calling the target service code from a multi-level package of the target program to execute a current service of the target program based on the target version check code of the target program;
the adding module 20 is configured to add the new version check code and the new service code to a multi-level program package of the target program; wherein the new version check code is used to locate a new service code to execute future services of the target program.
In the program maintenance device, in the process of calling the target service code from the multi-level program package of the target program to execute the current service of the target program based on the target version check code of the target program, responding to a maintenance request of the target program to generate a new version check code for the new service code of the target program; adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate a new service code to execute future services of the target program. According to the scheme, the multi-level program package and the version check code are maintained, so that the synchronous operation of service and program maintenance is realized, and the problem of update failure caused by occupation of the service is avoided.
In one embodiment, as shown in fig. 7, the generating module 10 includes:
an execution unit 11, configured to determine, in response to a service processing request, a target version check code of a target service code that needs to be invoked by a current service of an execution target program; judging whether a target version check code exists in a multi-level program package of the target program; if so, calling a target service code corresponding to the target version check code from a multi-level program package of the target program, and executing the current service of the target program;
the generating unit 12 is configured to generate a new version check code for a new service code of the target program according to a history version check code of the target program in response to a maintenance request for the target program in a process of calling the target service code from a multi-level package of the target program to execute a current service of the target program based on the target version check code of the target program.
In one embodiment, the adding module 20 may be specifically configured to:
generating a new program package for a new service code of the target program in the multi-level program package according to the level information of the multi-level program package of the target program, and adding the new service code and the new version check code into the new program package;
In one embodiment, the program maintenance device 1 further includes:
and the cleaning module is used for deleting the program packages except the program package of the latest version in the multi-level program package under the condition that the program cleaning event is detected.
In one embodiment, the cleaning module, when used to detect a program cleaning event, may be used in any of the following situations:
detecting that the hierarchy information of the multi-hierarchy package is greater than a hierarchy threshold;
detecting that the current time reaches the preset cleaning time of the multi-level program package;
a purge request is received for a multi-level package.
Each module in the program maintenance device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 8. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data such as target programs of various businesses. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a program maintenance method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 8 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
in the process of calling a target service code from a multi-level program package of a target program to execute the current service of the target program based on the target version check code of the target program, responding to a maintenance request of the target program and generating a new version check code for a new service code of the target program;
adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate a new service code to execute future services of the target program.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
Generating a new program package for the new service code of the target program in the multi-level program package according to the level information of the multi-level program package of the target program; and adding the new service code and the new version check code into the new program package.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and deleting the program packages except for the program packages of the latest version in the multi-level program packages under the condition that the program cleaning event is detected.
In one embodiment, the processor executes logic in the computer program that detects a program clean-up event, including at least one of:
detecting that the hierarchy information of the multi-hierarchy package is greater than a hierarchy threshold; detecting that the current time reaches the preset cleaning time of the multi-level program package; a purge request is received for a multi-level package.
In one embodiment, the processor, when executing the logic of generating a new version check code for a new service code of a target program in a computer program, further performs the steps of:
and generating a new version check code for the new service code of the target program according to the historical version check code of the target program.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
Responding to the service processing request, determining a target version check code of a target service code which needs to be called by the current service of the execution target program; judging whether a target version check code exists in a multi-level program package of the target program; and if the target service code exists, calling the target service code corresponding to the target version check code from the multi-level program package of the target program, and executing the current service of the target program.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
in the process of calling a target service code from a multi-level program package of a target program to execute the current service of the target program based on the target version check code of the target program, responding to a maintenance request of the target program and generating a new version check code for a new service code of the target program;
adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate a new service code to execute future services of the target program.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Generating a new program package for the new service code of the target program in the hierarchical program package according to the hierarchical information of the multi-level program package of the target program; and adding the new service code and the new version check code into the new program package.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and deleting the program packages except for the program packages of the latest version in the multi-level program packages under the condition that the program cleaning event is detected.
In one embodiment, the logic of the computer program that detects the program clean up event when executed by the processor includes at least one of:
detecting that the hierarchy information of the multi-hierarchy package is greater than a hierarchy threshold; detecting that the current time reaches the preset cleaning time of the multi-level program package; a purge request is received for a multi-level package.
In one embodiment, the logic of generating a new version check code for a new service code of a target program in a computer program is executed by a processor and further performs the steps of:
and generating a new version check code for the new service code of the target program according to the historical version check code of the target program.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Responding to the service processing request, determining a target version check code of a target service code which needs to be called by the current service of the execution target program; judging whether a target version check code exists in a multi-level program package of the target program; and if the target service code exists, calling the target service code corresponding to the target version check code from the multi-level program package of the target program, and executing the current service of the target program.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
in the process of calling a target service code from a multi-level program package of a target program to execute the current service of the target program based on the target version check code of the target program, responding to a maintenance request of the target program and generating a new version check code for a new service code of the target program;
adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate a new service code to execute future services of the target program.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Generating a new program package for the new service code of the target program in the hierarchical program package according to the hierarchical information of the multi-level program package of the target program; and adding the new service code and the new version check code into the new program package.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and deleting the program packages except for the program packages of the latest version in the multi-level program packages under the condition that the program cleaning event is detected.
In one embodiment, the logic of the computer program that detects the program clean up event when executed by the processor includes at least one of:
detecting that the hierarchy information of the multi-hierarchy package is greater than a hierarchy threshold; detecting that the current time reaches the preset cleaning time of the multi-level program package; a purge request is received for a multi-level package.
In one embodiment, the logic of generating a new version check code for a new service code of a target program in a computer program is executed by a processor and further performs the steps of:
and generating a new version check code for the new service code of the target program according to the historical version check code of the target program.
In one embodiment, the computer program when executed by the processor further performs the steps of:
Responding to the service processing request, determining a target version check code of a target service code which needs to be called by the current service of the execution target program; judging whether a target version check code exists in a multi-level program package of the target program; and if the target service code exists, calling the target service code corresponding to the target version check code from the multi-level program package of the target program, and executing the current service of the target program.
It should be noted that, the information (including, but not limited to, the target program information and the like related to the business transaction process) and the data (including, but not limited to, the data for analysis, the stored data, the displayed data and the like) related to the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A program maintenance method, the method comprising:
in the process of calling a target service code from a multi-level program package of a target program to execute the current service of the target program based on the target version check code of the target program, responding to a maintenance request of the target program and generating a new version check code for a new service code of the target program;
Adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate the new service code to execute future services of the target program.
2. The method of claim 1, wherein the adding the new version check code and the new service code to the multi-level package of the target program comprises:
generating a new program package for the new service code of the target program in the multi-level program package according to the level information of the multi-level program package of the target program;
and adding the new service code and the new version check code into the new program package.
3. The method according to claim 2, wherein the method further comprises:
and deleting the program packages except for the program packages of the latest version in the multi-level program packages under the condition that the program cleaning event is detected.
4. A method according to claim 3, wherein the detection of a program clean-up event comprises at least one of:
detecting that the hierarchical information of the multi-level package is greater than a hierarchical threshold;
Detecting that the current time reaches the preset cleaning time of the multi-level program package;
a purge request is received for the multi-level package.
5. The method of claim 1, wherein generating a new version check code for the new service code of the target program comprises:
and generating a new version check code for the new service code of the target program according to the historical version check code of the target program.
6. The method of claim 1, wherein invoking target service code from a multi-level package of a target program to execute a current service of the target program based on a target version check code of the target program comprises:
responding to the service processing request, determining a target version check code of a target service code which needs to be called by the current service of the execution target program;
judging whether the target version check code exists in a multi-level program package of the target program;
and if the target service code exists, calling the target service code corresponding to the target version check code from the multi-level program package of the target program, and executing the current service of the target program.
7. A program maintenance device, the device comprising:
The generating module is used for responding to a maintenance request of the target program in the process of calling a target service code from a multi-level program package of the target program to execute the current service of the target program based on the target version check code of the target program, and generating a new version check code for the new service code of the target program;
the adding module is used for adding the new version check code and the new service code into a multi-level program package of the target program; wherein the new version check code is used to locate the new service code to execute future services of the target program.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311061557.1A 2023-08-22 2023-08-22 Program maintenance method, program maintenance device, computer equipment and storage medium Pending CN117075951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311061557.1A CN117075951A (en) 2023-08-22 2023-08-22 Program maintenance method, program maintenance device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311061557.1A CN117075951A (en) 2023-08-22 2023-08-22 Program maintenance method, program maintenance device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117075951A true CN117075951A (en) 2023-11-17

Family

ID=88707630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311061557.1A Pending CN117075951A (en) 2023-08-22 2023-08-22 Program maintenance method, program maintenance device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117075951A (en)

Similar Documents

Publication Publication Date Title
CN110781214A (en) Database reading and writing method and device, computer equipment and storage medium
US8931051B2 (en) Scalable and highly available clustering for large scale real-time applications
CN111177143B (en) Key value data storage method and device, storage medium and electronic equipment
CN113760847A (en) Log data processing method, device, equipment and storage medium
CN107203437B (en) Method, device and system for preventing memory data from being lost
CN117435569A (en) Dynamic capacity expansion method, device, equipment, medium and program product for cache system
CN115292094B (en) Data recovery processing method, device, equipment, storage medium and program product
CN113515518A (en) Data storage method and device, computer equipment and storage medium
CN116303789A (en) Parallel synchronization method and device for multi-fragment multi-copy database and readable medium
CN114924911B (en) Method, device, equipment and storage medium for backing up effective data of Windows operating system
CN113641780B (en) Search method, system, device, storage medium and computer program product
CN117075951A (en) Program maintenance method, program maintenance device, computer equipment and storage medium
CN111046246A (en) Label updating method and device and distributed storage system
CN115421856A (en) Data recovery method and device
CN114416689A (en) Data migration method and device, computer equipment and storage medium
US20220237176A1 (en) Method and system for managing changes of records on hosts
CN111522883B (en) Backup method, device, equipment and storage medium of object data
CN112015819A (en) Data updating method, device, equipment and medium for distributed graph database
CN105677801A (en) Data processing method and system based on graph
CN115730016B (en) Data synchronization method, system, device, computer equipment and storage medium
CN116257531B (en) Database space recovery method
CN117370078B (en) Database backup management method, device, computer equipment and storage medium
CN114036171B (en) Application data management method, device, computer equipment and storage medium
CN112711608B (en) Data display method, device, computer readable storage medium and computer equipment
US20050177774A1 (en) Automated generation of computer-executable compensation procedures for previously executed methods

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