This commit is contained in:
苏尹岚
2020-10-14 14:44:53 +08:00
parent bd361fa881
commit fac92a6c7a
6 changed files with 221 additions and 110 deletions

View File

@@ -172,7 +172,7 @@ func GetPossibleVendorIDFromVendorOrderID(vendorOrderID string) (vendorID int) {
}
func GenOrderNo() (orderNo int64) {
const prefix = 88
var prefix = utils.Str2Int64(time.Now().Format("20060102"))
const randPartNum = 1000
orderNo = time.Now().Unix() - orderNoBeginTimestamp
orderNo = orderNo * randPartNum