同步测试

This commit is contained in:
苏尹岚
2020-04-29 11:22:04 +08:00
parent b715da4cba
commit df2424530a
2 changed files with 3 additions and 1 deletions

View File

@@ -935,7 +935,10 @@ 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("v", utils.Format4Output(v, false))
fmt.Println("localSkuMap", 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

@@ -415,7 +415,6 @@ func loopPages(parameterType, parameterValue string, skuNameList []*partner.SkuN
skuNameList = append(skuNameList, skuName)
}
}
fmt.Println("skuNameList", utils.Format4Output(skuNameList, false))
// if len(resultPages.Result) >= resultPages.PageSize {
// err = loopPages(resultPages.PostBackParameter.ParameterType, resultPages.PostBackParameter.ParameterValue, skuNameList, vendorStoreID)
// }