Serial number generation method, device, computer equipment and readable storage medium

By generating a sequence number rule configuration module that meets the target business characteristics, the problem of high complexity of sequence number generation methods in the existing technology is solved, and efficient sequence number query is achieved.

CN119046286BActive Publication Date: 2025-09-12BEIJING PACTERA JINXIN TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411178411.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2025-09-12
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

The existing serial number generation method is highly complex and takes a long time to convert when querying business serial numbers, resulting in slow query efficiency.

Method used

By generating each sequence number rule configuration module according to the service feature information of the target service and the initial sequence number rule template, and determining the initial target sequence number rule configuration module in the sequence number rule configuration module, the target service sequence number that meets the target service feature is directly generated.

Benefits of technology

The generation process of the serial number rule configuration module has been simplified, and the efficiency of serial number generation has been improved, so that when querying the target business serial number, it is possible to directly search based on the business feature data, thereby improving query efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046286B_ABST
    Figure CN119046286B_ABST
Patent Text Reader

Abstract

This application relates to a method, apparatus, computer device, computer-readable storage medium, and computer program product for generating a sequence number. The method comprises: generating sequence number rule configuration modules for a target service based on service feature information of the target service and an initial sequence number rule template; determining an initial target sequence number rule configuration module within each sequence number rule configuration module, and generating a target sequence number rule configuration module based on the initial target sequence number rule configuration module; the target sequence number rule configuration module is used to configure and generate a target service sequence number for the target service. This method can improve service sequence number query efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer device, computer-readable storage medium, and computer program product for generating a serial number. Background Art

[0002] With the rapid development of the internet, various internet applications have gradually evolved from stand-alone applications to distributed system architectures consisting of multiple computer clusters. When running applications in distributed systems, various tasks are executed, and the execution of each task requires a sequence number to identify the task. Therefore, during the execution of tasks, a sequence number generation method is required to generate a task sequence number.

[0003] In traditional technology, when querying specific business data, it is necessary to first query the business serial number. The current serial number query method is to convert business feature data (such as business time, business type) into the components of the business serial number, and then query the business serial number based on the components. The reason for adopting the above serial number query method is that the current serial number generation method uses a snowflake algorithm to generate the business serial number. Specifically, a binary timestamp is generated based on the current time, and a serial number ID (Identity document, unique code) is automatically incremented. Then, the machine ID and service ID of the current node are obtained, and the timestamp, machine ID, service ID and serial number ID are spliced ​​together to obtain the business serial number.

[0004] However, when querying a service serial number, the current method for generating a service serial number requires a high level of complexity and time to convert the service feature data into the components of the service serial number. Therefore, the current method results in a low efficiency in querying the service serial number. Summary of the Invention

[0005] Based on this, it is necessary to provide a serial number generation method, device, computer equipment, computer-readable storage medium and computer program product to address the above technical problems.

[0006] In a first aspect, the present application provides a method for generating a sequence number, comprising:

[0007] Generate each sequence number rule configuration module of the target service according to the service feature information of the target service and the initial sequence number rule template;

[0008] An initial target sequence number rule configuration module is determined in each of the sequence number rule configuration modules, and a target sequence number rule configuration module is generated according to the initial target sequence number rule configuration module; the target sequence number rule configuration module is used to configure and generate a target service sequence number for the target service.

[0009] In one embodiment, generating each sequence number rule configuration module of the target service according to the service feature information of the target service and the initial sequence number rule template includes:

[0010] receiving a request for generating a service sequence number rule for a target service; wherein the request for generating a service sequence number rule includes a service identifier of the target service;

[0011] Obtaining service feature information of the target service according to the service identifier of the target service, and generating a target service sequence number according to the service feature information;

[0012] The initial sequence number rule template is updated according to the service feature information to obtain each sequence number rule configuration module.

[0013] In one embodiment, the initial sequence number rule template includes an initial string module, an initial enumeration module, and an initial date module; the sequence number rule configuration module includes a string module, a date module, and an enumeration module; and the initial sequence number rule template is updated according to the service feature information to obtain each sequence number rule configuration module, including:

[0014] generating character strings corresponding to the target service according to the service type data in the service feature information, and generating initial enumeration values ​​according to the service status data in the service feature information;

[0015] updating the initial string module based on each of the strings to obtain the string module, and updating the initial enumeration module based on each of the initial enumeration values ​​to obtain the enumeration module;

[0016] An initial date type corresponding to the target service is generated according to the service frequency data in the service characteristic information, and the initial date module is updated according to the initial date type to obtain a date module.

[0017] In one embodiment, determining an initial target sequence number rule configuration module in each of the sequence number rule configuration modules, and generating a target sequence number rule configuration module based on the initial target sequence number rule configuration module, includes:

[0018] In response to a triggering operation of a sequence number rule configuration module in each of the sequence number rule configuration modules, determining the triggered sequence number rule configuration module as an initial target sequence number rule configuration module;

[0019] Configuration information is acquired, and a target sequence number rule configuration module is generated based on the configuration information and the initial target sequence number rule configuration module.

[0020] In one embodiment, the initial target sequence number rule configuration module is a digital module, the digital module includes various digital generation modes, and the target sequence number rule configuration module is a target digital module. The acquiring configuration information and generating the target sequence number rule configuration module based on the configuration information and the initial target sequence number rule configuration module includes:

[0021] Obtaining a target digital generation mode from each of the digital generation modes;

[0022] If the target number generation mode is a random generation mode, obtaining a target random number generation algorithm from each random number generation algorithm corresponding to the random generation mode;

[0023] A target digital module is generated according to the random generation pattern, the target random number generation algorithm and the digital module.

[0024] In one embodiment, after generating the target sequence number rule configuration module according to the initial target sequence number rule configuration module, the method further includes:

[0025] Generate an example business sequence number sub-value corresponding to each target sequence number rule configuration module, and annotate each example business sequence number sub-value with the name of the target sequence number rule configuration module corresponding to the example business sequence number sub-value;

[0026] Concatenate the sub-values ​​of the example service sequence number to obtain the target example service sequence number, and display the target example service sequence number and the name of each target sequence number rule configuration module;

[0027] In response to the determination operation of the target example service sequence number, a target service sequence number rule is constructed according to the target service sequence number and each target sequence number rule configuration module.

[0028] In a second aspect, the present application further provides a serial number generating device, comprising:

[0029] A generation module, configured to generate each sequence rule configuration module of the target service according to the service feature information of the target service and the initial sequence rule template;

[0030] A determination module is used to determine an initial target sequence number rule configuration module in each of the sequence number rule configuration modules, and generate a target sequence number rule configuration module based on the initial target sequence number rule configuration module; the target sequence number rule configuration module is used to configure and generate a target business sequence number for the target business.

[0031] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0032] Generate each sequence number rule configuration module of the target service according to the service feature information of the target service and the initial sequence number rule template;

[0033] An initial target sequence number rule configuration module is determined in each of the sequence number rule configuration modules, and a target sequence number rule configuration module is generated according to the initial target sequence number rule configuration module; the target sequence number rule configuration module is used to configure and generate a target service sequence number for the target service.

