Serial number callback method and device

By directly querying the serial number identification and callback date to obtain the maximum value of the service serial number, the problem of long query time in the existing technology is solved, and more efficient serial number callback is achieved.

CN119135801APending Publication Date: 2024-12-13BEIJING PACTERA JINXIN TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411261677.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The existing sequence number callback method leads to a longer query time and low efficiency through two queries of sequence in the database and the maximum service sequence number.

Method used

By receiving callback requests from the service side, the target service number rules and the maximum service number value of the corresponding target service service based on the serial number identification and callback date are directly queried, the target start sequence number is determined, and the target service is identified according to the serial number identification, callback date and target service. The sequence number rule generates the target sequence number set.

Benefits of technology

The efficiency of determining the maximum value of the service serial number and generating the target serial number set is improved, and the overall efficiency of the serial number callback method is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135801A_ABST
    Figure CN119135801A_ABST
Patent Text Reader

Abstract

The invention relates to a serial number callback method and device. The method comprises the following steps: receiving a callback request of a target service sent by a service end; the callback request comprises a serial number identifier, a generation quantity and a callback date of the target service; querying a target service serial number rule corresponding to the target service and a service serial number maximum value corresponding to a target service serial number sequence under the callback date based on the serial number identifier and the callback date; the target service sequence numbers are constructed into an incremental target service sequence number sequence; determining a target initial sequence number based on the service sequence number maximum value, the generation number and a target service sequence number rule; and starting from the target starting sequence number, generating a target sequence number set of the target service according to the sequence number identifier, the callback date, the target service sequence number rule and the generation quantity. By adopting the method, the efficiency of the serial number callback method can be improved.
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 serial number callback. Background Art

[0002] In a specific business scenario, the business end needs to process the business within the historical time period, that is, the business end needs to obtain the business sequence number corresponding to the historical time period. Therefore, the business end will send a sequence number callback request to the server, so that the server can generate the business sequence number of the historical time period according to the sequence number callback request.

[0003] In the current method of serial number callback, the server receives the callback request and searches the database for the sequence corresponding to the callback date (the surrogate primary key in the database). Then, the server searches the database for the maximum value of the service serial number corresponding to the sequence, and generates the target service serial number set through the database and the maximum value of the service serial number.

[0004] However, the current method for calling back the sequence number determines the maximum value of the service sequence number by twice querying the sequence in the database and the maximum value of the service sequence number. The query time is long and the query speed is slow, resulting in low efficiency of the current method for calling back the sequence number. Summary of the invention

[0005] Based on this, it is necessary to provide a serial number callback 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 sequence number callback method, comprising:

[0007] Receiving a callback request of a target service sent by a service end; the callback request includes a serial number identifier, a generated quantity and a callback date of the target service;

[0008] Based on the sequence number identifier and the call-back date, query the target service sequence number rule corresponding to the target service and the maximum value of the service sequence number corresponding to the target service sequence number sequence on the call-back date; each target service sequence number is constructed as the target service sequence number sequence that increases in increments;

[0009] Determine a target starting sequence number based on the maximum value of the service sequence number, the generated quantity and the target service sequence number rule;

[0010] Starting with the target starting sequence number, a target sequence number set for the target service is generated according to the sequence number identifier, the call-back date, the target service sequence number rule and the generated quantity.

[0011] In one of the embodiments, before querying the target service sequence number rule corresponding to the target service and the service sequence number maximum value corresponding to the target service sequence number sequence on the call back date based on the sequence number identifier and the call back date, the method further includes:

[0012] In response to a request for generating a business serial number rule of a target business, displaying a serial number rule template; the serial number rule template includes various default callback modes;

[0013] Determining a target callback mode corresponding to the target service in each of the default callback modes;

[0014] Determine a target cleanup time period based on the target call-back mode, and determine a target super-value tag corresponding to the target business in each default super-value tag;

[0015] A target business serial number rule for the target business is constructed according to the target callback mode, the target clearing time period and the target overvalue tag; the target business serial number rule is used to generate a target business serial number for the target business.

[0016] In one embodiment, the querying of the target service sequence number rule corresponding to the target service and the maximum service sequence number corresponding to the target service sequence number sequence on the call back date based on the sequence number identifier and the call back date includes:

[0017] Determining a target service sequence number rule corresponding to the target service in each service sequence number rule based on the sequence number identifier; the target service sequence number rule includes a target callback mode;

[0018] Update the callback date based on the target callback mode to obtain a target callback date;

[0019] A fuzzy query is performed based on the target call-back date and the sequence number identifier to obtain the maximum value of the service sequence number corresponding to the target service sequence number sequence on the call-back date.

[0020] In one embodiment, the updating the callback date based on the target callback mode to obtain the target callback date includes:

[0021] Determine whether the target callback mode is a global sequence callback mode;

[0022] If the target callback mode is the global sequence callback mode, update the callback date to the current date to obtain the target callback date;

[0023] If the target callback mode is not the global sequence callback mode, the callback date is formatted based on the target callback mode to obtain a target callback date.

[0024] In one embodiment, determining the target starting sequence number based on the maximum service sequence number, the generated quantity and the target service sequence number rule includes:

[0025] Adding the maximum value of the service sequence number and the generated quantity to obtain the maximum value of the callback service sequence number;

[0026] Determine whether the maximum value of the callback service sequence number is greater than the service sequence number threshold in the target service sequence number rule;

[0027] If the maximum value of the callback service sequence number is less than or equal to the service sequence number threshold, the sum of the maximum value of the service sequence number and the step length in the target service sequence number rule is determined as the target starting sequence number.

[0028] In one embodiment, after determining whether the maximum value of the callback service sequence number is greater than the service sequence number threshold in the target service sequence number rule, the sequence number callback method further includes:

[0029] If the maximum value of the callback service sequence number is greater than the service sequence number threshold, determining whether the target overvalue tag in the target service sequence number rule indicates that the number of service sequence numbers is allowed to exceed the service sequence number threshold;

[0030] If the target overvalue tag represents that the number of service numbers allowed exceeds the service number threshold, the minimum service number is queried based on the number identifier and the call-back date, and the minimum service number is determined to be the target starting number.

[0031] In one embodiment, after determining whether the target overvalue tag in the target service sequence number rule indicates that the number of service sequence numbers allowed exceeds the service sequence number threshold, the method further includes:

[0032] If the target overvalue tag representation does not allow the number of service numbers to exceed the service number threshold, determining the remaining number of the sequence numbers corresponding to the call-back date based on the service number threshold and the maximum value of the service number;

[0033] An alarm message is constructed according to the remaining number of the sequence numbers, the generated number, and the message that the maximum value of the callback service sequence number exceeds the service sequence number threshold, and the alarm message is returned to the service end.

[0034] In one embodiment, starting with the target starting sequence number, generating the target sequence number set of the target service according to the sequence number identifier, the call-back date, the target service sequence number rule and the generated quantity includes:

[0035] Starting from the target start sequence number, generating a number of initial target service sequence numbers according to the target service sequence number rule;

[0036] Concatenate the serial number identifier, the target callback date corresponding to the callback date, and each of the initial target service serial numbers to obtain each target service serial number;

[0037] A target sequence number set of the target service is constructed according to each of the target service sequence numbers.

[0038] In one embodiment, after generating the target sequence number set of the target service based on the sequence number identifier, the call-back date, the target service sequence number rule and the generated quantity starting from the target start sequence number, the method further includes:

