Business number generation system, method and device

By designing a business number generation system, using API gateway authentication and database management numbering rules, the problems of numbering errors and duplications in the enterprise information management system are solved, and the numbering is efficient, accurate and independent.

CN119782372APending Publication Date: 2025-04-08CHINA NAT NUCLEAR POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411981002.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

In the enterprise information management system, due to the increased business complexity of the enterprise or the large number of institutions, the error number or duplicate numbering occurs during the business number generation process, which seriously disrupts the normal business management activities of the enterprise.

Method used

Design a business number generation system, including API gateway, number generation platform and database, authenticate the number generation requests of third-party applications through API gateway, use the database to save the correspondence between document types and numbering rules, obtain the corresponding numbering rules based on the user's unique identity, and generate a unique number through the sequence mechanism.

Benefits of technology

Effectively prevent unauthorized persons from abuse the number generation platform, prevent the numbering order from being disrupted, ensure the uniqueness and independence of numbering, and improve the efficiency and accuracy of numbering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119782372A_ABST
    Figure CN119782372A_ABST
Patent Text Reader

Abstract

The present disclosure belongs to the field of nuclear power technology, and specifically relates to a business number generation system, method and device. The present disclosure uses an API gateway to authenticate the number generation request sent by a third-party application, which can effectively prevent the abuse of the number generation platform by unauthorized persons and prevent the numbering order of business documents from being disrupted. The correspondence between the document type and the numbering rule is centrally saved in the database, and the numbering rule can be accurately obtained according to the document type and user ID carried in the user's number generation request, thereby better adapting to the system multi-application and multi-numbering rule scenarios, especially allowing the numbering sequences of different users using the same rule to be independently accumulated, effectively avoiding the occurrence of number confusion errors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information technology, and in particular relates to a system, method and device for generating a business number. Background Art

[0002] Generally speaking, in order to ensure the uniqueness, orderliness and traceability of business documents, the enterprise information management information system will formulate numbering rules according to the specific needs of each business of the enterprise. For example, the numbering rules can include fields such as date, department code, document type code, serial number, and the order of each field. And call the sequence mechanism of the database to generate a new number by adding the cumulative number. The system can return the generated number to the caller for subsequent business operations, such as printing documents, recording logs, etc.

[0003] However, in the actual production and operation process, due to the increasing complexity of corporate business or the large number of corporate organizations, the system often has problems such as wrong numbering or duplicate numbering in the process of business numbering, which seriously disrupts the normal business management activities of the enterprise. Therefore, there is an urgent need to improve the efficiency and accuracy of enterprise information system numbering. Summary of the invention

[0004] In order to overcome the problems existing in the related art, a system, method and device for generating a business number are provided.

[0005] According to one aspect of an embodiment of the present disclosure, a service number generation system is provided, the system comprising: an API gateway, a number generation platform, and a database connected in sequence;

[0006] The API gateway also communicates with multiple third-party applications. The database is used to store the correspondence between document types and numbering rules. Each third-party application registers multiple users, and the sequence mechanisms associated with the unique identifiers of different users are independent of each other.

[0007] When a user of a third-party application sends a number generation request to the API gateway, the API gateway performs user identity authentication based on the authentication information carried in the received number generation request. If the user identity authentication passes, the number generation request is sent to the number generation platform.

[0008] The number generation platform obtains the numbering rule corresponding to the document type from the database based on the document type and the user's unique identifier carried in the number generation request sent by the user. According to the numbering rule, the sequence mechanism associated with the unique identifier is called to accumulate and generate a new number corresponding to the user's unique identifier under the numbering rule and return it to the user.

[0009] In a possible implementation, the number generated according to the numbering rule includes a document feature code segment, a date code segment, and a sequence number segment;

