CN113609136B - Method and device for stably maintaining service number, computer equipment and storage medium - Google Patents

Method and device for stably maintaining service number, computer equipment and storage medium Download PDF

Info

Publication number
CN113609136B
CN113609136B CN202110989516.3A CN202110989516A CN113609136B CN 113609136 B CN113609136 B CN 113609136B CN 202110989516 A CN202110989516 A CN 202110989516A CN 113609136 B CN113609136 B CN 113609136B
Authority
CN
China
Prior art keywords
service
processed
asset pool
moved
pool
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.)
Active
Application number
CN202110989516.3A
Other languages
Chinese (zh)
Other versions
CN113609136A (en
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.)
Shanghai Zhouen Information Technology Co ltd
Original Assignee
Shenzhen Lianrong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lianrong Technology Co ltd filed Critical Shenzhen Lianrong Technology Co ltd
Priority to CN202110989516.3A priority Critical patent/CN113609136B/en
Publication of CN113609136A publication Critical patent/CN113609136A/en
Application granted granted Critical
Publication of CN113609136B publication Critical patent/CN113609136B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases

Landscapes

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

Abstract

The embodiment of the invention discloses a method and a device for keeping service number stability, computer equipment and a storage medium. The method comprises the following steps: constructing a table for associating the asset pool ID with the service ID to obtain an association relation table; acquiring a service to be processed and an ID of the service to be processed; judging whether the service to be processed is moved into a corresponding asset pool or not according to the incidence relation table and the ID of the service to be processed; and if the service to be processed is moved into the corresponding asset pool, calling the serial number of the service to be processed in the asset pool, and giving the service to be processed to form the service serial number of the service to be processed. The method of the embodiment of the invention can ensure the unique correlation between the service and the service number, ensure the stability of the service number of the service in the asset pool and avoid the disorder of the contract number.

Description

