获取平台门店商品价格
This commit is contained in:
@@ -2549,13 +2549,13 @@ func GetVendorStoreSkuPrice(ctx *jxcontext.Context, vendorIDs []int, skuID int,
|
|||||||
storeDetail, err = singleHandler.ReadStore(ctx, v, vendorStoreID)
|
storeDetail, err = singleHandler.ReadStore(ctx, v, vendorStoreID)
|
||||||
inStoreSku.SkuID = skuID
|
inStoreSku.SkuID = skuID
|
||||||
}
|
}
|
||||||
|
inStoreSkuList = append(inStoreSkuList, inStoreSku)
|
||||||
storeDetail2, err := dao.GetStoreDetail2(db, 0, vendorStoreID, vendorID)
|
storeDetail2, err := dao.GetStoreDetail2(db, 0, vendorStoreID, vendorID)
|
||||||
if storeDetail2 != nil {
|
if storeDetail2 != nil {
|
||||||
outStoreSkuList, err = handler.GetStoreSkusBareInfo(ctx, v, task, storeDetail2.ID, vendorStoreID, inStoreSkuList)
|
outStoreSkuList, err = handler.GetStoreSkusBareInfo(ctx, v, task, storeDetail2.ID, vendorStoreID, inStoreSkuList)
|
||||||
} else {
|
} else {
|
||||||
outStoreSkuList, err = handler.GetStoreSkusBareInfo(ctx, v, task, 0, vendorStoreID, inStoreSkuList)
|
outStoreSkuList, err = handler.GetStoreSkusBareInfo(ctx, v, task, 0, vendorStoreID, inStoreSkuList)
|
||||||
}
|
}
|
||||||
inStoreSkuList = append(inStoreSkuList, inStoreSku)
|
|
||||||
if storeDetail != nil {
|
if storeDetail != nil {
|
||||||
if len(outStoreSkuList) == 0 {
|
if len(outStoreSkuList) == 0 {
|
||||||
data := DataVendorStoreSkuPrice{
|
data := DataVendorStoreSkuPrice{
|
||||||
|
|||||||
Reference in New Issue
Block a user