[go: up one dir, main page]

CN113342819B - Card number generation method, device, equipment and storage medium - Google Patents

Card number generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN113342819B
CN113342819B CN202110718474.XA CN202110718474A CN113342819B CN 113342819 B CN113342819 B CN 113342819B CN 202110718474 A CN202110718474 A CN 202110718474A CN 113342819 B CN113342819 B CN 113342819B
Authority
CN
China
Prior art keywords
card
identifier
bitmap
segment
numbers
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110718474.XA
Other languages
Chinese (zh)
Other versions
CN113342819A (en
Inventor
王威
姜黎明
王大飞
江旻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN202110718474.XA priority Critical patent/CN113342819B/en
Publication of CN113342819A publication Critical patent/CN113342819A/en
Application granted granted Critical
Publication of CN113342819B publication Critical patent/CN113342819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2237Vectors, bitmaps or matrices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2474Sequence data queries, e.g. querying versioned data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computational Linguistics (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a card number generation method, a card number generation device and a computer readable storage medium, wherein the method comprises the following steps: acquiring a card selecting request; wherein, the card selecting request carries the card product number; acquiring an intra-segment compression bitmap corresponding to an available card segment in a card segment allocation table associated with a card product number; the in-segment compression bit map comprises an ordered character string constructed by character identifiers and numbers, wherein the character identifiers are used for indicating whether card numbers corresponding to serial numbers at positions where the character identifiers are located are in an allocated state or not, and the numbers are used for indicating the number of the card numbers in a continuous state; acquiring a serial number of an available card number in the available card section based on a first identifier in the intra-section compression bitmap and a first number associated with the first identifier; the first identifier is used for indicating that the card number of the serial number corresponding to the position of the first identifier is in an unassigned state, and the character identifier comprises the first identifier; the card number is generated based on the card product number, the available card segments, and the serial number.

Description

Card number generation method, device, equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of data processing of financial science and technology (Fintech), and relates to a card number generation method, a card number generation device, card number generation equipment and a computer readable storage medium.
Background
With the development of computer technology, more and more technologies are applied in the financial field, and the traditional financial industry is gradually changed to the financial technology (Fintech), however, the financial technology also has higher requirements on the technology due to the requirements of safety and real-time performance of the financial industry.
In the field of financial science and technology, the whole card number is generated in related technology and stored in a local database, and the card number stored in the local database is automatically allocated when a user opens a card. It can be seen that the card number in the related art must be generated in advance, and there is a need to provide a method for generating the card number in real time.
Disclosure of Invention
The embodiment of the application provides a card number generation method, a card number generation device, card number generation equipment and a computer readable storage medium, which are used for solving the problem that the card number in the related art is required to be generated in advance.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a card number generation method, which comprises the following steps:
Acquiring a card selecting request; wherein the card selection request carries a card product number;
Acquiring an intra-segment compression bitmap corresponding to an available card segment in a card segment allocation table associated with the card product number; the in-segment compression bit map comprises an ordered character string constructed by character identifiers and numbers, the character identifiers are used for indicating whether the card numbers of serial numbers corresponding to the positions of the character identifiers are in an allocated state or not, and the numbers are used for indicating the number of the card numbers in a continuous state;
Acquiring a serial number of an available card number in the available card section based on a first identifier in the intra-section compression bitmap and a first number associated with the first identifier; the first identifier is used for indicating that a card number of a serial number corresponding to the position of the first identifier is in an unassigned state, and the character identifier comprises the first identifier;
And generating a card number based on the card product number, the available card segments and the serial number.
A card number generating apparatus comprising:
The acquisition module is used for acquiring a card selection request; wherein the card selection request carries a card product number;
The obtaining module is used for obtaining an intra-segment compression bitmap corresponding to an available card segment in a card segment allocation table associated with the card product number; the in-segment compression bit map comprises an ordered character string constructed by character identifiers and numbers, the character identifiers are used for indicating whether the card numbers of serial numbers corresponding to the positions of the character identifiers are in an allocated state or not, and the numbers are used for indicating the number of the card numbers in a continuous state;
The acquisition module is used for acquiring the serial numbers of the available card numbers in the available card segments based on the first identifications in the intra-segment compression bitmap and the first numbers associated with the first identifications; the first identifier is used for indicating that a card number of a serial number corresponding to the position of the first identifier is in an unassigned state, and the character identifier comprises the first identifier;
And the processing module is used for generating a card number based on the card product number, the available card section and the serial number.
The embodiment of the application provides equipment, which comprises the following components:
A memory for storing executable instructions; and the processor is used for realizing the method when executing the executable instructions stored in the memory.
The embodiment of the application provides a computer readable storage medium, which stores executable instructions for causing a processor to execute the method.
The embodiment of the application has the following beneficial effects:
Obtaining a card selecting request; wherein, the card selecting request carries the card product number; acquiring an intra-segment compression bitmap corresponding to an available card segment in a card segment allocation table associated with a card product number; the method comprises the steps that for a high-performance processing scene such as card selection, a total number of card numbers is enlarged by adopting an intra-segment compression bitmap, wherein the intra-segment compression bitmap comprises character identifiers and ordered character strings constructed by numbers, the character identifiers are used for indicating whether the card numbers with corresponding serial numbers at positions where the character identifiers are located are in an allocated state, and the numbers are used for indicating the number of the card numbers in a continuous state; further, based on a first identifier in the intra-segment compression bitmap and a first number associated with the first identifier, the serial number of the available card number in the available card segment is rapidly acquired; the first identifier is used for indicating that the card number of the serial number corresponding to the position where the first identifier is located is in an unassigned state, and the character identifier comprises the first identifier; generating a card number in real time based on the card product number, the available card section and the serial number; therefore, the problem that the card numbers in the related art are required to be generated in advance is solved, the method for generating the card numbers in real time is provided, excessive occupation of storage space caused by generating all the card numbers in advance is avoided, and the use performance of the database is improved.
Drawings
FIG. 1 is a schematic diagram of an alternative architecture of a server according to an embodiment of the present application;
Fig. 2 is a schematic flow chart of an alternative method for generating a card number according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an implementation of a bitmap compression algorithm according to an embodiment of the present application;
fig. 4 is a schematic flow chart of an alternative method for generating a card number according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of an alternative method for generating a card number according to an embodiment of the present application;
FIG. 6 is a schematic flow chart of an alternative method for generating a card number according to an embodiment of the present application;
fig. 7 is a schematic flow chart of an alternative method for generating a card number according to an embodiment of the present application;
fig. 8 is a schematic view of a scene flow of updating a compressed bitmap in a post section according to an embodiment of the present application.
Detailed Description
The present application will be further described in detail with reference to the accompanying drawings, for the purpose of making the objects, technical solutions and advantages of the present application more apparent, and the described embodiments should not be construed as limiting the present application, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which embodiments of this application belong. The terminology used in the embodiments of the application is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
An exemplary application of the card number generating device provided by the embodiment of the present application is described below, and the card number generating device provided by the embodiment of the present application may be implemented as a notebook computer, a tablet computer, a desktop computer, a mobile device (for example, a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable game device), an intelligent robot, or any terminal having a screen display function, or may be implemented as a server. Next, an exemplary application when the card number generating device is implemented as a server will be described.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a server 100 according to an embodiment of the present application, where the server 100 shown in fig. 1 includes: at least one processor 110, at least one network interface 120, a user interface 130, and a memory 150. The various components in server 100 are coupled together by bus system 140. It is understood that the bus system 140 is used to enable connected communications between these components. The bus system 140 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled in fig. 1 as bus system 140.
The Processor 110 may be an integrated circuit chip having signal processing capabilities such as a general purpose Processor, such as a microprocessor or any conventional Processor, a digital signal Processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like.
The user interface 130 includes one or more output devices 131, including one or more speakers and/or one or more visual displays, that enable presentation of media content. The user interface 130 also includes one or more input devices 132, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
The memory 150 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid state memory, hard drives, optical drives, and the like. Memory 150 optionally includes one or more storage devices physically located remote from processor 110. Memory 150 includes volatile memory or nonvolatile memory, and may also include both volatile and nonvolatile memory. The non-volatile Memory may be a Read Only Memory (ROM) and the volatile Memory may be a random access Memory (Random Access Memory, RAM). The memory 150 described in embodiments of the present application is intended to comprise any suitable type of memory. In some embodiments, memory 150 is capable of storing data to support various operations, examples of which include programs, modules and data structures, or subsets or supersets thereof, as exemplified below.
An operating system 151 including system programs for handling various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and handling hardware-based tasks;
Network communication module 152 for reaching other computing devices via one or more (wired or wireless) network interfaces 120, exemplary network interfaces 120 include: bluetooth, wireless compatibility authentication (Wi-Fi), and universal serial bus (Universal Serial Bus, USB), etc.;
An input processing module 153 for detecting one or more user inputs or interactions from one of the one or more input devices 132 and translating the detected inputs or interactions.
In some embodiments, the apparatus provided in the embodiments of the present application may be implemented in software, and fig. 1 shows a card number generating apparatus 154 stored in a memory 150, where the card number generating apparatus 154 may be a card number generating apparatus in a server 100, and may be software in the form of a program and a plug-in, and includes the following software modules: the acquisition module 1541, the processing module 1542, which are logical, may be arbitrarily combined or further split depending on the functions implemented. The functions of the respective modules will be described hereinafter.
In other embodiments, the apparatus provided by the embodiments of the present application may be implemented in hardware, and by way of example, the apparatus provided by the embodiments of the present application may be a processor in the form of a hardware decoding processor that is programmed to perform the card number generation method provided by the embodiments of the present application, for example, the processor in the form of a hardware decoding processor may employ one or more Application-specific integrated circuits (ASICs), DSPs, programmable logic devices (Programmable Logic Device, PLDs), complex Programmable logic devices (Complex Programmable Logic Device, CPLDs), field-Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA), or other electronic components.
The card number generation method provided by the embodiment of the present application will be described below in connection with exemplary applications and implementations of the server 100 provided by the embodiment of the present application. Referring to fig. 2, fig. 2 is a schematic flow chart of an alternative method for generating a card number according to an embodiment of the present application, which will be described with reference to the steps shown in fig. 2,
Step S201, a card selection request is acquired.
Wherein the card selection request carries a card product number.
In the embodiment of the application, when the user inputs the card selection request, the server acquires the card selection request, and the card selection request carries the card product number. The card product number is used to indicate the type of card product that is requested to be opened.
In one possible scenario, after receiving an external card selection request, i.e. a card opening request, the server finds all the card segments allocated to the card product according to the card product number carried by the card selection request. In the embodiment of the application, 1 ten thousand of card sections are split into one section, one section is one record, the number of the allocated cards of one product is not less than 1 ten thousand from the service level analysis, meanwhile, for large products (tens of millions/hundred million levels), the card sections can be split according to 1 ten thousand of split card numbers, concurrency is increased, and the problem of hot spot recording caused by the card sections is avoided, so that a large number of preemptive failures are caused, the updated pressing performance of a single hot spot record is represented as 200 transactions per second (Transactions Per Second, TPS), and the transaction TPS requirements of different products are met.
Step S202, obtaining an in-segment compression bitmap corresponding to an available card segment in a card segment allocation table associated with a card product number.
The in-segment compression bit map comprises an ordered character string constructed by character identifiers and numbers, the character identifiers are used for indicating whether card numbers corresponding to serial numbers at positions where the character identifiers are located are in an allocated state, and the numbers are used for indicating the number of the card numbers in a continuous state. The character identifiers comprise first identifiers and second identifiers, the first identifiers are used for indicating that the card numbers corresponding to the serial numbers at the positions of the first identifiers are in an unassigned state, and the second identifiers are used for indicating that the card numbers corresponding to the serial numbers at the positions of the second identifiers are in an assigned state.
Here, the first identifier, such as a character identifier N, represents that the card number is available without being allocated, and the second identifier, such as a character identifier Y, represents that the card number is allocated and occupied; the value of the continuous state is represented by a number, and the continuous state includes a state of being continuously allocated or a state of not being continuously allocated, for example, a card number from 0 to 9 is unoccupied, and is represented by N10.
In the embodiment of the application, under the condition of obtaining the card product number, further, a card section allocation table associated with the card product number can be obtained, and at least available card sections and intra-section compression bitmaps corresponding to the available card sections are recorded in the card section allocation table. The intra-segment compression bit map corresponding to the available card segment is used to query the sequence number of the unused card number.
The card number comprises the following parts: card issuer identification number (Bank Identification Number, BIN) +card section+serial number+1 bit check bit. If the method of advanced card number production is adopted, a large number of card numbers can be generated, and storage resources are wasted.
When a new record in the segment is initialized, the number of available card numbers is a preset number, for example 10000, which can be represented as N10000, when a card opening transaction is obtained, a query is performed from a certain position of the compressed bitmap, such as the leftmost side, a first N value is found, then a next N/Y value is found from the position of the N value, if the tail of the compressed bitmap is queried, the total length of the bitmap is used as an end position, and a value from the N value to the next N/Y value represents a continuous unused card number segment.
Step S203, based on the first identifier in the intra-segment compression bitmap and the first number associated with the first identifier, a serial number of the available card number in the available card segment is obtained.
In the embodiment of the application, the serial number part in the card number has the sequence, and the corresponding card number can be constructed according to the serial number by acquiring the serial number of the serial number part in the sequence. In the embodiment of the present application, step S203 may obtain the serial number of the available card number in the available card segment based on the intra-segment compression bitmap and the random number corresponding to the available card segment when obtaining the serial number of the available card number in the available card segment.
For example, referring to fig. 3, assuming that given a random number between 1-10000 is 3862, when a card number between 3862 is occupied, the intra-segment compression bitmap corresponding to the available card segment may be updated to N3861Y1N6238, that is, none of the card numbers of consecutive preceding card segments 1-3861 is occupied, the card number between 3862 and 10000 is unoccupied, when a request is made again, the search is started from the leftmost side, the first N is 3861, the number between 1-3861 is selected randomly as 732, the intra-segment compression bitmap is split, and the updated intra-segment compression bitmap is as follows: N731Y1N3129Y1N6138, and so on, the policy can be used to update the intra-segment compression bitmap and update the available card numbers and the number of used cards each time a new card number is occupied, and update the used-up status when all are used up, so that no more card selection operation is performed for this segment.
The method for generating the card number adopts the compressed bitmap, because the compressed bitmap uses character to identify the state of N/Y memory card numbers and uses numbers to store corresponding numbers, when inquiring, a first N character is searched from front to back by a specific inquiry index, for example, the unused card number can be found, on the aspect of time complexity, one unused card number in the searching card section is Y9999N1, the performance is O (1), on the aspect of storage, the worst case compression can generate the following data form N1Y1 … … N1Y1, the data form of the card number with available interval is adopted, the number of the card storage bytes of ten thousand continuous card sections is 20000, and for the scene, the first continuous unused card section is selected from front to back in each inquiry, and random values are made, so that the compression performance can be better ensured, the number of the card storage bytes of ten thousand continuous card sections is about 1000 bytes, whether 20000 bytes or 1000 bytes are used, and the card number of the ten thousand continuous card sections are generated in the space of a distributed database is seen, and the scheme of the application is optimized.
Step S204, based on the card product number, the available card segments and the serial number, a card number is generated.
In the embodiment of the application, under the condition that the card product number, the available card section and the serial number are obtained, the card product number, the available card section and the serial number can be spliced according to a card splicing mode to generate the card number.
The card number generation method provided by the application is characterized by obtaining a card selection request; wherein, the card selecting request carries the card product number; acquiring an intra-segment compression bitmap corresponding to an available card segment in a card segment allocation table associated with a card product number; the method comprises the steps that for a high-performance processing scene such as card selection, a total number of card numbers is enlarged by adopting an intra-segment compression bitmap, wherein the intra-segment compression bitmap comprises character identifiers and ordered character strings constructed by numbers, the character identifiers are used for indicating whether the card numbers with corresponding serial numbers at positions where the character identifiers are located are in an allocated state, and the numbers are used for indicating the number of the card numbers in a continuous state; further, based on a first identifier in the intra-segment compression bitmap and a first number associated with the first identifier, the serial number of the available card number in the available card segment is rapidly acquired; the first identifier is used for indicating that the card number of the serial number corresponding to the position where the first identifier is located is in an unassigned state, and the character identifier comprises the first identifier; generating a card number in real time based on the card product number, the available card section and the serial number; therefore, the problem that the card numbers in the related art are required to be generated in advance is solved, the method for generating the card numbers in real time is provided, excessive occupation of storage space caused by generating all the card numbers in advance is avoided, and the use performance of the database is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of an alternative method for generating a card number according to an embodiment of the present application, which will be described with reference to the steps shown in fig. 4,
Step S301, a card selection request is acquired.
Wherein the card selection request carries a card product number.
Step S302, creating a query index based on the card product number and the card segment identification information.
The card section identification information is used for indicating whether the card number in the section is allocated.
In the embodiment of the application, the card section allocation table also comprises card section identification information for indicating whether the card number in the section is allocated.
After receiving the external card selection request, inquiring the unused card number segments allocated to the card product according to the card product number carried by the card selection request, and in order to increase randomness, inquiring by using random of the database, wherein the inquired structured inquiry language (Structured Query Language, SQL) is as follows:
SELECT*FROM TM_CARD_SEG WHERE RUN_OUT=’N’AND PRODUCT_CD=’100070’ORDER BY RAND()LIMIT 1;
step S303, inquiring in the distributed database by using an inquiry index to obtain the available card section.
In the embodiment of the application, the SQL language is used for inquiring, a CARD section record can be obtained randomly, meanwhile, in the TM_card_SEG table, the joint index of the CARD section identification information (RUN_OUT) and the CARD PRODUCT number (PRODUCT_CD) is created, and the database index can be utilized to rapidly locate the available CARD section under the CARD PRODUCT.
In other embodiments of the present application, step S303 may further execute the following steps when the available card segment is obtained by querying in the distributed database with a query index: locking the available card section; wherein, available card section after locking is in the locking state. Here, pessimistic locks using a distributed database may be used to lock the available card segment records, preventing data inconsistencies resulting from concurrency, and thus ensuring correctness of the compressed bitmap update timing in the available card segment under a high concurrency scenario.
Step S304, obtaining an in-segment compression bitmap corresponding to the available card segment in the card segment allocation table associated with the card product number.
In the embodiment of the application, the intra-segment compression bitmap comprises an ordered character string constructed by character identifiers and digits, the character identifiers are used for indicating whether the card numbers corresponding to the serial numbers at the positions of the character identifiers are in an allocated state, the digits are used for indicating the number of the card numbers in a continuous state, and the continuous state comprises a continuous allocated state or a continuous unallocated state.
Step S305, based on the first identifier in the intra-segment compression bitmap and the first number associated with the first identifier, a serial number of the available card number in the available card segment is obtained.
In the embodiment of the application, the intra-segment compression bitmap comprises an ordered character string, and in the process of acquiring the serial numbers of the available card numbers in the available card segments based on the intra-segment compression bitmap, the serial numbers of the available card numbers in any available card segment can be acquired based on the first numbers associated with N and N in the intra-segment compression bitmap; the serial numbers of the available card numbers in the available card segments can also be obtained according to the traversing sequence in an orderly traversing mode. It should be noted that, in the manner of sequential traversal, the following interval-available card number data patterns N1Y1 … … N1Y1 can be avoided as much as possible in the manner of acquiring the serial numbers of the available card numbers in the available card segments according to the traversal order, compared to the manner of acquiring the serial numbers of the available card numbers in the available card segments unordered.
In other embodiments of the present application, step S305 obtains the serial number of the available card number in the available card segment based on the first identifier in the intra-segment compression bitmap and the first number associated with the first identifier, which may be implemented by the steps shown in fig. 5:
In step S3051, a first identifier is determined according to the traversal order from front to back corresponding to the ordered string.
The first identifier is used for indicating that the card number of the serial number corresponding to the position of the first identifier is in an unassigned state, and the character identifier comprises the first identifier.
In step S3052, a first random number is determined based on the first number associated with the first identifier.
Wherein the first random number is greater than or equal to 1 and less than or equal to the first number;
Here, a random selection is made from 1 to the first number, and the first random number is used to improve the randomness of the card number selection.
Step S3053, determining the number of sequence numbers before the bitmap corresponding to the first random number in the compressed bitmap in the section, and calculating the sum of the number of sequence numbers plus 1 to obtain the sequence number.
For example, referring to fig. 8, taking the in-segment compression bitmap Y3 … N60 … Y1 … N1 as an example, for limiting to the following description, the front and rear portions of the in-segment compression bitmap Y3 … N60 … Y1 … N1 are shown in more detail in fig. 8, that is, the in-segment compression bitmap Y3N3Y5N2 … … N5N1. Here, according to the traversal sequence from front to back corresponding to the ordered character string, determining the first N in the intra-segment compression bitmap Y3N3Y5N2 … … N5N1, to find the unused card number, judging the value after N at the same time, then performing Random with the value after N as the maximum value, and finding a Random number between 1 and 3, as shown in fig. 8, where Random is a Random number between 1 and 3, and in fig. 8, the Random number is 1. Further, the number of sequence numbers before the bitmap corresponding to 1 in the compressed bitmap in the segment is determined to be 3, and the sum of 3 and 1 is calculated to obtain the sequence number of 4.
In other embodiments of the present application, step S3052 may further update the intra-segment compression bitmap after determining the first random number based on the first number associated with the first identifier, which may be implemented by the steps shown in fig. 6:
step1, performing fission treatment on part of bitmaps in the compressed bitmaps in the segments based on the first random number to obtain the bitmaps after the fission.
In the embodiment of the application, the selected first random numbers are different, and the updated intra-segment compression bitmaps are different.
Here, the intra-segment compression bitmap includes an ordered string corresponding to a partial bitmap and an ordered string corresponding to the remaining bitmaps.
The partial bitmap comprises a bitmap corresponding to the first identifier and the first number; the bitmap after fission at least comprises bitmaps corresponding to the first identifier and the second number, and bitmaps corresponding to the second identifier and the third number; the second identifier is used for indicating that the card number of the serial number corresponding to the position where the second identifier is located is in an allocated state, and the character identifier comprises the second identifier; the second number is less than the first number.
In the embodiment of the application, step1 performs fission processing on a part of bitmaps in the intra-segment compressed bitmaps based on the first random number to obtain the bitmap after fission, and the method can be realized by the following steps:
First, a first position occupied by a first random number in the partial bitmap NX1 is determined.
Wherein N is a first identifier, and X1 is a first number associated with the first identifier.
And secondly, the first position in the partial bitmap NX1 is cracked into a newly added second identifier Y, and the cracked bitmap is Y1NX1-1, NX1-1Y1 or NX2Y1NX3.
Wherein X2 and X3 are natural numbers, and the sum of X2, X3 and 1 is X1.
Here, taking still the in-segment compression bitmap Y3N3Y5N2 … … N5N1 in fig. 8 as an example, the partial bitmap NX1 is determined to be N3, and at this time, the fission exists in three cases as follows:
first, if the random number is 1 in fig. 8, it indicates that the first bit needs to be occupied, and the first bit is changed to Y, then N3 is changed to Y1N2, then the nearest N/Y value is found forward and backward, as shown in fig. 8, the next N/Y is Y5, the last N/Y value in the bitmap after being split is Y1N2, and the last N/Y value is N, unlike Y, and the previous N/Y value is Y3, and the previous map of the bitmap after being split is Y1N2, and then the bitmap after being split can be combined, and the combination of Y3 and Y1 becomes Y4, and then a new bitmap Y4N2Y5N2 … … N1 is generated.
Second, if the random number is 2, it indicates that the second bit is required to be occupied, and the second bit is changed into Y, then N3 is changed into N1Y1N1, and then the nearest value of N/Y is found forward and backward, respectively, and the next value of N/Y is Y5, and the bitmap after fission is N1Y1N1, wherein the last value of N/Y is N, different from Y, and cannot be combined, and the previous value of N/Y is N1, different from the previous map of the bitmap after fission N1Y1N1, and cannot be combined, so that a new bitmap Y3N1Y1N1Y5N2 … … N1 is generated.
Thirdly, if the random number is 3, it indicates that the last bit is required to be occupied, and the last bit is changed into Y, then N3 is changed into N2Y1, then the nearest value of N/Y is found forward and backward, the next N/Y is Y5, the last N/Y value in the bitmap after fission is N2Y1, and the last N/Y value in the bitmap after fission is Y2Y 1, and the previous N/Y value is Y3, unlike the first map of the bitmap after fission N2Y1, the combination cannot be performed, and then a new bitmap Y3N2Y6N2 … … N1 is generated.
Step2, merging the rest bitmap in the intra-segment compressed bitmap and the adjacent bitmap with the second identifier in the fissionable bitmap to obtain the updated intra-segment compressed bitmap.
Wherein the remaining bitmap and the partial bitmap form an intra-segment compression bitmap.
Step S306, based on the card product number, the available card segments and the serial number, a card number is generated.
In other embodiments of the present application, step S306 generates a card number based on the card product number, the available card segments, and the serial number, which may be implemented by: splicing the card product number, the available card section and the serial number according to a card number splicing mode to generate a card number and a check bit of the card number; the check bit is used for indicating whether the card number meets the card number generation condition. Illustratively, the check bit is used to indicate whether the card number meets the correct card number generation condition.
In the embodiment of the application, after a server acquires a random card selection request, a corresponding unused card section is found according to a card product number carried by the card selection request, an available section is selected in the card section, a compression bit diagram is analyzed in the section, a card number serial number in an N state is found, the sequence diagram is updated to be occupied, the available card number and the used card number are updated, the total number of the previous N and Y states is summarized, so that the serial number of the card number is judged, a check bit is generated after the serial number is spliced according to the serial number and the known card BIN and card section information, the card number is truly generated in a card number table, and the card number is returned to a calling party, thus realizing real-time and efficient generation of the card number.
It should be noted that, in this embodiment, the descriptions of the same steps and the same content as those in other embodiments may refer to the descriptions in other embodiments, and are not repeated here.
In an implementation scenario, referring to fig. 7, fig. 7 is a schematic flow chart of an alternative method for generating a card number according to an embodiment of the present application, a process for generating a card number will be described in detail with reference to steps shown in fig. 7,
Step S401, a card selection request is acquired.
Wherein the card selection request carries a card product number.
Step S402, inquiring available card segments in the card segment allocation table according to the card product numbers.
For example, referring to fig. 8, the card BIN corresponding to the card product number is 623633, and the card segment corresponding to the card product number includes 90000000, 90000001, 90000002, at this time, the available card segment in the card segment allocation table is queried according to the card product number to be two available card segments 90000000 and 90000002, and it is assumed that the final selected available card segment is 90000002.
Step S403, locks the selected available card segments using pessimistic locks.
Here, the pessimistic lock of the database is used to lock the record of the card segment 90000002, so as to prevent data inconsistency generated by concurrency and ensure the correctness of the updating time sequence of the compressed bitmap in the segment under a high concurrency scene.
Step S404, obtaining the card segment compression bitmap of the available card segments.
Here, the clip compression bitmap of the acquired clip 90000002 is Y3 … N60 … Y1 … N1.
Step S405, processing the compressed bitmap of the card section according to a bitmap random acquisition algorithm, and finding the serial numbers of the available card numbers in the available card section.
Further, the intra-segment compressed bitmap Y3 … N60 … Y1 … N1 of the card segment 90000002 is parsed, the sequence number corresponding to the unused card number is obtained, and updated to be used, and the search and update algorithm of the intra-segment compressed bitmap is as follows:
Wherein N represents unused and Y represents used, since the in-segment compression bitmap is an ordered character string, by traversing the characters in the ordered character string, searching from front to back, finding the first N, finding the unused card number, judging the value after N, then taking the value after N as the maximum value to carry out Random, finding a Random number between the values after 1-N (the value is equal to 3 in fig. 8), splitting according to the value, as shown in fig. 8, random numbers between 1-3 are obtained, the Random number in fig. 8 is 1, which indicates that the Random number needs to occupy the first bit, changing it into Y, then N3 is changed into Y1N2, then finding the nearest value of N/Y respectively from front to back, as shown in fig. 8, the next N/Y is Y5, and the last N/Y value is N, which is different from Y, and can not be combined, and the Random number between the previous N/Y value is equal to 3, and the new value of N/Y is calculated from the new value before 3 is calculated, and the bit map is obtained from the new value before 3 is calculated, and the new value of N/Y is calculated, and the bit map is calculated before the new value is calculated, and the bit map is calculated, and the new value is calculated, and the N/3 is calculated.
Step S406, based on the card product number, the available card segments and the serial number, a card number is generated.
Here, according to the card BIN and the card segment in the card segment table, a final check bit such as 3 is generated, and the card number generated under the correct card number generation condition is characterized, so that the card number at the position is 6236339000000200043, as shown in fig. 8.
Step S407, the generated card number is inserted into the card number table.
Further, after the CARD number is produced, the CARD number is newly added into a CARD number table, the CARD number table is named according to the CARD BIN and the CARD section, and according to the storage requirement of a distributed database (Data Base, DB), the number of the CARD numbers stored in each CARD table is not more than 1000 ten thousand, so that tens of thousands of CARD numbers are stored in each CARD table, the CARD number table which belongs to the CARD number table is TM_CARD_B623633_P90000 according to the CARD number above, and the CARD number is stored in the CARD number table.
Step S408, the updated intra-segment compression bit map is filled into the allocation table, and the number of used cards is increased.
Here, the updated intra-segment compression bitmap is filled into the allocation table, and the number of used cards of the card segment is increased by 1.
As can be seen from the above, the card number generation method provided by the present application eliminates the problem that the card section is actually unavailable due to the inconsistency of the cache database caused by the use of the cache structure, but the cache is available, and simultaneously, for the whole storage, the card section and the card section compression bitmap are used for selecting the card, the newly added card section does not need to be initialized first, the storage capacity cost is greatly reduced, and the card number storage is only carried out after the actual card opening, and the storage is ensured to be increased along with the service growth.
Continuing with the description below of an exemplary architecture in which the card number generation apparatus 154 provided by embodiments of the present application is implemented as a software module, in some embodiments, as shown in fig. 1, the software module stored in the card number generation apparatus 154 of the memory 150 may be a card number generation apparatus in the server 100, including:
an acquiring module 1541, configured to acquire a card selection request; wherein, the card selecting request carries the card product number;
an acquiring module 1541, configured to acquire an intra-segment compression bitmap corresponding to an available card segment in a card segment allocation table associated with a card product number; the in-segment compression bit map comprises an ordered character string constructed by character identifiers and numbers, wherein the character identifiers are used for indicating whether card numbers corresponding to serial numbers at positions where the character identifiers are located are in an allocated state or not, and the numbers are used for indicating the number of the card numbers in a continuous state;
an obtaining module 1541, configured to obtain a sequence number of an available card number in the available card segment based on the first identifier in the intra-segment compression bitmap and a first number associated with the first identifier; the first identifier is used for indicating that the card number of the serial number corresponding to the position of the first identifier is in an unassigned state, and the character identifier comprises the first identifier;
processing module 1542 is configured to generate a card number based on the card product number, the available card segments, and the serial number.
In some embodiments of the present application, the processing module 1542 is configured to create a query index based on the card product number and the card segment identification information; the card section identification information is used for indicating whether the card number in the section is allocated;
The acquiring module 1541 is configured to query in the distributed database with a query index, so as to obtain an available card segment.
In some embodiments of the present application, the processing module 1542 is configured to perform a locking operation on the available card segments; wherein, available card section after locking is in the locking state.
In some embodiments of the present application, the intra-segment compression bitmap includes an ordered string of character identifiers for indicating whether the card numbers corresponding to the serial numbers at the positions of the character identifiers are in an allocated state, and digits for indicating the number of the card numbers in a consecutive state, where the consecutive state includes a consecutive allocated state or a consecutive unallocated state.
In some embodiments of the present application, the processing module 1542 is configured to determine a first identifier according to a traversal order from front to back corresponding to the ordered string; the first identifier is used for indicating that the card number of the serial number corresponding to the position of the first identifier is in an unassigned state, and the character identifier comprises the first identifier; determining a first random number based on a first number associated with a first identification; and determining the number of sequence numbers before the bitmap corresponding to the first random number in the compressed bitmap in the section, and calculating the sum of the number of sequence numbers plus 1 to obtain the sequence number.
In some embodiments of the present application, the processing module 1542 is configured to perform fission processing on a portion of the bitmap in the intra-segment compressed bitmap based on the first random number, to obtain a bitmap after fission; the partial bitmap comprises a bitmap corresponding to the first identifier and the first number; the bitmap after fission at least comprises bitmaps corresponding to the first identifier and the second number, and bitmaps corresponding to the second identifier and the third number; the second identifier is used for indicating that the card number of the serial number corresponding to the position where the second identifier is located is in an allocated state, and the character identifier comprises the second identifier; combining the rest bitmap in the intra-segment compressed bitmap and the adjacent bitmap with the second identifier in the fissionable bitmap to obtain an updated intra-segment compressed bitmap; wherein the remaining bitmap and the partial bitmap form an intra-segment compression bitmap.
In some embodiments of the present application, the processing module 1542 is configured to determine a first location occupied by a first random number in the partial bitmap NX 1; wherein N is a first identifier, and X1 is a first number associated with the first identifier; the first position in the partial bitmap NX1 is cracked into a newly added second identifier Y, and the cracked bitmap is Y1NX1-1, NX1-1Y1 or NX2Y1NX3; wherein X2 and X3 are natural numbers, and the sum of X2, X3 and 1 is X1.
In some embodiments of the present application, the processing module 1542 is configured to splice the card product number, the available card section and the serial number according to a card number splicing manner, and generate a card number and a check bit of the card number; the check bit is used for indicating whether the card number meets the card number generation condition.
The card number generating device provided by the application obtains the card selecting request; wherein, the card selecting request carries the card product number; acquiring an intra-segment compression bitmap corresponding to an available card segment in a card segment allocation table associated with a card product number; the method comprises the steps that for a high-performance processing scene such as card selection, a total number of card numbers is enlarged by adopting an intra-segment compression bitmap, wherein the intra-segment compression bitmap comprises character identifiers and ordered character strings constructed by numbers, the character identifiers are used for indicating whether the card numbers with corresponding serial numbers at positions where the character identifiers are located are in an allocated state, and the numbers are used for indicating the number of the card numbers in a continuous state; further, based on a first identifier in the intra-segment compression bitmap and a first number associated with the first identifier, the serial number of the available card number in the available card segment is rapidly acquired; the first identifier is used for indicating that the card number of the serial number corresponding to the position where the first identifier is located is in an unassigned state, and the character identifier comprises the first identifier; generating a card number in real time based on the card product number, the available card section and the serial number; therefore, the problem that the card numbers in the related art are required to be generated in advance is solved, the method for generating the card numbers in real time is provided, excessive occupation of storage space caused by generating all the card numbers in advance is avoided, and the use performance of the database is improved.
It should be noted that, the description of the apparatus according to the embodiment of the present application is similar to the description of the embodiment of the method described above, and has similar beneficial effects as the embodiment of the method, so that a detailed description is omitted. For technical details not disclosed in the present apparatus embodiment, please refer to the description of the method embodiment of the present application for understanding.
Embodiments of the present application provide a storage medium having stored therein executable instructions which, when executed by a processor, cause the processor to perform a method provided by embodiments of the present application, for example, as shown in fig. 2 and 4.
In some embodiments, the storage medium may be a computer readable storage medium, such as a ferroelectric Memory (FRAM, ferromagnetic Random Access Memory), read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read Only Memory), electrically erasable programmable Read Only Memory (EEPROM, ELECTRICALLY ERASABLE PROGRAMMABLE READ ONLY MEMORY), flash Memory, magnetic surface Memory, optical Disk, or Compact Disk-Read Only Memory (CD-ROM), or the like; but may be a variety of devices including one or any combination of the above memories.
In some embodiments, the executable instructions may be in the form of programs, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and they may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
As an example, the executable instructions may, but need not, correspond to files in a file system, may be stored as part of a file that holds other programs or data, such as in one or more scripts in a hypertext markup language (hypertext markup language ) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files that store one or more modules, sub-programs, or portions of code). As an example, executable instructions may be deployed to be executed on one computing device or on multiple computing devices located at one site or distributed across multiple sites and interconnected by a communication network.
The foregoing is merely exemplary embodiments of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and scope of the present application are included in the protection scope of the present application.

