Identification number processing method and device for switching between new system and old system, electronic equipment and storage medium
By determining the number configuration rules based on the identification number encoding configuration table during system switching, and querying the encoding configuration table in the new and old systems to obtain the current value of the code in the system, the transaction process interference and risk problems caused by the difference in identification number encoding between the new and old systems are solved, and flexible configuration and unified management of identification number encoding are realized.
Patent Information
- Application Number
- CN202411872339.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-12-18
AI Technical Summary
During the system switching process, the differences in identification number encoding between new and old systems may interfere with the customer's normal transaction process and cause potential risks.
In response to the service identification number encoding request during system switching, the number configuration rules are determined based on the identification number encoding configuration table, and the encoding configuration table in the new and old systems are respectively queried to obtain the current value of the encoding in the system.
It realizes flexible configuration and unified management of business identification number encoding, adapts to switching between new and old systems, and reduces transaction process interference and risks.
Smart Images

Figure CN119886056A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of system switching and identification number coding, and in particular to an identification number processing method, device, electronic device, and storage medium for switching between new and old systems. Background Art
[0002] During the system switching process, in order to meet new and old business needs and new and old technical specifications, identification number codes will be added, modified or deleted.
[0003] However, the differences in identification number coding between the new and old systems have become an issue that cannot be ignored. These differences may not only interfere with the normal transaction process of customers, but also cause potential risks. Summary of the invention
[0004] The embodiments of the present application provide an identification number processing method, device, electronic device, and storage medium for switching between a new system and an old system, so as to realize flexible configuration and unified management of service identification number coding.
[0005] The present application embodiment adopts the following technical solutions:
[0006] In a first aspect, an embodiment of the present application provides an identification number processing method for switching between a new system and an old system, wherein the method includes:
[0007] In response to a coding request for a service identification number when switching between the first system and the second system, determining a numbering configuration rule according to the identification number coding configuration table;
[0008] According to the numbering configuration rule, query the coding configuration table in the first system and the second system respectively;
[0009] In response to the encoding configuration tables in the first system and the second system, the current values of the encodings in the systems are obtained.
[0010] In some embodiments, the responding to the coding request for the service identification number when the first system and the second system are switched, determining the numbering configuration rule according to the identification number coding configuration table includes:
[0011] Receiving a preset service request sent upward, wherein the preset service request carries at least a service identification number code;
[0012] According to the service parameters in the encoding request for the service identification number when the first system and the second system are switched, searching the pre-stored identification number encoding configuration table in the database;
[0013] According to the query result in the identification number coding configuration table, a numbering configuration rule corresponding to the service parameter is determined.
[0014] In some embodiments, the identification number coding configuration table includes at least one of the following fields: business transaction name, business code, number type, call back mode, switching system switch, number configuration rule, and querying the coding configuration table in the first system and the second system respectively according to the number configuration rule includes:
[0015] According to the numbering configuration rule, obtain a corresponding current value of the first system code in the first system and a corresponding current value of the second system code in the second system;
[0016] According to the current value of the first system code corresponding to the first system and / or the current value of the second system code corresponding to the second system, during the transition period of switching from the first system to the second system, routing the service request to the first system or the second system,
[0017] Among them, the business transaction name is used as the name that uniquely identifies the business transaction, the business identification number code is used as the unique identifier of the business transaction, the numbering type is used as the different encoding types in the business transaction, the callback mode is used as the type of identification number re-encoding in the business transaction, the switching system switch is used to identify the state of the system switching, and the numbering configuration rule is used as the encoding of the numbering configuration rule.
[0018] In some embodiments, the obtaining the current value of the encoding in the system in response to the encoding configuration table in the first system and the second system includes:
[0019] Determine the state of switching between the first system and the second system according to the switching system switch position in the numbering configuration rule in the coding configuration table;
[0020] In response to the switching system switch bit in the numbering configuration rule in the coding configuration table being equal to 0, obtaining a state where the first system and the second system are running simultaneously, and allocating a service request to use an identification number coding segment corresponding to the first system or the second system;
[0021] According to the first preset threshold, the current value of the code is updated.
[0022] In some embodiments, the obtaining the current value of the encoding in the system in response to the encoding configuration table in the first system and the second system includes:
[0023] In response to the switching system switch bit in the numbering configuration rule in the coding configuration table being equal to 1, obtaining a state that the first system and the second system are in a system switching transition completion state, and allocating a service request to use an identification number coding segment corresponding to the second system;
[0024] According to a second preset threshold, updating a current value of the code in the second system;
[0025] According to the state that the system switching transition between the first system and the second system is completed, the identification number code segment allocated to the first system is recycled and reused in the second system.
[0026] In some embodiments, the obtaining the current value of the encoding in the system in response to the encoding configuration table in the first system and the second system includes:
[0027] In response to the callback mode bit in the coding configuration table not being equal to 0, generating an identification number code and performing a callback operation according to the corresponding callback mode;
[0028] According to the execution result of the callback operation, the current encoding value is set as the unified encoding minimum value.
[0029] In some embodiments, the obtaining the current value of the encoding in the system in response to the encoding configuration table in the first system and the second system further includes:
[0030] In response to the callback mode bit in the coding configuration table being not equal to 0 and the switching system switch bit being equal to 1, generating an identification number code and performing a callback operation according to the corresponding callback mode;
[0031] According to the execution result of the call back operation, the minimum value of the code in the second system is reassigned an initial value.
[0032] In a second aspect, an embodiment of the present application further provides an identification number processing device for switching between a new system and an old system, wherein the device comprises:
[0033] A first response module, used to respond to a coding request for a service identification number when switching between the first system and the second system, and determine a number configuration rule according to the identification number coding configuration table;
[0034] A query module, used to query the coding configuration table in the first system and the second system respectively according to the numbering configuration rule;
[0035] The second response module is used to respond to the encoding configuration table in the first system and the second system to obtain the current value of the encoding in the system.
[0036] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to perform the above method.
[0037] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes the above method.
[0038] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: in response to the coding request for the service identification number when switching between the first system and the second system, the numbering configuration rule is determined according to the identification number coding configuration table, and then according to the numbering configuration rule, the coding configuration tables in the first system and the second system are queried respectively, and finally, the current value of the coding in the system is obtained in response to the coding configuration tables in the first system and the second system. Through the above method, the (service) identification number coding can be flexibly configured and generated, and used in the process of switching between the new and old systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0040] Figure 1 Schematic diagram of the flow of the identification number processing method for switching between the new and old systems in the embodiment of the present application;
[0041] Figure 2 Schematic diagram of the structure of the identification number processing device for switching between the new and old systems in the embodiment of the present application;
[0042] Figure 3 This is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0044] When switching systems, the different (business) identification number codes generated by the new and old systems will affect customer transactions. When the system switch is completed, the identification number coding rules of the old system will be abandoned. In addition, current software is usually programmed for specific transactions, and it needs to be continuously updated and iterated at different nodes of the switch, which increases maintenance costs.
[0045] The existing identification number code generation method is mainly achieved by using a database auto-increment primary key or using a certain algorithm to generate a fixed format code, which has the following shortcomings:
[0046] (1) Most methods of generating identification codes are based on past experience, and the thresholds set for the code range are allocated and recycled, which occupies server resources. When the coding rules change, the generation of identification codes cannot be adjusted dynamically, and the robustness of the code is not high. During system switching, the generation of identification codes cannot adapt to both the old and new systems. In addition, the generated code is a string of characters, which has no business meaning and is not very readable.
[0047] (2) After the system switch is completed, the old system identification number code cannot be recycled, and the generated identification number code does not have continuity.
[0048] (3) During the implementation of the system switching project, if each developer customizes the generation of identification number codes, it is easy to cause confusion in the management of identification number codes.
[0049] In view of the above shortcomings, an identification number processing method for switching between the old and new systems is provided in the embodiments of the present application, which can not only realize the scalable generation of identification number codes based on different business scenarios, but also realize unified management and distinguishing identification number code production during different system transition periods. In addition, it can also realize the timely recovery and timely expansion of identification number codes.
[0050] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0051] The embodiment of the present application provides an identification number processing method for switching between a new system and an old system, such as Figure 1 As shown, a flow chart of an identification number processing method for switching between the new and old systems in an embodiment of the present application is provided, and the method at least includes the following steps S110 to S130:
[0052] Step S110, in response to a coding request for a service identification number when switching between the first system and the second system, determining a number configuration rule according to an identification number coding configuration table.
[0053] The first system and the second system refer to the old and new systems that need to be switched. System switching refers to the process of replacing the old system with the new system after the new system is developed. Since the old and new systems usually serve the same business, the business identification number is encoded in the old and new systems to ensure the normal operation of the business during the system switch. The first system is the old system and the second system is the new system.
[0054] According to the parameter information carried in the coding request for the service identification number when the first system and the second system are switched, the identification number coding configuration table in the database is queried to determine the number configuration rule of the current request. Usually, the identification number coding configuration table is pre-saved in the database or cache. Among them, the number configuration rule is a key item in the identification number coding configuration table.
[0055] Step S120: query the coding configuration table in the first system and the second system respectively according to the numbering configuration rule.
[0056] According to the determined numbering configuration rules, the coding configuration table is queried in the first system and the second system respectively. In order to ensure the certainty of the service, the corresponding coding configuration table needs to be queried in the new and old systems respectively. Of course, there may be a situation where only the new system needs to be queried, or only the old system needs to be queried, or both the new and old systems need to be queried separately, which is determined according to the different stages of the switching between the new and old systems, and is not specifically limited in the embodiments of the present application.
[0057] Step S130, in response to the encoding configuration table in the first system and the second system, obtaining the current value of the encoding in the system.
[0058] According to the coding configuration table of the first system and / or the coding configuration table of the second system, it can be the current coding value of the first system or the current coding value of the second system. Considering that before the switch back to the transition period: the old system and the new system are running at the same time, the code obtained in response to the coding configuration table in the first system and the second system may be the current coding value of the new system or the current coding value of the old system according to the specific business scenario.
[0059] By the above method, when encoding the (business) identification number, the number configuration rule is determined according to the identification number coding configuration table, and then according to the number configuration rule, the coding configuration tables in the first system and the second system are queried respectively, and finally the current value of the code in the system is obtained in response to the coding configuration tables in the first system and the second system. The identification number code obtained by the above method can not only adapt to the new and old systems, but also has a highly readable business meaning.
[0060] Through the above method, not only can the scalable identification number coding generation be realized based on different business scenarios, but also the unified management and differentiation of identification number coding production can be realized during different system transition periods. Through the above method, different number identification transactions can be generated through dynamic configuration to meet the differentiated coding requirements for different transactions, improve development efficiency and enhance service experience in response to changes in regulatory requirements, market changes and customer customization.
[0061] Different from the related art, which uses the database auto-increment primary key, when the encoding rules change, the generation of the identification number code cannot be dynamically adjusted and the code robustness is not high, through the above method, the encoding configuration table is queried for the new and old systems, and the current value of the code in the system is obtained according to the respective encoding configuration tables, so that the generation of the identification number code can be dynamically adjusted.
[0062] Different from the related art, in which a fixed format is generated by a related algorithm, the generation of identification number codes cannot adapt to the new and old systems during system switching. Through the above method, in response to the coding request for the business identification number when switching between the first system and the second system, the numbering configuration rules are determined according to the identification number coding configuration table, and the production of identification number codes is uniformly managed to distinguish and identify, so that it can adapt to the new and old systems.
[0063] In one embodiment of the present application, in response to a coding request for a service identification number when switching between a first system and a second system, determining a numbering configuration rule according to an identification number coding configuration table includes: receiving an uploaded preset service request, wherein the preset service request carries at least a service identification number code; querying a pre-saved identification number coding configuration table in a database according to service parameters in the coding request for the service identification number when switching between the first system and the second system; and determining a numbering configuration rule corresponding to the service parameters according to the query results in the identification number coding configuration table.
[0064] Receive a preset service request sent from a related interface or context, and use the service identification number code in the preset service request as a unique identifier for the business transaction. According to the {service identification number code}, {number type}, {callback mode}, {system switch} and other information in the service parameters in the service identification number coding request when switching between the first system and the second system, query the pre-saved identification number coding configuration table in the database, and then determine the number configuration rules corresponding to the service parameters according to the query results in the identification number coding configuration table. The "number configuration rules" have corresponding relationships and configuration parameters in both the new system number configuration table and the old system number configuration table.
[0065] It can be understood that the identification number coding configuration table, the new system number configuration table, and the old system number configuration table can be generated by customization according to business requirements and technical specifications. An example of an optional identification number coding configuration table is as follows:
[0066] Identification number coding configuration table
[0067]
[0068] In one embodiment of the present application, the identification number coding configuration table includes at least one of the following fields: business transaction name, business code, number type, callback mode, switching system switch, and number configuration rule, and querying the coding configuration table in the first system and the second system respectively according to the number configuration rule includes: obtaining the current value of the first system code corresponding to the first system and the current value of the second system code corresponding to the second system according to the number configuration rule; routing the business request to the first system or the second system during the transition period from the first system to the second system according to the current value of the first system code corresponding to the first system and / or the current value of the second system code corresponding to the second system, wherein the business transaction name is used as a name that uniquely identifies the business transaction, the business identification number code is used as a unique identifier of the business transaction, the number type is used as a different encoding type in the business transaction, the callback mode is used as a type of identification number re-encoding in the business transaction, the switching system switch is used as an identification system switching state, and the number configuration rule is used as the encoding of the number configuration rule.
[0069] As shown in the identification number coding configuration table, specifically:
[0070] The business identification number code uniquely identifies the business transaction that has occurred.
[0071] The business transaction name is a name that uniquely identifies a business transaction.
[0072] Number type business is the different coding types in the transaction.
[0073] The callback mode is the type of recoding of identification numbers in business transactions, such as no callback, daily callback, monthly callback, and annual callback.
[0074] The switch of the system indicates the status of the system switching. 0: The new system and the old system provide services to customers at the same time. 1: The system switching is completed and the new system provides services to customers.
[0075] The numbering configuration rule is the encoding of the numbering configuration rule.
[0076] Based on the above content, according to the numbering configuration rules, after obtaining the corresponding current value of the first system code in the first system and the corresponding current value of the second system code in the second system, it can be determined whether the current service is executed in the first system or the second system, or in both the new and old systems.
[0077] Further, according to the current value of the first system code corresponding to the first system and / or the current value of the second system code corresponding to the second system, during the transition period of switching from the first system to the second system, the service request is routed to the first system or the second system. If the system switching transition is completed, the service request is routed to the first system. If it is during the system switching transition period, the second system or the first system can be selected.
[0078] In one embodiment of the present application, the current value of the code in the system is obtained in response to the coding configuration table in the first system and the second system, including: determining the switching state between the first system and the second system according to the switching system switch bit in the numbering configuration rule in the coding configuration table; in response to the switching system switch bit in the numbering configuration rule in the coding configuration table being equal to 0, obtaining the state that the first system and the second system are running simultaneously, and allocating service requests to use the identification number coding segment corresponding to the first system or the second system; and updating the current value of the code according to a first preset threshold.
[0079] In order to better illustrate the content of the embodiment, the current values of the numbers in the new and old systems are defined as follows:
[0080] The old system number current value refers to the current value of the old system number.
[0081] The minimum value of the old system number refers to the minimum value set for the old system number.
[0082] The maximum value of the old system number refers to the maximum value set for the old system number.
[0083] New System Number Current Value refers to the current value of the new system number.
[0084] The minimum value of the new system number refers to the minimum value set for the new system number.
[0085] The maximum value of the new system number refers to the maximum value set for the new system number.
[0086]
[0087]
[0088] When the "Switch System Switch" bit in {Number Configuration Rules} is equal to "0", it indicates that the new and old systems are running at the same time, and the corresponding identification number code segments are allocated and used. It should be noted that according to the specific business scenario, in order to prevent duplication and continuity, the same type of codes generated according to the above method are applied to the new and old systems. For example, the generation method of document numbers 1-100 is fixed, but when the new and old systems are running at the same time, the 1-100 codes will be allocated to different systems according to the transaction.
[0089] At this time, if {current value of new system code} or {current value of old system code}*m is greater than {maximum value of new system code} or {maximum value of old system code}, then its maximum value needs to be updated to {current value of new system code} or {current value of old system code}*m.
[0090] It should be noted that the initial value of {new system code minimum value} or {old system code minimum value} is defined differently for each system. The initial value of {new system code maximum value} or {old system code maximum value} can be determined by referring to the transaction volume of this business in the old system. m is the threshold coefficient, which is defined according to system capacity and experience.
[0091] In one embodiment of the present application, the current value of the code in the system is obtained in response to the coding configuration table in the first system and the second system, including: in response to the switching system switch bit in the numbering configuration rule in the coding configuration table being equal to 1, the first system and the second system are obtained as the state of system switching transition completion, and the service request is allocated to use the identification number coding segment corresponding to the second system; according to the second preset threshold, the current value of the code in the second system is updated; according to the state of system switching transition completion between the first system and the second system, the identification number coding segment allocated to the first system is recycled and reused in the second system.
[0092] When the {number configuration rule} "switch system switch" bit is equal to "1", it indicates that the system switching transition is completed, that is, only the new system is currently running.
[0093] Preferably, if the switching transition period is completed, the identification number code segments allocated to the old system will be recycled through the new system to realize code recycling in real time and improve code utilization.
[0094] At this time, if {the current value of the new system code}*m is greater than {the maximum value of the new system code}, the maximum value is updated to {the current value of the new system code}*m.
[0095] In one embodiment of the present application, in response to the coding configuration table in the first system and the second system, the current value of the coding in the system is obtained, including: in response to the callback mode bit in the coding configuration table being not equal to 0, generating an identification number code and performing a callback operation according to the corresponding callback mode; according to the execution result of the callback operation, setting the current value of the coding to the minimum value of the unified coding.
[0096] When the "Callback Mode" bit of {Number Configuration Rule} is not equal to "0", it means that the identification number code needs to be dialed back according to the corresponding callback mode after a certain period of time.
[0097] At this time, if the "callback mode" bit indicates "daily callback", then at the beginning of each day's service, {current value of the new system code} or {current value of the old system code} is {minimum value of the new system code} or {minimum value of the old system code}. Similarly, monthly callback and annual callback are not described here.
[0098] In one embodiment of the present application, the current value of the code in the system is obtained in response to the coding configuration table in the first system and the second system, and also includes: in response to the callback mode bit in the coding configuration table being not equal to 0 and the switching system switch bit being equal to 1, generating an identification number code and performing a callback operation according to the corresponding callback mode; and re-assigning an initial value to the minimum value of the code in the second system according to the execution result of the callback operation.
[0099] When the "Callback Mode" bit of {Numbering Configuration Rules} is not equal to "0" and the "Switch System Switch" bit is equal to "1", after the call back, the {New System Code Minimum Value} is reassigned to the initial value.
[0100] The embodiment of the present application also provides an identification number processing device 200 for switching between the new and old systems, such as Figure 2 As shown, a schematic diagram of the structure of an identification number processing device for switching between new and old systems in an embodiment of the present application is provided, wherein the identification number processing device 200 for switching between new and old systems at least includes: a first response module 210, a query module 220, and a second response module 230, wherein:
[0101] In one embodiment of the present application, the first response module 210 is specifically used to: respond to a coding request for a service identification number when switching between the first system and the second system, and determine a numbering configuration rule according to an identification number coding configuration table.
[0102] The first system and the second system generally refer to the old and new systems that need to be switched. System switching refers to the process of replacing the old system with the new system after the new system is developed. Since the old and new systems usually serve the same business, the business identification number is encoded in the old and new systems to ensure the normal operation of the business during the system switch.
[0103] According to the parameter information carried in the coding request for the service identification number when the first system and the second system are switched, the identification number coding configuration table in the database is queried to determine the number configuration rule of the current request. Usually, the identification number coding configuration table is pre-saved in the database or cache. Among them, the number configuration rule is a key item in the identification number coding configuration table.
[0104] In one embodiment of the present application, the query module 220 is specifically used to query the coding configuration table in the first system and the second system respectively according to the numbering configuration rule.
[0105] According to the determined numbering configuration rules, the coding configuration table is queried in the first system and the second system respectively. In order to ensure the certainty of the service, the corresponding coding configuration table needs to be queried in the new and old systems respectively. Of course, there may be a situation where only the new system needs to be queried, or only the old system needs to be queried, or both the new and old systems need to be queried separately, which is determined according to the different stages of the switching between the new and old systems, and is not specifically limited in the embodiments of the present application.
[0106] In one embodiment of the present application, the second response module 230 is specifically used to: respond to the encoding configuration table in the first system and the second system to obtain the current value of the encoding in the system.
[0107] According to the coding configuration table of the first system and / or the coding configuration table of the second system, it can be the current coding value of the first system or the current coding value of the second system. Considering that before the switch back to the transition period: the old system and the new system are running at the same time, the code obtained in response to the coding configuration table in the first system and the second system may be the current coding value of the new system or the current coding value of the old system according to the specific business scenario.
[0108] In one embodiment of the present application, the first response module 210 is also used to
[0109] Receiving a preset service request sent upward, wherein the preset service request carries at least a service identification number code;
[0110] According to the service parameters in the encoding request for the service identification number when the first system and the second system are switched, searching the pre-stored identification number encoding configuration table in the database;
[0111] According to the query result in the identification number coding configuration table, a numbering configuration rule corresponding to the service parameter is determined.
[0112] In one embodiment of the present application, the identification number code configuration table includes at least one of the following fields: business transaction name, business code, number type, call back mode, switching system switch, number configuration rule, the query module 220 is also used to
[0113] According to the numbering configuration rule, obtain a corresponding current value of the first system code in the first system and a corresponding current value of the second system code in the second system;
[0114] According to the current value of the first system code corresponding to the first system and / or the current value of the second system code corresponding to the second system, during the transition period of switching from the first system to the second system, routing the service request to the first system or the second system,
[0115] Among them, the business transaction name is used as the name that uniquely identifies the business transaction, the business identification number code is used as the unique identifier of the business transaction, the numbering type is used as the different encoding types in the business transaction, the callback mode is used as the type of identification number re-encoding in the business transaction, the switching system switch is used to identify the state of the system switching, and the numbering configuration rule is used as the encoding of the numbering configuration rule.
[0116] In one embodiment of the present application, the second response module 230 is also used to
[0117] Determine the state of switching between the first system and the second system according to the switching system switch position in the numbering configuration rule in the coding configuration table;
[0118] In response to the switching system switch bit in the numbering configuration rule in the coding configuration table being equal to 0, obtaining a state where the first system and the second system are running simultaneously, and allocating a service request to use an identification number coding segment corresponding to the first system or the second system;
[0119] According to the first preset threshold, the current value of the code is updated.
[0120] In one embodiment of the present application, the second response module 230 is also used to
[0121] In response to the switching system switch bit in the numbering configuration rule in the coding configuration table being equal to 1, obtaining a state that the first system and the second system are in a system switching transition completion state, and allocating a service request to use an identification number coding segment corresponding to the second system;
[0122] According to a second preset threshold, updating a current value of the code in the second system;
[0123] According to the state that the system switching transition between the first system and the second system is completed, the identification number code segment allocated to the first system is recycled and reused in the second system.
[0124] In one embodiment of the present application, the second response module 230 is also used to
[0125] In response to the callback mode bit in the coding configuration table not being equal to 0, generating an identification number code and performing a callback operation according to the corresponding callback mode;
[0126] According to the execution result of the callback operation, the current encoding value is set as the unified encoding minimum value.
[0127] In one embodiment of the present application, the second response module 230 is also used to
[0128] In response to the callback mode bit in the coding configuration table being not equal to 0 and the switching system switch bit being equal to 1, generating an identification number code and performing a callback operation according to the corresponding callback mode;
[0129] According to the execution result of the call back operation, the minimum value of the code in the second system is reassigned an initial value.
[0130] It can be understood that the above-mentioned identification number processing device for switching between the new and old systems can implement the various steps of the identification number processing method for switching between the new and old systems provided in the aforementioned embodiments, and the relevant explanations about the identification number processing method for switching between the new and old systems are applicable to the identification number processing device for switching between the new and old systems, which will not be repeated here.
[0131] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 3 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0132] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0133] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0134] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming an identification number processing device for switching between the new and old systems at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0135] In response to a coding request for a service identification number when switching between the first system and the second system, determining a numbering configuration rule according to the identification number coding configuration table;
[0136] According to the numbering configuration rule, query the coding configuration table in the first system and the second system respectively;
[0137] In response to the encoding configuration tables in the first system and the second system, the current values of the encodings in the systems are obtained.
[0138] The above application Figure 1 The method performed by the identification number processing device for switching between the old and new systems disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0139] The electronic device may also perform Figure 1 A method for executing an identification number processing device for switching between new and old systems in the present invention, and realizing the identification number processing device for switching between new and old systems in the present invention Figure 1 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.
[0140] The present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to execute Figure 1 The method performed by the identification number processing device for switching between the new and old systems in the illustrated embodiment is specifically used to perform:
[0141] In response to a coding request for a service identification number when switching between the first system and the second system, determining a numbering configuration rule according to the identification number coding configuration table;
[0142] According to the numbering configuration rule, query the coding configuration table in the first system and the second system respectively;
[0143] In response to the encoding configuration tables in the first system and the second system, the current values of the encodings in the systems are obtained.
[0144] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0145] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0146] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0148] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0149] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0150] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0151] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0153] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for processing identification numbers for switching between new and old systems, wherein: The method comprises: In response to a coding request for a service identification number when switching between the first system and the second system, determining a numbering configuration rule according to the identification number coding configuration table; According to the numbering configuration rule, query the coding configuration table in the first system and the second system respectively; In response to the encoding configuration tables in the first system and the second system, the current values of the encodings in the systems are obtained.
2. The method of claim 1, wherein: The step of responding to a coding request for a service identification number when switching between the first system and the second system, and determining a number configuration rule according to an identification number coding configuration table, comprises: Receiving a preset service request sent upward, wherein the preset service request carries at least a service identification number code; According to the service parameters in the encoding request for the service identification number when the first system and the second system are switched, searching the pre-stored identification number encoding configuration table in the database; According to the query result in the identification number coding configuration table, a numbering configuration rule corresponding to the service parameter is determined.
3. The method of claim 2, wherein: The identification number coding configuration table includes at least one of the following fields: business transaction name, business code, number type, call back mode, switching system switch, number configuration rule, and querying the coding configuration table in the first system and the second system respectively according to the number configuration rule, including: According to the numbering configuration rule, obtain a corresponding current value of the first system code in the first system and a corresponding current value of the second system code in the second system; According to the current value of the first system code corresponding to the first system and / or the current value of the second system code corresponding to the second system, during the transition period of switching from the first system to the second system, routing the service request to the first system or the second system, Among them, the business transaction name is used as the name that uniquely identifies the business transaction, the business identification number code is used as the unique identifier of the business transaction, the numbering type is used as the different encoding types in the business transaction, the callback mode is used as the type of identification number re-encoding in the business transaction, the switching system switch is used to identify the state of the system switching, and the numbering configuration rule is used as the encoding of the numbering configuration rule.
4. The method of claim 1, wherein: The step of obtaining the current value of the code in the system in response to the code configuration table in the first system and the second system includes: Determine the state of switching between the first system and the second system according to the switching system switch position in the numbering configuration rule in the coding configuration table; In response to the switching system switch bit in the numbering configuration rule in the coding configuration table being equal to 0, obtaining a state where the first system and the second system are running simultaneously, and allocating a service request to use an identification number coding segment corresponding to the first system or the second system; According to the first preset threshold, the current value of the code is updated.
5. The method of claim 1, wherein: The step of obtaining the current value of the code in the system in response to the code configuration table in the first system and the second system includes: In response to the switching system switch bit in the numbering configuration rule in the coding configuration table being equal to 1, obtaining a state that the first system and the second system are in a system switching transition completion state, and allocating a service request to use an identification number coding segment corresponding to the second system; According to a second preset threshold, updating a current value of the code in the second system; According to the state that the system switching transition between the first system and the second system is completed, the identification number code segment allocated to the first system is recycled and reused in the second system.
6. The method of claim 1, wherein: The step of obtaining the current value of the code in the system in response to the code configuration table in the first system and the second system includes: In response to the callback mode bit in the coding configuration table not being equal to 0, generating an identification number code and performing a callback operation according to the corresponding callback mode; According to the execution result of the callback operation, the current encoding value is set as the unified encoding minimum value.
7. The method of claim 1, wherein: The step of obtaining the current value of the code in the system in response to the code configuration table in the first system and the second system further includes: In response to the callback mode bit in the coding configuration table being not equal to 0 and the switching system switch bit being equal to 1, generating an identification number code and performing a callback operation according to the corresponding callback mode; According to the execution result of the callback operation, the minimum value of the code in the second system is reassigned an initial value.
8. An identification number processing device for switching between new and old systems, wherein: The device comprises: A first response module, used to respond to a coding request for a service identification number when switching between the first system and the second system, and determine a number configuration rule according to the identification number coding configuration table; A query module, used to query the coding configuration table in the first system and the second system respectively according to the numbering configuration rule; The second response module is used to respond to the encoding configuration table in the first system and the second system to obtain the current value of the encoding in the system.
9. An electronic device, comprising: processor; as well as A memory arranged to store computer executable instructions, which when executed cause the processor to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of application programs, causes the electronic device to execute any one of the methods of claims 1 to 7.
Citation Information
Patent Citations
Message scheduling method and device during parallel period of new and old systems, equipment and medium
CN116320014A
Transaction flow switching method and device, equipment and storage medium
CN116723155A
Identification generation method, device and equipment and readable storage medium
CN116795782A
Data processing method and device of data warehouse, storage medium and electronic equipment
CN118410114A
System switching method and device, equipment, storage medium and computer program product
CN119136153A