同步测试
This commit is contained in:
@@ -935,10 +935,7 @@ func syncStoreSkusFromYb(ctx *jxcontext.Context, storeID, vendorID int, vendorSt
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
// fmt.Println("localSkuMap", utils.Format4Output(localSkuMap, false))
|
|
||||||
for _, v := range remoteSkuList {
|
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 localSkuMap[v.SkuList[0].VendorSkuID] == nil {
|
||||||
if len(v.YbBarCode) > 7 {
|
if len(v.YbBarCode) > 7 {
|
||||||
addList = append(addList, v)
|
addList = append(addList, v)
|
||||||
|
|||||||
@@ -124,7 +124,9 @@ func (p *PurchaseHandler) GetStoreSkusFullInfo(ctx *jxcontext.Context, parentTas
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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))
|
fmt.Println("skuNameList", utils.Format4Output(skuNameList, false))
|
||||||
|
|||||||
Reference in New Issue
Block a user