This commit is contained in:
苏尹岚
2020-11-12 14:38:47 +08:00
parent 216a95f230
commit 1ed629c921

View File

@@ -1794,10 +1794,6 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
v.VendorPrice = a.VendorPrice
priceList[jdStoreID] = append(priceList[jdStoreID], v)
}
if v.VendorSkuID == "2004219005" {
fmt.Println(utils.Format4Output(v, false))
fmt.Println(utils.Format4Output(a, false))
}
if a.Status != v.Status {
v.Status = a.Status
if v.Status == model.SkuStatusNormal {
@@ -1812,12 +1808,10 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
}
}
}
fmt.Println("statusList2", utils.Format4Output(statusList2, false))
if len(priceList) > 0 {
// for k, v := range priceList {
// handler.UpdateStoreSkusPrice(ctx, vendorOrgCode, 0, k, v)
// }
for k, v := range priceList {
handler.UpdateStoreSkusPrice(ctx, vendorOrgCode, 0, k, v)
}
}
if len(statusList1) > 0 {
// for k, v := range statusList1 {