Claims (8)

1. A card number generation method, characterized by comprising:
Acquiring a card selecting request; wherein the card selection request carries a card product number;
Acquiring an intra-segment compression bitmap corresponding to an available card segment in a card segment allocation table associated with the card product number; the in-segment compression bit map comprises an ordered character string constructed by character identifiers and numbers, the character identifiers are used for indicating whether the card numbers of serial numbers corresponding to the positions of the character identifiers are in an allocated state or not, and the numbers are used for indicating the number of the card numbers in a continuous state;
Acquiring a serial number of an available card number in the available card section based on a first identifier in the intra-section compression bitmap and a first number associated with the first identifier; the first identifier is used for indicating that a card number of a serial number corresponding to the position of the first identifier is in an unassigned state, and the character identifier comprises the first identifier;
Generating a card number based on the card product number, the available card segments, and the serial number;
the obtaining, based on the first identifier in the intra-segment compression bitmap and the first number associated with the first identifier, a serial number of an available card number in the available card segment includes:
determining a first identifier according to the traversing sequence of the ordered character strings from front to back;
Determining a first random number based on a first number associated with a first one of the first identifications; wherein the first random number is greater than or equal to 1 and less than or equal to the first number;
performing fission processing on part of bitmaps in the intra-segment compressed bitmaps based on the first random number to obtain the bitmap after fission; wherein the partial bitmap comprises a bitmap corresponding to the first identifier and the first number; the bitmap after fission at least comprises bitmaps corresponding to the first identifier and the second number and bitmaps corresponding to the second identifier and the third number; the second identifier is used for indicating that the card number of the serial number corresponding to the position of the second identifier is in an allocated state, and the character identifier comprises the second identifier;
Combining the rest bitmap in the intra-segment compressed bitmap and the adjacent bitmap with the second identifier in the fissionable bitmap to obtain an updated intra-segment compressed bitmap; wherein the residual bitmap and the partial bitmap form the intra-segment compressed bitmap;
And determining the number of sequence numbers before the bitmap corresponding to the first random number in the intra-segment compressed bitmap, and calculating the sum of the number of the sequence numbers plus 1 to obtain the sequence number.
2. The method of claim 1, wherein after the obtaining the pick-up request, the method further comprises:
Creating a query index based on the card product number and the card segment identification information; the card section identification information is used for indicating whether the card number in the section is allocated;
and querying in the distributed database by using the query index to obtain the available card section.
3. The method according to claim 2, wherein, when the available card segments are obtained by querying the distributed database with the query index, the method further comprises:
Locking the available card section; wherein the available card section after locking is in a locking state.
4. The method of claim 1, wherein the fissionally processing a portion of the bitmap of the intra-segment compressed bitmaps based on the first random number to obtain a fissionally processed bitmap, comprising:
Determining a first position occupied by the first random number in the partial bitmap NX 1; wherein, the N is the first identifier, and the X1 is a first number associated with the first identifier;
the first position in the partial bitmap NX1 is cracked into the newly added second identifier Y, and the cracked bitmap is Y1 NX1-1, NX1-1Y1 or NX2Y1 NX3; wherein, X2 and X3 are natural numbers, and the sum of X2, X3 and X1 is X1.
5. The method of any of claims 1-4, wherein the generating a card number based on the card product number, the available card segments, and the serial number comprises:
Splicing the card product number, the available card section and the serial number according to a card number splicing mode to generate the card number and a check bit of the card number; the check bit is used for indicating whether the card number meets the card number generation condition.
6. A card number generating apparatus, comprising:
The acquisition module is used for acquiring a card selection request; wherein the card selection request carries a card product number;
The obtaining module is used for obtaining an intra-segment compression bitmap corresponding to an available card segment in a card segment allocation table associated with the card product number; the in-segment compression bit map comprises an ordered character string constructed by character identifiers and numbers, the character identifiers are used for indicating whether the card numbers of serial numbers corresponding to the positions of the character identifiers are in an allocated state or not, and the numbers are used for indicating the number of the card numbers in a continuous state;
The acquisition module is used for acquiring the serial numbers of the available card numbers in the available card segments based on the first identifications in the intra-segment compression bitmap and the first numbers associated with the first identifications; the first identifier is used for indicating that a card number of a serial number corresponding to the position of the first identifier is in an unassigned state, and the character identifier comprises the first identifier;
The processing module is used for generating a card number based on the card product number, the available card section and the serial number;
The processing module is used for determining a first identifier according to the traversal sequence from front to back corresponding to the ordered character string; the first identifier is used for indicating that the card number of the serial number corresponding to the position of the first identifier is in an unassigned state, and the character identifier comprises the first identifier; determining a first random number based on a first number associated with a first identification; determining the number of sequence numbers before the bitmap corresponding to the first random number in the compressed bitmap in the section, and calculating the sum of the number of sequence numbers plus 1 to obtain the sequence number;
The processing module is used for performing fission processing on part of bitmaps in the compressed bitmaps in the segments based on the first random number to obtain the bitmaps after the fission; the partial bitmap comprises a bitmap corresponding to the first identifier and the first number; the bitmap after fission at least comprises bitmaps corresponding to the first identifier and the second number, and bitmaps corresponding to the second identifier and the third number; the second identifier is used for indicating that the card number of the serial number corresponding to the position where the second identifier is located is in an allocated state, and the character identifier comprises the second identifier; combining the rest bitmap in the intra-segment compressed bitmap and the adjacent bitmap with the second identifier in the fissionable bitmap to obtain an updated intra-segment compressed bitmap; wherein the remaining bitmap and the partial bitmap form an intra-segment compression bitmap.
7. A card number generating apparatus, characterized by comprising:
a memory for storing executable instructions; a processor for implementing the method of any one of claims 1 to 5 when executing executable instructions stored in said memory.
8. A computer readable storage medium storing executable instructions for causing a processor to perform the method of any one of claims 1 to 5.
CN202110718474.XA 2021-06-28 2021-06-28 Card number generation method, device, equipment and storage medium Active CN113342819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110718474.XA CN113342819B (en) 2021-06-28 2021-06-28 Card number generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110718474.XA CN113342819B (en) 2021-06-28 2021-06-28 Card number generation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113342819A CN113342819A (en) 2021-09-03
CN113342819B true CN113342819B (en) 2024-09-20

