aa
This commit is contained in:
@@ -1315,15 +1315,15 @@ func (c *OrderManager) AmendMissingOrders(ctx *jxcontext.Context, vendorIDs []in
|
|||||||
missingOrderList = append(missingOrderList, pair)
|
missingOrderList = append(missingOrderList, pair)
|
||||||
} else {
|
} else {
|
||||||
if !model.IsOrderFinalStatus(goodsOrder.Status) {
|
if !model.IsOrderFinalStatus(goodsOrder.Status) {
|
||||||
if goodsOrder.BusinessType == model.BusinessTypeImmediate {
|
//if goodsOrder.BusinessType == model.BusinessTypeImmediate {
|
||||||
if time.Now().Sub(goodsOrder.OrderCreatedAt).Hours() >= orderSubTimeImmediatelyArrive {
|
// if time.Now().Sub(goodsOrder.OrderCreatedAt).Hours() >= orderSubTimeImmediatelyArrive {
|
||||||
updateOrderStatusList = append(updateOrderStatusList, goodsOrder)
|
// updateOrderStatusList = append(updateOrderStatusList, goodsOrder)
|
||||||
}
|
// }
|
||||||
} else {
|
//} else {
|
||||||
if time.Now().Sub(goodsOrder.ExpectedDeliveredTime).Hours() >= orderSubTimeDelayArrive {
|
// if time.Now().Sub(goodsOrder.ExpectedDeliveredTime).Hours() >= orderSubTimeDelayArrive {
|
||||||
updateOrderStatusList = append(updateOrderStatusList, goodsOrder)
|
updateOrderStatusList = append(updateOrderStatusList, goodsOrder)
|
||||||
}
|
//}
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user