This commit is contained in:
邹宗楠
2023-04-13 14:52:22 +08:00
parent 17c794ae51
commit eccfb45dc6
3 changed files with 3 additions and 2 deletions

View File

@@ -3738,6 +3738,7 @@ func GetTopSkusByStoreIDs(ctx *jxcontext.Context, storeIDs []int) (storeSkuNameE
return storeSkuNameExt2, err
}
// GetTopSkusByCityCode 获取当前城市订单销量前一百的商品,排除掉商户已经可售的商品剩下的为热销推荐
func GetTopSkusByCityCode(ctx *jxcontext.Context, cityCode, storeID int) (skuNameAndPlaceList []*dao.SkuNameAndPlace, err error) {
db := dao.GetDB()
store, err := dao.GetStoreDetail(db, storeID, -1, "")