CN108763172A - The method and device of customization sequence number is automatically generated under a kind of linux system - Google Patents

The method and device of customization sequence number is automatically generated under a kind of linux system Download PDF

Info

Publication number
CN108763172A
CN108763172A CN201810480466.4A CN201810480466A CN108763172A CN 108763172 A CN108763172 A CN 108763172A CN 201810480466 A CN201810480466 A CN 201810480466A CN 108763172 A CN108763172 A CN 108763172A
Authority
CN
China
Prior art keywords
sequence number
customization
linux system
order
module
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.)
Withdrawn
Application number
CN201810480466.4A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810480466.4A priority Critical patent/CN108763172A/en
Publication of CN108763172A publication Critical patent/CN108763172A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding

Abstract

The invention discloses the method and devices that customization sequence number is automatically generated under a kind of linux system, belong to field of computer technology, the technical problem to be solved in the present invention is how to disassemble customization SN create-rules, it is maintained under production server linux system, automatically generate customization SN, the technical solution used for:A kind of method that customization sequence number is automatically generated under linux system, this method comprises the following steps:(1), linux system is disposed in production server, dispose database in linux system;Order number is inputted under the prompt of linux system and customizes the Start serial number of sequence number;(2), corresponding instruction number, actual disposition CPU type informations and quantity on order are captured in database according to order;(3), split and customize first 12 of sequence number;(4), according to the algorithmic rule of customization, generate the 13rd bit check code.The invention also discloses the devices that customization sequence number is automatically generated under a kind of linux system.

Description