[0034] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0035] Generate each sequence number rule configuration module of the target service according to the service feature information of the target service and the initial sequence number rule template;

[0036] An initial target sequence number rule configuration module is determined in each of the sequence number rule configuration modules, and a target sequence number rule configuration module is generated according to the initial target sequence number rule configuration module; the target sequence number rule configuration module is used to configure and generate a target service sequence number for the target service.

[0037] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the following steps:

[0038] Generate each sequence number rule configuration module of the target service according to the service feature information of the target service and the initial sequence number rule template;

[0039] An initial target sequence number rule configuration module is determined in each of the sequence number rule configuration modules, and a target sequence number rule configuration module is generated according to the initial target sequence number rule configuration module; the target sequence number rule configuration module is used to configure and generate a target service sequence number for the target service.

[0040] The above-mentioned sequence number generation method, apparatus, computer equipment, computer-readable storage medium and computer program product generate each sequence number rule configuration module of the target service according to the service characteristic information of the target service and the initial sequence number rule template; determine the initial target sequence number rule configuration module in each of the sequence number rule configuration modules, and generate the target sequence number rule configuration module according to the initial target sequence number rule configuration module; the target sequence number rule configuration module is used to configure and generate the target service sequence number of the target service. By adopting this method, each sequence number rule configuration module of the target service is generated according to the service characteristic information of the target service and the initial sequence number rule template, and the target sequence number rule configuration module is determined according to each sequence number rule configuration module, a target sequence number rule configuration module that meets the service characteristics of the target service is obtained, a target service sequence number is generated based on the target sequence number rule configuration module, and a target service sequence number containing the service characteristic information of the target service is obtained, so that in the process of querying the target service sequence number, the target service sequence number can be directly searched according to the service characteristic data, thereby improving the query efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.

[0042] Figure 1 This is an application environment diagram of a sequence number generation method in one embodiment;

[0043] Figure 2 Schematic diagram of a flow chart of a method for generating a sequence number in one embodiment;

[0044] Figure 3 A schematic diagram of a process for generating a business sequence number rule configuration module in one embodiment;

[0045] Figure 4 A schematic diagram of a process for updating an initial service sequence number rule configuration module in one embodiment;

[0046] Figure 5 A schematic diagram of a process for generating a target sequence number rule configuration module in one embodiment;

[0047] Figure 6 A schematic diagram of a process for generating a target digital module in one embodiment;

[0048] Figure 7 A schematic diagram of a process for constructing target service sequence number rules in one embodiment;

[0049] Figure 8 A schematic diagram showing a target example service sequence number in one embodiment;

[0050] Figure 9 Schematic diagram of the architecture of a method for generating a sequence number in one embodiment;

[0051] Figure 10 A schematic diagram of a process for generating a sequence number according to a target service sequence number rule in one embodiment;

[0052] Figure 11 is a structural block diagram of a sequence number generating device in one embodiment;

[0053] Figure 12 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0055] The serial number generation method provided in the embodiment of the present application can be applied to Figure 1 In the distributed system 100 shown. Among them, the distributed system 100 includes a management terminal 110, a service terminal 120 and a business terminal 130. The management terminal 110 is used to generate a target sequence number rule configuration module. The server terminal 120 generates a business sequence number of the target business according to the target sequence number rule configuration module. The business terminal 130 is used to execute the target business according to the business sequence number. Among them, the management terminal 110 can be but is not limited to various personal computers, laptops, smart phones and tablets. The server terminal 120 or the business terminal 130 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.

[0056] In an exemplary embodiment, Figure 2 As shown, a method for generating a sequence number is provided, which is applied to Figure 1 The description is made by taking the management terminal 110 (hereinafter referred to as the management terminal) as an example, which includes the following steps 202 to 204. Among them:

[0057] Step 202: Generate each sequence number rule configuration module of the target service according to the service feature information of the target service and the initial sequence number rule template.

[0058] The service sequence number rule generation request includes the service identifier of the target service. The initial sequence number rule template includes each initial sequence number rule configuration module. The service feature information is information generated during the execution of the target service and information related to the target service.

[0059] In implementation, if the server does not have a target service sequence number rule for the target service, it sends a request to the management terminal to generate a service sequence number rule for the target service. The management terminal receives the request and, based on the service identifier of the target service, retrieves the service feature information of the target service from the service terminal. The management terminal then updates each initial sequence number rule configuration module based on the service feature information of the target service, generating each sequence number rule configuration module.

[0060] Specifically, the server receives a sequence number generation request for the target business sequence number sent by the business end, and queries the target business sequence number rule based on the sequence number generation request. In the case that the target business sequence number rule does not exist, the server constructs a business sequence number rule generation request for the target business based on the business identifier of the target business in the sequence number generation request, and sends the business sequence number rule generation request to the management end. The management end receives the business sequence number rule generation request for the target business, and constructs a feature information acquisition request for the target business based on the business identifier. Then, the management end sends a feature information acquisition request to the business end. In response to the feature acquisition request, the business end queries the business feature information of the target business and returns the business feature information of the target business to the management end. The management end receives the business feature information of the target business and generates each character string, each initial enumeration value and initial date type corresponding to the target business based on the business feature information. Then, the management end updates the initial sequence number rule template based on each character string, each initial enumeration value and initial date type to obtain each sequence number rule configuration module.

[0061] In an exemplary embodiment, an initial serial number rule template is pre-set in the management end. The target business is the order business, and the target business serial number is the order serial number. The server receives a serial number generation request for the order serial number sent by the business end and queries the order serial number rule based on the serial number generation request. If the order serial number rule does not exist, the server constructs an order serial number rule generation request for the order business based on the order business identifier of the order business in the serial number generation request and sends the order serial number rule generation request to the management end. The management end receives the order serial number rule generation request for the order business and constructs a feature information acquisition request for the order business based on the order business identifier. The management end then sends a feature information acquisition request to the business end. The business end receives the feature information acquisition request and queries the business feature information of the order business based on the order business identifier. The business end then returns the business feature information of the order business to the management end. The management end receives the business feature information of the order business and generates the corresponding character strings, initial enumeration values, and initial date type for the order business based on the business feature information. Then, the management end updates the initial serial number rule template according to each character string, each initial enumeration value and the initial date type, and obtains each serial number rule configuration module of the order business.

[0062] Step 204 : determining an initial target sequence number rule configuration module in each sequence number rule configuration module, and generating a target sequence number rule configuration module according to the initial target sequence number rule configuration module.

[0063] The target sequence number rule configuration module is used to configure and generate the target service sequence number of the target service.

[0064] In implementation, in response to a trigger request from a sequence number rule configuration module in each sequence number rule configuration module, the management terminal determines the triggered sequence number rule configuration module as the initial target sequence number rule configuration module, and then generates a target sequence number rule configuration module based on the initial target sequence number rule configuration module.

[0065] In an exemplary embodiment, each sequence number rule configuration module includes a default sequence number rule configuration module. A default module tag is set on the default sequence number rule configuration module. The management terminal identifies the default sequence number rule configuration module with the default module tag in each sequence number rule module, determines the default sequence number rule configuration module as the initial target sequence number rule configuration module, and generates a target sequence number rule configuration module based on the initial target sequence number rule configuration module.

