A method and device for batch transfer of user charges
By backing up and generating tables related to the target tariff model, the problem of low efficiency in batch migration of user tariffs in the existing technology is solved, efficient data migration and system association are achieved, and automated processing capabilities are improved.
Patent Information
- Application Number
- CN202010994703.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-21
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-09-21
AI Technical Summary
The existing technology is inefficient when migrating user tariffs in batches and requires manual processing one by one, resulting in low efficiency.
By backing up the tariff model related table of the user group to be migrated, determine the tariff range, extract and generate the corresponding relationship between the target tariff serial number and the original tariff serial number, generate the target tariff model related table, and migrate the data to the database of the target system. Ensure tariff model correlation and data integrity between the two systems.
It achieves efficient data migration in batches, improves the efficiency of data migration, reduces manual intervention, and improves the system's automated processing capabilities.
Smart Images

Figure CN112506890B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing, and in particular to a method and device for batch migration of user charges. Background Art
[0002] Nowadays, mobile phones have been integrated into every aspect of people's lives. If you need to use a mobile phone for communication, you will sign an agreement with a communication operator. The communication operator's data needs to be supported by a background system that integrates huge functions to ensure that users get technical service guarantees when using related services.
[0003] In the prior art, in order to facilitate business connection between sales staff and customers, the communication operators have stabilized their business processing capabilities in one-on-one customer service. However, when the communication operators encounter data that needs to be migrated in batches, they manually migrate the batch data to be migrated one by one, which is a low efficiency migration method. Summary of the invention
[0004] The present application provides a method and device for batch migration of user charges, which is used to achieve batch migration of data and improve the efficiency of data migration.
[0005] The first aspect of the present application provides a method for batch migration of user charges, including:
[0006] Back up the tariff model related tables of the user group to be migrated;
[0007] Determine the tariff range of the user group to be migrated in the tariff model related table;
[0008] Extracting a tariff model for the user group to be transferred according to the tariff range, wherein the tariff model includes all tariff packages in the user group to be transferred;
[0009] Extracting a tariff serial number from the tariff model related table, wherein the tariff serial number is used to distinguish tariff packages;
[0010] Generate a corresponding target tariff number according to the tariff number. Since the tariff numbers in different systems are different, the target tariff number is applicable to the target system of the migration;
[0011] Generate a correspondence between the tariff sequence number and the target tariff sequence number, the correspondence serving as a basis for migrating the corresponding tariff model, so that the current system and the target system associate two tariff models with different tariff sequence numbers;
[0012] Generate a target tariff model related table according to the corresponding relationship, wherein data in the target tariff model related table is used by the target system to determine a tariff model for a user group;
[0013] The data is migrated to the database of the target system according to the target tariff model related table, and the database serves as the data support of the migrated target system.
[0014] Optionally, generating a target tariff model related table according to the corresponding relationship includes:
[0015] Complete the cost field according to the corresponding relationship to generate a target cost field, where the target cost field is used to record the tariff package range of the target system;
[0016] Determine a target definition table for the user group according to the target cost domain, wherein the target definition table is used to store intermediate codes of different tariff packages;
[0017] Generate a target tariff model related table according to the target definition table.
[0018] Optionally, before generating a target tariff model related table according to the corresponding relationship, the method further includes:
[0019] Determine whether the definition table is the only definition table, if so, determine that the definition table is the target definition table, if not, merge and update the definition table of the user group to generate a target definition table;
[0020] Optionally, the merging and updating the definition table of the user group to generate the target definition table includes:
[0021] Arranging and recording the bearer correspondence relationship of the user group, wherein the corresponding codes of the bearer relationship in different systems are different;
[0022] Processing and recording the batch price composition group of the user group, wherein the batch price composition is data to be traversed, and the batch price composition group is used to prevent the traversal loop from being jumped out before the traversal is completed;
[0023] Adjusting and recording the fixed fees of the user group, wherein the fixed fees are recorded differently in different systems;
[0024] Sorting out the accumulation and reminder of the user group's tariff usage and recording it;
[0025] The conversion rate specifies the charging role and records it, and the charging role includes the primary card and the secondary card;
[0026] The recorded results are statistically combined to generate the target definition table.
[0027] Optionally, generating a target tariff model related table according to the definition table includes:
[0028] Adjust the difference of the target tariff model related table according to the target definition table;
[0029] Align the target tariff model related table with the tariff model.
[0030] Optionally, after generating the correspondence between the tariff sequence number and the target tariff sequence number, the method further includes:
[0031] Extracting the tariff model involved in the user group according to the tariff sequence number;
[0032] The corresponding relationship is determined according to the tariff model.
[0033] Optionally, after migrating the data to the database of the target system according to the target tariff model related table, the method further includes:
[0034] The database is audited to determine the completeness of the target tariff information.
[0035] A second aspect of the present application provides a device for batch migration of user charges, including:
[0036] A backup unit, used for backing up a tariff model related table of a user group to be migrated;
[0037] A first determining unit, configured to determine a tariff range for the user group to be migrated in the tariff model related table;
[0038] A first extraction unit, configured to extract a tariff model of the user group to be migrated according to the tariff range, wherein the tariff model includes all tariff packages in the user group to be migrated;
[0039] A second extraction unit is used to extract a tariff serial number from the tariff model related table, wherein the tariff serial number is used to distinguish tariff packages;
[0040] A first generating unit is used to generate a corresponding target tariff number according to the tariff number. Since the tariff numbers in different systems are different, the target tariff number is applicable to the target system of the migration;
[0041] A second generating unit is used to generate a correspondence between the tariff sequence number and the target tariff sequence number, wherein the correspondence is used as a basis for migrating the corresponding tariff model, so that the current system and the target system associate two tariff models with different tariff sequence numbers;
[0042] A third generating unit, configured to generate a target tariff model related table according to the corresponding relationship, wherein data in the target tariff related table is used by the target system to determine a tariff model for a user group;
[0043] The migration unit is used to migrate data to the database of the target system according to the target tariff model related table, and the database serves as the data support of the migrated target system.
[0044] Optionally, the third generation unit includes:
[0045] A completion module, used to complete the cost field according to the corresponding relationship to generate the target cost field, wherein the target cost field is used to record the tariff package range of the target system;
[0046] A first determination module, configured to determine a target definition table for the user group according to the target cost domain, wherein the target definition table is used to store intermediate codes of different tariff packages;
[0047] The first generating module is used to generate a target tariff model related table according to the target definition table.
[0048] Optionally, the device further comprises:
[0049] A judging unit, used for judging whether the definition table is the only definition table;
[0050] a second determining unit, configured to determine that the definition table is a target definition table when the determining unit determines that the definition table is the only definition table;
[0051] A fourth generating unit, configured to merge and update the definition table of the user group to generate a target definition table when the judging unit determines that the definition table is not the only definition table;
[0052] Optionally, the fourth generating unit includes:
[0053] A sorting module, used for sorting and recording the bearer correspondence relationship of the user group, wherein the corresponding codes of the bearer relationship in different systems are different;
[0054] A processing module, used for processing and recording the batch price composition group of the user group, wherein the batch price composition data needs to be traversed, and the batch price composition group is used to prevent the traversal loop from being jumped out before the traversal is completed;
[0055] An adjustment module, used for adjusting and recording the fixed fees of the user group, wherein the fixed fees are recorded differently in different systems;
[0056] A sorting module, used to sort out the accumulation and reminder of the user group's tariff usage and record it;
[0057] The conversion rate specifies the charging role and records it, and the charging role includes the primary card and the secondary card;
[0058] The second generation module is used to statistically merge the record results to generate the target definition table.
[0059] Optionally, the first generating module includes:
[0060] An adjustment submodule, used for adjusting the difference of the target tariff model related table according to the target definition table;
[0061] The alignment submodule is used to align the target tariff model related table with the tariff model.
[0062] Optionally, the device further comprises:
[0063] A third extraction unit, configured to extract a tariff model involved in the user group according to the tariff sequence number;
[0064] The third determining unit is used to determine the corresponding relationship according to the tariff model.
[0065] Optionally, the device further comprises:
[0066] The audit unit is used to audit the database to determine the integrity of the target tariff information.
[0067] A third aspect of the present application provides a device for batch migration of user charges, including:
[0068] Processor, memory, input and output unit, bus;
[0069] The processor is connected to the memory, the input and output unit, and the bus;
[0070] The processor specifically executes the method described in the first aspect or the second aspect.
[0071] From the above technical solution, it can be seen that the system extracts the data of the user group, generates the target tariff model related table by processing the user data, and then generates the target database through the target tariff model related table, and the target database can be used in the target system to realize batch data migration and improve the efficiency of data migration. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 A flow chart of an embodiment of a method for batch transfer of user charges in an embodiment of the present application;
[0073] Figure 2.1 and Figure 2.2 This is a flow chart of another embodiment of the method for batch migration of user charges in the embodiment of the present application;
[0074] Figure 3 This is a schematic diagram of the structure of an embodiment of a device for batch migration of user charges in an embodiment of the present application;
[0075] Figure 4 This is a schematic diagram of another embodiment of the structure of the device for batch migration of user charges in the embodiment of the present application;
[0076] Figure 5 This is a structural diagram of another embodiment of the device for batch migration of user charges in the embodiments of the present application. DETAILED DESCRIPTION
[0077] The present application provides a method and device for batch migration of user charges, which is used to achieve batch migration of data and improve the efficiency of data migration.
[0078] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the present application. 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 creative work are within the scope of protection of this application.
[0079] The embodiments of the present application are applicable to batch migration of user information between all communication systems. The following description mainly takes the migration from BSS (Base Station Subsystem) to cBSS supporting system as the description object.
[0080] The embodiments of the present application can be executed using all electronic devices with logic verification capabilities, such as systems and terminals, and the following embodiments will be described using terminals.
[0081] See also Figure 1 The present application embodiment provides a method for batch migration of user charges. An embodiment includes:
[0082] 101. The terminal backs up the tariff model related table of the user group to be migrated;
[0083] Before any system performs data migration, in order to prevent data loss, the data to be migrated will be backed up first. Especially for systems like BSS that store huge amounts of data, the users to be migrated will be grouped into user groups before migration. The tariff model will then be extracted based on the user group, and a tariff model-related table associated with the user group will be generated based on the tariff model of the user group.
[0084] 102. The terminal determines the tariff range of the user group to be transferred in the tariff model related table;
[0085] The tariff model related table is a set of packages used by all users in the user group. In actual situations, the user group that needs to be migrated in batches is the enterprise's users. Most of these users use the same tariff package or some customized tariff packages. To determine the tariff range of the package, the cBSS system can determine the package range used by all users in the user group through this set, and then determine the tariff range of the user group in the BSS system.
[0086] 103. The terminal extracts a tariff model of the user group to be transferred according to the tariff range, where the tariff model includes all tariff packages in the user group to be transferred;
[0087] After determining the tariff range of the user group according to step 102, the cBSS system will compare the tariff package data of the cBSS system according to the tariff range of the user group determined by the BSS system to determine the corresponding tariff of the tariff model of the user group in the BSS system in the cBSS system.
[0088] 104. The terminal extracts a tariff serial number from the tariff model related table, where the tariff serial number is used to distinguish tariff packages;
[0089] All packages in the BSS system have corresponding tariff serial numbers. When the BSS system backs up and generates the tariff model related table, the tariff serial number is matched with the tariff range and recorded in the tariff model related table.
[0090] 105. The terminal generates a corresponding target tariff number according to the tariff number. Since the tariff numbers in different systems are different, the target tariff number is applicable to the target system of the migration.
[0091] The tariff numbers corresponding to the tariff packages in the BSS system may correspond to different tariff packages in the cBSS. In order to prevent conflicts when extracting associated data and generating new data, the tariff numbers of the same tariff packages in two different systems need to be associated before migration, so that the cBSS system can track the target tariff number applicable to the cBSS system based on the tariff number of the BSS.
[0092] 106. The terminal generates a correspondence between the tariff sequence number and the target tariff sequence number, and the correspondence is used as a basis for migrating the corresponding tariff model, so that the current system and the target system associate two tariff models with different tariff sequence numbers;
[0093] In order for the cBSS system to track the target tariff number applicable to the cBSS system based on the tariff number of the BSS system, it is necessary to match the tariff number with the target tariff number to generate a corresponding relationship. This corresponding relationship matches the tariff number applicable to the BSS system with the target tariff number applicable to the cBSS system one by one. The corresponding relationship at this time serves as the basis for querying the target tariff number of the cBSS system based on the tariff number of the BSS system.
[0094] 107. The terminal generates a target tariff model related table according to the corresponding relationship, and the data in the target tariff model related table is used by the target system to determine the tariff model of the user group;
[0095] After determining the correspondence between the tariff packages of the two systems, the terminal can extract the tariff number according to the tariff model related table of the BSS system, and then determine the target tariff number applicable to the cBSS system based on the tariff number and the corresponding relationship. After the terminal determines the above steps, it will generate a target tariff model related table based on the corresponding relationship and the target tariff number, and the data in the target tariff model related table is applicable to the cBSS system.
[0096] 108. Migrate data to the database of the target system according to the target tariff model related table, and the database serves as data support for the migrated target system.
[0097] After determining the target tariff model related table in step 107, the terminal transfers the data in the target tariff model related table to the database of the cBSS system. After the data is transferred to the database of the cBSS system, the cBSS system can read the user data of the migrated user through its own database, and the data migration is completed.
[0098] The system extracts the data of the user group, generates the target tariff model related table by processing the user data, and then generates the target database through the target tariff model related table, and the target database can be used in the target system to realize batch data migration and improve the efficiency of data migration.
[0099] See also Figure 2.1 and Figure 2.2 , the present application embodiment provides a method for batch migration of user charges. Another embodiment includes:
[0100] 201. The terminal backs up the tariff model related table of the user group to be migrated;
[0101] 202. The terminal determines the tariff range of the user group to be transferred in the tariff model related table;
[0102] 203. The terminal extracts a tariff model of the user group to be transferred according to the tariff range, where the tariff model includes all tariff packages in the user group to be transferred;
[0103] 204. The terminal extracts a tariff serial number from the tariff model related table, where the tariff serial number is used to distinguish tariff packages;
[0104] 205. The terminal generates a corresponding target tariff number according to the tariff number. Since the tariff numbers in different systems are different, the target tariff number is applicable to the target system of the migration.
[0105] 206. The correspondence between the tariff serial number of the terminal and the target tariff serial number, the correspondence being used as a basis for migrating the corresponding tariff model, so that the current system and the target system associate two tariff models with different tariff serial numbers;
[0106] Steps 201 to 206 in this embodiment are similar to steps 101 to 106 in the aforementioned embodiment and are not described again here.
[0107] 207. The terminal extracts the tariff model involved in the user group according to the tariff sequence number;
[0108] The tariff sequence number can determine the tariff range of the user group on the BSS system. The terminal can determine the types of tariff packages within the range of the user group that needs to be migrated based on the tariff range, thereby determining the tariff model designed for the user group.
[0109] 208. The terminal determines the corresponding relationship according to the tariff model;
[0110] After determining the tariff model of the user group on the BSS system in step 208, the terminal establishes a corresponding relationship with the tariff model on the cBSS system according to the tariff model.
[0111] 209. The terminal completes the fee field according to the corresponding relationship to generate a target fee field, where the target fee field is used to record the fee package range of the target system;
[0112] In actual situations, the range of tariff packages in the BSS system will not be completely consistent with the tariff range of packages in the cBSS system. To solve this problem, the terminal will generate a fee domain after determining the tariff range of the BSS system, and then generate a target fee domain suitable for the cBSS system. After the terminal determines the fee domain, it will fill in the target fee domain according to the fee domain to align the fee domains of the two systems.
[0113] 210. The terminal determines a target definition table for the user group according to the target cost field, wherein the target definition table is used to store intermediate codes of different tariff packages;
[0114] In actual situations, there is a situation where a tariff package has both traffic charges and voice charges. In the BSS system, the tariff package can correspond to the traffic charge code and the voice charge code at the same time, but in the cBSS system, a tariff package cannot correspond to multiple codes. At this time, an intermediate corresponding intermediate code is required, such as: the tariff package corresponds to the tariff sub-package, and the tariff sub-package can read the corresponding voice charge code and traffic charge code.
[0115] 211. The terminal determines whether the definition table is the only definition table;
[0116] In actual situations, a user's account often has more than one package, and each package will generate a definition table, but in the cBSS system, the user only has one definition table.
[0117] If yes, then go to step 212, if no, then go to step 213.
[0118] 212. The terminal determines that the definition table is a target definition table;
[0119] When the result of step 211 is that the definition table is the only definition table for the user, the definition table is identified as the target definition table associated with the user.
[0120] After this step is determined, step 219 is executed.
[0121] 213. The terminal organizes and records the bearer correspondence relationship of the user group, where the corresponding codes of the bearer relationship in different systems are different;
[0122] When the result of step 211 is that the definition table is not unique, the terminal extracts the content of the definition table and regenerates a new definition table.
[0123] In actual situations, the corresponding codes of bearer relationships in different systems are different. For example, when dialing a number, add the prefix 17911. The corresponding type code for dialing 17911 in the BSS system is 01, and the corresponding code for dialing 17911 in the cBSS system is 04.
[0124] 214. The terminal processes and records the batch price composition group of the user group, wherein the batch price composition is data to be traversed, and the batch price composition group is used to prevent the traversal loop from being jumped out before the traversal is completed;
[0125] The structure of the batch price is similar to a tree. A branch can have multiple leaves, that is, a branch can have multiple sub-elements. There is no intersection among the sub-elements. The BSS system will traverse all the sub-elements. The cBSS system must define a group for each sub-element. For example, 1, 2, and 3 are grouped together and then traversed. If there is no grouping, it will jump out after reading 1 and will not execute 2 and 3, so it needs to be processed separately.
[0126] 215. The terminal adjusts and records the fixed fee of the user group, wherein the fixed fee is recorded differently in different systems;
[0127] Fixed fee configuration involves 7 tables. In the BSS system, this configuration is written in the 5th table. In the cBSS system, it is written in the 7th table, so the conversion process requires moving the fees in the 5th table to the 7th table.
[0128] 216. The terminal sorts out the accumulation and reminders of the user group's tariff usage and records them;
[0129] Accumulation and reminder are independent of the tariff model. Accumulation is used to query the usage and remaining amount through the mobile phone hall, and reminder is to remind users when the package reaches 90% and 100%. These two parts should be sorted out separately. The number of fields in the corresponding tables of the two systems is different, and the reminder templates are also different.
[0130] 217. The terminal switches the tariff to specify the charging role and records it, where the charging role includes the primary card and the secondary card;
[0131] In actual situations, some charges are based on roles. For example, the fees for the main and secondary card packages are all charged to the main card except for the secondary card function fee of 6 yuan and the display fee of 3 yuan. How to distinguish the main and secondary cards is controlled by roles. For example: the main card is 1 in the BSS system and 8025 in the cBBS system, the secondary card is 0 in the BSS system and 8026 in the cBBS system, for example, the mobile phone in the group is 4 in the BSS system and 8004 in the cBBS system, and the broadband is 2 in the BSS system and 8006 in the cBBS system.
[0132] 218. The terminal combines the recorded results and generates the target definition table;
[0133] When the data integration from step 213 to step 218 is completed, the terminal records the integrated data results and generates a target definition table according to the results.
[0134] 219. The terminal adjusts the difference of the target tariff model related table according to the target definition table;
[0135] After the terminal determines the target definition table, the terminal compares the data in the target definition table with the target tariff model related table, and uses the difference result of the comparison as the basis for adjusting the target tariff model related table.
[0136] 220. The terminal aligns the target tariff model related table with the tariff model;
[0137] After obtaining the basis for adjusting the target tariff model related table in step 219, the terminal aligns the data of the target tariff model related table with the tariff model in the BSS system according to the basis to obtain a target tariff model related table with complete data.
[0138] In actual situations, the BSS system is implemented through programs. The cBSS system does not have such programs and needs to be aligned with the BSS system through additional overlay charges.
[0139] 221. The terminal migrates data to the database of the target system according to the target tariff model related table, and the database serves as data support for the migrated target system.
[0140] Steps 201 to 206 in this embodiment are similar to step 108 in the aforementioned embodiment and will not be described in detail here.
[0141] 222. The terminal audits the database to determine the integrity of the target tariff information.
[0142] After the migration is completed, in order to ensure data integrity, the terminal extracts the data in the target database and compares it with the backup data. When the comparison result is determined to be error-free or the error value is less than the preset value, the target database resource is determined to be a complete resource and can be put into use. Otherwise, the terminal will feedback the data block address with a larger error rate for manual review.
[0143] The embodiment of the present application specifically describes the process of the terminal converting the tariff model related table into the target tariff model related table. The terminal integrates the target definition table and generates the target tariff model related table according to the data in the target definition table, and specifies the content of the target tariff model related table.
[0144] See also Figure 3 The present application embodiment provides a device for batch migration of user charges. One embodiment includes:
[0145] A backup unit 301, used to back up a tariff model related table of a user group to be migrated;
[0146] A first determining unit 302 is used to determine the tariff range of the user group to be migrated in the tariff model related table;
[0147] A first extraction unit 303 is used to extract a tariff model of the user group to be migrated according to the tariff range, wherein the tariff model includes all tariff packages in the user group to be migrated;
[0148] A second extraction unit 304 is used to extract a tariff serial number from the tariff model related table, where the tariff serial number is used to distinguish tariff packages;
[0149] The first generating unit 305 is used to generate a corresponding target tariff number according to the tariff number. Since the tariff numbers in different systems are different, the target tariff number is applicable to the target system of the migration;
[0150] The second generating unit 306 is used to generate a correspondence between the tariff sequence number and the target tariff sequence number, and the correspondence is used as a basis for migrating the corresponding tariff model, so that the current system and the target system associate two tariff models with different tariff sequence numbers;
[0151] A third generating unit 307 is used to generate a target tariff model related table according to the corresponding relationship, and the data of the target tariff related table is used by the target system to determine the tariff model of the user group;
[0152] The migration unit 308 is used to migrate data to the database of the target system according to the target tariff model related table, and the database serves as the data support of the migrated target system.
[0153] In this embodiment, the device specifically performs the same Figure 1 The steps in the illustrated embodiments correspond to each other and will not be described again here.
[0154] See also Figure 4 , the present application embodiment provides a device for batch migration of user charges. Another embodiment includes:
[0155] A backup unit 401, used to back up a tariff model related table of a user group to be migrated;
[0156] A first determining unit 402 is used to determine the tariff range of the user group to be migrated in the tariff model related table;
[0157] A first extraction unit 403 is used to extract a tariff model of the user group to be migrated according to the tariff range, wherein the tariff model includes all tariff packages in the user group to be migrated;
[0158] A second extraction unit 404 is used to extract a tariff serial number from the tariff model related table, where the tariff serial number is used to distinguish tariff packages;
[0159] The first generating unit 405 is used to generate a corresponding target tariff number according to the tariff number. Since the tariff numbers in different systems are different, the target tariff number is applicable to the target system of the migration;
[0160] The second generating unit 406 is used to generate a correspondence between the tariff sequence number and the target tariff sequence number, and the correspondence is used as a basis for migrating the corresponding tariff model, so that the current system and the target system associate two tariff models with different tariff sequence numbers;
[0161] A third extraction unit 407, configured to extract the tariff model involved in the user group according to the tariff sequence number;
[0162] The third determining unit 408 is configured to determine the corresponding relationship according to the tariff model.
[0163] A third generating unit 409 is used to generate a target tariff model related table according to the corresponding relationship, and the data of the target tariff related table is used by the target system to determine the tariff model of the user group;
[0164] The migration unit 410 is used to migrate data to the database of the target system according to the target tariff model related table, and the database serves as the data support of the migrated target system.
[0165] The audit unit 411 is used to audit the database to determine the integrity of the target tariff information.
[0166] In the embodiment of the present application, the third generating unit 409 includes:
[0167] A completion module 4091 is used to complete the cost field according to the corresponding relationship to generate a target cost field, where the target cost field is used to record the tariff package range of the target system;
[0168] A first determination module 4092, configured to determine a target definition table for the user group according to the target cost domain, wherein the target definition table is used to store intermediate codes of different tariff packages;
[0169] The first generating module 4093 is used to generate a target tariff model related table according to the target definition table.
[0170] The second generating module 4094 is used for merging and updating the definition table of the user group to generate a target definition table when the judging unit determines that the definition table is not the only definition table;
[0171] In the embodiment of the present application, the second generating module 4094 includes:
[0172] Arranging submodule 40941, used to arrange and record the bearer correspondence relationship of the user group, wherein the corresponding codes of the bearer relationship in different systems are different;
[0173] Processing submodule 40942, used for processing and recording the batch price composition group of the user group, wherein the batch price composition data needs to be traversed, and the batch price composition group is used to prevent the traversal loop from being jumped out before the traversal is completed;
[0174] The first adjustment submodule 40943 is used to adjust and record the fixed fee of the user group, wherein the fixed fee is recorded differently in different systems;
[0175] A combing submodule 40944 is used to comb through the accumulation and reminder of the user group's tariff usage and record it;
[0176] The conversion submodule 40945 is used to convert and record the charging role specified by the tariff, wherein the charging role includes the primary card and the secondary card;
[0177] The generation submodule 40946 is used to statistically merge the record results to generate the target definition table.
[0178] In the embodiment of the present application, the first generation module 4093 includes:
[0179] A second adjustment submodule 40931, configured to adjust the difference of the target tariff model related table according to the target definition table;
[0180] The alignment submodule 40932 is used to align the target tariff model related table with the tariff model.
[0181] In this embodiment, the device specifically performs the same Figure 2.1 and Figure 2.2 The steps in the illustrated embodiments correspond to each other and will not be described again here.
[0182] See also Figure 5 , the present application embodiment provides a device for batch migration of user charges. Another embodiment includes:
[0183] Processor 501, memory 502, input and output unit 503, bus 504;
[0184] The processor 501 is connected to the memory 502, the input and output unit 503 and the bus 504;
[0185] In this embodiment, the processor specifically performs the above Figure 1 to Figure 2.1 and Figure 2.2 The steps in the illustrated embodiments correspond to each other and will not be described again here.
[0186] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0187] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0188] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0189] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0190] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.
Claims
1. A method for batch transfer of user charges, characterized in that: include: Back up the tariff model related tables of the user group to be migrated; Determine the tariff range of the user group to be migrated in the tariff model related table; Extracting a tariff model for the user group to be transferred according to the tariff range, wherein the tariff model includes all tariff packages in the user group to be transferred; Extracting a tariff serial number from the tariff model related table, wherein the tariff serial number is used to distinguish tariff packages; Generate a corresponding target tariff number according to the tariff number. Since the tariff numbers in different systems are different, the target tariff number is applicable to the target system of the migration; Generate a correspondence between the tariff sequence number and the target tariff sequence number, the correspondence serving as a basis for migrating the corresponding tariff model, so that the current system and the target system associate two tariff models with different tariff sequence numbers; Generate a target tariff model related table according to the corresponding relationship, wherein data in the target tariff model related table is used by the target system to determine the tariff model of the user group; The data is migrated to the database of the target system according to the target tariff model related table, and the database serves as the data support of the migrated target system.
2. The method according to claim 1, characterized in that Generating a target tariff model related table according to the corresponding relationship includes: Complete the cost field according to the corresponding relationship to generate a target cost field, where the target cost field is used to record the tariff package range of the target system; Determine a target definition table for the user group according to the target cost domain, wherein the target definition table is used to store intermediate codes of different tariff packages; Generate a target tariff model related table according to the target definition table.
3. The method according to claim 2, characterized in that Before generating the target tariff model related table according to the corresponding relationship, the method further includes: Determine whether the definition table is the only definition table. If so, determine that the definition table is the target definition table. If not, merge and update the definition table of the user group to generate a target definition table.
4. The method according to claim 3, characterized in that The merging and updating the definition table of the user group to generate the target definition table comprises: Arranging and recording the bearer correspondence of the user group, wherein the corresponding codes of the bearer correspondence in different systems are different; Processing and recording the batch price composition group of the user group, wherein the batch price composition is data to be traversed, and the batch price composition group is used to prevent the traversal loop from being jumped out before the traversal is completed; Adjusting and recording the fixed fees of the user group, wherein the fixed fees are recorded differently in different systems; Sorting out the accumulation and reminder of the user group's tariff usage and recording it; The conversion rate specifies the charging role and records it, and the charging role includes the primary card and the secondary card; The recorded results are statistically combined to generate the target definition table.
5. The method according to claim 2, characterized in that: The generating of the target tariff model related table according to the definition table comprises: Adjust the difference of the target tariff model related table according to the target definition table; Align the target tariff model related table with the tariff model.
6. The method according to any one of claims 1 to 5, characterized in that After generating the corresponding relationship between the tariff sequence number and the target tariff sequence number, the method further includes: Extracting the tariff model involved in the user group according to the tariff sequence number; The corresponding relationship is determined according to the tariff model.
7. The method according to any one of claims 1 to 5, characterized in that After migrating the data to the database of the target system according to the target tariff model related table, the method further includes: The database is audited to determine the completeness of the target tariff information.
8. A device for batch transfer of user charges, characterized in that: include: A backup unit, used for backing up a tariff model related table of a user group to be migrated; A first determining unit, configured to determine a tariff range for the user group to be migrated in the tariff model related table; A first extraction unit, configured to extract a tariff model of the user group to be migrated according to the tariff range, wherein the tariff model includes all tariff packages in the user group to be migrated; A second extraction unit is used to extract a tariff serial number from the tariff model related table, wherein the tariff serial number is used to distinguish tariff packages; A first generating unit is used to generate a corresponding target tariff number according to the tariff number. Since the tariff numbers in different systems are different, the target tariff number is applicable to the target system of the migration; A second generating unit is used to generate a correspondence between the tariff sequence number and the target tariff sequence number, wherein the correspondence is used as a basis for migrating the corresponding tariff model, so that the current system and the target system associate two tariff models with different tariff sequence numbers; A third generating unit, configured to generate a target tariff model related table according to the corresponding relationship, wherein data in the target tariff model related table is used by the target system to determine a tariff model for a user group; The migration unit is used to migrate data to the database of the target system according to the target tariff model related table, and the database serves as the data support of the migrated target system.
9. The device according to claim 8, characterized in that The third generating unit further includes: A completion module, used to complete the cost field according to the corresponding relationship to generate a target cost field, wherein the target cost field is used to record the tariff package range of the target system; A first determination module, configured to determine a target definition table for the user group according to the target cost domain, wherein the target definition table is used to store intermediate codes of different tariff packages; The first generating module is used to generate a target tariff model related table according to the target definition table.
10. A device for batch transfer of user charges, characterized in that: include: Processor, memory, input and output unit, bus; The processor is connected to the memory, the input and output unit, and the bus; The processor specifically performs the following operations: Back up the tariff model related tables of the user group to be migrated; Determine the tariff range of the user group to be migrated in the tariff model related table; Extracting a tariff model for the user group to be transferred according to the tariff range, wherein the tariff model includes all tariff packages in the user group to be transferred; Extracting a tariff serial number from the tariff model related table, wherein the tariff serial number is used to distinguish tariff packages; Generate a corresponding target tariff number according to the tariff number. Since the tariff numbers in different systems are different, the target tariff number is applicable to the target system of the migration; Generate a correspondence between the tariff sequence number and the target tariff sequence number, the correspondence serving as a basis for migrating the corresponding tariff model, so that the current system and the target system associate two tariff models with different tariff sequence numbers; Generate a target tariff model related table according to the corresponding relationship, wherein data in the target tariff model related table is used by the target system to determine the tariff model of the user group; The data is migrated to the database of the target system according to the target tariff model related table, and the database serves as the data support of the migrated target system.
Citation Information
Patent Citations
Data synchronization method and apparatus, and server
CN107656970A
Data synchronization method and system
CN109788053A
