aa
This commit is contained in:
@@ -1921,21 +1921,21 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
// }
|
||||
//}
|
||||
//补商品
|
||||
//order, _ := partner.CurOrderManager.LoadOrder("2115896023000052", model.VendorIDJD)
|
||||
//handler := partner.GetPurchaseOrderHandlerFromVendorID(model.VendorIDJD)
|
||||
//order2, _ := handler.GetOrder(order.VendorOrgCode, order.VendorOrderID, "")
|
||||
//if len(order.Skus) == 0 {
|
||||
// if len(order2.Skus) > 0 {
|
||||
// for _, v := range order2.Skus {
|
||||
// var shopPrice int64
|
||||
// if storeSkus, _ := dao.GetStoresSkusInfo(dao.GetDB(), []int{order.StoreID}, []int{v.SkuID}); len(storeSkus) > 0 {
|
||||
// shopPrice = int64(storeSkus[0].Price)
|
||||
// v.ShopPrice = shopPrice
|
||||
// }
|
||||
// dao.CreateEntity(dao.GetDB(), v)
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
order, _ := partner.CurOrderManager.LoadOrder("2117511142000251", model.VendorIDJD)
|
||||
handler := partner.GetPurchaseOrderHandlerFromVendorID(model.VendorIDJD)
|
||||
order2, _ := handler.GetOrder(order.VendorOrgCode, order.VendorOrderID, "")
|
||||
if len(order.Skus) == 0 {
|
||||
if len(order2.Skus) > 0 {
|
||||
for _, v := range order2.Skus {
|
||||
var shopPrice int64
|
||||
if storeSkus, _ := dao.GetStoresSkusInfo(dao.GetDB(), []int{order.StoreID}, []int{v.SkuID}); len(storeSkus) > 0 {
|
||||
shopPrice = int64(storeSkus[0].Price)
|
||||
v.ShopPrice = shopPrice
|
||||
}
|
||||
dao.CreateEntity(dao.GetDB(), v)
|
||||
}
|
||||
}
|
||||
}
|
||||
//var (
|
||||
// storeID = 100002
|
||||
// data string
|
||||
@@ -1986,7 +1986,6 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
report.RefreshStoreManageState(ctx, []int{668023}, nil)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user