- 对于饿百,按价格倒序创建(这样价格低的商品应该在最前面)
- 对于美团外卖,以门店价格为其sequence
This commit is contained in:
@@ -56,7 +56,6 @@ type StoreSkuSyncInfo struct {
|
||||
Unit string
|
||||
Img string
|
||||
Upc string
|
||||
Seq int
|
||||
DescImg string
|
||||
|
||||
VendorVendorCatID int64 `orm:"column(vendor_vendor_cat_id)"`
|
||||
@@ -193,11 +192,6 @@ func GetStoreSkus(db *DaoDB, vendorID, storeID int, skuIDs []int) (skus []*Store
|
||||
if err = GetRows(db, &skus, sql, sqlParams...); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
index := 1
|
||||
for _, sku := range skus {
|
||||
sku.Seq = index
|
||||
index++
|
||||
}
|
||||
return skus, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user