|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
import org.springframework.http.ResponseEntity;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.multipart.MultipartRequest;
|
|
import org.springframework.web.multipart.MultipartRequest;
|
|
@@ -375,10 +376,16 @@ public class StoreInfoController {
|
|
|
@GetMapping("/getStoreCouponList")
|
|
@GetMapping("/getStoreCouponList")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public R getStoreCouponList(@RequestParam("storeId") String storeId) {
|
|
public R getStoreCouponList(@RequestParam("storeId") String storeId) {
|
|
|
- log.info("StoreInfoController.getStoreDetail?storeId={},userId={}", storeId);
|
|
|
|
|
|
|
+ log.info("StoreInfoController.getStoreCouponList?storeId={}", storeId);
|
|
|
CouponAndEventVo couponAndEventVo = new CouponAndEventVo();
|
|
CouponAndEventVo couponAndEventVo = new CouponAndEventVo();
|
|
|
List<LifeCouponVo> lifeCouponVos = storeInfoService.getStoreCouponList(storeId);
|
|
List<LifeCouponVo> lifeCouponVos = storeInfoService.getStoreCouponList(storeId);
|
|
|
|
|
+
|
|
|
|
|
+ List<StoreImg> storeImgs = storeInfoService.getBannerUrl(storeId);
|
|
|
couponAndEventVo.setCouponList(lifeCouponVos);
|
|
couponAndEventVo.setCouponList(lifeCouponVos);
|
|
|
|
|
+ if (CollectionUtils.isNotEmpty(storeImgs)) {
|
|
|
|
|
+ couponAndEventVo.setMarketingList(storeImgs);
|
|
|
|
|
+ }
|
|
|
|
|
+ couponAndEventVo.setMarketingList(storeImgs);
|
|
|
return R.data(couponAndEventVo);
|
|
return R.data(couponAndEventVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -823,7 +830,7 @@ public class StoreInfoController {
|
|
|
@ApiImplicitParam(name = "lat", value = "纬度", dataType = "Double", paramType = "query", required = true),
|
|
@ApiImplicitParam(name = "lat", value = "纬度", dataType = "Double", paramType = "query", required = true),
|
|
|
@ApiImplicitParam(name = "distance", value = "距离范围(单位:公里)", dataType = "Double", paramType = "query"),
|
|
@ApiImplicitParam(name = "distance", value = "距离范围(单位:公里)", dataType = "Double", paramType = "query"),
|
|
|
@ApiImplicitParam(name = "sortType", value = "排序模式(1:智能排序,2:好评优先,3:距离优先)", dataType = "int", paramType = "query"),
|
|
@ApiImplicitParam(name = "sortType", value = "排序模式(1:智能排序,2:好评优先,3:距离优先)", dataType = "int", paramType = "query"),
|
|
|
- @ApiImplicitParam(name = "businessType", value = "店铺类型(KTV=3、洗浴汗蒸=4、按摩足浴=5,酒吧=11)", dataType = "int", paramType = "query"),
|
|
|
|
|
|
|
+ @ApiImplicitParam(name = "businessType", value = "店铺类型(KTV=3、洗浴汗蒸=4、按摩足浴=5,丽人美发=6,运动健身=7,酒吧=11)", dataType = "int", paramType = "query"),
|
|
|
@ApiImplicitParam(name = "dictId", value = "字典表id,根据此id查询经营板块、经营种类、分类并匹配店铺", dataType = "Integer", paramType = "query"),
|
|
@ApiImplicitParam(name = "dictId", value = "字典表id,根据此id查询经营板块、经营种类、分类并匹配店铺", dataType = "Integer", paramType = "query"),
|
|
|
@ApiImplicitParam(name = "pageNum", value = "页码", dataType = "int", paramType = "query", required = true),
|
|
@ApiImplicitParam(name = "pageNum", value = "页码", dataType = "int", paramType = "query", required = true),
|
|
|
@ApiImplicitParam(name = "pageSize", value = "页容", dataType = "int", paramType = "query", required = true)
|
|
@ApiImplicitParam(name = "pageSize", value = "页容", dataType = "int", paramType = "query", required = true)
|