[0066] In the above-mentioned serial number generation method, each serial number rule configuration module of the target business is generated through the business characteristic information of the target business and the initial serial number rule template, and the target serial number rule configuration module is determined according to each serial number rule configuration module, and a target serial number rule configuration module that meets the business characteristics of the target business is obtained. Based on the target serial number rule configuration module, the target business serial number is generated, and the target business serial number containing the business characteristic information of the target business is obtained, so that in the process of querying the target business serial number, the target business serial number can be directly searched according to the business characteristic data, thereby improving the query efficiency.

[0067] In an exemplary embodiment, Figure 3 As shown, the specific processing process of step 202 includes steps 302 to 306. Among them:

[0068] Step 302: Receive a request for generating a service sequence number rule for a target service.

[0069] The service sequence number rule generation request includes the service identifier of the target service. The service sequence number generation request includes the service identifier of the target service.

[0070] In practice, the server responds to a sequence number generation request for a target service sequence number sent by the service end by querying the target service sequence number rule corresponding to the service identifier. If no target service sequence number rule exists, the server constructs a service sequence number rule generation request based on the service identifier of the target service and sends the service sequence number rule generation request to the management end. The management end receives the service sequence number rule generation request for the target service.

[0071] In an exemplary embodiment, when the business end executes the target business, it obtains the target business sequence number from the cache of the business end. When the target business sequence number does not exist in the cache, the business end sends a sequence number acquisition request for the target business sequence number to the service end. The service end receives the sequence number generation request for the target business sequence number sent by the business end, and queries the target business sequence number rule based on the business identifier of the target business. If the target business sequence number rule does not exist, the service end returns a prompt message to the business end that the target business sequence number rule does not exist. The business end receives and displays the prompt message that the target business sequence number rule does not exist. The user operates the business end and sends a target business sequence number rule generation request to the management end through the business end. The management end receives the business sequence number rule generation request for the target business.

[0072] In an optional embodiment, if the target service sequence number rules for the target service exist in the server, the server generates the target service sequence number for the target service according to each target sequence number rule configuration module in the target service sequence number rules.

[0073] Step 304: Acquire the service feature information of the target service according to the service identifier of the target service, and generate a target service serial number according to the service feature information.

[0074] The service feature information includes service type data of the target service.

[0075] During implementation, the management end obtains the service feature information of the target service from the service end according to the service identifier of the target service and generates a target service serial number according to the service type data of the service end.

[0076] Specifically, the management terminal constructs a target service feature information acquisition request based on the service identifier of the target service and sends the target service feature information acquisition request to the service terminal. In response to the target service feature information acquisition request, the service terminal returns the target service feature information to the management terminal. The management terminal receives the target service feature information and obtains the maximum value of the historical service sequence number. The management terminal then generates the target service sequence number based on the service type data and the maximum value of the historical service sequence number. The target service sequence number is identification information for the target service sequence number and the target service sequence number rule.

[0077] In an exemplary embodiment, the business serial number includes a character number portion and a digital number portion. The management end constructs a feature information acquisition request for the target business based on the business identifier of the target business, and sends the feature information acquisition request for the target business to the business end. The business end receives the feature information acquisition request for the target business sent by the management end, and queries the business feature information of the target business based on the business identifier of the target business. Then, the business end returns the business feature information of the target business to the management end. The management end receives the business feature information of the target business and obtains the maximum value of the historical business serial number. Then, the management end generates a target character number based on the business type data, and determines the target digital number based on the digital number portion of the maximum value of the historical business serial number. Then, the management end splices the target character number and the target digital number to obtain the target business serial number.

[0078] For example, the target business is an order business. The maximum value of the historical business serial number is USER1110. The business type data is order. The management end constructs a feature information acquisition request for the order business based on the business identifier of the order business and sends the feature information acquisition request for the order business to the business end. The business end receives the feature information acquisition request for the order business sent by the management end and queries the business feature information of the order business based on the business identifier of the order business. The business end then returns the business feature information of the order business to the management end. The management end receives the business feature information of the order business and obtains the maximum value of the historical business serial number. The management end then generates the target character number ORD based on the business type data and determines that the digital number portion of the maximum value of the historical business serial number is 1110. The management end determines the target digital number 1111 based on the digital number portion of the maximum value of the historical business serial number. The management end then concatenates the target character number and the target character number to obtain the target business serial number ORD1111.

[0079] Step 306: Update the initial sequence number rule template according to the service feature information to obtain each sequence number rule configuration module.

[0080] The initial sequence number rule template includes various initial sequence number rule configuration modules.

[0081] In implementation, the management terminal generates each character string, each initial enumeration value, and initial date type according to the service feature information, and then updates each initial sequence rule configuration module according to each character string, each initial enumeration value, and initial date type to obtain each sequence rule configuration module.

[0082] Specifically, the initial serial number rule configuration module includes an initial string module, an initial date module, an initial enumeration module, an initial digital module and an initial placeholder module. The service feature information includes service type data, service status data and service frequency data. The management end generates each string and each initial enumeration value based on the service type data and service status data. Then, the management end generates the initial date type based on the service frequency data, and updates the initial date module based on the initial date type to obtain a date module. The management end updates the initial string module based on each string to obtain a string module, and updates the initial enumeration module based on each initial enumeration value to obtain an enumeration module. Then, the management end determines the initial digital module as a digital module, and determines the initial placeholder module as a placeholder module.

[0083] In this embodiment, each sequence number rule configuration module of the target service is directly generated through the service feature information of the target service and the initial sequence number rule template, which simplifies the sequence number rule configuration module generation process and improves the generation efficiency of the sequence number generation method module.

[0084] In an exemplary embodiment, the initial serial number rule template includes an initial string module, an initial enumeration module and an initial date module; the serial number rule configuration module includes a string module, a date module and an enumeration module, such as Figure 4 As shown, the specific processing process of step 306 includes steps 402 to 406. Among them:

[0085] Step 402: Generate character strings corresponding to the target service according to the service type data in the service feature information, and generate initial enumeration values ​​according to the service status data in the service feature information.

[0086] The service characteristic information includes the target service's service type data, service status data, and service frequency data. Service type data is the type of the target service, while service status data represents the execution status of the target service. Service type data is data related to the target service, while service status data and service frequency data are data generated during the execution of the target service.

[0087] In practice, the management terminal generates character strings representing the type of the target service based on the service type data in the service feature information. Then, the management terminal generates an initial enumeration value representing the execution state of the target service based on the service state data in the service feature information.

[0088] Specifically, the management terminal generates character strings representing the types of target services based on the English name and Chinese pinyin of the service type data. Then, the management terminal generates initial enumeration values ​​based on the English name and Chinese pinyin of each service status in the service status information.

