...
|
...
|
@@ -3,6 +3,7 @@ package com.yohoufo.promotion.controller; |
|
|
import com.yohobuy.ufo.model.promotion.response.promotionActivity.PromotionActivityRspBo;
|
|
|
import com.yohoufo.common.ApiResponse;
|
|
|
import com.yohoufo.common.annotation.IgnoreSession;
|
|
|
import com.yohoufo.common.cache.Cachable;
|
|
|
import com.yohoufo.promotion.service.IActivityService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
...
|
...
|
@@ -34,9 +35,11 @@ public class ActivityController { |
|
|
@RequestMapping(params = "method=ufo.promotion.activityListForProduct")
|
|
|
@ResponseBody
|
|
|
@IgnoreSession
|
|
|
public ApiResponse getPromotionActivityList(@RequestParam(value = "product_id", required = true) Integer productId) {
|
|
|
@Cachable(expire = 60)
|
|
|
public ApiResponse getPromotionActivityList(@RequestParam(value = "product_id", required = true) Integer productId,
|
|
|
@RequestParam(value = "business_client", required = false) String businessClient) {
|
|
|
logger.info("Method:ufo.promotion.activityListForProduct. enter, productId is {}", productId);
|
|
|
List<PromotionActivityRspBo> activityListForProduct = activityService.getActivityListForProduct(productId);
|
|
|
List<PromotionActivityRspBo> activityListForProduct = activityService.getActivityListForProduct(productId, businessClient);
|
|
|
logger.info("Method:ufo.promotion.activityListForProduct. out, productId is {}", productId);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(activityListForProduct).build();
|
|
|
}
|
...
|
...
|
|