Family

ID=77479073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110718474.XA Active CN113342819B (en) 2021-06-28 2021-06-28 Card number generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113342819B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114092014B (en) * 2021-11-25 2025-06-13 中国建设银行股份有限公司 Method, processor and machine-readable storage medium for bank card number segment management
CN114780557A (en) * 2022-03-29 2022-07-22 深信服科技股份有限公司 Identification determination method, device, equipment and computer readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612790A (en) * 2020-12-17 2021-04-06 深圳前海微众银行股份有限公司 Card number configuration method, device, equipment and computer storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100647462B1 (en) * 2005-12-16 2006-11-23 삼성전자주식회사 Chip information symbol used in semiconductor devices and a method of marking the same.
US8074878B1 (en) * 2009-09-04 2011-12-13 F3M3 Companies, Inc. System and method of pre-approving applicants for visa processing using an emerging country's international travel approval control card
CN105095263B (en) * 2014-05-08 2019-12-17 创新先进技术有限公司 method and device for generating card number
US10002010B2 (en) * 2016-05-13 2018-06-19 International Business Machines Corporation Multi-byte compressed string representation
CN107622102B (en) * 2017-09-11 2019-04-19 平安科技(深圳)有限公司 Entity card number generation method and terminal device
CN108829650B (en) * 2018-06-01 2022-08-23 腾讯科技(北京)有限公司 Card number generation method, device, server and storage medium
US10467622B1 (en) * 2019-02-01 2019-11-05 Capital One Services, Llc Using on-demand applications to generate virtual numbers for a contactless card to securely autofill forms
CN111353773B (en) * 2020-02-24 2024-01-16 网银在线(北京)科技有限公司 Identification processing method and device, storage medium and electronic device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612790A (en) * 2020-12-17 2021-04-06 深圳前海微众银行股份有限公司 Card number configuration method, device, equipment and computer storage medium

