尝试银豹skuname创建商品
This commit is contained in:
@@ -3821,7 +3821,7 @@ func RefreshJxPriceByVendor2(ctx *jxcontext.Context, storeIDs []int, vendorID in
|
||||
for _, orgCode := range apimanager.CurAPIManager.GetAppOrgCodeList(vendorID) {
|
||||
outStoreSkuList, _ := mulitStoreSkuHandler.GetStoreSkusBareInfo(ctx, orgCode, task, storeID, storeDetail.VendorStoreID, bareStoreSkuMap[orgCode])
|
||||
for _, sku := range outStoreSkuList {
|
||||
price, nameID := getSkuNamePrice(db, sku.SkuID, sku.VendorPrice)
|
||||
price, nameID := GetSkuNamePrice(db, sku.SkuID, sku.VendorPrice)
|
||||
if skuNameMap[nameID] < price {
|
||||
skuNameMap[nameID] = price
|
||||
}
|
||||
@@ -3841,7 +3841,7 @@ func RefreshJxPriceByVendor2(ctx *jxcontext.Context, storeIDs []int, vendorID in
|
||||
outSkuNameList, _ := singleStoreHandler.GetStoreSkusFullInfo(ctx, task, storeID, storeDetail.VendorStoreID, nil)
|
||||
for _, skuName := range outSkuNameList {
|
||||
sku := skuName.SkuList[0]
|
||||
price, nameID := getSkuNamePrice(db, sku.SkuID, sku.VendorPrice)
|
||||
price, nameID := GetSkuNamePrice(db, sku.SkuID, sku.VendorPrice)
|
||||
if skuNameMap[nameID] < price {
|
||||
skuNameMap[nameID] = price
|
||||
}
|
||||
@@ -3873,7 +3873,7 @@ func RefreshJxPriceByVendor2(ctx *jxcontext.Context, storeIDs []int, vendorID in
|
||||
return hint, err
|
||||
}
|
||||
|
||||
func getSkuNamePrice(db *dao.DaoDB, skuID int, orgPrice int64) (price int64, nameID int) {
|
||||
func GetSkuNamePrice(db *dao.DaoDB, skuID int, orgPrice int64) (price int64, nameID int) {
|
||||
var (
|
||||
specQuality float64
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user