...
|
...
|
@@ -54,6 +54,7 @@ import com.yohobuy.ufo.model.response.SizeImageResp; |
|
|
import com.yohobuy.ufo.model.response.StorageCheckResp;
|
|
|
import com.yohobuy.ufo.model.response.StorageDataResp;
|
|
|
import com.yohobuy.ufo.model.response.StorageInfoResp;
|
|
|
import com.yohobuy.ufo.model.response.VedioImageResp;
|
|
|
import com.yohobuy.ufo.model.response.store.StoreInfoBo;
|
|
|
import com.yohoufo.common.ApiResponse;
|
|
|
import com.yohoufo.common.caller.UfoServiceCaller;
|
...
|
...
|
@@ -68,6 +69,7 @@ import com.yohoufo.dal.product.GoodsImagesMapper; |
|
|
import com.yohoufo.dal.product.GoodsMapper;
|
|
|
import com.yohoufo.dal.product.PriceTrendDayMapper;
|
|
|
import com.yohoufo.dal.product.PriceTrendMonthMapper;
|
|
|
import com.yohoufo.dal.product.ProductExtMapper;
|
|
|
import com.yohoufo.dal.product.ProductLimitSaleMapper;
|
|
|
import com.yohoufo.dal.product.ProductMapper;
|
|
|
import com.yohoufo.dal.product.ProductProfitMapper;
|
...
|
...
|
@@ -90,6 +92,7 @@ import com.yohoufo.dal.product.model.Goods; |
|
|
import com.yohoufo.dal.product.model.GoodsImages;
|
|
|
import com.yohoufo.dal.product.model.PriceTrendModel;
|
|
|
import com.yohoufo.dal.product.model.Product;
|
|
|
import com.yohoufo.dal.product.model.ProductExt;
|
|
|
import com.yohoufo.dal.product.model.ProductLimitSale;
|
|
|
import com.yohoufo.dal.product.model.ProductProfit;
|
|
|
import com.yohoufo.dal.product.model.ProductSales;
|
...
|
...
|
@@ -229,6 +232,9 @@ public class ProductServiceImpl implements ProductService { |
|
|
|
|
|
@Autowired
|
|
|
private SizePoolDetailMapper sizePoolDetailMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private ProductExtMapper productExtMapper;
|
|
|
|
|
|
@Override
|
|
|
public ProductDetailResp queryProductDetailById(Integer productId) {
|
...
|
...
|
@@ -2002,6 +2008,20 @@ public class ProductServiceImpl implements ProductService { |
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public VedioImageResp getVedioImage(Integer productId) {
|
|
|
VedioImageResp resp = new VedioImageResp();
|
|
|
ProductExt ext = productExtMapper.selectByProductId(productId);
|
|
|
if(null == ext) {
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
resp.setProductId(productId);
|
|
|
resp.setVedioImageUrl(ImageUrlAssist.getUrlWhitImageView2(ext.getVedioImageUrl()));
|
|
|
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
private List<Integer> buildSizeIdList(String[] sizeIdArr){
|
|
|
List<Integer> sizeIdList = Lists.newArrayList();
|
|
|
for(int i=0; i<sizeIdArr.length; i++) {
|
...
|
...
|
|