[0039] Sending the target sequence number set to the service end;

[0040] The maximum value of the target service sequence number is determined in the target sequence number set, and the maximum value of the service sequence number is updated to the maximum value of the target service sequence number.

[0041] In a second aspect, the present application also provides a sequence number callback device, including:

[0042] A receiving module, used for receiving a callback request of a target service sent by a service end; the callback request includes a serial number identifier, a generated quantity and a callback date of the target service;

[0043] A query module, used for querying the target service sequence number rule corresponding to the target service and the maximum service sequence number corresponding to the target service sequence number sequence on the call back date based on the sequence number identifier and the call back date; each target service sequence number is constructed as an increasing target service sequence number;

[0044] A determination module, configured to determine a target starting sequence number based on the maximum value of the service sequence number, the generated quantity and the target service sequence number rule;

[0045] A generation module is used to generate a target sequence number set for the target business starting from the target starting sequence number according to the sequence number identifier, the call-back date, the target business sequence number rule and the generation quantity.

[0046] In a third aspect, the present application further provides a computer device, including 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:

[0047] Receiving a callback request of a target service sent by a service end; the callback request includes a serial number identifier, a generated quantity and a callback date of the target service;

[0048] Based on the sequence number identifier and the call-back date, query the target service sequence number rule corresponding to the target service and the maximum value of the service sequence number corresponding to the target service sequence number sequence on the call-back date; each target service sequence number is constructed as the target service sequence number sequence that increases in increments;

[0049] Determine a target starting sequence number based on the maximum value of the service sequence number, the generated quantity and the target service sequence number rule;

[0050] Starting with the target starting sequence number, a target sequence number set for the target service is generated according to the sequence number identifier, the call-back date, the target service sequence number rule and the generated quantity.

[0051] 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:

[0052] Receiving a callback request of a target service sent by a service end; the callback request includes a serial number identifier, a generated quantity and a callback date of the target service;

[0053] Based on the sequence number identifier and the call-back date, query the target service sequence number rule corresponding to the target service and the maximum value of the service sequence number corresponding to the target service sequence number sequence on the call-back date; each target service sequence number is constructed as the target service sequence number sequence that increases in increments;

[0054] Determine a target starting sequence number based on the maximum value of the service sequence number, the generated quantity and the target service sequence number rule;

[0055] Starting with the target starting sequence number, a target sequence number set for the target service is generated according to the sequence number identifier, the call-back date, the target service sequence number rule and the generated quantity.

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

[0057] Receiving a callback request of a target service sent by a service end; the callback request includes a serial number identifier, a generated quantity and a callback date of the target service;

[0058] Based on the sequence number identifier and the call-back date, query the target service sequence number rule corresponding to the target service and the maximum value of the service sequence number corresponding to the target service sequence number sequence on the call-back date; each target service sequence number is constructed as the target service sequence number sequence that increases in increments;

[0059] Determine a target starting sequence number based on the maximum value of the service sequence number, the generated quantity and the target service sequence number rule;

[0060] Starting with the target starting sequence number, a target sequence number set for the target service is generated according to the sequence number identifier, the call-back date, the target service sequence number rule and the generated quantity.

[0061] The above-mentioned method, device, computer equipment, computer-readable storage medium and computer program product for serial number callback receive a callback request of a target service sent by a service end; the callback request contains the serial number identifier, generated quantity and callback date of the target service; based on the serial number identifier and the callback date, the target service serial number rule corresponding to the target service and the maximum service serial number corresponding to the target service serial number sequence under the callback date are queried; each target service serial number is constructed as an increasing target service serial number sequence; the target starting serial number is determined based on the maximum service serial number, the generated quantity and the target service serial number rule; starting with the target starting serial number, the target serial number set of the target service is generated according to the serial number identifier, the callback date, the target service serial number rule and the generated quantity. With this method, the maximum service serial number is directly queried through the serial number identifier and callback date in the callback request, and the maximum service serial number is directly determined through one query, thereby improving the efficiency of determining the maximum service serial number. Then, the target starting sequence number is determined by the maximum value of the business sequence number, and starting with the target starting sequence number, the target business sequence number is generated according to the sequence number identifier, callback date and target business sequence number rule, and the target sequence number set of the callback date is obtained, which improves the efficiency of generating the target sequence number set, and thus improves the efficiency of the sequence number callback method. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. 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 creative work.

[0063] Figure 1 An application environment diagram of a sequence number callback method in an embodiment;

[0064] Figure 2 A schematic diagram of a flow chart of a sequence number callback method in an embodiment;

[0065] Figure 3 A schematic diagram of a process for constructing a target service sequence number rule in an embodiment;

[0066] Figure 4 A schematic diagram of a process for determining the maximum value of a service sequence number in one embodiment;

[0067] Figure 5A schematic diagram of a process for updating a callback date in one embodiment;

[0068] Figure 6 A schematic diagram of a process for determining a starting sequence number in one embodiment;

[0069] Figure 7 A schematic diagram of a flow chart for determining a starting sequence number in another embodiment;

[0070] Figure 8 A schematic diagram of a process of sending alarm information in an embodiment;

[0071] Fig. 9 A schematic diagram of a process for generating a target sequence number set in one embodiment;

[0072] Fig.10 A schematic diagram of a process for updating the maximum value of a target service sequence number in one embodiment;

[0073] Fig.11 A schematic diagram of a flow chart of a sequence number callback method in another embodiment;

[0074] Fig.12 is a structural block diagram of a sequence number callback device in an embodiment;

[0075] Fig.13 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0076] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0077] The sequence number callback method provided in the embodiment of the present application can be applied to Figure 1 In the distributed system 100 shown in FIG. 1 , the distributed system 100 includes a server 110 and each business terminal 120. The business terminal 120 executes the business process. The server 110 communicates with each business terminal 120 through the network. The server 110 can be an independent physical server, a server cluster composed of multiple physical servers, or a cloud server providing cloud computing services. The business terminal 120 can be an independent physical server, or a cloud server providing cloud computing services.

[0078] In an exemplary embodiment, Figure 2 As shown, a sequence number callback method is provided, which is applied to Figure 1 The server 110 (hereinafter, the reference numeral is omitted, referred to as the server) in the embodiment is used as an example to illustrate, and the steps include the following steps 202 to 208. Among them:

[0079] Step 202: Receive a callback request for the target service sent by the service end.

[0080] The callback request includes the serial number identifier, generated quantity and callback date of the target business.

[0081] In implementation, there is a network connection between the business end and the service end. The business end constructs a callback request for the target business according to the serial number identifier, generation serial number and callback date of the target business. Then, the business end sends the callback request to the service end through the network connection. The service end receives the callback request for the target business sent by the business end through the network connection.

[0082] Specifically, when the service end executes the target service, the service end will process the target service within the historical time period, so the service end needs the target service sequence number of the historical time period. The service end constructs a callback request for the target service according to the sequence number identifier, service quantity and callback date of the target service, so that the service end generates a target sequence number set according to the callback request of the target service and returns the target sequence number set to the service end. The service end executes the target service of the callback date according to the target service sequence number in the target sequence number set.

