Identification number processing method and device for new-old system switching, electronic equipment and storage medium
By querying the identifier code configuration table to determine the numbering configuration rules, an identifier code adapted to both the old and new systems is generated. This solves the transaction interference and risks caused by coding differences during the switch between the old and new systems, realizes flexible configuration and unified management of identifier codes, and improves the efficiency and service quality of system switching.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2026-03-24
AI Technical Summary
During the transition between the old and new systems, the differences in identification number codes can cause disruptions and potential risks to customer transaction processes. Existing technologies cannot achieve flexible configuration and unified management of identification number codes, resulting in codes that lack business meaning and are not compatible with both the old and new systems.
By responding to the encoding request during system switching, the system queries the identification number encoding configuration table, determines the numbering configuration rules, and queries the encoding configuration tables of the old and new systems according to the rules to generate identification number codes with high readability and business meaning, thereby achieving unified management and adaptation.
It enables flexible configuration and unified management of identifier codes during the transition between old and new systems, improves development efficiency, meets the differentiated coding requirements of different transactions, and enhances the service experience.
Smart Images

Figure CN119886056B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of system switching and identification number encoding, and in particular to an identification number processing method, apparatus, electronic device, and storage medium for switching between old and new systems. Background Technology
[0002] During the system switchover, in order to meet the needs of both new and old business operations and technical specifications, there may be additions, modifications, or deletions of identification codes.
[0003] However, the differences in identifier coding between the old and new systems have become a problem that cannot be ignored. These differences may not only interfere with customers' normal transaction processes, but may also cause potential risks. Summary of the Invention
[0004] This application provides a method, apparatus, electronic device, and storage medium for processing identification numbers during the switching between old and new systems, so as to achieve flexible configuration and unified management of business identification number encoding.
[0005] The embodiments of this application adopt the following technical solutions:
[0006] In a first aspect, embodiments of this application provide a method for processing identification numbers during system switching, wherein the method includes:
[0007] In response to the encoding request for the service identification number when switching between the first system and the second system, the numbering configuration rules are determined according to the identification number encoding configuration table;
[0008] According to the numbering configuration rules, query the encoding configuration tables 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 encoding value in the system is obtained.
[0010] In some embodiments, the step of responding to the encoding request for the service identifier number during the switch between the first system and the second system, and determining the numbering configuration rules according to the identifier number encoding configuration table, includes:
[0011] Receive a preset service request sent from above, wherein the preset service request carries at least a service identification number code;
[0012] Based on the service parameters in the encoding request for the service identifier number when switching between the first system and the second system, query the pre-saved identifier number encoding configuration table in the database;
[0013] Based on the query results in the identification number encoding configuration table, determine the numbering configuration rule corresponding to the business parameter.
[0014] In some embodiments, the identifier encoding configuration table includes at least one of the following fields: business transaction name, business code, number type, callback mode, system switching switch, and number configuration rule. The step of querying the encoding configuration tables in the first system and the second system according to the number configuration rule includes:
[0015] According to the numbering configuration rules, obtain the current value of the first system code corresponding to the first system in the first system and the current value of the second system code corresponding to the second system in the second system;
[0016] Based on 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 from the first system to the second system, the service request will be routed to either the first system or the second system.
[0017] Wherein, the business transaction name is used as the name that uniquely identifies the business transaction, the business identification number code is used as the code that uniquely identifies the business transaction, the number type is used as the different coding types in the business transaction, the callback mode is used as the type of re-encoding of the identification number in the business transaction, the system switch is used as the status that indicates the system switch, and the number configuration rule is used as the code for the number configuration rule.
[0018] In some embodiments, obtaining the current encoding value in the system in response to the encoding configuration table in the first system and the second system includes:
[0019] The switching status between the first system and the second system is determined according to the switching system switch bit in the number configuration rules in the encoding configuration table;
[0020] In response to the switching system switch bit in the numbering configuration rule of the encoding configuration table being equal to 0, it is determined that the first system and the second system are running simultaneously, and the service request is allocated to use the identification number encoding segment corresponding to the first system or the second system;
[0021] Update the current value of the encoding according to the first preset threshold.
[0022] In some embodiments, obtaining the current encoding value 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 being equal to 1 in the numbering configuration rule of the encoding configuration table, the state that the system switching transition between the first system and the second system is complete is obtained, and the service request is allocated to use the identification number encoding segment corresponding to the second system;
[0024] Update the current value of the encoding in the second system according to the second preset threshold;
[0025] Based on the status of the system handover transition between the first system and the second system, the identification number encoding segment that has been allocated to the first system is recycled and reused in the second system.
[0026] In some embodiments, obtaining the current encoding value in the system in response to the encoding configuration table in the first system and the second system includes:
[0027] In response to the fact that the callback mode bit in the encoding configuration table is not equal to 0, an identification number encoding is generated and a callback operation is performed according to the corresponding callback mode.
[0028] Based on the execution result of the callback operation, the current value of the encoding is set to the minimum value of the unified encoding.
[0029] In some embodiments, obtaining the current encoding value 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 fact that the callback mode bit in the encoding configuration table is not equal to 0 and the switching system switch bit is equal to 1, an identification code is generated and a callback operation is performed according to the corresponding callback mode.
[0031] Based on the execution result of the callback operation, the minimum encoded value in the second system is re-initialized.
[0032] Secondly, embodiments of this application also provide an identification number processing device for switching between old and new systems, wherein the device includes:
[0033] The first response module is used to respond to the encoding request for the service identification number when switching between the first system and the second system, and to determine the numbering configuration rules according to the identification number encoding configuration table.
[0034] The query module is used to query the encoding configuration tables in the first system and the second system respectively according to the numbering configuration rules;
[0035] The second response module is used to respond to the encoding configuration tables in the first system and the second system to obtain the current encoding value in the system.
[0036] Thirdly, embodiments of this application also provide an electronic device, including: a processor; and a memory arranged to store computer-executable instructions, which, when executed, cause the processor to perform the above-described method.
[0037] Fourthly, embodiments of this application also provide a computer-readable storage medium that stores one or more programs, which, when executed by an electronic device including multiple applications, cause the electronic device to perform the above-described method.
[0038] The at least one technical solution adopted in this application embodiment can achieve the following beneficial effects: In response to the encoding 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 encoding configuration table, and then the encoding configuration tables in the first system and the second system are queried according to the numbering configuration rule. Finally, in response to the encoding configuration tables in the first system and the second system, the current encoding value in the system is obtained. Through the above method, the generation of (service) identification number encoding can be flexibly configured and used in the process of switching between old and new systems. Attached Figure Description
[0039] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0040] Figure 1 This is a flowchart illustrating the identification number processing method for switching between old and new systems in an embodiment of this application.
[0041] Figure 2 This is a schematic diagram of the identification number processing device used for switching between old and new systems in an embodiment of this application;
[0042] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0044] When switching systems, the different encoding of (business) identifiers generated by the old and new systems can affect customer transactions. Once the system switch is complete, the old system's identifier encoding rules will be discarded. Furthermore, current software is typically written for specific transactions, requiring continuous updates and iterations at different stages of the switch, thus increasing maintenance costs.
[0045] Existing methods for generating identifier codes mainly rely on database auto-incrementing primary keys or algorithms to generate codes in a fixed format, which have the following shortcomings:
[0046] (1) Most identification number generation methods rely on past experience, setting predetermined thresholds for the allocation and recycling of the encoding range, which consumes server resources. When the encoding rules change, the generation of identification number codes cannot be dynamically adjusted, resulting in low code robustness. During system switching, the generation of identification number codes cannot be adapted to both the old and new systems. Furthermore, the generated codes are strings of characters without business meaning, resulting in low readability.
[0047] (2) After the system switch is completed, it is not possible to recycle the old system identification code, and the generated identification code does not have continuity.
[0048] (3) During the implementation of the system switch project, if each developer customizes the generation of the identification code, it is easy to cause chaos in the management of the identification code.
[0049] To address the aforementioned shortcomings, this application provides an identification number processing method for switching between old and new systems. This method not only allows for configurable and scalable identification number generation based on different business scenarios, but also enables unified management and differentiation of identification number production during different system transition periods. Furthermore, it allows for configurable and timely recycling and expansion of identification number codes.
[0050] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.
[0051] This application provides a method for processing identification numbers during the switching between old and new systems, such as... Figure 1 The diagram illustrates a flowchart of an identifier processing method for switching between old and new systems, as shown in this application embodiment. The method includes at least the following steps S110 to S130:
[0052] Step S110: In response to the encoding request for the service identification number when switching between the first system and the second system, determine the numbering configuration rules according to the identification number encoding configuration table.
[0053] The first system and the second system refer broadly to the old and new systems that need to be switched over. System switching refers to the process of the new system replacing the old system after its development is completed. Since the old and new systems usually serve the same business, business identification numbers are encoded in both systems to ensure the normal operation of the business during system switching. The first system is the old system, and the second system is the new system.
[0054] Based on the parameter information carried in the encoding request for the business identification number during the switch between the first and second systems, the identification number encoding configuration table in the database is queried to determine the numbering configuration rule for the current request. The identification number encoding configuration table is usually pre-saved in the database or cache. The numbering configuration rule is the key item in the identification number encoding configuration table.
[0055] Step S120: According to the numbering configuration rules, query the encoding configuration tables in the first system and the second system respectively.
[0056] According to the established numbering configuration rules, the coding configuration tables are retrieved in both the first and second systems. To ensure the determinism of the business, the corresponding coding configuration tables need to be retrieved in both the new and old systems. Of course, there may be situations where only the new system needs to be queried, or only the old system needs to be queried, or both systems need to be queried separately, depending on the different stages of the system transition. This application does not impose specific limitations on these aspects in its embodiments.
[0057] Step S130: In response to the encoding configuration tables in the first system and the second system, obtain the current encoding value in the system.
[0058] Based on the coding configuration table of the first system and / or the coding configuration table of the second system, the code can be the current value of the code in the first system or the current value of the code in the second system. Considering that before the switchover transition period, the old system and the new system are running simultaneously, the code obtained in response to the coding configuration tables of the first system and the second system may be either the current value of the code in the new system or the current value of the code in the old system, depending on the specific business scenario.
[0059] Using the above method, when encoding (business) identifiers, the numbering configuration rules are determined according to the identifier encoding configuration table. Then, based on the numbering configuration rules, the encoding configuration tables in the first system and the second system are queried respectively. Finally, the current encoding value in the system is obtained by responding to the encoding configuration tables in the first system and the second system. The identifier encoding obtained by the above method can not only adapt to both the old and new systems, but also has highly readable business meaning.
[0060] The above methods enable scalable identification number generation based on different business scenarios and allow for unified management and differentiation of identification number production during system transitions. Furthermore, by dynamically configuring and generating different identification numbers for transactions to meet varying needs due to regulatory requirements, market changes, and customer customization, the methods improve development efficiency and enhance service experience.
[0061] Unlike related technologies that rely on auto-incrementing primary keys in the database, which suffer from issues such as the inability to dynamically adjust the generation of identifier codes when encoding rules change and low code robustness, the above method retrieves the encoding configuration table for both new and old systems and obtains the current encoding value in the system based on the respective encoding configuration table, thereby enabling dynamic adjustment of identifier code generation.
[0062] Unlike related technologies that use algorithms to generate fixed formats, which can lead to problems with the generation of identification number codes that cannot be adapted to the old and new systems during system switching, the above method responds to the encoding requests for business identification numbers when switching between the first and second systems. It determines the numbering configuration rules based on the identification number encoding configuration table, and uniformly manages and distinguishes the production of identification number codes, thereby enabling adaptation to both the old and new systems.
[0063] In one embodiment of this application, the step of responding to the encoding request for the service identifier number during the switching between the first system and the second system, and determining the numbering configuration rule according to the identifier number encoding configuration table, includes: receiving an uploaded preset service request, the preset service request carrying at least a service identifier number; querying a pre-saved identifier number encoding configuration table in the database according to the service parameters in the encoding request for the service identifier number during the switching between the first system and the second system; and determining the numbering configuration rule corresponding to the service parameters according to the query result in the identifier number encoding configuration table.
[0064] The system receives a preset service request from a relevant interface or context. Based on the service identifier code in the preset service request, which serves as a unique identifier for the service transaction, the system queries a pre-saved identifier code configuration table in the database. Following the information in the service parameters of the service identifier code encoding request during the switch between the first and second systems, such as {service identifier code}, {number type}, {callback mode}, and {system switching switch}, the system determines the numbering configuration rule corresponding to the service parameters based on the query results in the identifier code configuration table. This "numbering configuration rule" has corresponding relationships and configuration parameters in both the new system numbering configuration table and the old system numbering configuration table.
[0065] It is understandable that the identifier encoding configuration table, the new system numbering configuration table, and the old system numbering configuration table can be customized and generated according to business needs and technical specifications. An example of an optional identifier encoding configuration table is as follows:
[0066] Identifier Code Configuration Table
[0067]
[0068] In one embodiment of this application, the identification number encoding configuration table includes at least one of the following fields: business transaction name, business code, number type, callback mode, system switching switch, and number configuration rule. The step of querying the encoding configuration tables in the first system and the second system according to the number configuration rule includes: obtaining the current value of the first system code in the first system and the current value of the second system code in the second system according to the number configuration rule; and, during the transition period from the first system to the second system, routing the business request to either the first system or the second system based on the current value of the first system code in the first system and / or the current value of the second system code in the second system. The business transaction name is used as a unique identifier for the business transaction name; the business identification number code is used as a unique identifier for the occurring business transaction; the number type is used as a different encoding type in the business transaction; the callback mode is used as the type of re-encoding of the identification number in the business transaction; the system switching switch is used as an identifier for the system switching status; and the number configuration rule is used as the encoding of the number configuration rule.
[0069] As shown in the identifier encoding configuration table, specifically:
[0070] The business identification number is a unique identifier for a business transaction.
[0071] The business transaction name is a unique identifier for a business transaction.
[0072] Number type business refers to different coding types in transactions.
[0073] The clawback mode is the type of re-encoding of the identifier number in a business transaction, such as no clawback, daily clawback, monthly clawback, and annual clawback.
[0074] The system switch indicates the system switching status. 0: Both the new and old systems provide services to customers simultaneously. 1: System switchover complete; the new system provides services to customers.
[0075] Numbering configuration rules are the encoding of numbering configuration rules.
[0076] Based on the above, and according to the numbering configuration rules, after obtaining the current value of the first system code corresponding to the first system in the first system and the current value of the second system code corresponding to the second system in the second system, it can be determined whether the current service is executed in the first system, the second system, or both the old and new systems.
[0077] Further, based on 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 from the first system to the second system, the service request is routed to either the first system or the second system. If the system switchover is complete, the request is routed to the first system; otherwise, during the system switchover transition period, either the second system or the first system can be selected.
[0078] In one embodiment of this application, obtaining the current code value in the system in response to the encoding configuration table in the first system and the second system includes: determining the switching state between the first system and the second system according to the switching system switch bit in the number configuration rule of the encoding configuration table; obtaining the state that the first system and the second system are running simultaneously in response to the switching system switch bit in the number configuration rule of the encoding configuration table being equal to 0, and allocating service requests to use the identification number encoding segment corresponding to the first system or the second system; and updating the current code value according to a first preset threshold.
[0079] To better illustrate the content of the embodiments, the current values of the numbers in the new and old systems are defined below:
[0080] The current value of the old system number 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 by 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] The current value of the new system number 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 "System Switch" bit in the {Numbering Configuration Rules} is equal to "0", it indicates that the new and old systems are running simultaneously, and the corresponding identifier code ranges are assigned. It's important to note that, depending on the specific business scenario, for reasons such as preventing duplication and ensuring continuity, the same type of code generated using the above method is applied to both the new and old systems. For example, the generation method for document numbers 1-100 is fixed, but when the new and old systems are running simultaneously, the codes 1-100 will be assigned to different systems based on the transactions.
[0089] At this point, if {current value of the new system code} or {current value of the old system code}*m is greater than {maximum value of the new system code} or {maximum value of the old system code}, then its maximum value needs to be updated to {current value of the new system code} or {current value of the old system code}*m.
[0090] It should be noted that the initial values of {new system minimum code} or {old system minimum code} are defined differently for each system. The initial values of {new system maximum code} or {old system maximum code} can be determined by referring to the transaction volume of this business in the old system. m is the threshold coefficient, defined based on system capacity and experience.
[0091] In one embodiment of this application, obtaining the current encoding value in the system in response to the encoding configuration tables in the first system and the second system includes: obtaining a state where the system handover transition between the first system and the second system is complete in response to the system handover switch bit in the number configuration rule of the encoding configuration table being equal to 1, and allocating service requests to use the identification number encoding segment corresponding to the second system; updating the current encoding value in the second system according to a second preset threshold; and reclaiming and reusing the identification number encoding segment already allocated to the first system in the second system based on the state where the system handover transition between the first system and the second system is complete.
[0092] When the "System Switch" bit in the {Number Configuration Rule} is equal to "1", it indicates that the system switching transition is complete, meaning that only the new system is currently running.
[0093] Preferably, once the transition period is complete, the new system will recycle the identification number segments allocated to the old system, thereby realizing real-time code recycling and improving code utilization.
[0094] At this point, if {current value of new system code}*m is greater than {maximum value of new system code}, then update its maximum value to {current value of new system code}*m.
[0095] In one embodiment of this application, obtaining the current code value in the system in response to the encoding configuration tables in the first system and the second system includes: generating an identifier code and performing a callback operation according to the corresponding callback mode in response to the callback mode bit in the encoding configuration table not being equal to 0; and setting the current code value to the minimum value of the unified code based on the execution result of the callback operation.
[0096] When the "Callback Mode" bit in the {Number Configuration Rule} is not equal to "0", it means that the generated identification number code needs to be callback according to the corresponding callback mode after a certain period of time.
[0097] At this point, if the "Callback Mode" bit indicates "Daily Callback", then at the start of each day's service, the {current value of the new system code} or {current value of the old system code} will be the {minimum value of the new system code} or the {minimum value of the old system code}. Similarly, monthly and yearly callbacks will not be elaborated upon here.
[0098] In one embodiment of this application, the step of obtaining the current value of the code in the system in response to the encoding configuration table in the first system and the second system further includes: generating an identification code and performing a callback operation according to the corresponding callback mode in response to the callback mode bit in the encoding configuration table not being equal to 0 and the switching system switch bit being equal to 1; and re-assigning an initial value to the minimum value of the code in the second system based on the execution result of the callback operation.
[0099] When the "Callback Mode" bit of the {Number Configuration Rule} is not equal to "0" and the "Switch System Switch" bit is equal to "1", the {Minimum Value of New System Code} will be reassigned to its initial value after the callback.
[0100] This application embodiment also provides an identifier processing device 200 for switching between old and new systems, such as... Figure 2 As shown, a schematic diagram of the identification number processing device for switching between old and new systems is provided in an embodiment of this application. The identification number processing device 200 for switching between old and new systems includes at least: a first response module 210, a query module 220, and a second response module 230, wherein:
[0101] In one embodiment of this application, the first response module 210 is specifically used to: in response to an encoding request for the service identifier number when switching between the first system and the second system, determine the numbering configuration rules according to the identifier number encoding configuration table.
[0102] The first and second systems refer broadly to the old and new systems that need to be switched over. System switching refers to the process of the new system replacing the old system after its development is completed. Since the old and new systems usually serve the same business, business identification numbers are encoded in both systems to ensure the normal operation of the business during system switching.
[0103] Based on the parameter information carried in the encoding request for the business identification number during the switch between the first and second systems, the identification number encoding configuration table in the database is queried to determine the numbering configuration rule for the current request. The identification number encoding configuration table is usually pre-saved in the database or cache. The numbering configuration rule is the key item in the identification number encoding configuration table.
[0104] In one embodiment of this application, the query module 220 is specifically used to: query the encoding configuration tables in the first system and the second system respectively according to the numbering configuration rules.
[0105] According to the established numbering configuration rules, the coding configuration tables are retrieved in both the first and second systems. To ensure the determinism of the business, the corresponding coding configuration tables need to be retrieved in both the new and old systems. Of course, there may be situations where only the new system needs to be queried, or only the old system needs to be queried, or both systems need to be queried separately, depending on the different stages of the system transition. This application does not impose specific limitations on these aspects in its embodiments.
[0106] In one embodiment of this application, the second response module 230 is specifically used to: obtain the current value of the encoding in the system in response to the encoding configuration table in the first system and the second system.
[0107] Based on the coding configuration table of the first system and / or the coding configuration table of the second system, the code can be the current value of the code in the first system or the current value of the code in the second system. Considering that before the switchover transition period, the old system and the new system are running simultaneously, the code obtained in response to the coding configuration tables of the first system and the second system may be either the current value of the code in the new system or the current value of the code in the old system, depending on the specific business scenario.
[0108] In one embodiment of this application, the first response module 210 is further configured to
[0109] Receive a preset service request sent from above, wherein the preset service request carries at least a service identification number code;
[0110] Based on the service parameters in the encoding request for the service identifier number when switching between the first system and the second system, query the pre-saved identifier number encoding configuration table in the database;
[0111] Based on the query results in the identification number encoding configuration table, determine the numbering configuration rule corresponding to the business parameter.
[0112] In one embodiment of this application, the identifier encoding configuration table includes at least one of the following fields: business transaction name, business code, number type, callback mode, system switch, and number configuration rules. The query module 220 is also used for...
[0113] According to the numbering configuration rules, obtain the current value of the first system code corresponding to the first system in the first system and the current value of the second system code corresponding to the second system in the second system;
[0114] Based on 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 from the first system to the second system, the service request will be routed to either the first system or the second system.
[0115] Wherein, the business transaction name is used as the name that uniquely identifies the business transaction, the business identification number code is used as the code that uniquely identifies the business transaction, the number type is used as the different coding types in the business transaction, the callback mode is used as the type of re-encoding of the identification number in the business transaction, the system switch is used as the status that indicates the system switch, and the number configuration rule is used as the code for the number configuration rule.
[0116] In one embodiment of this application, the second response module 230 is further used for
[0117] The switching status between the first system and the second system is determined according to the switching system switch bit in the number configuration rules in the encoding configuration table;
[0118] In response to the switching system switch bit in the numbering configuration rule of the encoding configuration table being equal to 0, it is determined that the first system and the second system are running simultaneously, and the service request is allocated to use the identification number encoding segment corresponding to the first system or the second system;
[0119] Update the current value of the encoding according to the first preset threshold.
[0120] In one embodiment of this application, the second response module 230 is further used for
[0121] In response to the switching system switch bit being equal to 1 in the numbering configuration rule of the encoding configuration table, the state that the system switching transition between the first system and the second system is complete is obtained, and the service request is allocated to use the identification number encoding segment corresponding to the second system;
[0122] Update the current value of the encoding in the second system according to the second preset threshold;
[0123] Based on the status of the system handover transition between the first system and the second system, the identification number encoding segment that has been allocated to the first system is recycled and reused in the second system.
[0124] In one embodiment of this application, the second response module 230 is further used for
[0125] In response to the fact that the callback mode bit in the encoding configuration table is not equal to 0, an identification number encoding is generated and a callback operation is performed according to the corresponding callback mode.
[0126] Based on the execution result of the callback operation, the current value of the encoding is set to the minimum value of the unified encoding.
[0127] In one embodiment of this application, the second response module 230 is further used for
[0128] In response to the fact that the callback mode bit in the encoding configuration table is not equal to 0 and the switching system switch bit is equal to 1, an identification code is generated and a callback operation is performed according to the corresponding callback mode.
[0129] Based on the execution result of the callback operation, the minimum encoded value in the second system is re-initialized.
[0130] It is understood that the above-mentioned identification number processing device for switching between old and new systems can implement each step of the identification number processing method for switching between old and new systems provided in the foregoing embodiments. The relevant explanations of the identification number processing method for switching between old and new systems are applicable to the identification number processing device for switching between old and new systems, and 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 this application. Please refer to it. Figure 3 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and memory. The memory may include main memory, such as high-speed random-access memory (RAM), or non-volatile memory, such as at least one disk drive. Of course, the electronic device may also include other hardware required for other business operations.
[0132] The processor, network interface, and memory can be interconnected via 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, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0133] Memory is used to store programs. Specifically, programs may include program code, which includes computer operation instructions. Memory may include main memory and non-volatile memory, and provides instructions and data to the processor.
[0134] The processor reads the corresponding computer program from non-volatile memory into main memory and then executes it, forming a logical identifier processing device for switching between old and new systems. The processor executes the program stored in memory and specifically performs the following operations:
[0135] In response to the encoding request for the service identification number when switching between the first system and the second system, the numbering configuration rules are determined according to the identification number encoding configuration table;
[0136] According to the numbering configuration rules, query the encoding configuration tables 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 encoding value in the system is obtained.
[0138] The above is as stated in this application. Figure 1 The method executed by the identification number processing device for switching between old and new systems disclosed in the illustrated embodiments can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The 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 gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0139] The electronic device can also perform Figure 1 The method for executing the identifier processing device used for switching between old and new systems, and the implementation of the identifier processing device for switching between old and new systems in... Figure 1 The functions of the embodiments shown are not described in detail here.
[0140] This application also proposes a computer-readable storage medium that stores one or more programs, the programs including instructions that, when executed by an electronic device including multiple applications, enable the electronic device to perform... Figure 1 The method executed by the identifier processing device for switching between old and new systems in the illustrated embodiment is specifically used to perform:
[0141] In response to the encoding request for the service identification number when switching between the first system and the second system, the numbering configuration rules are determined according to the identification number encoding configuration table;
[0142] According to the numbering configuration rules, query the encoding configuration tables 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 encoding value in the system is obtained.
[0144] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied 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] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0146] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0147] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function 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] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0150] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0151] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0152] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied 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.
[0153] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for processing identifiers during system switching, wherein, The method includes: In response to the encoding request for the service identification number when switching between the first system and the second system, the numbering configuration rules are determined according to the identification number encoding configuration table; According to the numbering configuration rules, query the encoding configuration tables 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 encoding value in the system is obtained; The step of responding to the encoding configuration tables in the first system and the second system to obtain the current encoding value in the system includes: In response to the switching system switch bit being equal to 1 in the numbering configuration rule of the encoding configuration table, the state that the system switching transition between the first system and the second system is complete is obtained, and the service request is allocated to use the identification number encoding segment corresponding to the second system; Update the current value of the encoding in the second system according to the second preset threshold; Based on the status of the system handover transition between the first system and the second system, the identification number code segment that has been allocated to the first system is recycled and reused in the second system; In response to the fact that the callback mode bit in the encoding configuration table is not equal to 0, an identification number encoding is generated and a callback operation is performed according to the corresponding callback mode. Based on the execution result of the callback operation, the current value of the encoding is set to the minimum value of the unified encoding; In response to the fact that the callback mode bit in the encoding configuration table is not equal to 0 and the switching system switch bit is equal to 1, an identification code is generated and a callback operation is performed according to the corresponding callback mode. Based on the execution result of the callback operation, the minimum encoded value in the second system is re-initialized.
2. The method as described in claim 1, wherein, The response to the encoding request for the service identifier number during the switch between the first system and the second system, determining the numbering configuration rules according to the identifier number encoding configuration table, includes: Receive a preset service request sent from above, wherein the preset service request carries at least a service identification number code; Based on the service parameters in the encoding request for the service identifier number when switching between the first system and the second system, query the pre-saved identifier number encoding configuration table in the database; Based on the query results in the identification number encoding configuration table, determine the numbering configuration rule corresponding to the business parameter.
3. The method as described in claim 2, wherein, The identifier encoding configuration table includes at least one of the following fields: business transaction name, business code, number type, callback mode, system switching switch, and number configuration rule. The step of querying the encoding configuration tables in the first system and the second system according to the number configuration rule includes: According to the numbering configuration rules, obtain the current value of the first system code corresponding to the first system in the first system and the current value of the second system code corresponding to the second system in the second system; Based on 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 from the first system to the second system, the service request will be routed to either the first system or the second system. Wherein, the business transaction name is used as the name that uniquely identifies the business transaction, the business identification number code is used as the code that uniquely identifies the business transaction, the number type is used as the different coding types in the business transaction, the callback mode is used as the type of re-encoding of the identification number in the business transaction, the system switch is used as the status that indicates the system switch, and the number configuration rule is used as the code for the number configuration rule.
4. The method as described in claim 1, wherein, The step of responding to the encoding configuration tables in the first system and the second system to obtain the current encoding value in the system includes: The switching status between the first system and the second system is determined according to the switching system switch bit in the number configuration rules in the encoding configuration table; In response to the switching system switch bit in the numbering configuration rule of the encoding configuration table being equal to 0, it is determined that the first system and the second system are running simultaneously, and the service request is allocated to use the identification number encoding segment corresponding to the first system or the second system; Update the current value of the encoding according to the first preset threshold.
5. An identification number processing device for switching between old and new systems, wherein, The device includes: The first response module is used to respond to the encoding request for the service identification number when switching between the first system and the second system, and to determine the numbering configuration rules according to the identification number encoding configuration table. The query module is used to query the encoding configuration tables in the first system and the second system respectively according to the numbering configuration rules; The second response module is used to respond to the encoding configuration tables in the first system and the second system to obtain the current encoding value in the system; The step of responding to the encoding configuration tables in the first system and the second system to obtain the current encoding value in the system includes: In response to the switching system switch bit being equal to 1 in the numbering configuration rule of the encoding configuration table, the state that the system switching transition between the first system and the second system is complete is obtained, and the service request is allocated to use the identification number encoding segment corresponding to the second system; Update the current value of the encoding in the second system according to the second preset threshold; Based on the status of the system handover transition between the first system and the second system, the identification number code segment that has been allocated to the first system is recycled and reused in the second system; In response to the fact that the callback mode bit in the encoding configuration table is not equal to 0, an identification number encoding is generated and a callback operation is performed according to the corresponding callback mode. Based on the execution result of the callback operation, the current value of the encoding is set to the minimum value of the unified encoding; In response to the fact that the callback mode bit in the encoding configuration table is not equal to 0 and the switching system switch bit is equal to 1, an identification code is generated and a callback operation is performed according to the corresponding callback mode. Based on the execution result of the callback operation, the minimum encoded value in the second system is re-initialized.
6. An electronic device, comprising: processor; as well as A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the method of any one of claims 1 to 4.
7. A computer-readable storage medium storing one or more programs, which, when executed by an electronic device including a plurality of applications, cause the electronic device to perform the method of any one of claims 1 to 4.
Citation Information
Patent Citations
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