java实现自动生成流水号

public class GetOrderNo {
public static String getOrderNo(){
SimpleDateFormat sdf = new SimpleDateFormat("yyMMddHHmmss");
String nowdate = sdf.format(new Date());
return nowdate;
}
}

转载于:https://www.cnblogs.com/java-lzm/p/4366746.html

你可能感兴趣的:(java实现自动生成流水号)