|
|
@@ -999,6 +999,47 @@ public class StoreInfoController {
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 你可能还喜欢(推荐店铺)
|
|
|
+ * 根据一级分类、二级分类、三级分类进行店铺筛选
|
|
|
+ * 筛选顺序:先三级,然后二级,最后一级
|
|
|
+ *
|
|
|
+ * @param businessSection 一级分类(经营板块)
|
|
|
+ * @param businessTypes 二级分类(经营种类)
|
|
|
+ * @param businessClassify 三级分类(分类)
|
|
|
+ * @param lon 经度
|
|
|
+ * @param lat 纬度
|
|
|
+ * @return R<List<StoreInfoVo>> 店铺信息列表
|
|
|
+ */
|
|
|
+ @ApiOperation("你可能还喜欢(推荐店铺)")
|
|
|
+ @ApiOperationSupport(order = 19)
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "businessSection", value = "一级分类(经营板块)", dataType = "String", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "businessTypes", value = "二级分类(经营种类)", dataType = "String", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "businessClassify", value = "三级分类(分类)", dataType = "String", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "lon", value = "经度", dataType = "Double", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "lat", value = "纬度", dataType = "Double", paramType = "query")
|
|
|
+ })
|
|
|
+ @GetMapping("/getRecommendedStores")
|
|
|
+ public R<List<StoreInfoVo>> getRecommendedStores(
|
|
|
+ @RequestParam(value = "businessSection", required = true) String businessSection,
|
|
|
+ @RequestParam(value = "businessTypes", required = false) String businessTypes,
|
|
|
+ @RequestParam(value = "businessClassify", required = false) String businessClassify,
|
|
|
+ @RequestParam(value = "lon", required = false) Double lon,
|
|
|
+ @RequestParam(value = "lat", required = false) Double lat) {
|
|
|
+ log.info("StoreInfoController.getRecommendedStores?businessSection={},businessTypes={},businessClassify={},lon={},lat={}",
|
|
|
+ businessSection, businessTypes, businessClassify, lon, lat);
|
|
|
+ try {
|
|
|
+ List<StoreInfoVo> result = storeInfoService.getRecommendedStores(businessSection, businessTypes, businessClassify, lon, lat);
|
|
|
+ return R.data(result);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("获取推荐店铺异常", e);
|
|
|
+ return R.fail("获取推荐店铺失败,请稍后重试");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|