- 对于饿百,按价格倒序创建(这样价格低的商品应该在最前面)

- 对于美团外卖,以门店价格为其sequence
This commit is contained in:
gazebo
2019-05-23 21:05:06 +08:00
parent 284e92381c
commit 8b03dce5da
3 changed files with 2 additions and 8 deletions

View File

@@ -117,7 +117,7 @@ func (p *PurchaseHandler) getDirtyStoreSkus(db *dao.DaoDB, storeID int, skuIDs [
sql += " AND t1.sku_id IN (" + dao.GenQuestionMarks(len(skuIDs)) + ")"
sqlParams = append(sqlParams, skuIDs)
}
sql += " ORDER BY t1.price"
sql += " ORDER BY t1.price DESC"
err = dao.GetRows(db, &storeSkuInfoList, sql, sqlParams...)
return storeSkuInfoList, err
}