The method and device of customization sequence number is automatically generated under a kind of linux system
Technical field
The present invention relates to field of computer technology, customization is automatically generated under specifically a kind of linux system The method and device of sequence number.
Background technology
In the server manufacturing side, there is the requirement using customization SN (Serial Number, sequence number).Customization It is the tool (can only be used under Windows systems) provided using client to change SN, is required according to the rule that client provides, manually It safeguards.Client is provided in rule, needs to configure differentiation according to days differentiation, according to set meal and include one to be generated by algorithm Check code.Customization requirement is relatively more, and manual maintenance workload is bigger, and is easy error.When the client of error is fixed Inhibition and generation SN is reached in client's hand, and adverse effect can be brought to company.
Therefore how to disassemble customization SN create-rules, it is maintained under production server linux system, automatically generates Customization SN is the technical issues of being badly in need of solving in currently available technology.
The patent document of Patent No. CN 106649566A discloses a kind of sequence number generation method and device, this method Including:Sequence number generator when from associated first data source of the sequence number generator obtain numerical value failure when, from Target data source is determined in associated second data source of sequence number generator;Sequence number generator is from the target data Numerical value is obtained in source;Sequence number generator is according to acquired numerical generation sequence number.Since sequence number generator is when from being closed When joining acquisition numerical value failure in the first data source, mesh can be determined from associated second data source of the sequence number generator Data source is marked, numerical value is obtained from the target data source, and according to the numerical generation sequence number obtained from target data source.But It is the automatic production that the technical solution can not achieve customization sequence number.
Invention content
The technical assignment of the present invention be to provide a kind of method that customization sequence number is automatically generated under linux system and Device is maintained into solve how to disassemble customization SN create-rules under production server linux system, automatic raw The problem of at customization SN.
The technical assignment of the present invention is realized in the following manner, and customization is automatically generated under a kind of linux system The method of sequence number, this method comprises the following steps:
(1), linux system is disposed in production server, and database is disposed in linux system;In the prompt of linux system Lower input order number and the Start serial number for customizing sequence number (SN);
(2), corresponding instruction number, actual disposition CPU type informations and order numbers are captured in database according to order Amount;
(3), customize sequence number first 12 are split;
(4), the 13rd school is generated according to the algorithmic rule of customization according to preceding 12 values for customizing sequence number Test code;
(5), show that the order needs the customization sequence number generated.
Preferably, the preceding 12 fractionations rule for splitting customization sequence number in the step (3) is as follows:
1., according to instruction number and actual disposition CPU type informations, definition customize the 1st of sequence number, the 2nd, the 4th Position, the 6th and the 7th value;
2., defined according to the time and month information of actual production and customize the 3rd and the 5th of sequence number;
3., defined according to the quantity on order in the Start serial number and step (2) in step (1) and customize the of sequence number 8, the 9th, the 10th, the 11st and the 12nd values.
Preferably, the quantity on order is to generate the quantity for customizing sequence number.
Preferably, described instruction number refers to the customization requirement of client.
Preferably, the algorithmic rule includes power side and cofunction.
The device of customization sequence number is automatically generated under a kind of linux system, which is deployed in linux system And the device includes database, order number input module, Start serial number input module, customizes sequence number fractionation module, letter Number handling module, check code generation module and customize sequence number generation module;
Wherein, database is used to store the order number and instruction information of customization sequence number;
Order number input module is for inputting order number;
Start serial number input module is used to input the Start serial number for customizing sequence number;
It customizes sequence number and splits the fractionation work that module is used to complete 13 bit sequence numbers;
Signal handling module is used to capture order number, instruction number and actual disposition CPU type informations from database, raw At the customization corresponding bit value of sequence number;
Check code generation module is used for the algorithmic rule according to customization, generates the verification of customization sequence number Code;
Sequence number generation module is customized for generating and showing complete customization sequence number.
The method and device of customization sequence number is automatically generated under the linux system of the present invention compared with prior art It has the following advantages:The present invention disassembles customization SN create-rules, is maintained under production server linux system, and According to the configuration of practical order and production time, customization SN is automatically generated, by way of generating customization SN, is subtracted The error rate for having lacked manual maintenance has ensured the quality of production of customization project, improves the image product of company, also subtracts Qing Liao factories end customizes the operating pressure of SN guardians.
Description of the drawings
The following further describes the present invention with reference to the drawings.
Attached drawing 1 is the flow diagram for the method that customization sequence number is automatically generated under linux system
Specific implementation mode
With reference to Figure of description and specific embodiment to automatically generating customization under a kind of linux system of the present invention The method and device of sequence number is described in detail below.
Embodiment 1:
As shown in Fig. 1, the method that customization sequence number is automatically generated under linux system of the invention, this method Include the following steps:
(1), linux system is disposed in production server, and database is disposed in linux system;In the prompt of linux system Lower input order number and the Start serial number for customizing sequence number;
(2), corresponding instruction number, actual disposition CPU type informations and order numbers are captured in database according to order Amount;Quantity on order is to generate the quantity for customizing sequence number.Instruction number refers to the customization requirement of client.Algorithmic rule is existing Common algorithmic rule and include power side and cofunction in technology.
(3), customize sequence number first 12 are split;
(4), the 13rd school is generated according to the algorithmic rule of customization according to preceding 12 values for customizing sequence number Test code;
(5), show that the order needs the customization sequence number generated.
Wherein, preceding 12 fractionations rule that customization sequence number is split in step (3) is as follows:
1., according to instruction number and actual disposition CPU type informations, definition customize the 1st of sequence number, the 2nd, the 4th Position, the 6th and the 7th value;
2., defined according to the time and month information of actual production and customize the 3rd and the 5th of sequence number;
3., defined according to the quantity on order in the Start serial number and step (2) in step (1) and customize the of sequence number 8, the 9th, the 10th, the 11st and the 12nd values.
It is as shown in the table to customize sequence number production rule example:
7th please confirms that the table of comparisons is as follows according to CPU information:
Bar code the 4th, 6,7 Remarks
M Processor is E5-2603V4
AS Processor is E5-2620V4
C3 Processor is E5-2630V4
BZ Processor is E5-2650V4
Embodiment 2:
The device of customization sequence number is automatically generated under linux system based on embodiment 1, which is deployed in In linux system and the device includes database, order number input module, Start serial number input module, customizes sequence number It splits module, signal handling module, check code generation module and customizes sequence number generation module;Wherein, database is used for Store the order number and instruction information of customization sequence number;Order number input module is for inputting order number;Starting Serial number input module is used to input the Start serial number for customizing sequence number;It customizes sequence number and splits module for completing 13 The fractionation work of bit sequence number;Signal handling module is used to capture order number, instruction number and actual disposition CPU from database Type information generates and customizes the corresponding bit value of sequence number;Check code generation module is used to be advised according to the algorithm of customization Then, the check code of customization sequence number is generated;Sequence number generation module is customized for generating and showing complete customization Change sequence number.
The technical personnel in the technical field can readily realize the present invention with the above specific embodiments,.But it answers Work as understanding, the present invention is not limited to above-mentioned specific implementation modes.On the basis of the disclosed embodiments, the technical field Technical staff can arbitrarily combine different technical features, to realize different technical solutions.
It is the known technology of those skilled in the art in addition to the technical characteristic described in specification.