[0010] The number generation platform verifies whether the current date is consistent with the date code segment of the last number in the current numbering sequence. If it is determined that the current date is inconsistent with the current date code segment, the document feature code segment of the last number is kept unchanged, the date code segment is updated to be consistent with the current date, and the sequence number segment is reset to the initial value. A new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user. If the number generation platform determines that the current date is consistent with the date code segment of the last number, the document feature code segment and the date code segment of the last number are kept unchanged, the current sequence number segment is accumulated, and a new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user.

[0011] In a possible implementation, the number generation platform determines whether the current date is consistent with the last number date code segment of the number sequence in the order of year, month, and day.

[0012] In a possible implementation, if the date code segment includes year, month, and day, the number generation platform first determines whether the year of the current date is consistent with the year of the last number date code segment; if the year is determined to be inconsistent, the current date is determined to be inconsistent with the current date code segment;

[0013] When the year is determined to be consistent, then determine whether the current date and month are consistent with the month of the last numbered date code segment. When the month is determined to be inconsistent, then determine whether the current date and the current date code segment are inconsistent;

[0014] When judging that the months are consistent, then judge whether the day of the current date is consistent with the day of the last numbered date code segment. When judging that the days are inconsistent, judge that the current date is inconsistent with the current date code segment. When judging that the days are consistent, judge that the current date is consistent with the current date code segment.

[0015] According to one aspect of an embodiment of the present disclosure, a method for generating a service number is provided, the method comprising:

[0016] Step 101, the number generation platform accepts the number generation request passed by the API gateway user identity authentication;

[0017] Step 102, the number generation platform obtains the numbering rule corresponding to the document type from the database based on the document type and the unique identifier of the user carried in the number generation request sent by the user, and calls the sequence mechanism associated with the unique identifier to accumulate and generate a new number corresponding to the unique identifier of the user under the numbering rule and returns it to the user.

[0018] In one possible implementation, the number generated according to the numbering rule includes a document feature code segment, a date code segment and a serial number segment; step 102 also includes: step 1021, the numbering generation platform verifies whether the current date is consistent with the date code segment of the last number in the current numbering sequence. When it is determined that the current date is inconsistent with the current date code segment, the document feature code segment of the last number is kept unchanged, the date code segment is updated to be consistent with the current date, and the serial number segment is reset to the initial value, and a new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user; when the numbering platform determines that the current date is consistent with the date code segment of the last number, the document feature code segment and the date code segment of the last number are kept unchanged, the current serial number segment is accumulated, and a new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user.

[0019] In a possible implementation, the number generation platform determines whether the current date is consistent with the last number date code segment of the number sequence in the order of year, month, and day.

[0020] In one possible implementation, if the date code segment includes year, month, and day, the numbering generation platform first determines whether the year of the current date is consistent with the year of the last-numbered date code segment; when it is determined that the year is inconsistent, it is determined that the current date is inconsistent with the current date code segment; when it is determined that the year is consistent, it is then determined whether the month of the current date is consistent with the month of the last-numbered date code segment, and when it is determined that the month is inconsistent, it is determined that the current date is inconsistent with the current date code segment; when it is determined that the month is consistent, it is then determined whether the day of the current date is consistent with the day of the last-numbered date code segment, and when it is determined that the day is inconsistent, it is determined that the current date is inconsistent with the current date code segment, and when it is determined that the day is consistent, it is determined that the current date is consistent with the current date code segment.

[0021] According to another aspect of an embodiment of the present disclosure, a device for generating a service number is provided, the device comprising:

[0022] processor;

[0023] a memory for storing processor-executable instructions;

[0024] Wherein, the processor is configured to execute the above method.

[0025] According to another aspect of an embodiment of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor.

[0026] The beneficial effect of the present disclosure is that the present disclosure uses an API gateway to authenticate the number generation request sent by a third-party application, which can effectively prevent the abuse of the number generation platform by unauthorized persons and prevent the numbering order of business documents from being disrupted. The correspondence between the document type and the numbering rule is centrally stored in the database, and the numbering rule can be accurately obtained according to the document type carried by the user's number generation request and the user's unique identifier, thereby better adapting to the system multi-application and multi-numbering rule scenarios, especially allowing the numbering sequences of different users using the same rule to be accumulated independently, effectively avoiding the occurrence of number confusion errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a block diagram of a service number generation system shown in an embodiment of the present disclosure.