[0083] In an exemplary embodiment, the sequence number identifier characterizing the target business sequence number is the sequence number of the target business. The generated quantity is the total number of target business sequence numbers required. The callback date is the time of the historical time period that needs to be processed, which is also the trigger time of the target business. The business end determines the callback date of the target business that needs to be processed. Then, the business end determines the total number of target businesses that need to be executed within the callback date as the generated quantity. The business end constructs a callback request for the target business based on the sequence number identifier, the generated quantity and the callback time of the target business. Then, the business end sends the callback request for the target business to the service end.

[0084] Optionally, the callback time may be, but is not limited to, the trigger time of the target service or the transaction time of the target service. The embodiment of the present application does not limit the callback time.

[0085] Step 204: query the target service sequence number rule corresponding to the target service and the maximum service sequence number corresponding to the target service sequence number sequence on the call back date based on the sequence number identifier and the call back date.

[0086] The target service sequence number rule is used to manage the target service sequence number and generate the target service sequence number; each target service sequence number is constructed as an increasing target service sequence number sequence.

[0087] In implementation, the server queries the target service sequence number rule corresponding to the target service based on the sequence number identifier. Then, the server updates the callback date according to the target service sequence number rule to obtain the target callback date, and determines the maximum service sequence number corresponding to the target service sequence number sequence according to the target callback date and the sequence number identifier.

[0088] Specifically, the server determines the target service sequence number rule in each sequence number generation rule according to the sequence number identifier. The target service sequence number rule includes the target callback mode of the target service sequence number. The server updates the callback date according to the target callback mode to obtain the target callback date. Then, the server performs a query according to the target callback date and the sequence number identifier to obtain the maximum value of the service sequence number corresponding to the target service sequence number sequence.

[0089] Step 206, determining the target starting sequence number based on the maximum value of the service sequence number, the generated quantity and the target service sequence number rule.

[0090] In implementation, the server determines the sum of the maximum service sequence number and the generated quantity as the maximum callback service sequence number. Then, the server determines the target starting sequence number according to the maximum callback service sequence number and the target service sequence number rule.

[0091] Specifically, the service sequence number rule includes a service sequence number threshold and a step length. The server performs an addition operation on the maximum service sequence number and the generated quantity to obtain the maximum value of the callback service sequence number. The server determines the target starting sequence number based on the maximum value of the callback service sequence number, the service sequence number threshold and the step length.

[0092] Step 208, starting with the target start sequence number, generating a target sequence number set for the target service according to the sequence number identifier, the call-back date, the target service sequence number rule and the generated quantity.

[0093] The target start sequence number is the start target service sequence number of the target sequence number set. The target sequence number set is a sequence of increasing target service sequence numbers, and the target start sequence number is the target service sequence number with the smallest value in the target sequence number set.

[0094] In implementation, the server starts with the target start sequence number and generates a target business sequence number according to the sequence number identifier, call-back date, and business sequence number rules. Then, the server constructs a target sequence number set for the target business according to each target business sequence number.

[0095] Specifically, the server starts with the target start sequence number and generates an increasing number of initial target business sequence numbers according to the target business sequence number rule. Then, the server updates each initial target business sequence number according to the callback date and sequence number identifier to obtain the target business sequence number. The server constructs a target sequence number set based on each target business sequence number.

[0096] In the above sequence number callback method, the maximum value of the service sequence number is directly queried through the sequence number identifier and the callback date in the callback request, and the maximum value of the service sequence number is directly determined through one query, thereby improving the efficiency of determining the maximum value of the service sequence number. Then, the target starting sequence number is determined through the maximum value of the service sequence number, and starting with the target starting sequence number, the target service sequence number is generated according to the sequence number identifier, the callback date and the target service sequence number rule, and the target sequence number set of the callback date is obtained, thereby improving the efficiency of generating the target sequence number set, thereby improving the efficiency of the sequence number callback method.

[0097] In an exemplary embodiment, before determining the target service sequence number rule, it is necessary to first construct the target service sequence number rule. Figure 3 As shown, before step 204 is executed, the specific processing process of the sequence number callback method also includes steps 302 to 308. Among them:

[0098] Step 302: In response to a request for generating a business serial number rule of a target business, a serial number rule template is displayed.

[0099] The sequence number rule template includes various default callback modes.

[0100] In implementation, a sequence number rule template is pre-set in the server. If the target business sequence number rule of the target business does not exist in the server, it is necessary to generate the target business sequence number rule. Therefore, the user initiates a business sequence number rule generation request for the target business to the server. The server responds to the business sequence number rule generation request for the target business and displays the sequence number rule template.

[0101] Specifically, the server needs to generate the target business serial number according to the target business serial number rule. Therefore, the server needs to find the target business serial number rule of the target business. If the target business serial number rule is not found, the server displays a query failure and displays a message that the target business serial number rule does not exist. The user operates the screen of the server according to the displayed information and initiates a business serial number rule generation request for the target business to the server. Among them, the business rule generation request contains the serial number identifier of the target business. Then, the server responds to the business serial number rule generation request for the target business and displays the serial number rule template.

[0102] Step 304: Determine a target callback mode corresponding to the target service in each default callback mode.

[0103] In implementation, the server obtains the target callback mode in response to a click operation on the target callback mode in each default callback mode.

[0104] Specifically, the service sequence number rules displayed by the server include various default callback modes. The default callback modes include global sequence, daily callback, and monthly callback. The user determines the target callback mode corresponding to the target service in each default callback mode according to the service requirements of the target service, and clicks the target callback mode on the web page displaying the sequence number rule template. In response to the click operation of the target callback mode, the server obtains the target callback mode and determines the target callback mode as the target callback mode corresponding to the target service.

[0105] In an exemplary embodiment, the user determines the target callback mode as the daily callback mode according to the business requirements of the target business. Then, the user clicks the daily callback mode on the web page displaying the sequence number rule template. In response to the click operation of the daily callback mode, the server determines the daily callback mode as the target callback mode corresponding to the target business.

[0106] Step 306: determine a target cleanup time period based on the target call-back mode, and determine a target super value tag corresponding to the target business in each default super value tag.

[0107] The target clearing time period is used to clear the target business serial number of the target business. Each default overvalue template tag indicates whether the number of business serial numbers can exceed the business serial number threshold. The business serial number threshold is the number of target business serial numbers that can be generated in the target callback mode.

[0108] In implementation, the server generates an initial target cleanup time period according to the target call-back mode. Then, the server determines the target cleanup time period according to the initial target cleanup time period. Then, the server displays each default value tag in the sequence rule template and determines the target value tag corresponding to the target business in each default value tag.

[0109] Specifically, a default time value is set in the server. The server generates an initial target cleaning time period according to the default time value and the target callback mode. If the user is not satisfied with the initial target cleaning time period, the user can click the edit button corresponding to the initial target cleaning time period in the display page of the serial rule template, and then enter the target time value. In response to the determination operation of the target time value, the server obtains the input target time value and generates a target cleaning time period according to the target time value and the target callback mode. If the user is satisfied with the initial target cleaning time period, the user does not edit the initial target cleaning time period. The server determines the initial target cleaning time period as the target cleaning time period. Then, the server displays each default super value label in the serial rule mode. The user determines and clicks the target super value label in each default super value label according to the business requirements of the target business. The user determines the target super value label in response to the click operation of the target super mode label.

