[go: up one dir, main page]

CN105404953A - Identification generation method and apparatus - Google Patents

Identification generation method and apparatus Download PDF

Info

Publication number
CN105404953A
CN105404953A CN201510697631.8A CN201510697631A CN105404953A CN 105404953 A CN105404953 A CN 105404953A CN 201510697631 A CN201510697631 A CN 201510697631A CN 105404953 A CN105404953 A CN 105404953A
Authority
CN
China
Prior art keywords
service order
serial number
described service
service
order
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.)
Pending
Application number
CN201510697631.8A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510697631.8A priority Critical patent/CN105404953A/en
Publication of CN105404953A publication Critical patent/CN105404953A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Educational Administration (AREA)
  • Game Theory and Decision Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An embodiment of the invention discloses an identification generation method. The method comprises the following steps of acquiring a service characteristic identification related to a service of a service order; sorting the service order and other service orders possessing a service characteristic identification which is the same with the service characteristic identification of the service order and acquiring a sequence number of the service order; according to the sequence number of the service order and the service characteristic identification of the service order, generating an only identification of the service order. The embodiment of the invention also discloses an identification generation apparatus.

Description

A kind of mark generating method and device
Technical field
The present invention relates to the communications field, particularly relate to a kind of mark generating method and device.
Background technology
Along with the development of mobile Internet, the straight and even puzzlement being faced with the high concurrent access of large data in internet.Time for so huge data and visit capacity, server usually all adopts distributed system to do laterally expansion and ensures the stable of platform, but particularly large-scale distributed system as two 11 of Taobao movable, Jingdone district 618 is movable, booking in 12306 Spring Festival, because trading volume is too large, beyond system ability to bear, account (Identification, ID) may will there is repetition in the order number of the miscellaneous service of maker generation, like this, the uniqueness of order number and stability just can not be guaranteed.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present invention is expected to provide a kind of mark generating method and device, can generate the unique identification with uniqueness and stability.
Technical scheme of the present invention is achieved in that
First aspect, provides a kind of mark generating method, and described method comprises:
Obtain the service feature mark relevant to business of a service order;
Described service order and described service feature are identified other identical service orders sort, obtain the serial number of described service order;
According to the serial number of described service order and the service feature mark of described service order, generate the unique identification of described service order.
Optionally, the service feature mark of the described serial number according to described service order and described service order, the unique identification generating described service order comprises:
The service feature mark of the serial number of described service order and described service order is enumerated successively by binary mode, generate the unique identification of described service order, the unique identification of described service order is identified by the serial number of described service order and the service feature of described service order and forms.
Optionally, describedly described service order and described service feature are identified other identical service orders sort, the serial number obtaining described service order comprises:
Obtain and identify serial number maximum in other identical service orders with described service feature;
Described maximum serial number is added preset value, obtains the serial number of described service order.
Optionally, described service feature mark comprises: the application system account ID that timestamp when described service order completes, described business are corresponding and machine ID numbering corresponding to described business.
Optionally, described unique identification is 64, and described timestamp is 32, and described application system ID is 8, described machine ID numbering is 8, and described serial number is 16.
Second aspect, provides a kind of identification generation apparatus, and described device comprises:
Acquiring unit, for obtaining the service feature mark relevant to business of a service order;
Sequencing unit, sorts for described service order and described service feature are identified other identical service orders, obtains the serial number of described service order;
Generation unit, for according to the serial number of described service order and the service feature mark of described service order, generates the unique identification of described service order.
Optionally, described generation unit specifically for:
The service feature mark of the serial number of described service order and described service order is enumerated successively by binary mode, generate the unique identification of described service order, the unique identification of described service order is identified by the serial number of described service order and the service feature of described service order and forms.
Optionally, described sequencing unit specifically for:
Obtain and identify serial number maximum in other identical service orders with described service feature;
Described maximum serial number is added preset value, obtains the serial number of described service order.
Optionally, described service feature mark comprises: the application system ID that timestamp when described service order completes, described business are corresponding and machine ID numbering corresponding to described business.
Optionally, described unique identification is 64, and described timestamp is 32, and described application system ID is 8, described machine ID numbering is 8, and described serial number is 16.
Embodiments provide a kind of mark generating method and device, first obtain the service feature mark relevant to business of a service order; Again service order and service feature are identified other identical service orders to sort, obtain the serial number of service order; Afterwards, according to the serial number of service order and the service feature mark of service order, the unique identification of service order is generated.So, the unique identification of generation is just identified by the serial number of service order and service feature and forms, like this, just ensure that the unique identification of different business signature identification, its service feature mark is different, and service feature identifies identical unique identification, and its serial number is different.Therefore, the unique identification of service order just can ensure uniqueness, and meanwhile, this unique identification includes the mark relevant to business, therefore, also ensures uniquely identified stability.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
The process flow diagram of a kind of mark generating method that Fig. 3 provides for the embodiment of the present invention;
The schematic diagram of the uniquely identified ingredient that Fig. 4 provides for the embodiment of the present invention;
The schematic diagram that the identification generation apparatus that Fig. 5 provides for the embodiment of the present invention is formed with application;
The process flow diagram of the another kind of mark generating method that Fig. 6 provides for the embodiment of the present invention;
The structural representation of a kind of identification generation apparatus that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA), panel computer (PAD), portable media player (PMP), guider etc. and the fixed terminal of such as digital TV, desk-top computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed attribute.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, audio/video (A/V) input block 120, user input unit 130, sensing cell 140, output unit 150, storer 160, interface unit 170, controller 180 and power supply unit 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the wireless communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast system Received signal strength broadcast of each attribute.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), forward link media (MediaFLO ) Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. digit broadcasting system receive digital broadcasting.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcast system of broadcast singal and above-mentioned digit broadcasting system.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in storer 160 (or storage medium of other attribute).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.The data of each attribute that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (wireless local area network) (WLAN) (Wi-Fi), WiMAX (Wibro), worldwide interoperability for microwave access (Wimax), high-speed downlink packet access (HSDPA) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth tM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee tMetc..
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is GPS (GPS).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating position and temporal information uses three satellites and by using the error of the position that goes out of an other satellite correction calculation and temporal information.In addition, GPS module 115 can carry out computing velocity information by Continuous plus current location information in real time.
A/V input block 120 is for audio reception or vision signal.A/V input block 120 can comprise camera 121 and microphone 122, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in storer 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 121 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.The noise that microphone 122 can implement each attribute is eliminated (or suppress) algorithm and is being received and sending to eliminate (or suppression) noise or interference that produce in the process of sound signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input the information of each attribute, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power supply unit 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 141 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), subscriber identification module (SIM), USIM (Universal Subscriber Identity Module) (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other coupling arrangement.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.), and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, sound signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151, dio Output Modules 152, alarm unit 153 etc.
Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input media and output unit.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as transparent organic light emitting diode (TOLED) display etc.According to the specific embodiment wanted, mobile terminal 100 can comprise two or more display units (or other display device), such as, mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in storer 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise loudspeaker, hummer etc.
Alarm unit 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm unit 153 can provide in a different manner and export with the generation of notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm unit 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm unit 153 also can provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Storer 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, storer 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of sound signal.
Storer 160 can comprise the storage medium of at least one attribute, described storage medium comprises flash memory, hard disk, multimedia card, card-type storer (such as, SD or DX storer etc.), random access storage device (RAM), static random-access memory (SRAM), ROM (read-only memory) (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 181 for reproducing (or playback) multi-medium data, and multi-media module 181 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power supply unit 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various embodiment described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, embodiment described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such embodiment can be implemented in controller 180.For implement software, the embodiment of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in storer 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in the mobile terminal of each attribute of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any attribute, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.
Describe wherein according to the communication system that mobile terminal of the present invention can operate referring now to Fig. 2.
Such communication system can use different air interfaces and/or Physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA) (TDMA), CDMA (CDMA) and universal mobile telecommunications system (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other attribute.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC275.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the mobile terminal 100 at operate within systems by broadcsting transmitter (BT) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences the broadcast singal receiving and sent by BT295.In fig. 2, several GPS (GPS) satellite 500 is shown.Satellite 500 helps at least one in the multiple mobile terminal 100 in location.
In fig. 2, depict multiple satellite 500, but understand, the satellite of any number can be utilized to obtain useful locating information.GPS module 115 as shown in Figure 1 is constructed to coordinate to obtain the locating information wanted with satellite 500 usually.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 500 optionally or extraly can process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other attribute.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Embodiment one
The embodiment of the present invention provides a kind of mark generating method, and the method is applied to identification generation apparatus, and this device is independent of business professional system, and like this, the generation of mark can not produce pressure to operation system.As shown in Figure 3, the method comprises:
Step 301, obtain relevant to the business service feature mark of a service order.
Here, service feature mark can be the mark of this service related information of mark, such as, one or more of the serial number etc. of the machine ID numbering that the business application system ID that timestamp when service order completes, service order are corresponding, service order are corresponding, the city numbering at machine place and service order.
Preferably, service feature mark can comprise the serial number of machine ID numbering corresponding to application system ID corresponding to timestamp when service order completes, business, business and service order.What deserves to be explained is, which specifically selects come according to actual conditions as service feature mark fixed.Such as, when portfolio is not very large and only has an application system ID, now, service feature mark can not comprise application system ID.
Step 302, service order and service feature are identified other identical service orders sort, obtain the serial number of service order.
Concrete, obtain and identify serial number maximum in other identical service orders with service feature; Maximum serial number is added preset value, obtains the serial number of service order.Here, the serial number of this service order can be obtained by the numerical value obtaining counter.Preferably, preset value is 1.Such as, when the maximum serial number obtained is 101, the serial number of this service order is 102, i.e. 101+1.Here, the serial number of initial situation is 0, and when service feature mark is identical, the serial number of service order increases progressively.The method increased progressively accordingly can be from increasing method or certainly write script and carry out rolling counters forward by the incr (a kind of command parameter) of redis or memcache, serial number obtains count value from counter, reduces server like this to the pressure of database.
Wherein, Redis is a storage system.It supports that the value type stored is relatively more, comprises character string, chained list, set, ordered set and Hash.These data types all support to get common factor union and difference set and abundanter operation, and these operations are all atomicities.On this basis, Redis supports the sequence of various different modes.In order to guaranteed efficiency, data are all be buffered in internal memory.Redis periodically the data write disk upgraded or the log file that retouching operation write is added, and can achieve master-slave synchronisation on this basis.Redis is a high performance database.The appearance of Redis, largely compensate for the deficiency that memcached stores, can play good supplementary function in part occasion to relational database.Memcached is a high performance distributed memory target cache system, for dynamic network application to alleviate database loads.It reduces the number of times of reading database by data cached in internal memory and object, thus improves speed that is dynamic, database-driven website.Memcached stores the right hashmap of key/value based on one.Its finger daemon C language is write, but client can be write with any language, and is communicated with finger daemon by memcached agreement.
Step 303, service feature mark according to the serial number of service order and service order, generate the unique identification of service order.
Concrete, the service feature mark of the serial number of service order and service order is enumerated successively by binary mode, generate the unique identification of service order, the service feature mark of the unique identification serial number comprising service order and the service order of ining succession of described service order.
Preferably, unique identification is 64, and timestamp is 32, and application system ID is 8, machine ID numbering is 8, and serial number is 16.Here, timestamp, application system, machine ID numbering can be numeral also can be letter, and the present embodiment does not limit.Due under different situations, require different for uniquely identified, therefore, the present embodiment does not limit.Such as, suppose that the machine that the present embodiment uses only has two, therefore, machine ID numbering can only account for 1, is represented by 0 and 1.
Example, suppose that timestamp is 00000110000001100000011000000110, application system ID is 00101001, machine ID numbering is 10100010, serial number is 1011011000100010, by the synthesis of above-mentioned four service features mark, generate unique identification, unique identification is the continuous upper serial number of the continuous upper machine ID numbering of the continuous upper application system ID of timestamp, namely as shown in Figure 4.
What deserves to be explained is, mark generating method in the present embodiment is not limited only to enumerate according to above-mentioned this method, the position that serial number and each service feature identify can be changed, other algorithms can also be used to calculate, generate unique identification, but need to ensure that uniquely identified figure place that other algorithms generate at least must be greater than the figure place of any one service feature mark, the uniquely identified number that guarantee generates becomes more than prior art.
So, the unique identification of generation is just identified by the serial number of service order and service feature and forms, like this, just ensure that the unique identification of different business signature identification, its service feature mark is different, and service feature identifies identical unique identification, and its serial number is different.Therefore, the unique identification of service order just can ensure uniqueness, and meanwhile, this unique identification includes the mark relevant to business, therefore, also ensures uniquely identified stability.
Further, supposing timestamp, application system ID and machine ID number this kind of service feature mark identical time, now how many service orders can be counted and complete, determine the peak value of service order, thus the figure place of serial number can be changed, such as dilatation, or subtract appearance.
Embodiment two
The embodiment of the present invention provides a kind of mark generating method, and the method is applied to identification generation apparatus, and as shown in Figure 5, this identification generation apparatus is independent of business professional system for the schematic diagram that this identification generation apparatus and application are formed.As shown in Figure 6, the method comprises:
Step 401, obtain application system ID corresponding to the timestamp of service order when completing, service order and machine ID numbering corresponding to service order.
Serial number maximum in other service orders that the machine ID numbering that the application system ID that timestamp when step 402, acquisition complete with service order, service order are corresponding is corresponding with service order is all identical.
Step 403, maximum serial number is added 1, obtain the serial number of service order.
Example, suppose that maximum serial number is 1011011000100010, the serial number of service order is 1011011000100011.
Step 404, the serial number of service order, timestamp, application system ID and machine ID numbering to be enumerated successively by binary mode, generate the unique identification of service order.
Here, this unique identification is numbered by serial number, timestamp, application system ID and machine ID and is formed.
Embodiment three
The embodiment of the present invention provides a kind of identification generation apparatus 50, and as shown in Figure 7, this device 50 comprises:
Acquiring unit 501, for obtaining the service feature mark relevant to business of a service order.
Sequencing unit 502, sorts for described service order and described service feature are identified other identical service orders, obtains the serial number of described service order.
Generation unit 503, for according to the serial number of described service order and the service feature mark of described service order, generates the unique identification of described service order.
So, the unique identification of generation is just identified by the serial number of service order and service feature and forms, like this, just ensure that the unique identification of different business signature identification, its service feature mark is different, and service feature identifies identical unique identification, and its serial number is different.Therefore, the unique identification of service order just can ensure uniqueness, and meanwhile, this unique identification includes the mark relevant to business, therefore, also ensures uniquely identified stability.
Further, described generation unit 503 specifically for:
The service feature mark of the serial number of described service order and described service order is enumerated successively by binary mode, generate the unique identification of described service order, the unique identification of described service order is identified by the serial number of described service order and the service feature of described service order and forms.
Further, described sequencing unit 502 specifically for:
Obtain and identify serial number maximum in other identical service orders with described service feature;
Described maximum serial number is added preset value, obtains the serial number of described service order.
Preferably, described service feature mark comprises: the application system account ID that timestamp when described service order completes, described business are corresponding and machine ID numbering corresponding to described business.
Preferably, described unique identification is 64, and described timestamp is 32, and described application system ID is 8, described machine ID numbering is 8, and described serial number is 16.
In actual applications, described acquiring unit 501, sequencing unit 502 and generation unit 503 all can by the central processing unit (CentralProcessingUnit being arranged in identification generation apparatus 50, CPU), microprocessor (MicroProcessorUnit, MPU), digital signal processor (DigitalSignalProcessor, or the realization such as field programmable gate array (FieldProgrammableGateArray, FPGA) DSP).
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of hardware embodiment, software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
The above, be only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.

Claims (10)

1. a mark generating method, is characterized in that, described method comprises:
Obtain the service feature mark relevant to business of a service order;
Described service order and described service feature are identified other identical service orders sort, obtain the serial number of described service order;
According to the serial number of described service order and the service feature mark of described service order, generate the unique identification of described service order.
2. method according to claim 1, is characterized in that, the service feature mark of the described serial number according to described service order and described service order, and the unique identification generating described service order comprises:
The service feature mark of the serial number of described service order and described service order is enumerated successively by binary mode, generate the unique identification of described service order, the unique identification of described service order is identified by the serial number of described service order and the service feature of described service order and forms.
3. method according to claim 1, is characterized in that, describedly described service order and described service feature are identified other identical service orders sorts, and the serial number obtaining described service order comprises:
Obtain and identify serial number maximum in other identical service orders with described service feature;
Described maximum serial number is added preset value, obtains the serial number of described service order.
4. the method according to any one of claims 1 to 3, is characterized in that, described service feature mark comprises: the application system account ID that timestamp when described service order completes, described business are corresponding and machine ID numbering corresponding to described business.
5. method according to claim 4, is characterized in that, described unique identification is 64, and described timestamp is 32, and described application system ID is 8, described machine ID numbering is 8, and described serial number is 16.
6. an identification generation apparatus, is characterized in that, described device comprises:
Acquiring unit, for obtaining the service feature mark relevant to business of a service order;
Sequencing unit, sorts for described service order and described service feature are identified other identical service orders, obtains the serial number of described service order;
Generation unit, for according to the serial number of described service order and the service feature mark of described service order, generates the unique identification of described service order.
7. device according to claim 6, is characterized in that, described generation unit specifically for:
The service feature mark of the serial number of described service order and described service order is enumerated successively by binary mode, generate the unique identification of described service order, the unique identification of described service order is identified by the serial number of described service order and the service feature of described service order and forms.
8. device according to claim 6, is characterized in that, described sequencing unit specifically for:
Obtain and identify serial number maximum in other identical service orders with described service feature;
Described maximum serial number is added preset value, obtains the serial number of described service order.
9. the device according to any one of claim 6 to 8, is characterized in that, described service feature mark comprises: the application system ID that timestamp when described service order completes, described business are corresponding and machine ID numbering corresponding to described business.
10. device according to claim 9, is characterized in that, described unique identification is 64, and described timestamp is 32, and described application system ID is 8, described machine ID numbering is 8, and described serial number is 16.
CN201510697631.8A 2015-10-23 2015-10-23 Identification generation method and apparatus Pending CN105404953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510697631.8A CN105404953A (en) 2015-10-23 2015-10-23 Identification generation method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510697631.8A CN105404953A (en) 2015-10-23 2015-10-23 Identification generation method and apparatus

Publications (1)

Publication Number Publication Date
CN105404953A true CN105404953A (en) 2016-03-16

Family

ID=55470425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510697631.8A Pending CN105404953A (en) 2015-10-23 2015-10-23 Identification generation method and apparatus

Country Status (1)

Country Link
CN (1) CN105404953A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331055A (en) * 2016-08-09 2017-01-11 努比亚技术有限公司 Identifier generation device and method
CN107229555A (en) * 2017-05-04 2017-10-03 北京小度信息科技有限公司 Mark generating method and device
CN109165712A (en) * 2018-08-01 2019-01-08 广州唯品会信息科技有限公司 Distributed generation method, device and computer storage medium by stages number
CN109240848A (en) * 2018-07-27 2019-01-18 阿里巴巴集团控股有限公司 A kind of data object tag generation method and device
CN110543518A (en) * 2019-08-27 2019-12-06 北京奇艺世纪科技有限公司 Distributed ID generation method, device, equipment and storage medium
CN110888910A (en) * 2018-09-11 2020-03-17 北京京东尚科信息技术有限公司 Number segment switching method and device for unique identification code
CN111159211A (en) * 2019-12-31 2020-05-15 广州酷狗计算机科技有限公司 Order information generation method, device and system, computer equipment and storage medium
CN119152512A (en) * 2024-11-19 2024-12-17 成都铭亿嘉科技有限公司 Data processing method for electronization of warehouse logistics paper list

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070121181A1 (en) * 2005-11-22 2007-05-31 Cyvera Corporation Method and apparatus for labeling using optical identification elements characterized by X-ray diffraction
CN103377442A (en) * 2012-04-25 2013-10-30 阿里巴巴集团控股有限公司 Data processing method and system
CN104850619A (en) * 2015-05-15 2015-08-19 深圳市金蝶友商电子商务服务有限公司 Receipt code generation method and apparatus
CN104899711A (en) * 2014-03-05 2015-09-09 阿里巴巴集团控股有限公司 Service processing method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070121181A1 (en) * 2005-11-22 2007-05-31 Cyvera Corporation Method and apparatus for labeling using optical identification elements characterized by X-ray diffraction
CN103377442A (en) * 2012-04-25 2013-10-30 阿里巴巴集团控股有限公司 Data processing method and system
CN104899711A (en) * 2014-03-05 2015-09-09 阿里巴巴集团控股有限公司 Service processing method and apparatus
CN104850619A (en) * 2015-05-15 2015-08-19 深圳市金蝶友商电子商务服务有限公司 Receipt code generation method and apparatus

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331055A (en) * 2016-08-09 2017-01-11 努比亚技术有限公司 Identifier generation device and method
CN106331055B (en) * 2016-08-09 2019-08-16 努比亚技术有限公司 Identifier generating means and method
CN107229555A (en) * 2017-05-04 2017-10-03 北京小度信息科技有限公司 Mark generating method and device
CN109240848A (en) * 2018-07-27 2019-01-18 阿里巴巴集团控股有限公司 A kind of data object tag generation method and device
CN109165712A (en) * 2018-08-01 2019-01-08 广州唯品会信息科技有限公司 Distributed generation method, device and computer storage medium by stages number
CN109165712B (en) * 2018-08-01 2021-06-29 广州唯品会信息科技有限公司 Method, device and computer storage medium for generating distributed installment numbers
CN110888910A (en) * 2018-09-11 2020-03-17 北京京东尚科信息技术有限公司 Number segment switching method and device for unique identification code
CN110543518A (en) * 2019-08-27 2019-12-06 北京奇艺世纪科技有限公司 Distributed ID generation method, device, equipment and storage medium
CN111159211A (en) * 2019-12-31 2020-05-15 广州酷狗计算机科技有限公司 Order information generation method, device and system, computer equipment and storage medium
CN111159211B (en) * 2019-12-31 2024-06-07 广州酷狗计算机科技有限公司 Order information generation method, device, system, computer equipment and storage medium
CN119152512A (en) * 2024-11-19 2024-12-17 成都铭亿嘉科技有限公司 Data processing method for electronization of warehouse logistics paper list
CN119152512B (en) * 2024-11-19 2025-03-11 成都铭亿嘉科技有限公司 Data processing method for electronization of warehouse logistics paper list

Similar Documents

Publication Publication Date Title
CN105404953A (en) Identification generation method and apparatus
CN105426403A (en) Bookmark synchronization method and apparatus
CN104850259A (en) Combination operation method, combination operation apparatus, touch screen operating method and electronic device
CN104915141A (en) Method and device for previewing object information
CN105260475A (en) Data searching method, data saving method and related equipment
CN104883658A (en) Virtual card information processing method and system
CN104808944A (en) Touch operation induction method and device
CN105430158A (en) Processing method of non-touch operation and terminal
CN105183308A (en) Picture display method and apparatus
CN105511738A (en) Method and device for regulating image processing menu
CN105187521A (en) Service processing device and method
CN105306457A (en) Data caching device and method
CN104731512A (en) Method, device and terminal for sharing pictures
CN104915140A (en) Processing method based on virtual key touch operation data and processing device based on virtual key touch operation data
CN105094665A (en) Screen capturing method and apparatus
CN105262821A (en) Interface management apparatus and method
CN104820555A (en) Transverse and vertical screen modes switching method and device, and terminal
CN104731456A (en) Desktop widget display method and device
CN105354057A (en) Information processing method and server
CN104898940A (en) Picture processing method and device
CN104808945A (en) Display method and display device of virtual keys
CN104965665A (en) Information processing method and device and terminal
CN104881218A (en) Mobile terminal screen scrolling method and mobile terminal screen scrolling device
CN105227829A (en) Preview picture device and its implementation
CN104881219A (en) Mobile terminal, and frame auxiliary input method and frame auxiliary input device thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160316