zy
This commit is contained in:
@@ -1556,7 +1556,7 @@ func TransferJdsOrder(ctx *jxcontext.Context, vendorOrderID string, storeID int)
|
||||
if store.OpenTime1 == 0 || store.CloseTime1 == 0 {
|
||||
return "", fmt.Errorf("该门店没有营业时间,不能接单!门店:[%v]", storeID)
|
||||
}
|
||||
if opentime2.Sub(opentime1) <= time.Hour {
|
||||
if closetime1.Sub(opentime1) <= time.Hour {
|
||||
return "", fmt.Errorf("该门店营业时间间隔过小,请确认!门店:[%v]", storeID)
|
||||
}
|
||||
if !(orderCreatedAt.Sub(opentime1) >= 0 && orderCreatedAt.Sub(closetime1) <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user