...
|
...
|
@@ -8,6 +8,8 @@ import com.yoho.tools.docs.ApiOperation; |
|
|
import com.yoho.tools.docs.ApiParam;
|
|
|
import com.yoho.tools.docs.ApiResp;
|
|
|
import com.yoho.tools.docs.ApiRespCode;
|
|
|
import com.yohobuy.ufo.model.GoodsBO;
|
|
|
import com.yohobuy.ufo.model.GoodsSize;
|
|
|
import com.yohobuy.ufo.model.ProductInfo;
|
|
|
import com.yohobuy.ufo.model.request.SeekToBuyStorageBo;
|
|
|
import com.yohobuy.ufo.model.request.StoragePriceBo;
|
...
|
...
|
@@ -23,6 +25,7 @@ import com.yohoufo.common.cache.Cachable; |
|
|
import com.yohoufo.common.cache.ControllerCacheAop;
|
|
|
import com.yohoufo.common.caller.UfoServiceCaller;
|
|
|
import com.yohoufo.common.utils.StringUtil;
|
|
|
import com.yohoufo.dal.product.model.Goods;
|
|
|
import com.yohoufo.dal.product.model.StoragePrice;
|
|
|
import com.yohoufo.product.model.SkupInfo;
|
|
|
import com.yohoufo.product.response.*;
|
...
|
...
|
@@ -34,6 +37,7 @@ import org.apache.commons.collections.CollectionUtils; |
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
...
|
...
|
@@ -101,6 +105,22 @@ public class ProductController { |
|
|
return new ApiResponse.ApiResponseBuilder().data(resp).code(200).message("product data").build();
|
|
|
}
|
|
|
|
|
|
@ApiOperation(name = "ufo.product.data2", desc = "商品详情分tab")
|
|
|
@IgnoreSignature
|
|
|
@IgnoreSession
|
|
|
@RequestMapping(params = "method=ufo.product.data2")
|
|
|
@Cachable(expire = 120)
|
|
|
public ApiResponse queryProductDetailTabsById(
|
|
|
@RequestParam(value = "product_id") Integer productId) {
|
|
|
ApiResponse response = queryProductDetailById(productId);
|
|
|
if (response.getCode() == 200) {
|
|
|
ProductDetailResp resp = (ProductDetailResp) response.getData();
|
|
|
productService.tabsGoods(resp);
|
|
|
}
|
|
|
return response;
|
|
|
}
|
|
|
|
|
|
|
|
|
@ApiOperation(name = "ufo.product.intro", desc = "商品详情页下半部分")
|
|
|
@ApiParam(name="product_id",required = true,desc="商品id",type=Integer.class)
|
|
|
@ApiResp(dataClazz=ModelAndView.class, desc="商品详情")
|
...
|
...
|
@@ -929,4 +949,5 @@ public class ProductController { |
|
|
LOG.info("queryProductResource poolIds is {}.", poolIds);
|
|
|
return ufoServiceCaller.call("ufo.resource.product", ApiResponse.class, StringUtils.join(poolIds, ","), clientType);
|
|
|
}
|
|
|
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|