[0110] In an exemplary embodiment, the default time value is 3. The target callback mode is a monthly callback mode. The default super value tag includes allow and disallow. If the target super value tag is allow, the number of service sequence numbers can exceed the service sequence number threshold. If the target super value tag is disallow, the number of service sequence numbers cannot exceed the service sequence number threshold. The server generates an initial target cleanup time period of 3 months based on the default time value 3 and the monthly callback mode. If the user is not satisfied with 3 months, the user can click the edit button corresponding to the initial target cleanup time period in the display page of the sequence rule template, that is, the target time value can be entered. In response to the determination operation of the target time value, the server obtains the input target time value 5, and generates a target cleanup time period of 5 months based on the target time value 5 and the monthly callback mode. Then, the server displays each default super value tag in the sequence rule mode. The user determines and clicks to allow this target super value tag in each default super value tag according to the business needs of the target business. In response to the click operation of the target super mode tag, the user determines that the target super value tag is allowed.

[0111] Step 308, constructing a target service sequence number rule for the target service according to the target callback mode, the target cleanup time period and the target overvalue tag.

[0112] The target service sequence number rule is used to generate a target service sequence number for the target service.

[0113] During implementation, the server constructs the target business serial number rules for the target business based on the target callback mode, the target cleanup time period and the target overvalue tag, providing a reference for subsequent management and generation of the target business serial number for the target business.

[0114] Specifically, the sequence rule template stipulates that the target business sequence number is composed of three parts, including: sequence number identification, business trigger time and sequence number sub-value. The sequence rule template also includes the sequence number sub-value generation algorithm, default step size and sequence number identification. The server determines the target step size based on the default step size. The target step size is the interval between two target business sequence numbers. Then, the server constructs the target business sequence number rules for the target business based on the sequence number identification, sequence number sub-value generation algorithm, target step size, target callback mode, target cleanup time period and target overvalue tag, providing a reference for subsequent management and generation of target business sequence numbers for the target business.

[0115] In this embodiment, the various components of the target business sequence number rule are determined according to the sequence number rule template, and the target business sequence number rule is constructed according to the various components, so as to obtain the target business sequence number rule for generating and managing the target business sequence number, realize the personalized management of the target business sequence number, and expand the scope of application of the sequence number callback method.

[0116] In an exemplary embodiment, Figure 4As shown, the specific processing process of step 204 includes steps 402 to 406. Among them:

[0117] Step 402: Determine a target service sequence number rule corresponding to the target service in each service sequence number rule based on the sequence number identifier.

[0118] The target service sequence number rule includes a target callback mode.

[0119] In implementation, the server performs fuzzy query in each business sequence number rule according to the sequence number identifier to obtain the target business sequence number rule corresponding to the target business.

[0120] Specifically, the sequence number identifier is an identifier of a target service sequence number of the target service. The server searches for a target service sequence number rule corresponding to the target service containing the sequence number identifier in each service sequence number rule according to the sequence number identifier.

[0121] In an exemplary embodiment, the serial number identifier is 0010. The server performs a fuzzy query on each service serial number rule according to 0010, and obtains a target service serial number rule corresponding to the target service including 0010.

[0122] Step 404: Update the callback date based on the target callback mode to obtain the target callback date.

[0123] The callback mode includes a global sequence callback mode.

[0124] In implementation, the server determines whether the target callback mode is the global sequence callback mode, and obtains the determination result of the target callback mode. Then, the server updates the callback date according to the determination result of the target callback mode, and obtains the target callback date.

[0125] Specifically, the server determines whether the target callback mode is a global sequence callback mode, and obtains a judgment result of the target callback mode. If the judgment result indicates that the target callback mode is a global sequence callback mode, the server updates the callback date according to the current date to obtain the target callback date. If the judgment result indicates that the target callback mode is not a global sequence callback mode, the server formats the callback date to obtain the target callback date.

[0126] Step 406, perform fuzzy query based on the target callback date and the sequence number identifier to obtain the maximum value of the service sequence number corresponding to the target service sequence number sequence under the callback date.

[0127] In implementation, the server concatenates the serial number identifier and the target callback date to obtain a first concatenation result. Then, the server performs a fuzzy query based on the first concatenation result to obtain a target service serial number sequence under the callback date, and determines the maximum service serial number in the target service serial number sequence.

[0128] Specifically, the server concatenates the sequence number identifier and the target callback date to obtain a first concatenation result. Then, the server performs a fuzzy query based on the first concatenation result to obtain a target service sequence number sequence under the callback date, and each target service sequence number in the target service sequence number sequence contains the first concatenation result. Then, the server determines the maximum service sequence number among each target service sequence number.

[0129] In an exemplary embodiment, the serial number identifier is 0010, and the target callback date is 20240803. The server splices the serial number identifier and the target callback date together to obtain a first splicing result of 001020240803. The server performs a fuzzy query based on the first splicing result to obtain a target business serial number sequence under the callback date, that is, a target business serial number sequence of 0010202408030001 to 0010202408031000. The target business serial number in the target business serial number sequence contains the first splicing result. For example, the target business serial number 0010202408030001 contains the first splicing result 001020240803. Then, the server determines that the maximum value of the business serial number with the largest value in the target business serial number sequence is 0010202408031000.

[0130] In this embodiment, the maximum value of the service sequence number is directly queried through the sequence number identifier and the callback date in the callback request, and the maximum value of the service sequence number is directly determined through one query, which improves the efficiency of determining the maximum value of the service sequence number, and further improves the efficiency of the sequence number callback method.

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

[0132] Step 502: determine whether the target callback mode is a global sequence callback mode.

[0133] The global sequence callback mode indicates that the service can generate the target service serial number according to the callback time. The callback mode includes the global sequence callback mode, the daily callback mode and the monthly callback mode. The target callback mode is one of the callback modes.

[0134] In implementation, the server determines whether the target callback mode is the global sequence callback mode. If the target callback mode is the global sequence callback mode, step 504 is executed; if the target callback mode is not the global sequence callback mode, step 506 is executed.

[0135] Specifically, the server determines whether the target callback mode is a global sequence callback mode. If the target callback mode is a global sequence callback mode, it indicates that the target service cannot generate a target service sequence number for the callback date, and can only generate a target service sequence number for the current date. If the target callback mode is not a global sequence callback mode, it indicates that the target service can generate a target service sequence number according to the callback date.

[0136] Step 504: If the target callback mode is the global sequence callback mode, update the callback date to the current date to obtain the target callback date.

[0137] In implementation, if the target callback mode is the global sequence callback mode, the server determines the current date and updates the callback date to the current date to obtain the target callback date.

[0138] Specifically, if the target callback mode is the global sequence callback mode, the server determines the current time and performs format conversion on the current time to obtain the current date. Then, the server updates the callback date to the current date to obtain the target callback date.

[0139] For example, the callback date is August 2, 2024. If the target callback date is the global sequence callback mode, the server determines that the current time is August 6, 2024 14:26:02, and converts the current time to obtain the current date as 20240806. The server updates the callback date to 20240806, and obtains the target callback date as 20240806.

[0140] Step 506: If the target callback mode is not the global sequence callback mode, the callback date is formatted based on the target callback mode to obtain the target callback date.

[0141] In implementation, the server is pre-set with a first date format corresponding to the daily callback mode and a second date format corresponding to the monthly callback mode. If the target callback mode is not the global sequence callback mode and the target callback mode is the daily callback mode, the server determines the first date format corresponding to the daily callback mode, and converts the callback date format according to the first date format to obtain the target callback date. If the target callback mode is not the global sequence callback mode and the target callback mode is the monthly callback mode, the server determines the second date format corresponding to the monthly callback mode. The server converts the callback date format according to the second date format to obtain the target callback date.

