Method, Processor, and Machine-Readable Storage Medium for Bank Card Number Segment Management
By screening and calculating the number segment set of bank cards and generating a checklist, the problem of low efficiency in bank card making is solved, and the efficient operation of batch card making and verification work is achieved.
Patent Information
- Application Number
- CN202111416090.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-25
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2041-11-25
AI Technical Summary
The efficiency of bank cards is low in card making, and errors are prone to occur, which affects the efficiency of business processes.
By determining the total set of card numbers of bank cards, filtering the total set of card numbers according to preset rules, obtaining the set of starting card numbers and closing card numbers, calculating the set of number segments, generating a checklist, and realizing batch card making and verification work.
By calculating the number segment set of bank cards, banks can perform batch card making and checking work, reducing errors in card making, clearing, handing over, warehouse entry and other operations, and improving card making efficiency.
Smart Images

Figure CN114092014B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of bank card management, and particularly to a method, a processor, and a machine-readable storage medium for bank card number segment management. Background Art
[0002] A bank card refers to a credit payment tool issued by financial institutions such as commercial banks to the society upon approval, which has all or part of the functions such as consumer credit, transfer settlement, cash deposit and withdrawal, etc. With the continuous development of the social economy and commercial banks, the issuance volume of bank cards is increasing, and the card-making business of banks is also increasing continuously.
[0003] Due to the huge volume of card production, during the card-making process and after the card-making is completed, errors are likely to occur when business personnel perform operations such as sorting, handover, and warehousing of bank cards, resulting in low card-making efficiency of bank cards. Summary of the Invention
[0004] The purpose of the embodiments of this application is to provide a method, a processor, and a machine-readable storage medium for bank card number segment management, aiming to solve the problem of low card-making efficiency of bank cards in the prior art.
[0005] To achieve the above purpose, the first aspect of this application provides a method for bank card number segment management, including:
[0006] Determine the total set of bank card numbers;
[0007] Screen the total set of card numbers according to the first preset rule to obtain the starting card number set;
[0008] Screen the total set of card numbers according to the second preset rule to obtain the ending card number set;
[0009] Calculate the number segments based on the starting card number set and the ending card number set to obtain the number segment set.
[0010] In the embodiments of this application, determining the total set of bank card numbers includes:
[0011] Obtain the card-making task list;
[0012] Determine the total set of bank card numbers according to the card-making task list.
[0013] In the embodiments of this application, screening the total set of card numbers according to the first preset rule to obtain the starting card number set includes:
[0014] Subtract 1 from the value of the custom bit of all card numbers in the total set of card numbers to obtain the first card number;
[0015] Judge whether the first card number exists in the total set of card numbers;
[0016] When there is a first card number in the total set of card numbers, delete the first card number from the total set of card numbers to obtain the starting card number set.
[0017] In the embodiment of the present application, screen the total set of card numbers according to the second preset rule to obtain the ending card number set, including:
[0018] Increment the value of the custom bit of all card numbers in the total set of card numbers by 1 to obtain the second card number;
[0019] Determine whether there is a second card number in the total set of card numbers;
[0020] When there is a second card number in the total set of card numbers, delete the second card number from the total set of card numbers to obtain the ending card number set.
[0021] In the embodiment of the present application, calculate the number segment according to the starting card number set and the ending card number set to obtain the number segment set, including:
[0022] Read the current bank card number from the starting card number set;
[0023] Search for the third card number in the ending card number set according to the current bank card number;
[0024] Use the current bank card number as the starting card number of the current number segment, use the third card number as the ending card number of the current number segment, and generate the current number segment according to the starting card number and the ending card number;
[0025] Return to the step of reading the current bank card number from the starting card number set until all bank card numbers in the starting card number set are read to obtain all number segments;
[0026] Determine all number segments as the number segment set.
[0027] In the embodiment of the present application, searching for the third card number in the ending card number set according to the current bank card number includes:
[0028] Obtain the value of the custom bit of the current bank card number;
[0029] Search for the bank card number in the ending card number set whose value of the custom bit is greater than or equal to the value of the custom bit of the current bank card number to obtain the search result;
[0030] Determine the bank card number with the smallest value of the custom bit from the search result;
[0031] Determine the bank card number with the smallest value of the custom bit as the third card number.
[0032] In the embodiment of the present application, determine the number of bank card numbers in each number segment of the number segment set;
[0033] Generate a verification list based on the number segment and the number of bank card numbers corresponding to the number segment.
[0034] The second aspect of the present application provides a processor configured to execute the above method for bank card number segment management.
[0035] The third aspect of the present application provides a device for bank card number segment management, including the above processor.
[0036] The fourth aspect of the present application provides a machine-readable storage medium, on which instructions are stored, and when the instructions are executed by the processor, the processor is configured to execute the above method for bank card number segment management.
[0037] The fifth aspect of the present application provides a computer program product, including a computer program, which when executed by the processor implements the above method for bank card number segment management.
[0038] Through the above technical solutions, determine the total set of bank card numbers; screen the total set of card numbers according to the first preset rule to obtain the starting card number set; screen the total set of card numbers according to the second preset rule to obtain the ending card number set; calculate the number segments based on the starting card number set and the ending card number set to obtain the number segment set. By calculating the number segment set of bank cards, the bank can perform batch card production and bank card verification work according to the number segments, avoid errors during operations such as card production, sorting, handover, and warehousing, and improve the card production efficiency.
[0039] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation part. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The drawings are used to provide a further understanding of the embodiments of the present application, and constitute a part of the specification, and are used to explain the embodiments of the present application together with the following specific implementation, but do not constitute a limitation to the embodiments of the present application. In the drawings:
[0041] Figure 1 Schematically shows a flowchart of a method for bank card number segment management according to an embodiment of the present application;
[0042] Figure 2 Schematically shows Figure 1 The schematic diagram of generating the number segment set in
[0043] Figure 3 Schematically shows a flowchart of a method for bank card number segment management according to another embodiment of the present application;
[0044] Figure 4 Schematically shows the internal structure diagram of a computer device according to an embodiment of the present application. Detailed implementation manners
[0045] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the specific implementation manners described herein are only for explaining and illustrating the embodiments of the present application, and are not used to limit the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts belong to the scope protected by the present application.
[0046] It should be noted that if there are directional indications (such as up, down, left, right, front, back,...) involved in the embodiments of the present application, the directional indications are only used to explain the relative positional relationship and movement conditions between components in a specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indications will also change accordingly.
[0047] In addition, if there are descriptions such as "first" and "second" involved in the embodiments of the present application, the descriptions of "first", "second", etc. are only for descriptive purposes, and cannot be understood as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions between various embodiments may be combined with each other, but it must be based on the ability of those of ordinary skill in the art to implement. When the combination of technical solutions results in contradictions or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present application.
[0048] Figure 1 Schematically shown is a flowchart of a method for bank card number segment management according to an embodiment of the present application. As Figure 1 shown, in the embodiment of the present application, a method for bank card number segment management is provided, which may include the following steps:
[0049] Step 202, determining the total set of bank card numbers.
[0050] According to the bank card specification recorded in the financial industry standard JR / T0052-2020 of the People's Republic of China, the bank card number is the number used to identify the issuing institution and the card, and is composed of the issuing institution identification code, the issuing institution self-defined bit, and the check bit.
[0051] It should be understood that for a continuous number range, usually the smallest number and the largest number in the range represent a certain number segment. For example, for 10 consecutive numbers 0001, 0002... 0010, the number segment can be represented as 0001~0010. For a bank card, the number segment of the card number can be calculated according to the value of the custom bit in the middle of the card number. Taking the card number with 19 digits, the first 6 digits are identification codes, the middle 12 digits are custom bits, and the last 1 digit is a check bit as an example. For 10 consecutive card numbers XXXXXX00000000001X, XXXXXX 00000000002 X... XXXXXX 00000000010 X, the number segment can be represented as XXXXXX 00000000001 X~XXXXXX 00000000010 X. By calculating the number segment of the card number, the card manufacturing institution can perform batch card manufacturing according to the number segment, and at the same time can generate a verification list according to the number segment, which is convenient for verifying the physical bank card after card manufacturing, for the warehousing handover of the bank card, and for the sorting of the warehoused bank cards.
[0052] In a specific implementation, the total set of card numbers can be determined in various ways. In one example, a card manufacturing task sheet can be obtained, and the total set of card numbers can be determined according to the card numbers to be manufactured on the card manufacturing task sheet.
[0053] Step 204, screen the total set of card numbers according to the first preset rule to obtain the starting card number set.
[0054] It should be noted that the values of the custom bits of different card numbers in the total set of card numbers may be continuous or discontinuous, that is, for the total set of card numbers, multiple number segments may need to be calculated. Therefore, it is necessary to determine the starting card number and the ending card number of each number segment. Figure 2 Schematically not shown Figure 1 in the schematic diagram of generating the number segment set. In Figure 2 the example shown, there are seven bank cards in the total set of card numbers M, and the values of the custom bits are 1, 2, 3, 5, 6, 8, and 12 respectively. According to the total set of card numbers M, there are a total of four number segments in the number segment set R, which are: the card number corresponding to 1 - the card number corresponding to 3, the card number corresponding to 5 - the card number corresponding to 6, the card number corresponding to 8 - the card number corresponding to 8, the card number corresponding to 12 - the card number corresponding to 12. The value of the custom bit of the starting card number of the first number segment is 1, and the value of the custom bit of the ending card number is 3; the value of the custom bit of the starting card number of the second number segment is 5, and the value of the custom bit of the ending card number is 3; the value of the custom bit of the starting card number of the third number segment is 8, and the value of the custom bit of the ending card number is 8; the value of the custom bit of the starting card number of the fourth number segment is 12, and the value of the custom bit of the ending card number is 12.
[0055] In the embodiments of the present application, the starting card number set is the set of starting card numbers of all number segments. In one example, the value of the custom bit of all card numbers in the total card number set can be decreased by 1 to obtain a first card number; it is determined whether the first card number exists in the total card number set; in the case where the first card number exists in the total card number set, the first card number is deleted from the total card number set to obtain the starting card number set.
[0056] Continue to refer to Figure 2 , for the total card number set M, if there exists a card number whose value of the custom bit is decreased by 1, the corresponding card number is deleted, and finally the starting card number set A is obtained.
[0057] Step 206, screen the total card number set according to the second preset rule to obtain the ending card number set.
[0058] In the embodiments of the present application, the ending card number set is the set of ending card numbers of all number segments. In one example, the value of the custom bit of all card numbers in the total card number set can be increased by 1 to obtain a second card number; it is determined whether the second card number exists in the total card number set; in the case where the second card number exists in the total card number set, the second card number is deleted from the total card number set to obtain the ending card number set.
[0059] Continue to refer to Figure 2 , for the total card number set M, if there exists a card number whose value of the custom bit is increased by 1, the corresponding card number is deleted, and finally the ending card number set B is obtained.
[0060] Step 208, calculate the number segments according to the starting card number set and the ending card number set to obtain the number segment set.
[0061] In a specific implementation process, the current bank card number can be read from the starting card number set; the third card number is found from the ending card number set according to the current bank card number; the current bank card number is used as the starting card number of the current number segment, the third card number is used as the ending card number of the current number segment, and the current number segment is generated according to the starting card number and the ending card number; return to the step of reading the current bank card number from the starting card number set until all the bank card numbers in the starting card number set are read to obtain all the number segments; determine all the number segments as the number segment set.
[0062] In one example, the value of the custom bit of the current bank card number can be obtained; a bank card number whose value of the custom bit is greater than or equal to the value of the custom bit of the current bank card number is found from the ending card number set to obtain a search result; the bank card number with the smallest value of the custom bit is determined from the search result; the bank card number with the smallest value of the custom bit is determined as the third card number.
[0063] Continue to refer to Figure 2, in the starting card number set A, for each bank card number a, find the smallest bank card number b (i.e., the third card number) in the ending card number set B whose custom bit value is greater than or equal to the custom bit value of the bank card number a. Combine the bank card number a and the bank card number b to form a number segment. Traverse all the bank card numbers in the starting card number set A to obtain all the number segments and form a number segment set.
[0064] In an example, the generation process of the number segment set can be implemented through Structured Query Language (SQL) statements. For example, use the SELECT statement to find the card numbers with the custom bit value decreased by 1 in the total card number set, delete the corresponding card numbers, and obtain the starting card number set A; then use the SELECT statement to find the card numbers with the custom bit value increased by 1 in the total card number set, delete the corresponding card numbers, and obtain the ending card number set B; find the smallest bank card number b in the ending card number set B whose custom bit value is greater than or equal to the custom bit value of the bank card number a in the starting card number set A; combine the bank card number a and the bank card number b to generate a number segment.
[0065] In the embodiment of the present application, by determining the total card number set of bank cards; screening the total card number set according to the first preset rule to obtain the starting card number set; screening the card number set according to the second preset rule to obtain the ending card number set; calculating the number segments based on the starting card number set and the ending card number set to obtain the number segment set. The calculation of the number segments is realized through the screening of the card numbers, which improves the calculation efficiency of the number segment set, provides a basis for the bank's batch card production and the verification work of bank cards, avoids errors in operations such as card production, sorting, handover, and warehousing, and improves the card production efficiency.
[0066] Figure 3 Schematically shows a flowchart of a method for bank card number segment management according to an embodiment of the present application. As Figure 3 shown, in the embodiment of the present application, a method for bank card number segment management is provided, which may further include the following steps:
[0067] Step 210, determine the number of bank card numbers in each number segment in the number segment set.
[0068] Step 212, generate a verification list according to the number segment and the number of bank card numbers corresponding to the number segment.
[0069] Among them, the verification list can be a card production list for verifying the physical quantity of bank cards after card production, or a handover list for the physical warehousing of bank cards, or a sorting list for sorting the warehoused bank cards. The embodiment of the present application does not limit this.
[0070] In one example, the bank name, branch name, and branch number can be obtained, and a card production list can be generated based on the bank name, branch name, branch number, number segment, and the quantity of bank cards corresponding to each number segment. After card production is completed, the quantity verification of bank cards can be completed according to the number segments and quantities of bank cards applied for by each branch in the card production list.
[0071] In another example, information such as the name of the bank card, card type, product number, recipient, and giver can be obtained, and a handover list can be generated based on this information, the starting card number, ending card number, and quantity in the number segment. When the bank cards are warehoused, the bank cards are verified and warehoused according to the handover list.
[0072] In another example, the bank name, branch name, and branch number can be obtained, and a sorting list can be generated based on the bank name, branch name, branch number, number segment, and quantity. After the bank cards are warehoused, the bank cards are sorted according to the sorting list.
[0073] In the embodiments of the present application, by generating a verification list according to the number segment set, business personnel can verify bank cards according to the verification list, reducing the probability of errors in links such as card production, sorting, handover, and warehousing, and improving the work experience of business personnel.
[0074] Figure 1 and Figure 3 is a schematic flowchart of a method for bank card number segment management in an embodiment. It should be understood that although Figure 1 and Figure 3 the steps in the flowchart are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear indication in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, Figure 1 and Figure 3 at least a part of the steps in
[0075] can include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or sub-steps or stages of other steps.
[0075] The embodiments of the present application provide a processor for running a program, where when the program runs, it executes the above-mentioned method for bank card number segment management.
[0076] The embodiments of the present application provide a device for bank card number segment management, including the above-mentioned processor.
[0077] An embodiment of the present application provides a machine-readable storage medium, on which a program is stored, and when the program is executed by a processor, the method for bank card number segment management described above is implemented.
[0078] An embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method for bank card number segment management described above is implemented.
[0079] An embodiment of the present application provides a computer device, which may be a terminal, and its internal structure diagram may be as Figure 4 shown. The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05, and a memory (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor A01, a method for bank card number segment management is implemented. The display screen A04 of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device A05 of the computer device may be a touch layer covered on the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.
[0080] Those skilled in the art can understand that Figure 4 the structure shown in
[0081] is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0081] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored on the memory and executable on the processor. When the processor executes the program, the following steps are implemented: determining the total set of bank card numbers; screening the total set of bank card numbers according to a first preset rule to obtain a starting card number set; screening the total set of bank card numbers according to a second preset rule to obtain an ending card number set; calculating number segments based on the starting card number set and the ending card number set to obtain a number segment set.
[0082] In one embodiment, the method for bank card number segment management further includes: obtaining a card production task list; determining the total set of bank card numbers according to the card production task list.
[0083] In one embodiment, the method for managing bank card number segments further includes: subtracting 1 from the values of the custom bits of all the card numbers in the total card number set to obtain a first card number; determining whether the first card number exists in the total card number set; and when the first card number exists in the total card number set, deleting the first card number from the total card number set to obtain a starting card number set.
[0084] In one embodiment, the method for managing bank card number segments further includes: adding 1 to the values of the custom bits of all the card numbers in the total card number set to obtain a second card number; determining whether the second card number exists in the total card number set; and when the second card number exists in the total card number set, deleting the second card number from the total card number set to obtain an ending card number set.
[0085] In one embodiment, the method for managing bank card number segments further includes: reading the current bank card number from the starting card number set; looking up a third card number in the ending card number set according to the current bank card number; using the current bank card number as the starting card number of the current number segment, using the third card number as the ending card number of the current number segment, and generating the current number segment according to the starting card number and the ending card number; returning to the step of reading the current bank card number from the starting card number set until all the bank card numbers in the starting card number set are read to obtain all the number segments; and determining all the number segments as a number segment set.
[0086] In one embodiment, the method for managing bank card number segments further includes: obtaining the value of the custom bit of the current bank card number; looking up the bank card numbers whose custom bit values are greater than or equal to the custom bit value of the current bank card number in the ending card number set to obtain a search result; determining the bank card number with the smallest custom bit value from the search result; and determining the bank card number with the smallest custom bit value as the third card number.
[0087] In one embodiment, the method for managing bank card number segments further includes: determining the number of bank card numbers in each number segment in the number segment set; and generating a verification list according to the number segments and the number of corresponding bank card numbers.
[0088] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0089] This application is described with reference to the flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, as well as the combination of flows and / or blocks in the flowchart and / or block diagram. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a means for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or a means for implementing the functions specified in one or more of the blocks.
[0090] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, such that the instructions stored in the computer-readable memory produce a manufacture including an instruction means that implements the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or a means for implementing the functions specified in one or more of the blocks.
[0091] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operational steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or a means for implementing the functions specified in one or more of the blocks.
[0092] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0093] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM), and / or non-volatile memory such as read-only memory (ROM) or flash memory. The memory is an example of computer-readable media.
[0094] A computer-readable medium includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transitory medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer-readable medium does not include transitory computer-readable media, such as modulated data signals and carrier waves.
[0095] It should also be noted that the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, such that a process, method, article or apparatus comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or apparatus. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising the element.
[0096] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.
Claims
1. A method for managing bank card number segments, characterized in that, it includes: Determine the total set of bank card numbers; Filter the total set of card numbers according to the first preset rule to obtain the starting card number set; Filter the total set of card numbers according to the second preset rule to obtain the ending card number set; Calculate the number segments based on the starting card number set and the ending card number set to obtain the number segment set; Among them, the step of filtering the total set of card numbers according to the first preset rule to obtain the starting card number set includes: Subtract 1 from the value of the custom bit of all card numbers in the total set of card numbers to obtain the first card number; Determine whether the first card number exists in the total set of card numbers; If the first card number exists in the total set of card numbers, delete the first card number from the total set of card numbers to obtain the starting card number set; The step of filtering the total set of card numbers according to the second preset rule to obtain the ending card number set includes: Add 1 to the value of the custom bit of all card numbers in the total set of card numbers to obtain the second card number; Determine whether the second card number exists in the total set of card numbers; If the second card number exists in the total set of card numbers, delete the second card number from the total set of card numbers to obtain the ending card number set; The step of calculating the number segments based on the starting card number set and the ending card number set to obtain the number segment set includes: Read the current bank card number from the starting card number set; Search for the third card number from the ending card number set according to the current bank card number; Use the current bank card number as the starting card number of the current number segment, use the third card number as the ending card number of the current number segment, and generate the current number segment according to the starting card number and the ending card number; Return to the step of reading the current bank card number from the starting card number set until all bank card numbers in the starting card number set are read to obtain all number segments; Determine all number segments as the number segment set; The step of searching for the third card number from the ending card number set according to the current bank card number includes: Obtain the value of the custom bit of the current bank card number; Search for the bank card number whose value of the custom bit is greater than or equal to the value of the custom bit of the current bank card number from the ending card number set to obtain the search result; Determine the bank card number with the smallest value of the custom bit from the search result; Determine the bank card number with the smallest value of the custom bit as the third card number.
2. The method according to claim 1, characterized in that, the step of determining the total set of bank card numbers includes: Obtain the card making task list; Determine the total set of bank card numbers according to the card making task list.
3. The method according to claim 1, characterized in that, it further includes: Determine the number of bank card numbers in each number segment in the number segment set; Generate a verification list according to the number segment and the number of bank card numbers corresponding to the number segment.
4. A processor, characterized in that, configured to execute the method for managing bank card number segments according to any one of claims 1 to 3.
5. An apparatus for managing bank card number segments, It is characterized in that It includes a processor according to claim 4.
6. A machine-readable storage medium, on which instructions are stored. It is characterized in that When the instructions are executed by a processor, the processor is configured to execute the method for bank card number segment management according to any one of claims 1 to 3.
7. A computer program product, including a computer program. It is characterized in that When the computer program is executed by a processor, it implements the method for bank card number segment management according to any one of claims 1 to 3.
Citation Information
Patent Citations
Data processing method, apparatus, apparatus and medium
CN109471917A
Bank card manufacturing data processing method, system and device and storage medium
CN112215566A