[0089] In an exemplary embodiment, the target business is an order business, and the business type is an order type. The management terminal generates the character strings ORD and DingDan representing the target business type based on the English name of the order type, ORDER, and its Chinese pinyin, DingDan. The management terminal then generates initial enumeration values ​​based on the English names of the order business's business status information: pending payment, paid, ordered, in transit, and completed. Specifically, pending payment is Pending, paid is Paid, ordered is ordered, in transit is Transit, and completed is Completed.

[0090] In an exemplary embodiment, the target business is a loan business, and the business type is a liability. The management terminal generates the character strings "Debt" and "FuZhai" representing the loan business type based on the English name "debt" and the Chinese pinyin of the liability type. The management terminal then generates initial enumeration values ​​(Normal, partially overdue, overdue, and non-accrual) based on the business status information of the loan business: normal, partially overdue, overdue, and non-accrual.

[0091] In one exemplary embodiment, the target service is a customer service service, and the service type is consultation. The management terminal generates the character strings Consult and ZiXun, representing the service type of the customer service service, based on the English name of the consultation type, Consult, and its Chinese pinyin. The management terminal then generates the initial enumeration values ​​Online, Online, Busy, Away, and Stealth based on the service status information of the customer service service: Online, Online, Busy, Away, and Stealth.

[0092] In an exemplary embodiment, the target service is an instant messaging service, and the service type is communication. The management terminal generates the character strings "Com" and "TongXun" representing the communication type based on the English name "Communication" and the Chinese pinyin "TongXun". The management terminal then generates initial enumeration values ​​"Sending", "Sending Successful", and "Sending Failed" based on the service status information of the instant messaging service: "Sending", "Sending Successful", and "Sending Failed".

[0093] In an optional embodiment, the service feature information includes the service name of the target service. The management terminal generates character strings corresponding to the target service based on the service name. For example, if the target service is a transfer service, the management terminal directly generates character strings corresponding to the transfer services based on the transfer service. Specifically, the character strings are: transfer, transfer accounts, account transfer, and transfer.

[0094] Optionally, each initial enumeration value may be generated based on, but not limited to, business status data, and each character string may be generated based on, but not limited to, business type data or business name, determined according to the business requirements of the target business. The present embodiment does not limit the basis for generating the initial enumeration value and character string.

[0095] Step 404 : updating the initial string module based on each string to obtain a string module, and updating the initial enumeration module based on each initial enumeration value to obtain an enumeration module.

[0096] In implementation, the management end adds each string to the string set in the initial string module to obtain the initial string module. Then, the management end adds each initial enumeration value to the initial enumeration value set in the initial enumeration module to obtain the enumeration module.

[0097] In an exemplary embodiment, the target business is an order business, and the business type is an order type. The character strings are ORD and DingDan. The initial enumeration values ​​are Pending, Paid, Ordered, Transit, and Completed. The management client adds ORD and DingDan to the string set in the initial string module, thereby obtaining the initial string module. The management client then constructs an initial enumeration value subset based on Pending, Paid, Ordered, Transit, and Completed, and adds the initial enumeration value subset to the initial enumeration value set in the initial enumeration module, thereby obtaining the enumeration module.

[0098] In an exemplary embodiment, the target business is a loan business, and the business type is a liability type. The character strings corresponding to the payload type are Debt and FuZhai, and the initial enumeration values ​​corresponding to the loan business are Normal, partially overdue, overdue, and non-accrual. The management end adds Debt and FuZhai to the string set in the initial string module, generating an initial string module. The management end then constructs an initial enumeration value subset based on Normal, partially overdue, overdue, and non-accrual, and adds this initial enumeration value subset to the initial enumeration value set in the initial enumeration module, generating an enumeration module.

[0099] In an exemplary embodiment, the target service is a customer service service, and the service type is a consulting service. The strings corresponding to the consulting service type are Consult and ZiXun, and the initial enumeration values ​​corresponding to the customer service service are Online, Online, Busy, Away, and Stealth. The management end adds Consult and ZiXun to the string set in the initial string module, generating an initial string module. The management end then constructs an initial enumeration value subset based on Normal, Partially Overdue, Overdue, and Non Accrual, and adds this initial enumeration value subset to the initial enumeration value set in the initial enumeration module, generating an enumeration module.

[0100] In an exemplary embodiment, the target service is an instant messaging service, and the service type is a communication type. The character strings corresponding to the communication type are "Com" and "TongXun," and the initial enumeration values ​​corresponding to the instant messaging service are "Sending," "sending successful," and "sending failed." The management end adds "Com" and "TongXun" to the character string set in the initial string module, thereby obtaining the initial string module. The management end then constructs an initial enumeration value subset based on "Sending," "sending successful," and "sending failed," and adds the initial enumeration value subset to the initial enumeration value set in the initial enumeration module, thereby obtaining the enumeration module.

[0101] Step 406: Generate an initial date type corresponding to the target service according to the service frequency data in the service characteristic information, and update the initial date module according to the initial date type to obtain a date module.

[0102] In implementation, the management terminal pre-sets the correspondence between frequency data and date types. The management terminal normalizes the service frequency data to obtain standardized service frequency data. The management terminal then determines the initial date type corresponding to the standardized service frequency data based on the correspondence between frequency data and date types. The management terminal then determines the initial date type from among the various date types included in the initial date module as the default date type, thereby obtaining a date module.

[0103] Specifically, the correspondence between frequency data and date types corresponds to the correspondence between service frequency ranges and date types. The management terminal normalizes the service frequency data to obtain standardized service frequency data. The management terminal determines the target service frequency range within which the standardized service frequency data falls and determines the initial date type corresponding to the target service frequency range. The management terminal determines the initial date type among the date types included in the initial date module as the default date type, thereby obtaining a date module. The default date type is the preferred date type.

[0104] In an exemplary embodiment, the correspondence between the service frequency range and the date type is as follows: when the service frequency is in (0, 1], the date type is year; when the service frequency is in (1, 10], the date type is month; when the service frequency is in (10, 100], the date type is day; when the service frequency is in (100, 1000], the date type is hour; when the service frequency is in (1000, 5000], the date type is minute; when the service frequency is greater than 5000, the date type is second. The unit of the service frequency is times per day. The service frequency data obtained by the management end is 10 times / hour. The management end normalizes the service frequency data to obtain the standardized service frequency data as 240 times / day. The management end determines that the target service frequency range in which the service frequency data is located is (10, 100], and determines the date type hour corresponding to the target service frequency range data as the initial date type.

[0105] For example, the management end obtains the loan business frequency data of 2 times / day. The management end determines that the target business frequency range corresponding to this business frequency data is (1, 10], and determines the date type corresponding to the target business frequency range as the initial date type.

[0106] In one exemplary embodiment, the management terminal obtains service frequency data for an instant messaging service of 10 times / minute. The management terminal normalizes the service frequency data to obtain a normalized service frequency of 14,400 times / day. The management terminal determines that the target service frequency range for the service frequency data is greater than 5,000. The management terminal sets the target date type corresponding to the target service frequency range to seconds.

[0107] In this embodiment, each initial enumeration value, each character string and initial date type are generated through business feature information, and the character string module, date module and enumeration module are determined according to each initial enumeration value, each character string and initial date type. This enables the management end to directly determine the configuration information of the character string module, date module and enumeration module according to each initial enumeration value, each character string and initial date type, thereby accelerating the generation speed of the target character configuration module and thereby improving the efficiency of the serial number generation method.

