001型数据自动递增
DecimalFormat decimalFormat=new DecimalFormat("000");
String code="XQ20190417000019";
String codenew=code.substring(10, code.length());
int i=Integer.parseInt(codenew)+1;
String k=decimalFormat.format(i);
System.out.println(k);
DecimalFormat decimalFormat=new DecimalFormat("000");
String code="XQ20190417000019";
String codenew=code.substring(10, code.length());
int i=Integer.parseInt(codenew)+1;
String k=decimalFormat.format(i);
System.out.println(k);