//规格代码的生成
private String getCode (String code) {
char[] chars=code.toCharArray();
if (chars[2]==57){
chars[2]+=8;
}else if (chars[2]<90){
chars[2]++;
} else {
if (chars[1]==57){
chars[1]+=8;
chars[2]=48;
}else if (chars[1]<90) {
chars[1]++;
chars[2] = 48;
}else {
if (chars[0]==57){
chars[0]+=8;
chars[1]=48;
chars[2]=48;
}else if (chars[0]<90){
chars[0]++;
chars[1]=48;
chars[2]=48;
}else {
System.out.print("编码用完了");
}
}
}
StringBuffer sbu = new StringBuffer();
for (int i = 0; i < chars.length; i++) {
sbu.append(chars[i]);
}
return sbu.toString();
}