Method and device for stably maintaining service number, computer equipment and storage medium
Technical Field
The present invention relates to a computer, and more particularly, to a method and an apparatus for maintaining stability of a service number, a computer device, and a storage medium.
Background
When the service contract is processed, different service contracts are required to be placed in different asset pools to generate corresponding service numbers, when the asset pool is required to be moved out, the corresponding service numbers in the asset pool are deleted, when the same service contract is moved into the asset pool again, the service numbers are regenerated by the existing technology, the existing technology cannot enable the service contracts to keep consistent service numbers, the numbering of the inventory type contracts of the asset pools is easy to be unstable, and the contract numbering is disordered.
Therefore, it is necessary to design a new method to ensure the unique correlation between the service and the service number, ensure the stability of the service number of the service in the asset pool, and avoid the disorder of the contract number.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method, a device, computer equipment and a storage medium for stably maintaining a service number.
In order to achieve the purpose, the invention adopts the following technical scheme: the method for stably maintaining the service number comprises the following steps:
constructing a table for associating the asset pool ID with the service ID to obtain an association relation table;
acquiring a service to be processed and an ID of the service to be processed;
judging whether the service to be processed is moved into a corresponding asset pool or not according to the incidence relation table and the ID of the service to be processed;
and if the service to be processed is moved into the corresponding asset pool, calling the serial number of the service to be processed in the asset pool, and giving the service to be processed to form the service serial number of the service to be processed.
The further technical scheme is as follows: after judging whether the service to be processed is moved into the corresponding asset pool according to the incidence relation table and the ID of the service to be processed, the method further comprises the following steps:
and if the service to be processed is not moved into the corresponding asset pool, generating a serial number of the service to be processed in the corresponding asset pool to obtain the service serial number of the service to be processed, and updating the association relation table.
The further technical scheme is as follows: after the obtaining of the service to be processed and the ID of the service to be processed, the method further includes:
judging whether the service to be processed is a service to be moved into an asset pool or not;
if the service to be processed is the service to be moved into the asset pool, executing the operation of judging whether the service to be processed is moved into the corresponding asset pool according to the incidence relation table and the ID of the service to be processed;
if the service to be processed is not the service to be moved into the asset pool, moving the service to be processed out of the corresponding asset pool;
and setting a service number related to the service to be processed in the asset pool.
The further technical scheme is as follows: the removing the pending transaction from the corresponding asset pool comprises:
determining the ID of the asset pool where the service to be processed is located according to the incidence relation table and the ID of the service to be processed;
and removing the service to be processed from the corresponding asset pool according to the asset pool ID of the service to be processed.
The further technical scheme is as follows: the setting of the service number related to the service to be processed in the asset pool includes:
and setting the service number related to the service to be processed in the asset pool to be null.
The further technical scheme is as follows: before constructing a table for associating asset pool IDs with service IDs to obtain an association relationship table, the method further includes:
the maximum number of the asset pool is saved to form an asset pool ID table.
The invention also provides a service number stability keeping device, which comprises:
the table building unit is used for building a table for associating the asset pool ID with the service ID to obtain an association relation table;
a service obtaining unit, configured to obtain a service to be processed and an ID of the service to be processed;
a service judging unit, configured to judge whether the service to be processed is moved into a corresponding asset pool according to the association relation table and the ID of the service to be processed;
and the calling unit is used for calling the serial number of the service to be processed in the asset pool and endowing the service to be processed to form the service serial number of the service to be processed if the service to be processed is moved into the corresponding asset pool.
The further technical scheme is as follows: further comprising:
and the number generation unit is used for generating the number of the service to be processed in the corresponding asset pool if the service to be processed is not moved into the corresponding asset pool so as to obtain the service number of the service to be processed and updating the association relation table.
The invention also provides computer equipment which comprises a memory and a processor, wherein the memory is stored with a computer program, and the processor realizes the method when executing the computer program.
The invention also provides a storage medium storing a computer program which, when executed by a processor, is operable to carry out the method as described above.
Compared with the prior art, the invention has the beneficial effects that: the invention constructs a table of associated asset pool IDs and service IDs to form an associated relation table, firstly judges whether the service to be processed is moved into the corresponding asset pool before, directly endows the service number in the associated relation table with the service to be processed when the service to be processed is moved into the corresponding asset pool before, regenerates the service number when the service to be processed is not moved into the corresponding asset pool before, and updates the service number in the associated relation table, thereby realizing the unique correlation between the service and the service number, ensuring the stability of the service number in the asset pool and avoiding the disorder of contract numbers.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a service number stability maintaining method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a method for maintaining stability of a service number according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a service number stability maintaining method according to another embodiment of the present invention;
fig. 4 is a schematic sub-flow diagram of a service number stability maintaining method according to another embodiment of the present invention;
fig. 5 is a schematic block diagram of a service number stability maintaining apparatus according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a service number stability maintaining apparatus according to another embodiment of the present invention;
fig. 7 is a schematic block diagram of a shift-out unit of a service number stabilization maintaining apparatus according to another embodiment of the present invention;
FIG. 8 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view of an application scenario of a service number stability maintaining method according to an embodiment of the present invention. Fig. 2 is a schematic flow chart of a service number stability maintaining method provided in the embodiment of the present invention. The method for stably maintaining the service number is applied to a server, the server and a terminal carry out data interaction, the service to be processed input from the terminal and the ID of the service to be processed are combined with an incidence relation table constructed by the server to carry out processing and numbering on the service to be processed, so that the stability of the service number is maintained, and the stability of the output service contract number is ensured.
Fig. 2 is a flowchart illustrating a method for stably maintaining a service number according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S160.
S110, storing the maximum serial number of the asset pool to form an asset pool ID table.
In this embodiment, each asset pool has a plurality of numbers, and the maximum number of the asset pool is stored to form an asset pool ID table, which facilitates the construction of the association table.
S120, constructing a table for associating the asset pool ID with the service ID to obtain an association relation table.
In this embodiment, the association table refers to a table that describes associations between service IDs and asset pool IDs, and indicates in which asset pool a certain service is stored.
Specifically, a table is created in the database, the asset pool ID and the service ID are associated as primary keys, the service number of the service in the asset pool is stored, and a table is formed, that is, the asset pool in which a certain service is stored is described in the association table, and the service number is also recorded in the association table.
S130, acquiring the service to be processed and the ID of the service to be processed.
In this embodiment, the pending service refers to a service input by the terminal, and the service needs to be moved out of or into the asset pool. The ID of the service to be processed is also input by the terminal.
S140, judging whether the service to be processed is moved into the corresponding asset pool or not according to the incidence relation table and the ID of the service to be processed.
In this embodiment, the ID of the service to be processed is used as a search condition, and is searched in the association table, and if a corresponding record is searched, it is determined that the service to be processed has moved into a corresponding asset pool; and if the corresponding record is not searched, judging that the service to be processed is not moved into the corresponding asset pool.
S150, if the service to be processed is moved into the corresponding asset pool, calling the serial number of the service to be processed in the asset pool, and giving the service to be processed to form the service serial number of the service to be processed.
In this embodiment, the service number of the service to be processed is also the number of the service contract generated by the service to be processed.
And determining a relevant record of the service to be processed in the association relation table by a searching mode, and recording a service number corresponding to the service in the relevant record, wherein the service number in the record is directly endowed to the service to be processed without regenerating the service number, so that the same service can be kept with the unique service number all the time, and the stability of the service number of the relevant service in the asset pool is ensured.
And S160, if the service to be processed is not moved into the corresponding asset pool, generating a serial number of the service to be processed in the corresponding asset pool to obtain a service serial number of the service to be processed, and updating the association relation table.
In this embodiment, if the record related to the service to be processed is not searched, the service number is regenerated, the same service in different asset pools has different service numbers, and the service number of the same service in the same asset pool, regardless of whether the service number is moved in or removed again, is unique and does not change. The business personnel continuously move the business into and out of the asset pool according to the requirements of the asset pool, so that the business can meet the requirements of the asset pool to the maximum extent.
Updating the association relation table means that the ID of the service to be processed, the ID of the moved asset pool and the corresponding service number are recorded in the association relation table.
The method and the device ensure that the service number of the service is stable and unique, can ensure that the service contract number corresponding to the service is stable and unique, and avoid disorder of subsequent contents related to the service contract.
The business number stability keeping method comprises the steps of constructing a table of associated asset pool IDs and business IDs to form an associated relation table, judging whether a business to be processed is moved into the corresponding asset pool before the business to be processed, directly endowing the business number in the associated relation table with the business to be processed when the business to be processed is moved into the corresponding asset pool before the business to be processed, regenerating the business number when the business to be processed is not moved into the corresponding asset pool before the business to be processed, updating the business number in the associated relation table, ensuring the unique correlation of the business and the business number, ensuring the stability of the business number of the business in the asset pool, and avoiding disorder of contract numbers.
Fig. 3 is a flowchart illustrating a method for maintaining service number stability according to another embodiment of the present invention. As shown in fig. 3, the service number stability maintaining method of the present embodiment includes steps S210 to S290. Steps S210 to S230 are similar to steps S110 to S130 in the above embodiment, and steps S270 to S290 are similar to steps S140 to S160 in the above embodiment, and are not repeated herein. The added steps S230 to S260 in the present embodiment are explained in detail below.
S240, judging whether the service to be processed is a service to be moved into an asset pool;
if the service to be processed is a service to be moved into the asset pool, executing the step S270;
and S250, if the service to be processed is not the service to be moved into the asset pool, moving the service to be processed out of the corresponding asset pool.
In an embodiment, referring to fig. 4, the step S240 may include steps S251 to S252.
S251, determining the ID of the asset pool where the service to be processed is located according to the incidence relation table and the ID of the service to be processed.
Specifically, the ID of the service to be processed is used as a search condition, and a record related to the ID of the service to be processed is searched in the association relation table, so as to determine the asset pool ID where the ID of the service to be processed is located.
S252, removing the service to be processed from the corresponding asset pool according to the asset pool ID where the service to be processed is located.
And when the position of the asset pool where the service to be processed is located is determined, removing the service to be processed from the asset pool.
S260, setting a service number related to the service to be processed in the asset pool.
In this embodiment, the service number associated with the service to be processed in the asset pool is set to be null.
When the assets pool is moved into the assets pool again, the corresponding service number is inquired from the association relation table to directly give the service to be processed, and the method is simple and convenient.
Fig. 5 is a schematic block diagram of a service number stability maintaining apparatus 300 according to an embodiment of the present invention. As shown in fig. 5, the present invention further provides a service number stability maintaining apparatus 300 corresponding to the service number stability maintaining method. The service number stability holding apparatus 300 includes a unit for performing the service number stability holding method described above, and the apparatus may be configured in a server. Specifically, referring to fig. 5, the service number stability maintaining apparatus 300 includes a table constructing unit 302, a service acquiring unit 303, a service judging unit 307, a calling unit 308, and a number generating unit 309.
A table construction unit 302, configured to construct a table for associating asset pool IDs with service IDs to obtain an association relationship table; a service obtaining unit 303, configured to obtain a service to be processed and an ID of the service to be processed; a service judging unit 307, configured to judge whether the service to be processed is moved into a corresponding asset pool according to the association relation table and the ID of the service to be processed; and the invoking unit 308 is configured to, if the to-be-processed service has moved into the corresponding asset pool, invoke a serial number of the to-be-processed service in the asset pool, and assign the to-be-processed service to the to-be-processed service, so as to form a service serial number of the to-be-processed service. A number generating unit 309, configured to generate a number in the corresponding asset pool for the to-be-processed service if the to-be-processed service is not moved into the corresponding asset pool, so as to obtain a service number of the to-be-processed service, and update the association table.
In one embodiment, as shown in fig. 5, the service number stability maintenance device 300 further includes a holding unit 301 for holding the maximum number of the asset pool to form an asset pool ID table.
Fig. 6 is a schematic block diagram of a service number stability maintaining apparatus 300 according to another embodiment of the present invention. As shown in fig. 6, the service number stabilization maintaining apparatus 300 of the present embodiment is the above-mentioned embodiment, and is added with a move-in judging unit 304, a move-out unit 305, and a setting unit 306.
A migration determination unit 304, configured to determine whether the service to be processed is a service to be migrated into the asset pool; if the service to be processed is the service to be moved into the asset pool, executing the operation of judging whether the service to be processed is moved into the corresponding asset pool according to the incidence relation table and the ID of the service to be processed; a moving-out unit 305, configured to, if the service to be processed is not a service to be moved into an asset pool, move the service to be processed out of the corresponding asset pool; a setting unit 306, configured to set a service number related to the service to be processed in the asset pool.
In one embodiment, as shown in FIG. 7, the removal unit 305 includes a determination subunit 3051 and a traffic removal subunit 3052.
The determining subunit 3051, configured to determine, according to the association relationship table and the ID of the service to be processed, an asset pool ID where the service to be processed is located; a service removal subunit 3052, configured to remove the service to be processed from the corresponding asset pool according to the asset pool ID where the service to be processed is located.
In an embodiment, the setting unit 306 is configured to set a service number associated with the pending service in the asset pool to null.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the service number stability keeping apparatus 300 and each unit may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
The service number stability maintaining apparatus 300 may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a server, wherein the server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 8, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 include program instructions that, when executed, cause the processor 502 to perform a service number stabilization maintenance method.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute a service number stability keeping method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 8 is a block diagram of only a portion of the configuration relevant to the present teachings and does not constitute a limitation on the computer device 500 to which the present teachings may be applied, and that a particular computer device 500 may include more or less components than those shown, or combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following steps:
constructing a table for associating the asset pool ID with the service ID to obtain an association relation table; acquiring a service to be processed and an ID of the service to be processed; judging whether the service to be processed is moved into a corresponding asset pool or not according to the incidence relation table and the ID of the service to be processed; and if the service to be processed is moved into the corresponding asset pool, calling the serial number of the service to be processed in the asset pool, and giving the service to be processed to form the service serial number of the service to be processed.
In an embodiment, after the step of determining whether the service to be processed is moved into the corresponding asset pool according to the association relation table and the ID of the service to be processed is implemented, the processor 502 further implements the following steps:
and if the service to be processed is not moved into the corresponding asset pool, generating a serial number of the service to be processed in the corresponding asset pool to obtain the service serial number of the service to be processed, and updating the association relation table.
In an embodiment, after implementing the step of acquiring the to-be-processed service and the ID of the to-be-processed service, the processor 502 further implements the following steps:
judging whether the service to be processed is a service to be moved into an asset pool or not; if the service to be processed is the service to be moved into the asset pool, executing the operation of judging whether the service to be processed is moved into the corresponding asset pool according to the incidence relation table and the ID of the service to be processed; if the service to be processed is not the service to be moved into the asset pool, moving the service to be processed out of the corresponding asset pool; and setting a service number related to the service to be processed in the asset pool.
In an embodiment, when the processor 502 implements the step of removing the pending business from the corresponding asset pool, the following steps are specifically implemented:
determining the ID of the asset pool where the service to be processed is located according to the incidence relation table and the ID of the service to be processed; and removing the service to be processed from the corresponding asset pool according to the asset pool ID of the service to be processed.
In an embodiment, when implementing the step of setting the service number related to the service to be processed in the asset pool, the processor 502 specifically implements the following steps:
and setting the service number related to the service to be processed in the asset pool to be null.
In one embodiment, the processor 502 further implements the following steps before implementing the step of building a table for associating asset pool IDs with business IDs to obtain an association table:
the maximum number of the asset pool is saved to form an asset pool ID table.
It should be understood that in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program, when executed by a processor, causes the processor to perform the steps of:
constructing a table for associating the asset pool ID with the service ID to obtain an association relation table; acquiring a service to be processed and an ID of the service to be processed; judging whether the service to be processed is moved into a corresponding asset pool or not according to the incidence relation table and the ID of the service to be processed; and if the service to be processed is moved into the corresponding asset pool, calling the serial number of the service to be processed in the asset pool, and giving the service to be processed to form the service serial number of the service to be processed.
In an embodiment, after the processor executes the computer program to implement the step of determining whether the service to be processed is moved into the corresponding asset pool according to the association relation table and the ID of the service to be processed, the processor further implements the following steps:
and if the service to be processed is not moved into the corresponding asset pool, generating a serial number of the service to be processed in the corresponding asset pool to obtain the service serial number of the service to be processed, and updating the association relation table.
In an embodiment, after the step of obtaining the to-be-processed service and the ID of the to-be-processed service is implemented by the processor by executing the computer program, the following steps are further implemented:
judging whether the service to be processed is a service to be moved into an asset pool or not; if the service to be processed is the service to be moved into the asset pool, executing the operation of judging whether the service to be processed is moved into the corresponding asset pool according to the incidence relation table and the ID of the service to be processed; if the service to be processed is not the service to be moved into the asset pool, moving the service to be processed out of the corresponding asset pool; and setting a service number related to the service to be processed in the asset pool.
In an embodiment, when the processor executes the computer program to implement the step of removing the to-be-processed service from the corresponding asset pool, the following steps are specifically implemented:
determining the ID of the asset pool where the service to be processed is located according to the incidence relation table and the ID of the service to be processed; and removing the service to be processed from the corresponding asset pool according to the asset pool ID of the service to be processed.
In an embodiment, when the processor executes the computer program to implement the step of setting the service number related to the service to be processed in the asset pool, the following steps are specifically implemented:
and setting the service number related to the service to be processed in the asset pool to be null.
In one embodiment, before executing the computer program to implement the step of constructing a table for associating asset pool IDs with business IDs to obtain an association table, the processor further implements the steps of:
the maximum number of the asset pool is saved to form an asset pool ID table.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (7)

