- ebaiapi.MaxSkuCatRank

This commit is contained in:
gazebo
2019-07-23 22:58:15 +08:00
parent 846c5d625a
commit 6ca6eb691e
2 changed files with 2 additions and 6 deletions

View File

@@ -14,10 +14,6 @@ import (
"git.rosy.net.cn/jx-callback/globals/api"
)
const (
maxSkuCatRank = 1000000 // 这个是rank的最大值
)
func (p *PurchaseHandler) GetStoreSkusBatchSize(funcID int) (batchSize int) {
switch funcID {
case partner.FuncUpdateStoreSkusStock, partner.FuncUpdateStoreSkusStatus, partner.FuncUpdateStoreSkusPrice, partner.FuncDeleteStoreSkus:
@@ -109,7 +105,7 @@ func (p *PurchaseHandler) UpdateStoreSkus(ctx *jxcontext.Context, storeID int, v
}
func genSkuCatRank(storeSku *dao.StoreSkuSyncInfo) int {
return int(maxSkuCatRank - storeSku.VendorPrice)
return int(ebaiapi.MaxSkuCatRank - storeSku.VendorPrice)
}
// 对于多门店平台来说storeSkuList中只有SkuID与VendorSkuID有意义