Claims (6)

1. a kind of method for automatically generating customization sequence number under linux system, which is characterized in that this method includes as follows Step:
(1), linux system is disposed in production server, dispose database in linux system;It is defeated under the prompt of linux system Enter order number and customizes the Start serial number of sequence number;
(2), corresponding instruction number, actual disposition CPU type informations and quantity on order are captured in database according to order;
(3), split and customize first 12 of sequence number;
(4), according to preceding 12 values for customizing sequence number, according to the algorithmic rule of customization, generate the 13rd bit check code;
(5), show that the order needs the customization sequence number that generates.
2. the method for automatically generating customization sequence number under linux system according to claim 1, feature exist In the step(3)The middle preceding 12 fractionations rule for splitting customization sequence number is as follows:
1., according to instruction number and actual disposition CPU type informations, definition customize the 1st of sequence number, the 2nd, the 4th, the 6 and the 7th values;
2., defined according to the time and month information of actual production and customize the 3rd and the 5th of sequence number;
3., according to step(1)In Start serial number and step(2)In quantity on order define customize the 8th of sequence number, 9th, the 10th, the 11st and the 12nd value.
3. the method for automatically generating customization sequence number under linux system according to claim 1, feature exist In the quantity on order is to generate the quantity for customizing sequence number.
4. the method for automatically generating customization sequence number under linux system according to claim 1, feature exist In described instruction number refers to the customization requirement of client.
5. the method for automatically generating customization sequence number under linux system according to claim 1, feature exist In the algorithmic rule includes power side and cofunction.
6. automatically generating the device of customization sequence number under a kind of linux system, which is characterized in that the device is deployed in In linux system and the device includes database, order number input module, Start serial number input module, customizes sequence number It splits module, signal handling module, check code generation module and customizes sequence number generation module;
Wherein, database is used to store the order number and instruction information of customization sequence number;
Order number input module is for inputting order number;
Start serial number input module is used to input the Start serial number for customizing sequence number;
It customizes sequence number and splits the fractionation work that module is used to complete 13 bit sequence numbers;
Signal handling module is used to capture order number, instruction number and actual disposition CPU type informations from database, and it is fixed to generate The corresponding bit value of inhibition and generation sequence number;
Check code generation module is used for the algorithmic rule according to customization, generates the check code of customization sequence number;
Sequence number generation module is customized for generating and showing complete customization sequence number.
CN201810480466.4A 2018-05-18 2018-05-18 The method and device of customization sequence number is automatically generated under a kind of linux system Withdrawn CN108763172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810480466.4A CN108763172A (en) 2018-05-18 2018-05-18 The method and device of customization sequence number is automatically generated under a kind of linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810480466.4A CN108763172A (en) 2018-05-18 2018-05-18 The method and device of customization sequence number is automatically generated under a kind of linux system

Publications (1)

Publication Number Publication Date
CN108763172A true CN108763172A (en) 2018-11-06

Family

ID=64008170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810480466.4A Withdrawn CN108763172A (en) 2018-05-18 2018-05-18 The method and device of customization sequence number is automatically generated under a kind of linux system

Country Status (1)