[0108] In an exemplary embodiment, Figure 5 As shown, the specific processing process of step 204 includes steps 502 to 504. Among them:

[0109] Step 502: In response to a triggering operation of a sequence number rule configuration module in each sequence number rule configuration module, determine the triggered sequence number rule configuration module as an initial target sequence number rule configuration module.

[0110] In implementation, the management end responds to the triggering operation of the sequence number rule configuration module in each sequence number rule configuration module, obtains the triggered sequence number rule configuration module, and determines the sequence number rule configuration module as the initial target sequence number rule configuration module.

[0111] Specifically, the user triggers each sequence rule configuration module one by one based on the business requirements of the target business. The management terminal responds to the triggering request of each sequence rule configuration module, obtains the triggered sequence rule configuration module, and determines it as the initial target sequence rule configuration module. The management terminal then determines the order of the initial target sequence rule configuration modules based on the triggering order.

[0112] In an exemplary embodiment, the sequence rule configuration module includes a string module, an enumeration module, a date module, a number module, and a placeholder module. The management end displays each sequence rule configuration module through a configuration page. The user triggers the string module in each sequence rule configuration module based on the business needs of the target business. The management end responds to the triggering operation of the string module, obtains the string module, and determines that the string module is the initial sequence rule configuration module. The management end then determines that the string module is in the first order. The user triggers the date module in each sequence rule configuration module based on the business needs of the target business. The management end responds to the triggering operation of the date module, obtains the date module, and determines that the date module is the initial sequence rule configuration module. The management end then determines that the date module is in the second order. The user triggers the number module in each sequence rule configuration module based on the business needs of the target business. The management end responds to the triggering operation of the number module, obtains the number module, and determines that the number module is the initial sequence rule configuration module. The management end then determines that the number module is in the third order. Therefore, the modules for configuring the initial target sequence number rules in the management terminal are a string module, a date module, and a number module in descending order.

[0113] In an optional embodiment, the management end determines a default sequence number rule configuration module with a default module tag in each sequence number rule configuration module, and determines each default sequence number rule configuration module as an initial target sequence number rule configuration module according to a preset module order.

[0114] For example, the default serial number rule configuration modules are the string module, enumeration module, date module, and number module, and the order of the modules from earliest to latest is the string module, date module, number module, and enumeration module. The management end determines that the string module, enumeration module, date module, and number module with the default module label in each serial number rule configuration module are the initial target serial number rule configuration modules. The management end then determines that the order of each initial target serial number rule configuration module from earliest to latest is the string module, date module, number module, and enumeration module.

[0115] Optionally, the trigger operation may be, but is not limited to, a click operation and a drag operation. The embodiment of the present application does not limit the trigger operation.

[0116] Optionally, the module order is determined according to the business requirements of the target business, and the embodiment of the present application does not limit the module order.

[0117] Step 504: Acquire configuration information, and generate a target sequence number rule configuration module based on the configuration information and the initial target sequence number rule configuration module.

[0118] During implementation, the management terminal obtains configuration information corresponding to the initial target sequence number rule configuration module, and then generates a target sequence number rule configuration module based on the configuration information and the initial target sequence number rule configuration module.

[0119] Specifically, the management terminal displays the detailed data of the initial target sequence number rule configuration module in response to a triggering operation of the initial target sequence number rule configuration module. The user enters configuration information based on the detailed data of the initial target sequence number rule configuration module. The management terminal obtains the configuration information and generates the target sequence number rule configuration module based on the configuration information and the initial target sequence number rule configuration module.

[0120] In an exemplary embodiment, the serial number rule configuration module includes a string module, an enumeration module, a date module, a number module and a placeholder module. The string module is used to add a fixed prefix or suffix to the serial number to increase readability or identify a specific business type. Different accounts and different applications can be configured with fixed strings. The enumeration module is used to limit certain parts of the serial number to only take specific values. The date generated by the date module is a component of the serial number and is used to identify the generation time of the serial number. Using the date as part of the serial number can facilitate temporal sorting and query of the serial number. The number generated by the number module is an indispensable component of the serial number, and the number is used to represent the order or quantity of the serial number. The placeholder module is used to generate a placeholder, which is usually used to reserve a placeholder in the serial number.

[0121] If the string module is an initial target serial number rule configuration module, the management end displays the detailed data of the string module. Among them, the detailed data of the string module includes an initial string set, and the initial string set contains each initial string. The user can determine and trigger the initial string in each initial string. In response to the triggering operation of the initial string, the management end determines the triggered initial string as the target string. Then, the management end generates a target string module based on the target string and the string module. For example, the user triggers the ORD initial string among the two initial strings ORD and DingDan. In response to the triggering operation of the ORD initial string, the management end determines ORD as the target string. The target string identifies that this is an order-related serial number.

[0122] If the enumeration module is an initial target sequence number rule configuration module, the management end displays the detailed data of the enumeration module. Among them, the detailed data of the enumeration module includes an initial enumeration value set, and the initial enumeration value set includes each initial enumeration value subset. The user can determine and trigger the initial enumeration value subset in each initial enumeration value subset. In response to the triggering operation of the initial enumeration value subset, the management end determines the triggered initial enumeration value subset as the initial enumeration value subset. Then, the management end generates a target enumeration module based on the initial enumeration value subset and the enumeration module. For example, the user triggers the initial enumeration value subset of Pending, Paid, ordered, Transit and Completed in each initial enumeration value subset. In response to the triggering operation of the Pending, Paid, ordered, Transit and Completed initial enumeration value subsets, the management end determines the Pending, Paid, ordered, Transit and Completed initial enumeration value subsets as the target enumeration value subset.

[0123] If the date module is the initial target sequence number rule configuration module, the management terminal displays detailed data for the date module. This data includes the default date type, other date types, and the corresponding date formats for each date type. Based on the accuracy requirements of the target business, the user determines and triggers a date type among the default date type and other date types. In response to the date type triggering operation, the management terminal determines the triggered date type as the target date type. The management terminal then determines the corresponding date format as the target date format and generates a target date module based on the target date type, target date format, and date module. For example, if the user triggers the date type "day" among the default date type (hour) and other date types (year, month, day, hour, minute, and second), the management terminal, in response to the date type triggering operation, determines the date type "day" as the target date type and the corresponding date format as the target date format.

[0124] If the placeholder module is the initial target sequence number rule configuration module, the management terminal displays the detailed data of the placeholder module. The detailed data of the placeholder module includes the default placeholder position and the default placeholder quantity. Based on the business needs of the target business, the user enters the target placeholder position according to the default placeholder position and the target number of places according to the default placeholder quantity. The management terminal then generates the target placeholder module based on the target placeholder position, target number of placeholders, and the placeholder module. The placeholder generated by the placeholder module is used to reserve a placeholder in the sequence number so that a specific value can be filled in during subsequent processing. When the sequence number is generated, the placeholder is replaced with the value passed in by the target business.