[0028] Figure 2 It is a block diagram of a device for generating a service number shown in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0029] The present disclosure is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0030] Unless otherwise defined, the technical and scientific terms used in the present disclosure have the same meanings as those generally understood by those skilled in the art to which the present disclosure belongs; the terms used in the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure; the term "including" and any variations thereof in the present disclosure are intended to cover non-exclusive inclusions. Obviously, the embodiments described in the present disclosure are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative efforts are within the scope of protection of the present disclosure.

[0031] Reference to "embodiments" in this disclosure means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the disclosure. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0032] Figure 1 is a block diagram of a service number generation system shown in an embodiment of the present disclosure, such as Figure 1 As shown, the system includes an API gateway, a numbering platform and a database, and the API gateway, the numbering platform and the database are connected in sequence.

[0033] The API gateway is also connected to multiple third-party applications, which can be integrated into the same system or different systems. The database is used to store the correspondence between document types and numbering rules. Each third-party application registers multiple users (users can be legal persons or natural persons, for example, and the present disclosure does not limit the actual form of users). Different users are assigned different unique identifiers in the system. The sequence mechanisms associated with the unique identifiers of different users are independent of each other. Under different or the same numbering rules, the numbering sequences associated with the unique identifiers of different users are independent of each other.

[0034] When a user of a third-party application sends a number generation request to the API gateway, the API gateway performs user identity authentication based on the authentication information carried in the received number generation request, and when the user identity authentication is passed, the number generation request is sent to the number generation platform. The authentication information may be, for example, a digital certificate or a dynamic code, etc., which is used to prove the legal identity of the user. The present disclosure does not limit the type of authentication information.

[0035] The number generation platform obtains the numbering rule corresponding to the document type from the database based on the document type and the user's unique identifier carried in the number generation request sent by the user. According to the numbering rule, the sequence mechanism associated with the unique identifier is called to accumulate and generate a new number corresponding to the user's unique identifier under the numbering rule and return it to the user.

[0036] The present disclosure uses an API gateway to authenticate the number generation request sent by a third-party application, which can effectively prevent the abuse of the number generation platform by unauthorized persons and prevent the numbering order of business documents from being disrupted. The correspondence between the document type and the numbering rule is centrally saved in the database, and the numbering rule can be accurately obtained according to the document type carried by the user's number generation request and the user's unique identifier, thereby better adapting to the system multi-application and multi-numbering rule scenarios, especially allowing the numbering sequences of different users using the same rule to be accumulated independently, effectively avoiding the occurrence of number confusion errors.

[0037] In one possible implementation, the number generated according to the numbering rule includes a document feature code segment (used to describe the feature information of the document), a date code segment and a serial number segment; the numbering generation platform verifies whether the current date is consistent with the date code segment of the last number in the current numbering sequence; if it is determined that the current date is inconsistent with the current date code segment, the document feature code segment of the last number is kept unchanged, the date code segment is updated to be consistent with the current date, and the serial number segment is reset to the initial value, and a new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user; if the numbering platform determines that the current date is consistent with the date code segment of the last number, the document feature code segment and the date code segment of the last number are kept unchanged, the current serial number segment is accumulated, and a new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user.

[0038] In this way, the present disclosure can realize dynamic update of the date code segment and automatically reset the sequence number segment following the update of the date code segment by verifying whether the current date is consistent with the current date code segment, thereby effectively avoiding coding errors due to date updates.