[0142] In an exemplary embodiment, the first date format is aaaabbcc. Wherein, aaaa is the year placeholder in the first date format, bb is the month placeholder in the first date format, and cc is the date placeholder in the first date format. The second date format is ddddee. Wherein, dddd is the year placeholder in the second date format, and ee is the month placeholder in the second date format. The callback date is August 2, 2024. If the target callback mode is not the global sequence callback mode and the target callback mode is the daily callback mode, the server determines the first date format corresponding to the daily callback mode, and converts the format of August 2, 2024 according to the first date format to obtain the target callback date 20240802. If the target callback mode is not the global sequence callback mode and the target callback mode is the monthly callback mode, the server determines the second date format corresponding to the monthly callback mode. The server converts the callback date August 2, 2024 according to the second date format to obtain the target callback date 202408.

[0143] In this embodiment, the callback date is updated through the target callback mode to obtain the target callback date, which is convenient for the subsequent generation of the target service serial number based on the target callback date, so that the target service serial number is clear and convenient for data search, segmentation, archiving and backup. At the same time, the target service serial number is generated through the target callback date, so that the user clearly knows the meaning of the service serial number, which improves the user experience.

[0144] In an exemplary embodiment, Figure 6 As shown, the specific processing process of step 206 includes steps 602 to 606. Among them:

[0145] Step 602, performing an addition operation on the maximum value of the service sequence number and the generated quantity to obtain the maximum value of the callback service sequence number.

[0146] In implementation, the server performs addition operation on the maximum service number and the generated quantity to obtain the sum of the maximum service number and the generated quantity, and determines the sum of the maximum service number and the generated quantity as the maximum value of the callback service number. The maximum value of the callback service number represents the maximum value of the target service number that may be generated.

[0147] In an exemplary embodiment, the maximum value of the service sequence number is 0010202408031000, and the generated number is 1000. The server adds the maximum value of the service sequence number and the generated number to obtain the sum of the maximum value of the service sequence number and the generated number 0010202408032000. Then, the server determines 0010202408032000 as the maximum value of the callback service sequence number.

[0148] Step 604, determining whether the maximum value of the callback service sequence number is greater than the service sequence number threshold in the target service sequence number rule.

[0149] The target business number rule includes a business number threshold, which is the total number of target business numbers that can be generated on the call-back date.

[0150] In implementation, the server determines whether the maximum value of the callback service sequence number is greater than the service sequence number threshold. If the maximum value of the callback service sequence number is greater than the service sequence number threshold, step 702 is executed. If the maximum value of the callback service sequence number is less than or equal to the service sequence number threshold, step 606 is executed.

[0151] Specifically, the service end determines whether the maximum value of the callback service sequence number is greater than the service sequence number threshold. If the maximum value of the callback service sequence number is greater than the service sequence number threshold, the service end determines that the number of target service sequence numbers to be generated is greater than the total number specified by the target service sequence number rule. If the maximum value of the callback service sequence number is less than or equal to the service sequence number threshold, the service end determines that the number of target service sequence numbers to be generated is less than or equal to the total number specified by the target service sequence number rule, and does not violate the provisions of the target service sequence number rule.

[0152] In an exemplary embodiment, the service end determines a sequence number subvalue of a maximum value of the callback service sequence number, and determines whether the sequence number subvalue of the maximum value of the callback service sequence number is greater than a service sequence number threshold.

[0153] For example, the maximum value of the callback service sequence number is 0010202408032000. The server determines that the sequence number subvalue of the maximum value of the callback service sequence number is 2000. The service sequence number threshold is 3000. Then, the server determines that the sequence number subvalue of the maximum value of the callback service sequence number is less than the service sequence number threshold.

[0154] Step 606: If the maximum value of the callback service sequence number is less than or equal to the service sequence number threshold, the sum of the maximum value of the service sequence number and the step length in the target service sequence number rule is determined as the target starting sequence number.

[0155] The target service sequence number rule also includes a step length.

[0156] During implementation, if the maximum value of the callback service sequence number is less than or equal to the service sequence number threshold, the server adds the maximum value of the service sequence number and the step length to obtain the sum of the maximum value of the service sequence number and the step length, and determines the sum of the maximum value of the service sequence number and the step length as the target starting sequence number of the target sequence number set.

[0157] In an exemplary embodiment, the step length is 1. The maximum value of the service sequence number is 0010202408031000. The server performs an addition operation on the step length 1 and the maximum value of the service sequence number 0010202408031000, and obtains a sum of the maximum value of the service sequence number and the step length as 0010202408031001, and determines 0010202408031001 as the target starting sequence number of the target sequence number set.

[0158] In this embodiment, the maximum value of the callback service sequence number is determined by the maximum value of the service sequence number and the generated quantity, and it is determined whether the maximum value of the callback service sequence number is greater than the service sequence number threshold value, and it is clarified whether the number of target service sequence numbers to be generated is greater than the total number specified by the target service sequence number rule. Then, when the maximum value of the callback service sequence number is less than or equal to the service sequence number threshold value, the target starting sequence number is determined based on the maximum value of the service sequence number, and the starting value of the target service sequence number to be generated is clarified.

[0159] In an exemplary embodiment, when the maximum value of the callback service sequence number is greater than the service sequence number threshold, the target starting sequence number needs to be determined according to the target overvalue tag. Figure 7 As shown, after step 604 is executed, the specific processing process of the sequence number callback method also includes steps 702 to 704.

[0160] in:

[0161] Step 702: If the maximum value of the callback service number is greater than the service number threshold, determine whether the target overvalue tag in the target service number rule indicates that the number of service numbers is allowed to exceed the service number threshold.

[0162] The target business sequence number rule includes a target overvalue tag.

[0163] In implementation, if the maximum value of the callback service sequence number is greater than the service sequence number threshold, the server determines whether the target overvalue tag allows the number of service sequences to exceed the service sequence number threshold based on the value of the target overvalue tag.

[0164] Specifically, the value of the target value tag includes allow and disallow. If the value of the target value tag is allow, the server determines that the target value tag indicates that the number of service numbers allowed exceeds the service number threshold. If the value of the target value tag is disallow, the server determines that the target value tag indicates that the number of service numbers not allowed exceeds the service number threshold.

[0165] In an exemplary embodiment, the value of the target value tag includes 1 and 0. 1 indicates permission, and 0 indicates non-permission. The server determines whether the value of the target value tag is 1. If the value of the target value tag is 1, the server determines that the target value tag indicates that the number of service numbers allowed exceeds the service number threshold. If the value of the target value tag is not 1 and the value of the target value tag is 0, the server determines that the target value tag indicates that the number of service numbers allowed does not exceed the service number threshold.

[0166] Step 704: if the target overvalue tag indicates that the number of service numbers allowed exceeds the service number threshold, query the minimum service number based on the number identifier and the call-back date, and determine that the minimum service number is the target starting number.

[0167] In implementation, if the target overvalue tag indicates that the number of business serial numbers allowed exceeds the business serial number threshold, the server concatenates the serial number identifier and the target callback date corresponding to the callback date to obtain a second concatenation result. Then, the server performs a fuzzy query based on the second concatenation result to obtain the minimum business serial number. Then, the server determines the minimum business serial number as the target starting serial number.

