aa
This commit is contained in:
@@ -1610,8 +1610,10 @@ func TransferJdsOrder(ctx *jxcontext.Context, vendorOrderID string, storeID int)
|
||||
`
|
||||
sqlParams := []interface{}{order.VendorOrderID2}
|
||||
err = dao.GetRows(db, &goodsOrders, sql, sqlParams)
|
||||
if goodsOrders[0].Status != model.OrderStatusCanceled {
|
||||
err = jdshop.ChangeOrderStatus(goodsOrders[0].VendorOrderID, model.OrderStatusCanceled, "订单转移被取消")
|
||||
for _, order := range goodsOrders {
|
||||
if order.Status != model.OrderStatusCanceled {
|
||||
err = jdshop.ChangeOrderStatus(order.VendorOrderID, model.OrderStatusCanceled, "订单转移被取消")
|
||||
}
|
||||
}
|
||||
// suffix := utils.Str2Int(goodsOrders[0].VendorOrderID[12:len(goodsOrders[0].VendorOrderID)])
|
||||
// suffix++
|
||||
@@ -1663,7 +1665,11 @@ func TransferJdsOrder(ctx *jxcontext.Context, vendorOrderID string, storeID int)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
order.Status = model.OrderStatusAccepted
|
||||
if order.VendorOrgCode == "1" {
|
||||
order.Status = model.OrderStatusAccepted
|
||||
} else {
|
||||
order.Status = model.OrderStatusNew
|
||||
}
|
||||
}
|
||||
for _, sku := range skus {
|
||||
sku.VendorOrderID = order.VendorOrderID
|
||||
|
||||
Reference in New Issue
Block a user