1
This commit is contained in:
@@ -82,7 +82,7 @@ func (s *DefScheduler) SelfDeliveringAndUpdateStatus(ctx *jxcontext.Context, ven
|
||||
if order.VendorID == model.VendorIDDD && courierName != "" && courierMobile != "" {
|
||||
timeNow := time.Now()
|
||||
rand.Seed(timeNow.UnixNano())
|
||||
randNumber := rand.Int63n(481)
|
||||
randNumber := rand.Int63n(640)
|
||||
if randNumber < 60 {
|
||||
randNumber += 60
|
||||
}
|
||||
@@ -104,14 +104,10 @@ func (s *DefScheduler) SelfDeliveringAndUpdateStatus(ctx *jxcontext.Context, ven
|
||||
DeliveryFlag: 0,
|
||||
WaybillCreatedAt: timeNow,
|
||||
WaybillFinishedAt: utils.DefaultTimeValue,
|
||||
StatusTime: timeNow,
|
||||
ModelTimeInfo: model.ModelTimeInfo{
|
||||
CreatedAt: timeNow,
|
||||
UpdatedAt: timeNow.Add(randTime), // 下一次更新时间
|
||||
},
|
||||
OriginalData: "",
|
||||
Remark: "自定义物流单",
|
||||
VendorOrgCode: order.VendorOrgCode,
|
||||
StatusTime: timeNow.Add(randTime), // 下一状态时间
|
||||
OriginalData: "",
|
||||
Remark: "自定义物流单",
|
||||
VendorOrgCode: order.VendorOrgCode,
|
||||
}
|
||||
err = dao.CreateEntity(dao.GetDB(), bill)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user