[0039] The number generation platform can judge whether the current date is consistent with the last numbered date code segment of the numbering sequence in the order of year, month, and day. For example, if the date code segment contains year, month, and day, the number generation platform first judges whether the year of the current date is consistent with the year of the last numbered date code segment; when the year is judged to be inconsistent, the current date is judged to be inconsistent with the current date code segment. When the year is judged to be consistent, then judge whether the month of the current date is consistent with the month of the last numbered date code segment. When the month is judged to be inconsistent, then judge whether the current date is inconsistent with the current date code segment. When the month is judged to be consistent, then judge whether the number of days of the current date is consistent with the number of days of the last numbered date code segment. When the number of days is judged to be inconsistent, then judge whether the current date is inconsistent with the current date code segment. When the number of days is judged to be consistent, then judge whether the current date is consistent with the current date code segment.

[0040] In this way, by judging the year, month and day one by one, the date code segment that is inconsistent with the current date can be quickly found.

[0041] In a possible implementation, a flowchart of a method for generating a service number is provided, the method comprising:

[0042] Step 101: The number generation platform accepts the number generation request that passes the API gateway user identity authentication.

[0043] Step 102, the number generation platform obtains the numbering rule corresponding to the document type from the database based on the document type and the unique identifier of the user carried in the number generation request sent by the user, and calls the sequence mechanism associated with the unique identifier to accumulate and generate a new number corresponding to the unique identifier of the user under the numbering rule and returns it to the user.

[0044] In one possible implementation, the number generated according to the numbering rule includes a document feature code segment, a date code segment and a serial number segment; step 102 also includes: step 1021, the numbering generation platform verifies whether the current date is consistent with the date code segment of the last number in the current numbering sequence. When it is determined that the current date is inconsistent with the current date code segment, the document feature code segment of the last number is kept unchanged, the date code segment is updated to be consistent with the current date, and the serial number segment is reset to the initial value, and a new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user; when the numbering platform determines that the current date is consistent with the date code segment of the last number, the document feature code segment and the date code segment of the last number are kept unchanged, the current serial number segment is accumulated, and a new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user.

[0045] In a possible implementation, the number generation platform can determine whether the current date is consistent with the last numbered date code segment of the numbering sequence in the order of year, month, and day. For example, if the date code segment contains year, month, and day, the number generation platform first determines whether the year of the current date is consistent with the year of the last numbered date code segment; when the year is determined to be inconsistent, the current date is determined to be inconsistent with the current date code segment. When the year is determined to be consistent, then determine whether the month of the current date is consistent with the month of the last numbered date code segment. When the month is determined to be inconsistent, then determine whether the current date is inconsistent with the current date code segment. When the month is determined to be consistent, then determine whether the number of days of the current date is consistent with the number of days of the last numbered date code segment. When the number of days is determined to be inconsistent, then determine whether the current date is inconsistent with the current date code segment. When the number of days is determined to be consistent, then determine that the current date is consistent with the current date code segment.

[0046] The description of the above method has been explained in detail in the description of the above system and will not be repeated here.

[0047] Figure 2 1900 is a block diagram of a service number generation device shown in an embodiment of the present disclosure. For example, the device 1900 may be provided as a server. Figure 2, the apparatus 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions, such as an application, that can be executed by the processing component 1922. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.

[0048] The device 1900 may also include a power supply component 1926 configured to perform power management of the device 1900, a wired or wireless network interface 1950 configured to connect the device 1900 to a network, and an input / output (I / O) interface 1958. The device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, MacOS X™, Unix™, Linux™, FreeBSD™, or the like.

[0049] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the device 1900 to perform the above method.

[0050] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0051] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical numbering device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0052] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0053] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0054] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0055] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0056] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0057] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0058] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A business number generation system, characterized in that: The system includes: an API gateway, a number generation platform and a database connected in sequence; The API gateway also communicates with multiple third-party applications. The database is used to store the correspondence between document types and numbering rules. Each third-party application registers multiple users, and the sequence mechanisms associated with the unique identifiers of different users are independent of each other. When a user of a third-party application sends a number generation request to the API gateway, the API gateway performs user identity authentication based on the authentication information carried in the received number generation request. If the user identity authentication passes, the number generation request is sent to the number generation platform. The number generation platform obtains the numbering rule corresponding to the document type from the database based on the document type and the user's unique identifier carried in the number generation request sent by the user. According to the numbering rule, the sequence mechanism associated with the unique identifier is called to accumulate and generate a new number corresponding to the user's unique identifier under the numbering rule and return it to the user.