1. The method for stably maintaining the service number is characterized by comprising the following steps:
constructing a table for associating the asset pool ID with the service ID to obtain an association relation table;
acquiring a service to be processed and an ID of the service to be processed;
judging whether the service to be processed is moved into a corresponding asset pool or not according to the incidence relation table and the ID of the service to be processed;
if the service to be processed is moved into the corresponding asset pool, calling the serial number of the service to be processed in the asset pool, and giving the service to be processed to form the service serial number of the service to be processed;
after judging whether the service to be processed is moved into the corresponding asset pool according to the incidence relation table and the ID of the service to be processed, the method further comprises the following steps:
if the service to be processed is not moved into the corresponding asset pool, generating a serial number of the service to be processed in the corresponding asset pool to obtain a service serial number of the service to be processed, and updating an association relation table;
after the obtaining of the service to be processed and the ID of the service to be processed, the method further includes:
judging whether the service to be processed is a service to be moved into an asset pool or not;
if the service to be processed is the service to be moved into the asset pool, executing the operation of judging whether the service to be processed is moved into the corresponding asset pool according to the incidence relation table and the ID of the service to be processed;
if the service to be processed is not the service to be moved into the asset pool, moving the service to be processed out of the corresponding asset pool;
and setting a service number related to the service to be processed in the asset pool.
2. The method for maintaining stability of service numbers according to claim 1, wherein said removing the pending service from the corresponding pool of assets comprises:
determining the ID of the asset pool where the service to be processed is located according to the incidence relation table and the ID of the service to be processed;
and removing the service to be processed from the corresponding asset pool according to the asset pool ID of the service to be processed.
3. The method for maintaining stability of service numbers according to claim 2, wherein the setting of the service number related to the pending service in the asset pool comprises:
and setting the service number related to the service to be processed in the asset pool to be null.
4. The method for maintaining stability of service numbers according to claim 1, wherein before constructing the table for associating asset pool IDs with service IDs to obtain the association relationship table, the method further comprises:
the maximum number of the asset pool is saved to form an asset pool ID table.
5. The service number stability holding device is characterized by comprising:
the table building unit is used for building a table for associating the asset pool ID with the service ID to obtain an association relation table;
a service obtaining unit, configured to obtain a service to be processed and an ID of the service to be processed;
a service judging unit, configured to judge whether the service to be processed is moved into a corresponding asset pool according to the association relation table and the ID of the service to be processed;
the calling unit is used for calling the serial number of the service to be processed in the asset pool and endowing the service to be processed with the serial number if the service to be processed is moved into the corresponding asset pool so as to form the service serial number of the service to be processed;
further comprising:
a number generation unit, configured to generate a number in the corresponding asset pool for the to-be-processed service if the to-be-processed service is not moved into the corresponding asset pool, so as to obtain a service number of the to-be-processed service, and update the association table;
further comprising:
the immigration judging unit is used for judging whether the service to be processed is the service to be immigrated into the asset pool; if the service to be processed is the service to be moved into the asset pool, executing the operation of judging whether the service to be processed is moved into the corresponding asset pool according to the incidence relation table and the ID of the service to be processed; a moving-out unit, configured to, if the service to be processed is not a service to be moved into an asset pool, move out the service to be processed from the corresponding asset pool; and the setting unit is used for setting the service number related to the service to be processed in the asset pool.
6. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-4 when executing the computer program.
7. A storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 4.
CN202110989516.3A 2021-08-26 2021-08-26 Method and device for stably maintaining service number, computer equipment and storage medium Active CN113609136B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110989516.3A CN113609136B (en) 2021-08-26 2021-08-26 Method and device for stably maintaining service number, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110989516.3A CN113609136B (en) 2021-08-26 2021-08-26 Method and device for stably maintaining service number, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113609136A CN113609136A (en) 2021-11-05
CN113609136B true CN113609136B (en) 2022-04-26

