aa
This commit is contained in:
@@ -1267,6 +1267,9 @@ func (c *OrderManager) AmendMissingOrders(ctx *jxcontext.Context, vendorIDs []in
|
||||
if model.IsOrderFinalStatus(order.Status) {
|
||||
goodsOrder.Status = order.Status
|
||||
goodsOrder.OrderFinishedAt = order.OrderFinishedAt
|
||||
if goodsOrder.OrderFinishedAt == utils.DefaultTimeValue {
|
||||
goodsOrder.OrderFinishedAt = goodsOrder.OrderCreatedAt.Add(time.Hour)
|
||||
}
|
||||
_, err = dao.UpdateEntity(db, goodsOrder, "Status", "OrderFinishedAt")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user