/**
* 生成一个20位订单号
* */
public String buildOrderId()
{
Random random= new Random(userId+System.currentTimeMillis());
String rand= (Math.abs(random.nextInt(900))+100)+"";
String orderid=new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date())+rand;
return orderid;
}
* 生成一个20位订单号
* */
public String buildOrderId()
{
Random random= new Random(userId+System.currentTimeMillis());
String rand= (Math.abs(random.nextInt(900))+100)+"";
String orderid=new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date())+rand;
return orderid;
}