[0168] Specifically, if the target overvalue tag represents that the number of allowed business numbers exceeds the business number threshold, the server determines the target callback date corresponding to the callback date. Among them, the determination process of the target callback date here refers to the specific processing process of step 404 or step 502 to step 506 above, and the embodiment of the present application will not be repeated here. Then, the server splices the serial number identifier and the target callback date together to obtain a second splicing result. Then, the server performs a fuzzy query based on the second splicing result to obtain each business serial number containing the second splicing result under the callback date. Then, the server determines the minimum business serial number among each business serial number, and determines the minimum business serial number as the target starting serial number.

[0169] In an exemplary embodiment, the serial number identifier is 0010, and the target callback date is 20240803. The server concatenates the serial number identifier and the target callback date to obtain a second concatenation result of 001020240803. The server performs a fuzzy query based on the second concatenation result to obtain each service serial number containing the second concatenation result under the callback date, that is, a set of 0010202408030001 to 0010202408031000. Then, the server determines that the minimum service serial number is 0010202408031000 among the service serial numbers, and determines 0010202408031000 as the target starting serial number.

[0170] In this embodiment, when the maximum value of the callback service sequence number is greater than the service sequence number threshold and the target overvalue tag indicates that the number of service sequence numbers allowed exceeds the service sequence number threshold, the minimum value of the service sequence number is determined as the target starting sequence number, thereby realizing automatic determination of the target starting sequence number and improving the efficiency of the sequence number callback method. In addition, by determining the minimum value of the service sequence number as the target starting sequence number, the development efficiency is improved.

[0171] In an exemplary embodiment, when the target value-exceeding tag indicates that the number of service numbers does not allow to exceed the service number threshold, an alarm message is constructed and returned to the service end. Figure 8 As shown, after step 702 is executed, the specific processing process of the sequence number callback method also includes steps 802 to 804. Among them:

[0172] Step 802: If the target value-exceeding tag characterizes that the number of service numbers is not allowed to exceed the service number threshold, the remaining number of service numbers corresponding to the call-back date is determined based on the service number threshold and the service number maximum value.

[0173] In implementation, if the target overvalue tag indicates that the number of service numbers is not allowed to exceed the service number threshold, the server performs a difference operation on the service number threshold and the maximum service number to obtain a difference operation result. Then, the server determines the difference operation result as the remaining number of the number corresponding to the call-back date.

[0174] Specifically, the server determines the sequence number subvalue in the maximum value of the service sequence number. Then, the server performs a subtraction operation on the service sequence number threshold and the number of sequence number subvalues ​​in the maximum value of the service sequence number to obtain a difference operation result. Then, the server determines the difference operation result as the remaining number of sequences corresponding to the call-back date. The remaining number of sequences represents the number of target service sequences that can be generated on the call-back date.

[0175] In an exemplary embodiment, the service sequence number threshold is 1500, and the service sequence number maximum value is 0010202408031000. The service end determines that the sequence number subvalue in the service sequence number value is 1000. The service end performs a subtraction operation on the service sequence number threshold and the sequence number subvalue, and obtains that the remaining number of the sequence number corresponding to the callback date is 500.

[0176] Step 804, construct an alarm message based on the remaining number of sequence numbers, the generated number, and the message that the maximum value of the callback service sequence number exceeds the service sequence number threshold, and return the alarm message to the service end.

[0177] In implementation, the server constructs an alarm message based on the remaining number of serial numbers, the number of generated serial numbers, the callback date, the serial number identifier, and the message that the maximum value of the callback service serial number exceeds the service serial number threshold. Then, the server sends the alarm message to the service end.

[0178] Specifically, the service end constructs an alarm message based on the remaining number of sequence numbers, the generated number, the callback date, the sequence number identifier, and the message that the maximum value of the callback service sequence number exceeds the service sequence number threshold. Then, the service end sends the alarm message to the service end. The service end receives the alarm message and saves the alarm message. After the service end completes the next callback request, the service end queries whether there is a target alarm message based on the callback date and sequence number identifier in the callback request. If there is a target alarm message, the service end determines whether the generated number in the callback request is greater than the remaining number of the target sequence number in the target alarm message. If the generated number is greater than the remaining number of the target sequence number, the service end displays the message that the generated number is greater than the remaining number of the target sequence number. If the generated number is less than or equal to the remaining number of the target sequence number or there is no target alarm message, the service end sends a callback request to the service end.

[0179] In this embodiment, when the target overvalue tag representation does not allow the number of service numbers to exceed the service number threshold, by constructing an alarm message and sending the alarm message to the service end, the service end is prevented from repeatedly sending callback requests, thereby reducing the pressure on the distributed system.

[0180] In an exemplary embodiment, Fig. 9 As shown, the specific processing process of step 208 includes steps 902 to 906. Among them:

[0181] Step 902, starting with the target start sequence number, generating a number of initial target service sequence numbers according to the target service sequence number rule.

[0182] The target service sequence number rule includes a step length.

[0183] In implementation, the server starts with the sequence number sub-value in the target start sequence number, and increments the sequence number sub-value in the target start sequence number according to the step size, thereby generating a generated number of initial target service sequence numbers.

[0184] In an exemplary embodiment, the target start sequence number is 0010202408031001, the generation quantity is 1000, and the step length is 1. The server determines that the sequence subvalue of the target start sequence number is 1001. Then, the server starts with the sequence subvalue in the target start sequence number, and increments the sequence subvalue of the target start sequence number to obtain each initial target service sequence number. Each initial target service sequence number is a set of 1001 to 2000. The initial target service sequence number is the sequence subvalue of the target service sequence number.

[0185] Step 904, concatenate the sequence number identifier, the target callback date corresponding to the callback date, and each initial target service sequence number to obtain each target service sequence number.

[0186] In implementation, the server splices the sequence number identifier and the target callback date corresponding to the callback date to obtain a third splicing result. Then, the server splices the third splicing result with each initial target business sequence number to obtain each target business sequence number. Each target business sequence number is a target business sequence number that increases in a certain step length.

[0187] In an exemplary embodiment, the server determines a target callback date corresponding to the callback date. The determination process of the target callback date here refers to the specific processing process of step 404 or steps 502 to 506 above, and the embodiment of the present application will not be repeated here. Then, the server splices the serial number identifier and the target callback date together to obtain a third splicing result. Then, for each initial target service serial number, the server splices the third splicing result and the initial target service serial number together to obtain each target service serial number.

[0188] In an exemplary embodiment, the sequence number identifier is 0010, and the target callback date is 20240803. Each initial target service sequence number is a set of 1001 to 2000. The server concatenates the sequence number identifier and the target callback date to obtain a third concatenation result of 001020240803. For each initial target service sequence number, the server concatenates the third concatenation result and the initial target service sequence number to obtain each target service sequence number. Each target service sequence number is a set of 0010202408031001 to 0010202408032000.

[0189] Step 906: construct a target sequence number set of the target service according to the sequence numbers of the target services.

[0190] The target start sequence number is the start target service sequence number of the target sequence number set, and the target sequence number set is a sequence number sequence of increasing target service sequence numbers. The target start sequence number is the minimum target service sequence number in the sequence number sequence.

[0191] In implementation, the server combines the target service sequence numbers together in ascending order to obtain a target sequence number set for the target service.

