同步测试

This commit is contained in:
苏尹岚
2020-04-29 11:30:40 +08:00
parent b2f71aae91
commit f22f16dc9f
2 changed files with 3 additions and 4 deletions

View File

@@ -935,10 +935,7 @@ func syncStoreSkusFromYb(ctx *jxcontext.Context, storeID, vendorID int, vendorSt
if err != nil {
return "", err
}
// fmt.Println("localSkuMap", utils.Format4Output(localSkuMap, false))
for _, v := range remoteSkuList {
fmt.Println("testv", utils.Format4Output(v, false))
fmt.Println("localSkuMap22", utils.Format4Output(localSkuMap[v.SkuList[0].VendorSkuID], false))
if localSkuMap[v.SkuList[0].VendorSkuID] == nil {
if len(v.YbBarCode) > 7 {
addList = append(addList, v)

View File

@@ -124,7 +124,9 @@ func (p *PurchaseHandler) GetStoreSkusFullInfo(ctx *jxcontext.Context, parentTas
}
}
} else {
loopPages(result.PostBackParameter.ParameterType, result.PostBackParameter.ParameterValue, skuNameList, vendorStoreID)
var skuNameList2 []*partner.SkuNameInfo
loopPages(result.PostBackParameter.ParameterType, result.PostBackParameter.ParameterValue, skuNameList2, vendorStoreID)
skuNameList = skuNameList2
}
}
fmt.Println("skuNameList", utils.Format4Output(skuNameList, false))