[0125] In an optional embodiment, the management end determines default data in the initial target sequence number rule configuration module and determines the default data as configuration information. Then, the management end configuration information and the initial target sequence number rule configuration module generate the target sequence number rule configuration module.

[0126] For example, if the string module is an initial target sequence number rule configuration module, the string module contains initial strings and a default string. The management side determines the default string as the target string and generates a target string module based on the target string and the string module. The target string module is a target sequence number rule configuration module.

[0127] If the enumeration module is an initial target sequence number rule configuration module, the enumeration module includes an initial enumeration value set, which includes initial enumeration value subsets. The management terminal determines the default enumeration value subset in the initial enumeration value subset as the target enumeration value subset and generates a target enumeration module based on the target enumeration value subset and the enumeration module. The target enumeration module is a target sequence number rule configuration module.

[0128] If the date module is the initial target sequence number rule configuration module, it includes a default date type, other date types, and the corresponding date formats for each date type. The administrator determines the default date type as the target date type and the corresponding date format as the target date format. The administrator then generates a target date module based on the target date type, target date format, and date module. The target date module is the target sequence number rule configuration module.

[0129] If the placeholder module is the initial target sequence number rule configuration module, it includes a default placeholder position and a default placeholder quantity. The management client determines the default placeholder position as the target placeholder position and the default placeholder quantity as the target placeholder quantity. The management client then generates a target placeholder module based on the target placeholder position, target placeholder quantity, and the placeholder module. The target placeholder module is the target sequence number rule configuration module.

[0130] In this embodiment, by determining the initial target sequence number configuration module in each sequence number rule configuration module and obtaining configuration information to generate a target sequence number rule configuration module, the target sequence number rule configuration module can contain different business personalized information according to the business needs of the target business, thereby improving the flexibility and scalability of the sequence number generation method. In addition, different business scenarios and needs can be met by adjusting the combination of target sequence number rule configuration modules without making major changes to the entire system. At the same time, as the system expands and the business develops, new rules can be easily added or the rule combination can be adjusted to adapt to new needs, thereby improving the efficiency of the target sequence number rule configuration module and thus improving the efficiency of sequence number generation.

[0131] In an exemplary embodiment, the initial target sequence number rule configuration module is a digital module, the digital module includes various digital generation modes, and the target sequence number rule configuration module is a target digital module, such as Figure 6 As shown, the specific processing process of step 504 includes steps 602 to 606. Among them:

[0132] Step 602: Obtain a target digital generation mode from each digital generation mode.

[0133] In practice, the management terminal displays various digital generation modes in response to a triggering operation of the digital module. The user determines and triggers a digital generation mode in the digital generation mode. The management terminal obtains the triggered digital generation mode and determines the default digital generation mode that is triggered as the target digital generation mode.

[0134] Specifically, the digital generation mode includes a random generation mode and an ordered generation mode. The management terminal displays the random generation mode and the ordered generation mode in response to a trigger operation of the digital module. If the target business requires the serial number to be complex and secure, the user triggers the random generation mode, the management terminal obtains the random generation mode, and determines the random generation mode as the target digital generation mode. If the target business requires the serial number to be unique and orderly, the user triggers the ordered generation mode, the management terminal obtains the ordered generation mode, and determines the ordered generation mode as the target digital generation mode.

[0135] Step 604: If the target number generation mode is a random generation mode, obtain the target random number generation algorithm from the random number generation algorithms corresponding to the random generation mode.

[0136] In practice, if the target number generation mode is random, the management terminal displays the corresponding random number generation algorithms. The user selects and triggers the random number generation algorithm in the generation algorithm. The management terminal obtains the triggered random number generation algorithm and determines the triggered random number generation algorithm as the target number generation algorithm.

[0137] In one exemplary embodiment, the random number generation algorithm includes a linear congruential algorithm, a median sampling algorithm, and a random number seed algorithm. If the target number generation mode is the random generation mode, the management terminal displays the linear congruential algorithm, the median sampling algorithm, and the random number seed algorithm. The user selects and triggers the linear congruential algorithm in the random number generation algorithm. The management terminal obtains the triggered linear congruential algorithm and determines it as the target random number generation algorithm.

[0138] In an optional embodiment, if the target digital generation mode is the ordered generation mode, the management terminal displays an ordered generation mode form. Based on the ordered generation mode form, the management terminal obtains the digital module's configuration information. This digital module configuration information includes the target digital starting value and target maximum value, target step size, target sequence number length, and target format. Furthermore, the generation mode form configures a maximum value reaching strategy (supporting restarting from the beginning and system exception throwing). The management terminal generates the target digital module based on the digital module configuration information and the digital module.

[0139] In an optional embodiment, if the target digital generation mode is the ordered generation mode, the management terminal obtains the ordered generation mode form and constructs the configuration information of the digital module according to the default configuration data in the ordered generation mode form. Then, the management terminal generates the target digital module according to the configuration information of the digital module and the digital module.

[0140] Optionally, the random number generation algorithm may be, but is not limited to, a linear congruential algorithm, a median sampling algorithm, and a random number seed algorithm, which is determined according to the business requirements of the target business. The embodiment of the present application does not limit the random number generation algorithm.

[0141] Step 606: Generate a target digital module according to the random generation mode, the target random number generation algorithm and the digital module.

[0142] In implementation, the management terminal generates a target digital module based on the random generation mode, the target random number generation algorithm, and the digital module. The target digital module is used to configure the digital portion of the generated serial number.

[0143] In an optional embodiment, the management terminal queries a default random number generation mode for each digital generation mode and determines the default random number generation mode as the target digital generation mode. If the target digital generation mode is a random generation mode, the management terminal determines the default random number generation algorithm from among the random number generation algorithms corresponding to the random generation mode. The management terminal then determines the default random number generation algorithm as the target random number generation algorithm. The management terminal generates a target digital module based on the random generation mode, the target random number generation algorithm, and the digital module.

[0144] In this embodiment, by obtaining a target digital generation mode and a target random number generation algorithm from each digital generation mode, different target digital generation modes and target random number generation algorithms can be obtained for different business scenarios. Then, based on the random generation mode, target random number generation algorithm, and digital module, a target digital module is generated to obtain different target digital modules, meeting different business needs and expanding the scope of application of the business generation algorithm.

[0145] In an exemplary embodiment, after generating the target sequence number rule configuration module, it is also necessary to generate the target service sequence number rule according to the target sequence number rule configuration module, such as Figure 7 As shown, after step 204 is executed, the specific processing process of the serial number generation method includes steps 702 to 706. Among them:

[0146] Step 702: Generate an example service sequence number sub-value corresponding to each target sequence number rule configuration module, and annotate each example service sequence number sub-value with the name of the target sequence number rule configuration module corresponding to the example service sequence number sub-value.

[0147] During implementation, the management end generates a corresponding example service sequence number sub-value based on the configuration information of each target sequence number rule configuration module. The example service sequence number sub-value is a component of the target example service sequence number. The management end then labels each service sequence number sub-value using the name of the target sequence number rule configuration module corresponding to the service sequence number sub-value as a tag.