[0192] In an exemplary embodiment, the target starting sequence number is 0010202408031001, and the target sequence number set is a sequence of 0010202408031001 to 0010202408032000. Then the target starting sequence number 0010202408031001 is the starting service sequence number in the target sequence number set, and is the minimum target service sequence number in the target sequence number set.

[0193] In this embodiment, starting with the target starting sequence number, a number of target business sequence numbers are generated according to the target business sequence number rule, sequence number identifier and callback date, and a target sequence number set is generated according to each target business sequence number, and the target business sequence number of the callback date is obtained, thereby improving the efficiency of generating the target sequence number set, and further improving the efficiency of the sequence number callback method.

[0194] In an exemplary embodiment, after generating the target sequence number set, the maximum value of the target service sequence number needs to be updated. Fig.10 As shown, after step 208 is executed, the specific processing process of the sequence number callback method also includes steps 1002 to 1004. Among them:

[0195] Step 1002, sending the target sequence number set to the service end.

[0196] In implementation, there is a network connection between the business end and the server end. The server end sends the target sequence number set to the business end through the network connection. The business end receives the target sequence number set and processes the target business of the callback date according to the target business sequence number in the target sequence number set.

[0197] Step 1004, determine the maximum value of the target business sequence number in the target sequence number set, and update the maximum value of the business sequence number to the maximum value of the target business sequence number.

[0198] In implementation, the server determines the maximum value of the target service sequence number among the target service sequence numbers in the target sequence number set, and then updates the maximum value of the service sequence number under the call-back date to the maximum value of the target service, thereby obtaining the updated maximum value of the service sequence number.

[0199] In an exemplary embodiment, the maximum value of the service sequence number under the call-back date is 0010202408031000. The target sequence number set is a set of 0010202408031001 to 0010202408032000. The server determines that the maximum value of the target service sequence number in the target sequence number set is 0010202408032000. Then, the server updates the maximum value of the service sequence number 0010202408031000 under the call-back date to the target service maximum value 0010202408032000, and obtains the updated maximum value of the service sequence number 0010202408032000.

[0200] In an exemplary embodiment, the target service sequence number rule also includes a target cleanup time period. The server cleans up the maximum service sequence number in the cache or database and the unissued target service sequence number according to the target cleanup time period.

[0201] In this embodiment, by sending the target sequence number set to the service end, the service end can execute the target service on the call-back date according to the target service sequence number in the target sequence number set. In addition, by updating the maximum service sequence number, the updated maximum service sequence number is obtained, thereby improving the accuracy of the maximum service sequence number.

[0202] In an exemplary embodiment, Fig.11 FIG. 1 is a flow chart of a method for calling back a sequence number in an exemplary embodiment. Fig.11 As shown, the serial number callback method includes: 1. Setting serial number rules. Among them, the target callback mode and serial number cache expiration (target cleanup time) can be set. 2. Parsing the serial number rules to generate serial numbers. The serial number is generated according to the combination of the sequence number (serial number identifier) ​​and the callback period (callback date). 3. Pass the callback date to obtain the serial number. Specifically, the service end generates a target serial number set corresponding to the callback mode. The callback mode includes a global sequence callback mode, a daily callback mode, and a monthly callback mode. 4. The business end caches the target serial number set locally and cleans up the serial numbers in the cache that have expired.

[0203] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed 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 part of the steps or stages in other steps.

[0204] Based on the same inventive concept, the embodiment of the present application also provides a sequence number callback device for implementing the sequence number callback method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more sequence number callback device embodiments provided below can refer to the limitations of the sequence number callback method above, and will not be repeated here.

[0205] In an exemplary embodiment, Fig.12 As shown, a sequence number recovery device 1200 is provided, comprising: a receiving module 1201, a query module 1202, a determination module 1203 and a generation module 1204, wherein:

[0206] The receiving module 1201 is used to receive a callback request of a target service sent by a service end; the callback request includes a serial number identifier, a generated quantity and a callback date of the target service.

[0207] The query module 1202 is used to query the target business sequence number rule corresponding to the target business and the maximum business sequence number corresponding to the target business sequence number sequence under the call back date based on the sequence number identifier and the call back date; each target business sequence number is constructed as an increasing target business sequence number.

[0208] The determination module 1203 is used to determine the target starting sequence number based on the maximum value of the business sequence number, the generated quantity and the target business sequence number rule.

[0209] The generating module 1204 is used to generate a target sequence number set of the target business starting from the target starting sequence number according to the sequence number identifier, the call-back date, the target business sequence number rule and the generated quantity.

[0210] In an exemplary embodiment, the serial number callback device 1200 further includes:

[0211] The display module is used to respond to the business sequence number rule generation request of the target business and display the sequence number rule template; the sequence number rule template includes various default callback modes.

[0212] The second determining module is used to determine a target callback mode corresponding to a target service in each default callback mode.

[0213] The third determination module is used to determine a target cleanup time period based on the target call-back mode, and determine a target super-value tag corresponding to the target business in each default super-value tag.

[0214] The first construction module is used to construct a target business serial number rule for the target business according to the target call back mode, the target clearing time period and the target overvalue tag; the target business serial number rule is used to generate a target business serial number for the target business.

[0215] In an exemplary embodiment, the query module 1202 includes:

[0216] The first determination submodule is used to determine a target service sequence number rule corresponding to a target service in each service sequence number rule based on the sequence number identifier; the target service sequence number rule includes a target callback mode.

[0217] The first updating submodule is used to update the callback date based on the target callback mode to obtain the target callback date.

[0218] The first query submodule is used to perform fuzzy query based on the target callback date and the sequence number identifier to obtain the maximum value of the business sequence number corresponding to the target business sequence number sequence under the callback date.

[0219] In an exemplary embodiment, the first updating submodule includes:

[0220] The first determination submodule is used to determine whether the target callback mode is a global sequence callback mode.

[0221] The second updating submodule is used to update the callback date to the current date to obtain the target callback date if the target callback mode is the global sequence callback mode.

[0222] The third updating submodule is used to convert the format of the callback date based on the target callback mode to obtain the target callback date if the target callback mode is not the global sequence callback mode.

[0223] In an exemplary embodiment, the determining module 1203 includes:

[0224] The first operation submodule is used to perform an addition operation on the maximum value of the service sequence number and the generated quantity to obtain the maximum value of the callback service sequence number.

[0225] The second judgment submodule is used to judge whether the maximum value of the callback service sequence number is greater than the service sequence number threshold in the target service sequence number rule.

[0226] The second determination submodule is used to determine the sum of the maximum value of the service sequence number and the step length in the target service sequence number rule as the target starting sequence number if the maximum value of the callback service sequence number is less than or equal to the service sequence number threshold.

[0227] In an exemplary embodiment, the serial number callback device 1200 further includes:

[0228] The first judgment module is used to judge whether the target overvalue tag in the target service number rule indicates that the number of service numbers allowed exceeds the service number threshold if the maximum value of the callback service number is greater than the service number threshold.

[0229] The fourth determination module is used to query the minimum business sequence number based on the sequence number identifier and the call-back date if the target overvalue tag indicates that the number of business sequence numbers allowed exceeds the business sequence number threshold, and determine the minimum business sequence number as the target starting sequence number.

[0230] In an exemplary embodiment, the serial number callback device 1200 further includes:

