1
This commit is contained in:
@@ -103,6 +103,13 @@ func (c *BaseScheduler) PickupGoodsAndUpdateStatus(ctx *jxcontext.Context, vendo
|
||||
return err
|
||||
}
|
||||
}
|
||||
// 京西商城的自提订单,在拣货完成时自动设置为完成订单
|
||||
if model.IsOrderDeliveryBySelf(order) && order.VendorID == model.VendorIDJX {
|
||||
order.Status = model.OrderStatusFinished
|
||||
order.VendorStatus = utils.Int64ToStr(model.OrderStatusFinished)
|
||||
order.Flag = 128
|
||||
dao.UpdateEntity(dao.GetDB(), order, "Status", "VendorStatus", "Flag")
|
||||
}
|
||||
}
|
||||
return err
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user