[0148] In an exemplary embodiment, the target sequence number rule configuration module includes a target string module, a target date module, and a target number module. The management terminal generates a target string example sub-value based on the configuration information of the target string module. The management terminal generates a target date example sub-value based on the configuration information of the target date module. The management terminal generates a target number example sub-value based on the configuration information of the target number module. The management terminal labels the target string example sub-value using the target string module as a tag. The management terminal labels the target date example sub-value using the target date module as a tag. The management terminal labels the target number example sub-value using the target number module as a tag.

[0149] Step 704 , concatenate the sub-values ​​of each example service sequence number to obtain the target example service sequence number, and display the target example service sequence number and the name of each target sequence number rule configuration module.

[0150] In practice, the management side concatenates the sub-values ​​of each example service sequence number according to the module order of each target sequence number rule configuration module to obtain the target example service sequence number. The management side then displays the example service sequence number and the name of each target sequence number rule configuration module on the configuration page.

[0151] In an exemplary embodiment, the module order is the triggering order of the target sequence number rule configuration module in step 202. The module order of each target sequence number rule configuration module is, from first to last, the target string module, the target date module, and the target number module. Each example business sequence number sub-value is a target string example sub-value, a target date example sub-value, and a target number example sub-value. The computer splices the target string example sub-value, the target date example sub-value, and the target number example sub-value together in the order of the target string example sub-value, the target date example sub-value, and the target number example sub-value, to obtain the target example business sequence number. Then, the management terminal displays the target business sequence number and the name of each target sequence number rule configuration module. For example, Figure 8 A schematic diagram showing a target example service sequence number in an embodiment.

[0152] Step 706: In response to the target example service sequence number determination operation, a target service sequence number rule is constructed according to the target service sequence number and each target sequence number rule configuration module.

[0153] The target service sequence number is an identifier of the target service sequence number rule.

[0154] In implementation, the management side, in response to the target example service sequence number determination operation, constructs a target service sequence number rule based on the target service sequence number and each target sequence number rule configuration module. The management side sends the target service sequence number rule to the server side, so that the server side generates a target service sequence number for the target service based on the target service sequence number rule.

[0155] In an exemplary embodiment, the target service serial number is ORD1111. The target serial number rule configuration module includes a target string module, a target date module, and a target number module. The management terminal constructs the target service serial number rule based on the target service serial number ORD1111, the target string module, the target date module, and the target number module.

[0156] In this embodiment, by displaying the target example business serial number and the name of each target serial number rule configuration module, the user can clearly understand whether the current target serial number rule configuration module is configured correctly, avoiding repeated adjustment of the target business serial number rule after generating the target business serial number rule, and improving the generation efficiency of the target business serial number rule.

[0157] In an exemplary embodiment, Figure 9 A schematic diagram of the structure of a sequence number generation method in one embodiment. Figure 9As shown, the initial serial number rule template includes a fixed string module, an enumeration module, a date module, a number module and a specific rule module. Optionally, the specific rule module can be a placeholder module. These initial serial number rule configuration modules are single serial number rule configuration modules. The target serial number configuration module can be customized according to the needs of the target business through the serial number generation method on the management side. For example, a customer serial number can be generated by fixed characters, specific rules, and numbers arranged in sequence. The management side supports a variety of initial serial number rule configuration module combination settings, which can realize personalized configuration of the target business serial number rules. After the configuration is completed, the target example business serial number generated by the target business serial number rule is displayed to realize the serial number preview function.

[0158] In an exemplary embodiment, Figure 10 FIG. 1 is a flow chart of generating a sequence number according to a target service sequence number rule in an embodiment. Figure 10 As shown, the server receives a sequence number generation request sent by the business end, and queries and loads the target business sequence number rules based on the target business sequence number in the sequence number generation request. The target business sequence number rules include a target string module, a target date module, a target number module, and a target specific rule module. The target specific rule module is a target placeholder module. The server generates a set of target business sequence numbers in batches according to the sequence number business sequence number rules. Specifically, the server concatenates the target string with a fixed prefix based on the target string module and replaces the placeholder with the actual business data. The server returns a set of target business sequence numbers to the business end.

[0159] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0160] Based on the same inventive concept, embodiments of the present application also provide a sequence number generation device for implementing the aforementioned sequence number generation method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more sequence number generation device embodiments provided below can be found in the aforementioned limitations of the sequence number generation method and will not be further elaborated here.

[0161] In an exemplary embodiment, Figure 11 As shown, a sequence number generating device 1100 is provided, comprising a generating module 1101 and a determining module 1102, wherein:

[0162] The generating module 1101 is configured to generate various sequence number rule configuration modules of the target service according to the service feature information of the target service and the initial sequence number rule template.

[0163] The determination module 1102 is used to determine the initial target sequence number rule configuration module in each sequence number rule configuration module and generate a target sequence number rule configuration module according to the initial target sequence number rule configuration module; the target sequence number rule configuration module is used to configure and generate the target business sequence number of the target business.

[0164] In an exemplary embodiment, the generating module 1101 includes:

[0165] The first receiving submodule is configured to receive a service sequence number rule generation request for a target service; the service sequence number rule generation request includes a service identifier of the target service.

[0166] The first generating submodule is configured to obtain service feature information of the target service according to the service identifier of the target service, and generate a target service sequence number according to the service feature information.

[0167] The first updating submodule is used to update the initial sequence number rule template according to the service feature information to obtain each sequence number rule configuration module.

[0168] In an exemplary embodiment, the initial sequence number rule template includes an initial string module, an initial enumeration module, and an initial date module; the sequence number rule configuration module includes a string module, a date module, and an enumeration module; and the first update submodule includes:

[0169] The second generating submodule is configured to generate character strings corresponding to the target service according to the service type data in the service feature information, and to generate initial enumeration values ​​according to the service status data in the service feature information.

[0170] The second updating submodule is configured to update the initial string module based on each string to obtain a string module, and to update the initial enumeration module based on each initial enumeration value to obtain an enumeration module.

[0171] The third generating submodule is used to generate an initial date type corresponding to the target service according to the service frequency data in the service characteristic information, and update the initial date module according to the initial date type to obtain a date module.

[0172] In an exemplary embodiment, the determining module 1102 includes:

[0173] The first determining submodule is configured to respond to a triggering operation of a sequence number rule configuration module in each sequence number rule configuration module and determine the triggered sequence number rule configuration module as an initial target sequence number rule configuration module.

[0174] The fourth generating submodule is configured to obtain configuration information and generate a target sequence number rule configuration module based on the configuration information and the initial target sequence number rule configuration module.

[0175] In an exemplary embodiment, the initial target sequence number rule configuration module is a digital module, the digital module includes various digital generation modes, the target sequence number rule configuration module is a target digital module, and the fourth generation submodule includes:

[0176] The first acquisition submodule is used to acquire a target digital generation mode from each digital generation mode.

[0177] The second acquisition submodule is used to acquire the target random number generation algorithm from the random number generation algorithms corresponding to the random generation mode if the target number generation mode is the random generation mode.

