private static String beforeBh;
private static String beforeNum;
public static String codeGenerate() {
Date now = new Date();
String behind = now.getTime()+””;
if(beforeBh==null) {
beforeBh = behind;
} else if(beforeBh.equals(behind)) {
behind = behind +beforeNum;
beforeNum++;
} else {
beforeBh = behind;
beforeNum = 0;
}
return behind;
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/10509.html