获取下一个编号
This commit is contained in:
@@ -462,12 +462,14 @@ public class ClassController {
|
||||
if (userCertificateList.size() > 0){
|
||||
UserCertificate u0 = userCertificateList.get(0);
|
||||
String certificateNo = u0.getCertificateNo();
|
||||
int no = Integer.parseInt(certificateNo.substring(certificateNo.indexOf("1")+1,certificateNo.indexOf("1")+7))+1;
|
||||
if ("A".equals(type)){
|
||||
int no = Integer.parseInt(certificateNo.substring(4,10))+1;
|
||||
res = "NO."+String.format("%06d", no);
|
||||
}else if ("B".equals(type)){
|
||||
int no = Integer.parseInt(certificateNo.substring(4,10))+1;
|
||||
res = "NO."+String.format("%06d", no);
|
||||
}else if ("ZK".equals(type)){
|
||||
int no = Integer.parseInt(certificateNo.substring(6,12))+1;
|
||||
res = "NO.ZK"+String.format("%06d", no);
|
||||
}
|
||||
}else {
|
||||
|
||||
Reference in New Issue
Block a user