This commit is contained in:
suyl
2021-07-29 10:57:40 +08:00
parent 7b645cc5da
commit f0718ef83c
3 changed files with 24 additions and 18 deletions

View File

@@ -58,6 +58,7 @@ func (c *NetSpiderController) GetAndStoreCitiesShops() {
// @Param radius query int false "关注点半径(米)"
// @Param lng query string false "关注点经度"
// @Param lat query string false "关注点纬度"
// @Param cat query string false "分类"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /QueryPageStores [get]
@@ -86,7 +87,7 @@ func (c *NetSpiderController) QueryPageStores() {
}
pagedInfo, err := cms.QueryPageStores2(dao.GetDB(), pageSize, offset, params.Keyword, params.VendorStoreID, params.BrandName, params.VendorID,
params.CityCode, params.DistrictCode, params.Tel, float32(params.MinShopScore), params.MinRecentOrderNum, params.MinSkuCount,
lng1, lat1, lng2, lat2)
lng1, lat1, lng2, lat2, cat)
if err == nil {
if params.Radius > 0 && (params.Offset != 0 || params.PageSize != model.UnlimitedPageSize) {
shopList2, _ := pagedInfo.Data.([]*dao.PageShopWithPlaceName)