CN111210299B - Single number generation and management method and device - Google Patents

Single number generation and management method and device Download PDF

Info

Publication number
CN111210299B
CN111210299B CN201911355581.XA CN201911355581A CN111210299B CN 111210299 B CN111210299 B CN 111210299B CN 201911355581 A CN201911355581 A CN 201911355581A CN 111210299 B CN111210299 B CN 111210299B
Authority
CN
China
Prior art keywords
single number
preset
generation
numbers
reserved
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911355581.XA
Other languages
Chinese (zh)
Other versions
CN111210299A (en
Inventor
李祥康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mengma Electric Technology Co ltd
Original Assignee
Shenzhen Mengma Electric Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Mengma Electric Technology Co ltd filed Critical Shenzhen Mengma Electric Technology Co ltd
Priority to CN201911355581.XA priority Critical patent/CN111210299B/en
Publication of CN111210299A publication Critical patent/CN111210299A/en
Application granted granted Critical
Publication of CN111210299B publication Critical patent/CN111210299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping

Landscapes

  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Telephone Function (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application is applicable to the technical field of data processing, and provides a single number generation and management method, which comprises the following steps: obtaining a reservation instruction, reserving a single number in a reservation interval corresponding to the reservation instruction as a reservation single number, generating a corresponding single number according to a preset generation rule and a preset generation sequence, comparing the generated single number with the reservation single number as a generation single number, and merging the overlapped single numbers if any generation single number is overlapped with any reservation single number to obtain a target single number. According to the application, through reserving the single numbers in the preset interval, when the newly generated single numbers are overlapped with the single numbers in the preset interval, the merging operation is executed, so that the phenomenon that the single numbers are repeated is avoided, the data volume of the single numbers is reduced, the uniqueness and the order of the single numbers are ensured, and the efficiency of single number management is improved.

Description

Single number generation and management method and device
Technical Field
The application belongs to the technical field of data processing, and particularly relates to a method and a device for generating and managing single numbers.
Background
With the popularity of online shopping, the logistics industry is rapidly developing, and in the development process of the logistics industry, how to generate and store single numbers becomes the most important technical problem in the field.
The existing generation mode of the single number is mostly to read the maximum value of the single number stored in the database, and generate a new single number by accumulating the maximum value of the single number. The method is easy to generate repeated single numbers, and in the storage process, if multi-node deployment is performed, the repeated single numbers are generated repeatedly, so that the data quantity of the single numbers in the database is large, unordered and high in repeatability, and the management is difficult.
Disclosure of Invention
The embodiment of the application provides a single number generation and management method and device, which can solve the problems of large data size, disorder, high repeatability and difficult management of single numbers in a database caused by the fact that the repeated single numbers are easily generated repeatedly in the prior art.
In a first aspect, an embodiment of the present application provides a method for generating and managing a single number, including:
Acquiring a reservation instruction;
reserving a single number in a reserved interval corresponding to the reserved instruction as a reserved single number;
Generating corresponding single numbers according to a preset generation rule and a preset generation sequence to serve as generated single numbers;
Comparing the generated single number with the reserved single number;
if any generated single number is overlapped with any reserved single number, merging the overlapped single numbers to obtain the target single number.
In one embodiment, if any generated single number coincides with any reserved single number, merging the coincident single numbers to obtain the target single number, including:
if any generated single number is overlapped with any reserved single number, reserving the overlapped content of the generated single number;
and deleting the original reserved single number to obtain the target single number.
In one embodiment, the preset generation rule includes at least one of prefix of the single number, suffix of the single number, start value of the single number, step length of the single number, trigger generation threshold of the single number and health index of the single number;
The preset generation sequence comprises the following steps:
Generating single numbers according to the sequence from small to large; or alternatively
The single numbers are generated in order from large to small.
In one embodiment, the comparing generates a single number with a reserved single number, including:
Comparing whether the preset generation rule and the preset generation sequence of the generation single number and the reservation single number are the same or not;
if the preset generation rule and the preset generation sequence of the generation single number and the reservation single number are the same, comparing whether the preset IDs of the generation single number and the reservation single number are the same or not.
In one embodiment, if any generated single number coincides with any reserved single number, merging the coincident single numbers to obtain the target single number, and then, including:
Obtaining the number of single numbers;
If the number of the single numbers exceeds a preset threshold, generating single number excessive prompt information and sending the single number excessive prompt information to terminal equipment of a user;
obtaining a health index of a single number;
If the health index of any single number is lower than the preset health index threshold, generating prompt information of abnormal health state of the single number according to the ID of the single number with the health index lower than the preset health index threshold, and sending the prompt information to the terminal equipment of the user.
In one embodiment, the method further comprises:
Managing the single number according to the first-in first-out rule of the stack;
The ID of the popped single number is deleted.
In a second aspect, an embodiment of the present application provides a single number generating and managing device, including:
The acquisition module is used for acquiring the reservation instruction;
The reservation module is used for reserving a single number in a reservation interval corresponding to the reservation instruction as a reservation single number;
the generation module is used for generating corresponding single numbers according to a preset generation rule and a preset generation sequence to be used as the generated single numbers;
the comparison module is used for comparing the generated single number with the reserved single number;
and the merging module is used for merging the overlapped single numbers if any generated single number is overlapped with any reserved single number, so as to obtain the target single number.
In one embodiment, the combining module includes:
The merging unit is used for reserving the content of the overlapped generation single number if any generation single number is overlapped with any reservation single number;
and the deleting unit is used for deleting the original reserved single number and obtaining the target single number.
In one embodiment, the comparison module comprises:
the first comparison unit is used for comparing whether the preset generation rule and the preset generation sequence of the generation single number and the reserved single number are the same or not;
and the second comparison unit is used for comparing whether the preset IDs of the generation single number and the reservation single number are the same if the preset generation rule and the preset generation sequence of the generation single number and the reservation single number are the same.
In one embodiment, the apparatus further comprises:
the first acquisition unit is used for acquiring the number of the single numbers;
the first sending unit is used for generating excessive single number prompt information and sending the excessive single number prompt information to terminal equipment of a user if the number of the single numbers exceeds a preset threshold value;
The second acquisition unit is used for acquiring the health index of the single number;
and the second sending unit is used for generating prompt information of abnormal health state of the single number according to the ID of the single number with the health index lower than the preset health index threshold value if the health index of any single number is lower than the preset health index threshold value, and sending the prompt information to the terminal equipment of the user.
In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for generating a single number according to any one of the first aspects when the processor executes the computer program.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program, which when executed by a processor implements the method for generating and managing a single number as described in any one of the first aspects above.
In a fifth aspect, an embodiment of the present application provides a computer program product, which when run on a terminal device, causes the terminal device to perform the method for generating and managing a single number according to any one of the first aspects.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
According to the embodiment of the application, the single number in the preset interval is reserved, and when the newly generated single number is overlapped with the single number in the preset interval, the merging operation is executed, so that the phenomenon that the single number is repeated is avoided, the data volume of the single number is reduced, the uniqueness and the order of the single number are ensured, and the efficiency of single number management is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for generating and managing a single number according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for generating and managing a single number according to an embodiment of the present application;
FIG. 3 is a flow chart of a method for generating and managing a single number according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for generating and managing a single number according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a single number generating and managing device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a mobile phone to which the single number generation and management method according to an embodiment of the present application is applicable.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The method for generating and managing the single number provided by the embodiment of the application can be applied to terminal equipment such as mobile phones, tablet computers, wearable equipment, vehicle-mounted equipment, augmented reality (Augmented Reality, AR)/Virtual Reality (VR) equipment, notebook computers, ultra-Mobile Personal Computer (UMPC), netbooks, personal digital assistants (personal DIGITAL ASSISTANT, PDA) and the like, and the embodiment of the application does not limit the specific types of the terminal equipment.
Fig. 1 shows a schematic flow chart of a method for generating and managing a single number according to the present application, which can be applied to any of the above terminal devices by way of example and not limitation.
S101, acquiring a reservation instruction;
In a specific application, a reservation instruction sent by a terminal device in communication connection with a current terminal device is obtained, or a reservation instruction input by a user is directly obtained. The reservation instruction is an instruction for reserving a single number in a reservation section specified by a user.
S102, reserving a single number in a reserved interval corresponding to the reserved instruction as a reserved single number;
In a specific application, the reservation instruction is analyzed, a reservation interval corresponding to the reservation instruction is obtained, and the single numbers in the reservation interval are filled to be empty and used as reservation single numbers. For example, if the reservation section corresponding to the reservation instruction is [005, 021], the single numbers with IDs of 005, 006, 007..021 are filled with null as reservation single numbers, and at this time, the number of reservation single numbers is 17.
The reserved section may be one section or a plurality of sections. For example, the reserved intervals may be [005, 021], [036, 045] and [051, 072].
S103, generating corresponding single numbers according to a preset generation rule and a preset generation sequence to serve as generated single numbers;
In a specific application, a preset generation rule and a preset generation sequence preset by a user are obtained, corresponding single numbers are generated according to the preset generation rule and the preset generation sequence to be used as the generated single numbers, wherein the preset generation rule is a single number generation rule preset by the user, and the preset generation sequence is a single number generation sequence preset by the user. For example, the preset generation rule may be to set the prefix of the single number to "XY". The preset generation sequence is a single number generation sequence from small to large.
S104, comparing the generated single number with the reserved single number;
In a specific application, comparing whether the preset generation rule and the preset generation sequence of the generation single number are the same as the preset generation rule and the preset generation sequence of the reservation single number, and if the preset generation rule and the preset generation sequence of the generation single number are the same as the preset generation rule and the preset generation sequence of the reservation single number, judging that the generation single number and the reservation single number are the same specification single number.
And then comparing whether the generated single number with the same specification is coincident with the reserved single number.
S105, if any generated single number is overlapped with any reserved single number, the overlapped single numbers are combined, and the target single number is obtained.
In a specific application, if any generated single number and any reserved single number of the same specification are overlapped, the generated single number and the reserved single number are combined, so that the repeated single number is avoided.
By way of example and not limitation, the merge operation may be to preserve the content of the generated ticket number and delete the original reserved ticket number.
As shown in fig. 2, in one embodiment, the step S105 includes:
S1051, if any generated single number is overlapped with any reserved single number, reserving the overlapped generated single number;
s1052, deleting the original reserved single number to obtain the target single number.
In a specific application, for example, if the generated single number with the ID of XY0001 is overlapped with the reserved single number with the ID of XY0001, the generated single number with the ID of XY0001 is reserved, the reserved single number with the original ID of XY0001 is deleted, and the target single number with the ID of XY0001 is obtained.
In one embodiment, the preset generation rule includes at least one of prefix of the single number, suffix of the single number, start value of the single number, step length of the single number, trigger generation threshold of the single number and health index of the single number;
The preset generation sequence comprises the following steps:
Generating single numbers according to the sequence from small to large; or alternatively
The single numbers are generated in order from large to small.
In a specific application, the preset generation rule includes, but is not limited to, at least one of prefix of the single number, suffix of the single number, start value of the single number, step length of the single number, trigger generation threshold of the single number and health index of the single number.
The method comprises the steps of presetting a generation sequence, including but not limited to generating single numbers in a sequence from small to large; or generating single numbers in order from large to small.
For example, the preset rule is that the prefix of the single number is "XY", the start value of the single number is 0003, the length of the single number is 1, and the preset generation order is that the single numbers are generated in order from small to large. The single number generated according to the preset rule and the preset generation sequence may be: XY0003, XY0004, XY0005, etc.
As shown in fig. 3, in one embodiment, the step S104 includes:
s1041, comparing whether the preset generation rule and the preset generation sequence of the generation single number and the reservation single number are the same;
S1042, if the preset generation rule and the preset generation sequence of the generation single number and the reservation single number are the same, comparing whether the preset IDs of the generation single number and the reservation single number are the same.
In a specific application, whether the generated single number and the reserved single number are of the same specification can be judged by comparing whether the preset generation rule and the preset generation sequence of the generated single number and the reserved single number are the same.
If any one of the preset generation rule of the generation list number and the preset generation rule of the reservation list number is different, judging that the generation list number and the reservation list number are not the same specification list number.
For example, if the preset generation rule of the generation number includes prefix "XY" and start value is "0001", and the preset generation rule of the reservation number includes prefix "ZY" and start value is "0001", it is determined that the generation number and the reservation number are not the same specification number.
If the preset generation sequence of the generation list number is different from the preset generation sequence of the reservation list number, judging that the generation list number and the reservation list number are not the same specification list number.
For example, the preset generation sequence of generating the single numbers is from small to large, and the preset generation sequence of reserving the single numbers is from large to small.
As shown in fig. 4, in one embodiment, after the step S105, the method includes:
S106, obtaining the number of the single numbers;
S107, if the number of the single numbers exceeds a preset threshold, generating single number excessive prompt information and sending the single number excessive prompt information to terminal equipment of a user;
S108, obtaining a health index of a single number;
and S109, if the health index of any single number is lower than a preset health index threshold, generating prompt information of abnormal health state of the single number according to the ID of the single number with the health index lower than the preset health index threshold, and sending the prompt information to the terminal equipment of the user.
In a specific application, the preset threshold refers to the maximum number of storable single numbers, and may be specifically set according to actual situations, for example, the preset threshold is set to 100000. And when the number of the single numbers is equal to 100000, generating single number excessive prompt information and sending the single number excessive prompt information to terminal equipment of the user.
The preset health index threshold is the lowest value of the health index that can use a single number. The specific setting can be performed according to the actual situation, for example, the preset health index threshold is set to be 0.6, and when the health index of the single number is 0.58, the prompt information of the abnormal health state of the single number is generated according to the ID of the single number and sent to the terminal equipment of the user.
In one embodiment, the method further comprises:
Managing the single number according to the first-in first-out rule of the stack;
The ID of the popped single number is deleted.
In a specific application, it may be configured to manage the single number according to a rule of occupied first-in first-out. For example, if the single number is set to be stacked from the right side, when a single number use request is received, the single number is controlled to be stacked from the left side, and the ID of the stacked single number is deleted, so that the repeated use of the same single number is avoided.
According to the embodiment, the single number in the preset interval is reserved, and when the newly generated single number is overlapped with the single number in the preset interval, the merging operation is executed, so that the phenomenon that the single number is repeated is avoided, the data size of the single number is reduced, the uniqueness and the order of the single number are ensured, and the efficiency of single number management is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Corresponding to the method for generating and managing a single number described in the above embodiments, fig. 5 shows a block diagram of the device for generating and managing a single number 100 according to an embodiment of the present application, and for convenience of explanation, only the portions related to the embodiment of the present application are shown.
Referring to fig. 5, the unit number generation and management device 100 includes:
an acquiring module 101, configured to acquire a reservation instruction;
a reservation module 102, configured to reserve a single number in a reservation interval corresponding to the reservation instruction as a reserved single number;
A generating module 103, configured to generate a corresponding single number according to a preset generating rule and a preset generating sequence, as a generated single number;
a comparison module 104, configured to compare the generated single number with the reserved single number;
And the merging module 105 is configured to merge the overlapped single numbers to obtain the target single number if any generated single number is overlapped with any reserved single number.
In one embodiment, the merging module 105 includes:
The merging unit is used for reserving the content of the overlapped generation single number if any generation single number is overlapped with any reservation single number;
and the deleting unit is used for deleting the original reserved single number and obtaining the target single number.
In one embodiment, the comparison module 104 includes:
the first comparison unit is used for comparing whether the preset generation rule and the preset generation sequence of the generation single number and the reserved single number are the same or not;
and the second comparison unit is used for comparing whether the preset IDs of the generation single number and the reservation single number are the same if the preset generation rule and the preset generation sequence of the generation single number and the reservation single number are the same.
In one embodiment, the apparatus 100 further comprises:
the first acquisition unit is used for acquiring the number of the single numbers;
the first sending unit is used for generating excessive single number prompt information and sending the excessive single number prompt information to terminal equipment of a user if the number of the single numbers exceeds a preset threshold value;
The second acquisition unit is used for acquiring the health index of the single number;
and the second sending unit is used for generating prompt information of abnormal health state of the single number according to the ID of the single number with the health index lower than the preset health index threshold value if the health index of any single number is lower than the preset health index threshold value, and sending the prompt information to the terminal equipment of the user.
In one embodiment, the apparatus 100 further comprises:
the management module is used for managing the single number according to the first-in first-out rule of the stack;
and the deleting module is used for deleting the ID of the single number which is popped off.
According to the embodiment, the single number in the preset interval is reserved, and when the newly generated single number is overlapped with the single number in the preset interval, the merging operation is executed, so that the phenomenon that the single number is repeated is avoided, the data size of the single number is reduced, the uniqueness and the order of the single number are ensured, and the efficiency of single number management is improved.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
Fig. 6 is a block diagram showing a part of the structure of a terminal device provided with an embodiment of the present application. Referring to fig. 6, the terminal device includes: radio Frequency (RF) circuitry 110, memory 120, input unit 130, display unit 140, sensor 150, audio circuitry 160, wireless fidelity (WIRELESS FIDELITY, wiFi) module 170, processor 180, and power supply 190. It will be appreciated by those skilled in the art that the terminal device structure shown in fig. 6 is not limiting of the terminal device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes the respective constituent elements of the terminal device in detail with reference to fig. 6:
The RF circuit 110 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, after receiving downlink information of the base station, the downlink information is processed by the processor 180; in addition, the data of the design uplink is sent to the base station. Typically, RF circuitry includes, but is not limited to, antennas, at least one amplifier, transceivers, couplers, low noise amplifiers (Low Noise Amplifier, lnas), diplexers, and the like. In addition, RF circuit 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (Global System of Mobile communication, GSM), general Packet Radio Service (GPRS), code division multiple access (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), email, short message service (short MESSAGING SERVICE, SMS), and the like.
The memory 120 may be used to store software programs and modules, and the processor 180 performs various functional applications and data processing of the terminal device by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the terminal device, and the like. In addition, memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 130 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal device 200. In particular, the input unit 130 may include a touch panel 131 and other input devices 132. The touch panel 131, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 131 or thereabout by using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 131 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 180, and can receive commands from the processor 180 and execute them. In addition, the touch panel 131 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 130 may include other input devices 132 in addition to the touch panel 131. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 140 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 140 may include a display panel 141, and alternatively, the display panel 141 may be configured in the form of a Liquid crystal display (Liquid CRYSTAL DISPLAY, LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 131 may cover the display panel 141, and when the touch panel 131 detects a touch operation thereon or thereabout, the touch panel is transferred to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in fig. 6, the touch panel 131 and the display panel 141 implement input and output functions of the terminal device as two independent components, in some embodiments, the touch panel 131 and the display panel 141 may be integrated to implement input and output functions of the terminal device.
The terminal device 200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or the backlight when the terminal device moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the terminal equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured for the terminal device are not described in detail herein.
Audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the terminal device. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the electrical signal is converted into a sound signal by the speaker 161 to be output; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, receives the electrical signal from the audio circuit 160, converts the electrical signal into audio data, outputs the audio data to the processor 180 for processing, transmits the audio data to, for example, another terminal device via the RF circuit 110, or outputs the audio data to the memory 120 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and terminal equipment can help a user to send and receive emails, browse webpages, access streaming media and the like through a WiFi module 170, so that wireless broadband Internet access is provided for the user. Although fig. 6 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal device 200, and may be omitted entirely as required within the scope of not changing the essence of the invention.
The processor 180 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, thereby performing overall monitoring of the terminal device. Optionally, the processor 180 may include one or more processing units; preferably, the processor 180 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal device 200 also includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system so as to provide for managing charging, discharging, and power consumption via the power management system.
Although not shown, the terminal device 200 may further include a camera. Alternatively, the position of the camera on the terminal device 200 may be front-mounted or rear-mounted, which is not limited in the embodiment of the present application.
Alternatively, the terminal device 200 may include a single camera, a dual camera, or a triple camera, which is not limited in the embodiment of the present application.
For example, the terminal device 200 may include three cameras, one of which is a main camera, one of which is a wide-angle camera, and one of which is a tele camera.
Alternatively, when the terminal device 200 includes a plurality of cameras, the plurality of cameras may be all front-mounted, all rear-mounted, or one part front-mounted, another part rear-mounted, which is not limited by the embodiment of the present application.
In addition, although not shown, the terminal device 200 may further include a bluetooth module or the like, which is not described herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a terminal device, which comprises: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that enable the implementation of the method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above-described embodiments, and may be implemented by hardware related to instructions of a computer program, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of the method embodiments described above when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer memory, read-only memory (ROM), random access memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other manners. For example, the apparatus/network device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical functional division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. The method for generating and managing the single number is characterized by comprising the following steps:
Acquiring a reservation instruction;
reserving a single number in a reserved interval corresponding to the reserved instruction, and filling the single number in the reserved interval as a blank to be used as a reserved single number;
Generating a corresponding single number according to a preset generation rule and a preset generation sequence, wherein the preset generation rule comprises at least one of a prefix of the single number, a suffix of the single number, a start value of the single number, a step length of the single number, a trigger generation threshold of the single number and a health index of the single number, and the preset generation sequence comprises generating the single number in a sequence from small to large or in a sequence from large to small;
Comparing whether the generated single number and the reserved single number are of the same specification according to the preset generation rule and the preset generation sequence, and comparing whether the generated single number and the reserved single number are coincident or not under the condition that the generated single number and the reserved single number are of the same specification;
If any generated single number is overlapped with any reserved single number, merging the overlapped single numbers to obtain a target single number;
Prompting when the target single number does not meet the preset requirement; the preset requirements include health index requirements.
2. The method for generating and managing single numbers according to claim 1, wherein if any generated single number coincides with any reserved single number, merging the coincident single numbers to obtain the target single number, comprising:
if any generated single number is overlapped with any reserved single number, reserving the overlapped content of the generated single number;
and deleting the original reserved single number to obtain the target single number.
3. The method for generating and managing a single number according to claim 1, wherein comparing whether the generated single number and the reserved single number are the same specification single number according to the preset generation rule and the preset generation sequence, and comparing whether the generated single number and the reserved single number are coincident in the case that the generated single number and the reserved single number are the same specification, comprises:
Comparing whether the preset generation rule and the preset generation sequence of the generation single number and the reservation single number are the same or not;
If the preset generation rule and the preset generation sequence of the generation single number and the reservation single number are the same, the generation single number and the reservation single number are the same specification single number, and whether the preset IDs of the generation single number and the reservation single number are the same is compared.
4. The method for generating and managing a single number according to claim 1, wherein the prompting, when the target single number does not meet a preset requirement, includes:
Obtaining the number of single numbers;
If the number of the single numbers exceeds a preset threshold, generating single number excessive prompt information and sending the single number excessive prompt information to terminal equipment of a user;
obtaining a health index of a single number;
If the health index of any single number is lower than the preset health index threshold, generating prompt information of abnormal health state of the single number according to the ID of the single number with the health index lower than the preset health index threshold, and sending the prompt information to the terminal equipment of the user.
5. The single number generation and management method according to claim 1, wherein the method further comprises:
Managing the single number according to the first-in first-out rule of the stack;
The ID of the popped single number is deleted.
6. A single number generation and management device, comprising:
The acquisition module is used for acquiring the reservation instruction;
The reservation module is used for reserving single numbers in a reservation interval corresponding to the reservation instruction, filling the single numbers in the reservation interval as null, and taking the single numbers as reserved single numbers;
The generation module is used for generating corresponding single numbers according to a preset generation rule and a preset generation sequence, wherein the preset generation rule comprises at least one of a prefix of the single numbers, a suffix of the single numbers, a starting value of the single numbers, a step length of the single numbers, a trigger generation threshold of the single numbers and health indexes of the single numbers, and the preset generation sequence comprises the step of generating the single numbers according to the sequence from small to large or the step of generating the single numbers according to the sequence from large to small;
the comparison module is used for comparing whether the generated single number and the reserved single number are of the same specification according to the preset generation rule and the preset generation sequence, and comparing whether the generated single number and the reserved single number are coincident or not under the condition that the generated single number and the reserved single number are of the same specification;
The merging module is used for merging the overlapped single numbers to obtain the target single number if any generated single number is overlapped with any reserved single number;
the prompting module is used for prompting when the target single number does not meet the preset requirement; the preset requirements include health index requirements.
7. The single number generation and management device of claim 6, wherein the merge module comprises:
The merging unit is used for reserving the content of the overlapped generation single number if any generation single number is overlapped with any reservation single number;
and the deleting unit is used for deleting the original reserved single number and obtaining the target single number.
8. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 5 when executing the computer program.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 5.
CN201911355581.XA 2019-12-25 2019-12-25 Single number generation and management method and device Active CN111210299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911355581.XA CN111210299B (en) 2019-12-25 2019-12-25 Single number generation and management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911355581.XA CN111210299B (en) 2019-12-25 2019-12-25 Single number generation and management method and device

Publications (2)

Publication Number Publication Date
CN111210299A CN111210299A (en) 2020-05-29
CN111210299B true CN111210299B (en) 2024-04-19

Family

ID=70785150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911355581.XA Active CN111210299B (en) 2019-12-25 2019-12-25 Single number generation and management method and device

Country Status (1)

Country Link
CN (1) CN111210299B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115688683B (en) * 2023-01-05 2023-03-21 东方合智数据科技(广东)有限责任公司 Document number issuing method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3089165U (en) * 2002-04-09 2002-10-11 船井電機株式会社 Hard disk recorder
JP2009088705A (en) * 2007-09-27 2009-04-23 Nec Personal Products Co Ltd Information processor, and program
CN104899031A (en) * 2015-05-29 2015-09-09 北京京东尚科信息技术有限公司 Logistics data generation method and apparatus and logistics client configuration method and apparatus
CN106560795A (en) * 2015-10-01 2017-04-12 佳能株式会社 Information Processing Apparatus And Information Processing Method
CN107305582A (en) * 2016-04-25 2017-10-31 华为技术有限公司 A kind of metadata processing method and device
CN109670975A (en) * 2018-12-17 2019-04-23 泰康保险集团股份有限公司 Method, medium and the electronic equipment of odd numbers are generated in computer system
CN110473036A (en) * 2018-05-09 2019-11-19 北京京东尚科信息技术有限公司 A kind of method and apparatus generating order number
CN110543472A (en) * 2019-08-09 2019-12-06 浙江大华技术股份有限公司 data reconciliation method and related device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3089165U (en) * 2002-04-09 2002-10-11 船井電機株式会社 Hard disk recorder
JP2009088705A (en) * 2007-09-27 2009-04-23 Nec Personal Products Co Ltd Information processor, and program
CN104899031A (en) * 2015-05-29 2015-09-09 北京京东尚科信息技术有限公司 Logistics data generation method and apparatus and logistics client configuration method and apparatus
CN106560795A (en) * 2015-10-01 2017-04-12 佳能株式会社 Information Processing Apparatus And Information Processing Method
CN107305582A (en) * 2016-04-25 2017-10-31 华为技术有限公司 A kind of metadata processing method and device
CN110473036A (en) * 2018-05-09 2019-11-19 北京京东尚科信息技术有限公司 A kind of method and apparatus generating order number
CN109670975A (en) * 2018-12-17 2019-04-23 泰康保险集团股份有限公司 Method, medium and the electronic equipment of odd numbers are generated in computer system
CN110543472A (en) * 2019-08-09 2019-12-06 浙江大华技术股份有限公司 data reconciliation method and related device

Also Published As

Publication number Publication date
CN111210299A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
CN104518953B (en) Method for deleting message, instant communication terminal and system
CN107172267B (en) Fingerprint identification control method and related product
CN110879680B (en) Icon management method and electronic equipment
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
CN110705497A (en) Image frame processing method and device, terminal equipment and computer readable storage medium
US10324134B2 (en) Method and device for ascertaining required charging time
CN110688347A (en) File storage method, file storage device and terminal equipment
CN108984066B (en) Application icon display method and mobile terminal
CN107330867B (en) Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment
CN106682189B (en) File name display method and device
CN106020945B (en) Shortcut item adding method and device
CN114860677A (en) File redundancy removal method for terminal equipment, terminal equipment and storage medium
CN111210299B (en) Single number generation and management method and device
CN110532231B (en) File query method, file query device and terminal equipment
CN110602766B (en) Personal hotspot identification method and method for determining association relationship between terminals
CN109714483B (en) Screen locking interface message processing method and device, mobile terminal and storage medium
CN106713648A (en) Communication method and mobile terminal
CN106777383B (en) File sorting method and intelligent terminal
CN110767950B (en) Charging method, charging device, terminal equipment and computer readable storage medium
CN112261634B (en) Bluetooth transmission control method and device, terminal equipment and storage medium
CN110795001B (en) Message processing method and electronic equipment
CN110706158B (en) Image processing method, image processing device and terminal equipment
CN110109788B (en) Multi-key detection method and device, electronic equipment and storage medium
CN108449259B (en) Communication processing method and mobile terminal
CN109905445B (en) Instruction processing method and terminal

Legal Events

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