/**
* 根据当前系统时间加随机序列来生成订单号
* @return 订单号
*/
public static string GenerateOrderNo()
{
Random ran = new Random();
return string.Format("{0}{1}{2}", "用户id", DateTime.Now.ToString("yyyyMMddHHmmss"), ran.Next(999));
}
转载于:https://www.cnblogs.com/shaozhuyong/p/5881386.html