Family

ID=78309390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110989516.3A Active CN113609136B (en) 2021-08-26 2021-08-26 Method and device for stably maintaining service number, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113609136B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2858024A1 (en) * 2013-10-01 2015-04-08 Enyx SA An asset management device and method in a hardware platform
CN105912583A (en) * 2016-04-01 2016-08-31 乐视控股(北京)有限公司 Member service data interaction method and device for mobile terminal
CN110674152B (en) * 2019-09-24 2023-06-23 京东科技控股股份有限公司 Data synchronization method and device, storage medium and electronic equipment
CN111383122A (en) * 2020-05-29 2020-07-07 支付宝(杭州)信息技术有限公司 Asset management method and device based on block chain and electronic equipment
CN112508708B (en) * 2020-12-13 2024-06-21 李力 Securitization cash flow tracking method based on blockchain technology
CN112948434B (en) * 2021-02-25 2024-04-09 平安壹钱包电子商务有限公司 Business event-based business processing method, device, computer equipment and storage medium
CN113114776A (en) * 2021-04-20 2021-07-13 北京京东振世信息技术有限公司 Data pushing method and device

Also Published As

Publication number Publication date
CN113609136A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
US10764030B2 (en) Reduction in storage usage in distributed databases
CN110574020B (en) Method, system and computer readable storage medium for snapshot management in blockchain
US10877962B2 (en) Deferred update of database hashcode in blockchain
CN106682215B (en) Data processing method and management node
CN108959510B (en) Partition level connection method and device for distributed database
CN111026568A (en) Data and task relation construction method and device, computer equipment and storage medium
US9514176B2 (en) Database update notification method
WO2019169764A1 (en) Electronic device, linked archiving method for data, system, and storage medium
CN113961580A (en) Data query method, service system and electronic equipment
CN113609136B (en) Method and device for stably maintaining service number, computer equipment and storage medium
CN111966682B (en) White list protection matching method, system, terminal and storage medium
US10073657B2 (en) Data processing apparatus, data processing method, and computer program product, and entry processing apparatus
CN114546705B (en) Operation response method, operation response device, electronic apparatus, and storage medium
CN111125108A (en) HBASE secondary index method, device and computer equipment based on Lucene
CN116233254A (en) Business cut-off method, device, computer equipment and storage medium
CN107016296B (en) Data index construction method, data index reading method, data index construction device, data reading device and electronic equipment
CN115292348A (en) Database processing method and system, electronic equipment and storage medium
CN110580200B (en) Data synchronization method and device
US10810184B1 (en) Systems for consistent modification of stored values
CN114676132A (en) Data table association method and device, storage medium and electronic equipment
CN113609161A (en) Data query system, method, device, electronic equipment and readable storage medium
CN110168514B (en) Transaction processing method, device and equipment
CN109165208B (en) Method and system for loading data into database
CN111371818A (en) Data request verification method, device and equipment
CN110990475B (en) Batch task inserting method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230725

Address after: Room 290, Area H, No. 2, Lane 921, Xinshen Road, Xinhe Town, Chongming District, 200000 (Shanghai Fusheng Economic Development Zone)

Patentee after: Shanghai Zhouen Information Technology Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: Shenzhen Lianrong Technology Co.,Ltd.

TR01 Transfer of patent right