2. The system according to claim 1, characterized in that The number generated according to the numbering rule includes the document feature code segment, date code segment and sequence number segment; The number generation platform verifies whether the current date is consistent with the date code segment of the last number in the current numbering sequence. If it is determined that the current date is inconsistent with the current date code segment, the document feature code segment of the last number is kept unchanged, the date code segment is updated to be consistent with the current date, and the sequence number segment is reset to the initial value. A new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user. If the number generation platform determines that the current date is consistent with the date code segment of the last number, the document feature code segment and the date code segment of the last number are kept unchanged, the current sequence number segment is accumulated, and a new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user.

3. The system according to claim 1, characterized in that The number generation platform determines whether the current date is consistent with the last number date code segment in the numbering sequence in the order of year, month, and day.

4. The system according to claim 1, characterized in that If the date code segment contains year, month and day, the number generation platform first determines whether the year of the current date is consistent with the year of the last number date code segment; if the year is inconsistent, the current date is determined to be inconsistent with the current date code segment; When the year is determined to be consistent, then determine whether the current date and month are consistent with the month of the last numbered date code segment. When the month is determined to be inconsistent, then determine whether the current date and the current date code segment are inconsistent; When judging that the months are consistent, then judge whether the day of the current date is consistent with the day of the last numbered date code segment. When judging that the days are inconsistent, judge that the current date is inconsistent with the current date code segment. When judging that the days are consistent, judge that the current date is consistent with the current date code segment.

5. A method for generating a service number, characterized in that: The method comprises: Step 101, the number generation platform accepts the number generation request passed by the API gateway user identity authentication; Step 102, the number generation platform obtains the numbering rule corresponding to the document type from the database based on the document type and the unique identifier of the user carried in the number generation request sent by the user, and calls the sequence mechanism associated with the unique identifier to accumulate and generate a new number corresponding to the unique identifier of the user under the numbering rule and returns it to the user.

6. The method according to claim 5, characterized in that The number generated according to the numbering rule includes a document feature code segment, a date code segment and a serial number segment; step 102 also includes: step 1021, the numbering generation platform verifies whether the current date is consistent with the date code segment of the last number in the current numbering sequence. When it is determined that the current date is inconsistent with the current date code segment, the document feature code segment of the last number is kept unchanged, the date code segment is updated to be consistent with the current date, and the serial number segment is reset to the initial value, and a new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user; when the numbering platform determines that the current date is consistent with the date code segment of the last number, the document feature code segment and the date code segment of the last number are kept unchanged, the current serial number segment is accumulated, and a new number corresponding to the unique identifier of the user under the numbering rule is generated and returned to the user.

7. The method according to claim 1, characterized in that The number generation platform determines whether the current date is consistent with the last number date code segment in the numbering sequence in the order of year, month, and day.

8. The method according to claim 1, characterized in that If the date code segment contains year, month and day, the number generation platform first determines whether the year of the current date is consistent with the year of the last numbered date code segment; when it is determined that the year is inconsistent, the current date is determined to be inconsistent with the current date code segment; when it is determined that the year is consistent, it then determines whether the month of the current date is consistent with the month of the last numbered date code segment. When it is determined that the month is inconsistent, it is determined that the current date is inconsistent with the current date code segment; when it is determined that the month is consistent, it then determines whether the day of the current date is consistent with the day of the last numbered date code segment. When it is determined that the day is inconsistent, it is determined that the current date is inconsistent with the current date code segment. When it is determined that the day is consistent, it is determined that the current date is consistent with the current date code segment.

9. A device for generating a service number, characterized in that: The device comprises: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method described in any one of claims 5 to 8.

10. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 5 to 8 is implemented.