Also Published As

Publication number Publication date
CN113342819A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
CN106874348B (en) File storage and index method and device and file reading method
CN113342750B (en) File data comparison method, device, equipment and storage medium
CN112765271A (en) Block chain transaction index storage method and device, computer equipment and medium
CN111506269B (en) Disk storage space allocation method, device, equipment and storage medium
CN113342819B (en) Card number generation method, device, equipment and storage medium
CN113157689A (en) Data indexing method and device and electronic equipment
CN114022148B (en) Transaction conflict detection method, device, equipment and storage medium based on block chain
CN111241108A (en) Key value pair-based KV system indexing method and device, electronic equipment and medium
CN109460406A (en) Data processing method and device
CN112596949A (en) High-efficiency SSD (solid State disk) deleted data recovery method and system
CN115576947A (en) Data management method and device, combined library, electronic equipment and storage medium
CN101739589A (en) Method and device for generating intelligent card data
CN111813517A (en) Task queue allocation method and device, computer equipment and medium
CN107766519B (en) Method for visually configuring data structure
CN112527745B (en) Embedded file system multi-partition analysis method, terminal device and storage medium
KR20120082176A (en) Data processing method of database management system and system thereof
CN114297196A (en) Metadata storage method and device, electronic equipment and storage medium
KR20220099745A (en) A spatial decomposition-based tree indexing and query processing methods and apparatus for geospatial blockchain data retrieval
CN114969165B (en) Data query request processing method, device, equipment and storage medium
CN117235069A (en) Index creation method, data query method, device, equipment and storage medium
CN116880780A (en) Tree data writing method, device, machine-readable medium and memory
CN116842012A (en) Method, device, equipment and storage medium for storing Redis cluster in fragments
CN111858590B (en) A storage system metadata organization method, system, terminal and storage medium
CN115757397A (en) Data reforming method and device for database table, medium and computer equipment
CN113535714A (en) Data storage method, reading method and computer equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant