同步测试
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user