[0178] The fifth generation submodule is used to generate a target digital module according to the random generation mode, the target random number generation algorithm and the digital module.

[0179] In an exemplary embodiment, the serial number generating device 1100 further includes:

[0180] The marking module is used to generate an example business sequence number sub-value corresponding to each target sequence number rule configuration module, and mark each example business sequence number sub-value with the name of the target sequence number rule configuration module corresponding to the example business sequence number sub-value.

[0181] The splicing module is used to splice the sub-values ​​of each example business serial number to obtain the target example business serial number, and display the target example business serial number and the name of each target serial number rule configuration module.

[0182] The construction module is used to respond to the determination operation of the target example business sequence number and construct the target business sequence number rule according to the target business sequence number and each target sequence number rule configuration module.

[0183] Each module in the above-mentioned serial number generation device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0184] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 12As shown. The computer device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals via wired or wireless means, and the wireless means can be implemented via Wi-Fi, a mobile cellular network, near-field communication (NFC), or other technologies. When executed by the processor, the computer program implements a method for generating a serial number. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse.

[0185] Those skilled in the art will understand that Figure 12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0186] In one embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0187] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0188] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0189] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), quantum computing-based data processing logic devices, artificial intelligence (AI) processors, and the like.

[0190] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0191] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A method for generating a sequence number, characterized in that: The method comprises: Generate each sequence number rule configuration module of the target service according to the service feature information of the target service and the initial sequence number rule template; the initial sequence number rule template includes an initial enumeration module; the sequence number rule configuration module includes an enumeration module; The module for configuring each sequence number rule of the target service is generated according to the service feature information of the target service and the initial sequence number rule template, including: receiving a request for generating a service sequence number rule for a target service; wherein the request for generating a service sequence number rule includes a service identifier of the target service; According to the service identifier of the target service, obtaining service feature information and the maximum value of historical service sequence numbers of the target service, and generating a target service sequence number according to the service feature information; the target service sequence number is identification information of the target service sequence number and a target service sequence number rule; the target service sequence number rule is constructed based on the target service sequence number and each target sequence number rule configuration module; The service characteristic information includes service type data, and generating a target service sequence number according to the service characteristic information includes: generating a target character number according to the service type data, and determining a target digital number based on the digital number portion of the maximum value of the target character number and the historical service sequence number; Concatenate the target character number and the target digital number to obtain a target service sequence number; Update the initial sequence number rule template according to the service feature information to obtain each sequence number rule configuration module; The updating of the initial sequence number rule template according to the service feature information to obtain each sequence number rule configuration module includes: Generating each initial enumeration value according to the service status data in the service feature information, and updating the initial enumeration module based on each initial enumeration value to obtain the enumeration module; An initial target sequence number rule configuration module is determined in each of the sequence number rule configuration modules, and a target sequence number rule configuration module is generated according to the initial target sequence number rule configuration module; the target sequence number rule configuration module is used to configure and generate a target service sequence number for the target service.

2. The method according to claim 1, characterized in that Determining an initial target sequence number rule configuration module in each of the sequence number rule configuration modules includes: Determining a default sequence number rule configuration module having a default module tag in each of the sequence number rule configuration modules; The default sequence number rule configuration module is determined as the initial target sequence number rule configuration module.

3. The method according to claim 1, characterized in that The initial sequence number rule template includes an initial string module and an initial date module; the sequence number rule configuration module includes a string module and a date module, and the initial sequence number rule template is updated according to the service feature information to obtain each sequence number rule configuration module, including: generating each character string corresponding to the target service according to the service type data in the service feature information; updating the initial string module based on each of the strings to obtain the string module; An initial date type corresponding to the target service is generated according to the service frequency data in the service characteristic information, and the initial date module is updated according to the initial date type to obtain a date module.

4. The method according to claim 1, wherein The step of determining an initial target sequence number rule configuration module in each of the sequence number rule configuration modules and generating a target sequence number rule configuration module according to the initial target sequence number rule configuration module includes: In response to a triggering operation of a sequence number rule configuration module in each of the sequence number rule configuration modules, determining the triggered sequence number rule configuration module as an initial target sequence number rule configuration module; Configuration information is acquired, and a target sequence number rule configuration module is generated based on the configuration information and the initial target sequence number rule configuration module.

5. The method according to claim 4, characterized in that The initial target sequence number rule configuration module is a digital module, the digital module includes various digital generation modes, and the target sequence number rule configuration module is a target digital module. The acquiring configuration information and generating the target sequence number rule configuration module based on the configuration information and the initial target sequence number rule configuration module include: Obtaining a target digital generation mode from each of the digital generation modes; If the target number generation mode is a random generation mode, obtaining a target random number generation algorithm from each random number generation algorithm corresponding to the random generation mode; A target digital module is generated according to the random generation pattern, the target random number generation algorithm and the digital module.

6. The method according to claim 1, characterized in that After generating the target sequence number rule configuration module according to the initial target sequence number rule configuration module, the method further includes: Generate an example business sequence number sub-value corresponding to each target sequence number rule configuration module, and annotate each example business sequence number sub-value with the name of the target sequence number rule configuration module corresponding to the example business sequence number sub-value; Concatenate the sub-values ​​of the example service sequence number to obtain the target example service sequence number, and display the target example service sequence number and the name of each target sequence number rule configuration module; In response to the determination operation of the target example service sequence number, a target service sequence number rule is constructed according to the target service sequence number and each target sequence number rule configuration module.

7. A serial number generating device, characterized in that: The device comprises: A generation module, configured to generate each sequence number rule configuration module of the target service according to the service feature information of the target service and the initial sequence number rule template; the initial sequence number rule template includes an initial enumeration module; the sequence number rule configuration module includes an enumeration module; The generation module includes: A first receiving submodule is configured to receive a service sequence number rule generation request for a target service; the service sequence number rule generation request includes a service identifier of the target service; A first generating submodule is configured to obtain service feature information and a maximum value of historical service sequence numbers of the target service based on the service identifier of the target service, and generate a target service sequence number based on the service feature information; the target service sequence number is identification information of the target service sequence number and a target service sequence number rule; the target service sequence number rule is constructed based on the target service sequence number and each target sequence number rule configuration module; The service feature information includes service type data, and the first generating submodule is specifically configured to generate a target character number based on the service type data, and determine a target digital number based on the target character number and a digital number portion of a maximum value of the historical service sequence numbers; and concatenate the target character number and the target digital number to obtain a target service sequence number; A first updating submodule, configured to update the initial sequence number rule template according to the service feature information to obtain each sequence number rule configuration module; The first updating submodule is specifically configured to generate each initial enumeration value according to the service status data in the service feature information, and update the initial enumeration module based on each initial enumeration value to obtain the enumeration module; A determination module is used to determine an initial target sequence number rule configuration module in each of the sequence number rule configuration modules, and generate a target sequence number rule configuration module based on the initial target sequence number rule configuration module; the target sequence number rule configuration module is used to configure and generate a target business sequence number for the target business.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Serial number generation method, device and storage medium

    CN110377268A

  • Mysql-based serial number configuration and generation method and device and medium

    CN117312404A