[0231] The fifth determination module is used to determine the remaining number of serial numbers corresponding to the call-back date based on the business serial number threshold and the maximum business serial number if the target overvalue tag representation does not allow the number of business serial numbers to exceed the business serial number threshold.

[0232] The second building module is used to build alarm information according to the remaining number of sequence numbers, the generated number and the message that the maximum value of the callback service sequence number exceeds the service sequence number threshold, and return the alarm information to the service end.

[0233] In an exemplary embodiment, the generating module 1204 includes:

[0234] The first generating submodule is used to generate a generated number of initial target business sequence numbers starting from the target starting sequence number according to the target business sequence number rule.

[0235] The first splicing submodule is used to splice the serial number identifier, the target callback date corresponding to the callback date and each initial target business serial number to obtain each target business serial number.

[0236] The first construction submodule is used to construct a target sequence number set of the target service according to each target service sequence number.

[0237] In an exemplary embodiment, the serial number callback device 1200 further includes:

[0238] The sending module is used to send the target sequence number set to the service end.

[0239] The sixth determination module is used to determine the maximum value of the target business sequence number in the target sequence number set, and update the maximum value of the business sequence number to the maximum value of the target business sequence number.

[0240] Each module in the above-mentioned serial number callback 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 a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0241] 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. Fig.13As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the 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 an 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 the 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 an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for dialing back a sequence number is implemented. The display unit of the computer device is used to form a visually visible picture, which 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 shell, or an external keyboard, touchpad or mouse.

[0242] Those skilled in the art will understand that Fig.13 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 those shown in the figure, or combine certain components, or have a different arrangement of components.

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

[0244] 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.

[0245] 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.

[0246] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and 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. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0247] The technical features of the above embodiments may be combined arbitrarily. 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.

[0248] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for serial number callback, It is characterized in that The method comprises: Receiving a callback request of a target service sent by a service end; the callback request includes a serial number identifier, a generated quantity and a callback date of the target service; Based on the sequence number identifier and the call-back date, query the target service sequence number rule corresponding to the target service and the maximum value of the service sequence number corresponding to the target service sequence number sequence on the call-back date; each target service sequence number is constructed as the target service sequence number sequence that increases in increments; Determine a target starting sequence number based on the maximum value of the service sequence number, the generated quantity and the target service sequence number rule; Starting with the target starting sequence number, a target sequence number set for the target service is generated according to the sequence number identifier, the call-back date, the target service sequence number rule and the generated quantity.

2. The method according to claim 1, It is characterized in that Before querying the target service sequence number rule corresponding to the target service and the service sequence number maximum value corresponding to the target service sequence number sequence on the call back date based on the sequence number identifier and the call back date, the method further includes: In response to a request for generating a business serial number rule of a target business, displaying a serial number rule template; the serial number rule template includes various default callback modes; Determining a target callback mode corresponding to the target service in each of the default callback modes; Determine a target cleanup time period based on the target call-back mode, and determine a target super-value tag corresponding to the target business in each default super-value tag; A target business serial number rule for the target business is constructed according to the target callback mode, the target clearing time period and the target overvalue tag; the target business serial number rule is used to generate a target business serial number for the target business.

3. The method according to claim 1, It is characterized in that The querying of the target service sequence number rule corresponding to the target service and the maximum service sequence number corresponding to the target service sequence number sequence on the call back date based on the sequence number identifier and the call back date includes: Determining a target service sequence number rule corresponding to the target service in each service sequence number rule based on the sequence number identifier; the target service sequence number rule includes a target callback mode; Update the callback date based on the target callback mode to obtain a target callback date; A fuzzy query is performed based on the target call-back date and the sequence number identifier to obtain the maximum value of the service sequence number corresponding to the target service sequence number sequence on the call-back date.

4. The method according to claim 3, It is characterized in that The updating of the callback date based on the target callback mode to obtain the target callback date includes: Determine whether the target callback mode is a global sequence callback mode; If the target callback mode is the global sequence callback mode, update the callback date to the current date to obtain the target callback date; If the target callback mode is not the global sequence callback mode, the callback date is formatted based on the target callback mode to obtain a target callback date.

5. The method according to claim 1, It is characterized in that The determining of the target starting sequence number based on the maximum value of the service sequence number, the generated quantity and the target service sequence number rule includes: Adding the maximum value of the service sequence number and the generated quantity to obtain the maximum value of the callback service sequence number; Determine whether the maximum value of the callback service sequence number is greater than the service sequence number threshold in the target service sequence number rule; If the maximum value of the callback service sequence number is less than or equal to the service sequence number threshold, the sum of the maximum value of the service sequence number and the step length in the target service sequence number rule is determined as the target starting sequence number.

6. The method according to claim 5, It is characterized in that After determining whether the maximum value of the callback service sequence number is greater than the service sequence number threshold in the target service sequence number rule, the sequence number callback method further includes: If the maximum value of the callback service sequence number is greater than the service sequence number threshold, determining whether the target overvalue tag in the target service sequence number rule indicates that the number of service sequence numbers is allowed to exceed the service sequence number threshold; If the target overvalue tag represents that the number of service numbers allowed exceeds the service number threshold, the minimum service number is queried based on the number identifier and the call-back date, and the minimum service number is determined to be the target starting number.

7. The method according to claim 6, It is characterized in that After determining whether the target over-value tag in the target service sequence number rule indicates that the number of service sequence numbers allowed exceeds the service sequence number threshold, the method further includes: If the target overvalue tag representation does not allow the number of service numbers to exceed the service number threshold, determining the remaining number of the sequence numbers corresponding to the call-back date based on the service number threshold and the maximum value of the service number; An alarm message is constructed according to the remaining number of the sequence numbers, the generated number, and the message that the maximum value of the callback service sequence number exceeds the service sequence number threshold, and the alarm message is returned to the service end.

8. The method according to claim 1, It is characterized in that The step of starting with the target starting sequence number and generating the target sequence number set of the target service according to the sequence number identifier, the call-back date, the target service sequence number rule and the generated quantity includes: Starting from the target start sequence number, generating a number of initial target service sequence numbers according to the target service sequence number rule; Concatenate the serial number identifier, the target callback date corresponding to the callback date, and each of the initial target service serial numbers to obtain each target service serial number; A target sequence number set of the target service is constructed according to each of the target service sequence numbers.

9. The method according to claim 1, It is characterized in that After generating the target sequence number set of the target service based on the sequence number identifier, the call-back date, the target service sequence number rule and the generated quantity starting from the target start sequence number, the method further includes: Sending the target sequence number set to the service end; The maximum value of the target service sequence number is determined in the target sequence number set, and the maximum value of the service sequence number is updated to the maximum value of the target service sequence number.

10. A serial number call back device, It is characterized in that The device comprises: A receiving module, used for receiving a callback request of a target service sent by a service end; the callback request includes a serial number identifier, a generated quantity and a callback date of the target service; A query module, used for querying the target service sequence number rule corresponding to the target service and the maximum service sequence number corresponding to the target service sequence number sequence on the call back date based on the sequence number identifier and the call back date; each target service sequence number is constructed as an increasing target service sequence number; A determination module, configured to determine a target starting sequence number based on the maximum value of the service sequence number, the generated quantity and the target service sequence number rule; A generation module is used to generate a target sequence number set for the target business starting from the target starting sequence number according to the sequence number identifier, the call-back date, the target business sequence number rule and the generation quantity.