修改各处商品查询加入Seq排序字段

This commit is contained in:
Rosy-zhudan
2019-08-30 15:08:44 +08:00
parent de91ac4a20
commit a7270ccd84
6 changed files with 44 additions and 49 deletions

View File

@@ -284,7 +284,7 @@ func getEbaiCat(catID int64, level int) int64 {
// 饿百的排序是从大到小
func genSkuCatRank(storeSku *dao.StoreSkuSyncInfo) int {
return int(ebaiapi.MaxSkuCatRank - storeSku.VendorPrice)
return int(ebaiapi.MaxSkuCatRank - storeSku.Seq)
}
// 饿百的排序是从大到小

View File

@@ -171,7 +171,7 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
if storeSku.DescImg != "" {
foodData["picture_contents"] = storeSku.DescImg
}
foodData["sequence"] = storeSku.VendorPrice
foodData["sequence"] = storeSku.Seq
if storeSku.VendorVendorCatID != 0 {
foodData["tag_id"] = utils.Int64ToStr(storeSku.VendorVendorCatID)
} else {