Country Link
CN (1) CN108763172A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753544A (en) * 2019-01-04 2019-05-14 中国银行股份有限公司 Database sequence processing method, system and the node server based on synchrolock
CN113071225A (en) * 2021-03-23 2021-07-06 日本电产(韶关)有限公司 Method and device for generating serial number

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459724A (en) * 2002-05-25 2003-12-03 三星电子株式会社 Method and apparatus for producing sequence number
CN101976240A (en) * 2010-09-21 2011-02-16 用友软件股份有限公司 Form number generating method and system
CN104866601A (en) * 2015-06-01 2015-08-26 走遍世界(北京)信息技术有限公司 Serial number generating method and device
CN105260979A (en) * 2015-11-03 2016-01-20 中体彩科技发展有限公司 Lottery sequence number generation method
CN106203952A (en) * 2016-07-05 2016-12-07 歌尔股份有限公司 Serial number based on item related information generates method and system
CN106649736A (en) * 2016-12-23 2017-05-10 成都信息工程大学 Generation method for automatic codes in general database

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1459724A (en) * 2002-05-25 2003-12-03 三星电子株式会社 Method and apparatus for producing sequence number
CN101976240A (en) * 2010-09-21 2011-02-16 用友软件股份有限公司 Form number generating method and system
CN104866601A (en) * 2015-06-01 2015-08-26 走遍世界(北京)信息技术有限公司 Serial number generating method and device
CN105260979A (en) * 2015-11-03 2016-01-20 中体彩科技发展有限公司 Lottery sequence number generation method
CN106203952A (en) * 2016-07-05 2016-12-07 歌尔股份有限公司 Serial number based on item related information generates method and system
CN106649736A (en) * 2016-12-23 2017-05-10 成都信息工程大学 Generation method for automatic codes in general database

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109753544A (en) * 2019-01-04 2019-05-14 中国银行股份有限公司 Database sequence processing method, system and the node server based on synchrolock
CN109753544B (en) * 2019-01-04 2021-01-01 中国银行股份有限公司 Database sequence processing method and system and node server based on synchronous lock
CN113071225A (en) * 2021-03-23 2021-07-06 日本电产(韶关)有限公司 Method and device for generating serial number

Similar Documents

Publication Publication Date Title
CN108763172A (en) The method and device of customization sequence number is automatically generated under a kind of linux system
CN109636345B (en) Intelligent management method and system for business handling workflow
CN115409867A (en) Track analysis method and system based on video processing technology
WO2015036067A1 (en) Navigation system for clean rooms
CN109492780B (en) Repair tracking method, device and system for repaired parts
JP2010157025A (en) Apparatus and program for supporting inspection of equipment
CN110780980A (en) Method for quickly restoring images of disks or operating systems from different sources
EP1640869A3 (en) Method for performing a vote on redundant information
DE10232659A1 (en) Process and configurator for creating a system concept from a number of system components
DE102014207406A1 (en) Providing data about an asset
CN114064590A (en) File management method and device, storage medium and electronic equipment
DE19539477A1 (en) Process for automated, optimal redundancy design of measurements for control technology in power plants
EP1033866A3 (en) Digital image processing-based system for producing images
CN114245895A (en) Method for generating consistent representation for at least two log files
DE102018007690A1 (en) Process for controlling troubleshooting in wind turbines and corresponding system
DE102018129354A1 (en) Process for processing application programs on a distributed automation system
CN107832089A (en) A kind of method of updating software version automatically number
CN118013948A (en) Text processing method and system integrating multi-mode interaction
EP1610194A2 (en) Method and system for supplying context sensitive product informations
CN115601150A (en) Batch signing method and device
DE102019105360A1 (en) OPERATION MANAGEMENT DEVICE
DE19715494A1 (en) Operation and visualisation schematic generation method for industrial plant
WO2015044011A1 (en) User interface for associating the installation-specific signals with programming-specific generic signals for a control system of a technical installation
JP2010262475A (en) Work procedure generation device, work procedure generation method and program
CN116841966A (en) Method and system for automatically grabbing and generating PBOM (physical component part) from SOP (self-organizing protocol) file

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20181106

WW01 Invention patent application withdrawn after publication