...
|
...
|
@@ -13,6 +13,8 @@ import java.util.Set; |
|
|
import java.util.function.Function;
|
|
|
|
|
|
import com.yoho.ufo.dal.*;
|
|
|
import com.yohobuy.ufo.model.resp.product.SecondDetailResp;
|
|
|
import com.yohobuy.ufo.model.resp.product.SkupImageInfo;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.elasticsearch.common.collect.Lists;
|
...
|
...
|
@@ -1215,4 +1217,72 @@ public class ProductServiceImpl implements IProductService, ApplicationContextAw |
|
|
}
|
|
|
return new ApiResponse<>();
|
|
|
}
|
|
|
|
|
|
public SecondDetailResp getSecondDetailBySkup(Integer skup) {
|
|
|
SecondDetailResp secondDetailResp = new SecondDetailResp();
|
|
|
|
|
|
List<SkupImageInfo> infos = new ArrayList<>();
|
|
|
SkupImageInfo info = new SkupImageInfo();
|
|
|
info.setImageDesc("测试笔 ooo");
|
|
|
info.setImageUrl("http://img11.static.yhbimg.com/goodsimg/2019/04/03/15/01f64fcbd42158d47188ec0d07a3d24938.jpg");
|
|
|
infos.add(info);
|
|
|
|
|
|
SkupImageInfo info1 = new SkupImageInfo();
|
|
|
info1.setImageDesc("测试笔 ooo");
|
|
|
info1.setImageUrl("http://img11.static.yhbimg.com/goodsimg/2019/04/03/15/01f64fcbd42158d47188ec0d07a3d24938.jpg");
|
|
|
infos.add(info1);
|
|
|
|
|
|
|
|
|
SkupImageInfo info2 = new SkupImageInfo();
|
|
|
info2.setImageDesc("测试笔 ooo");
|
|
|
info2.setImageUrl("http://img11.static.yhbimg.com/goodsimg/2019/04/03/15/01f64fcbd42158d47188ec0d07a3d24938.jpg");
|
|
|
infos.add(info2);
|
|
|
|
|
|
|
|
|
SkupImageInfo info3 = new SkupImageInfo();
|
|
|
info3.setImageDesc("测试笔 ooo");
|
|
|
info3.setImageUrl("http://img11.static.yhbimg.com/goodsimg/2019/04/03/15/01f64fcbd42158d47188ec0d07a3d24938.jpg");
|
|
|
infos.add(info3);
|
|
|
|
|
|
|
|
|
SkupImageInfo info4 = new SkupImageInfo();
|
|
|
info4.setImageDesc("测试笔 ooo");
|
|
|
info4.setImageUrl("http://img11.static.yhbimg.com/goodsimg/2019/04/03/15/01f64fcbd42158d47188ec0d07a3d24938.jpg");
|
|
|
infos.add(info4);
|
|
|
|
|
|
|
|
|
SkupImageInfo info5 = new SkupImageInfo();
|
|
|
info5.setImageDesc("测试笔 ooo");
|
|
|
info5.setImageUrl("http://img11.static.yhbimg.com/goodsimg/2019/04/03/15/01f64fcbd42158d47188ec0d07a3d24938.jpg");
|
|
|
infos.add(info5);
|
|
|
|
|
|
|
|
|
SkupImageInfo info6 = new SkupImageInfo();
|
|
|
info6.setImageDesc("测试笔 ooo");
|
|
|
info6.setImageUrl("http://img11.static.yhbimg.com/goodsimg/2019/04/03/15/01f64fcbd42158d47188ec0d07a3d24938.jpg");
|
|
|
infos.add(info6);
|
|
|
|
|
|
|
|
|
SkupImageInfo info7 = new SkupImageInfo();
|
|
|
info7.setImageDesc("测试笔 ooo");
|
|
|
info7.setImageUrl("http://img11.static.yhbimg.com/goodsimg/2019/04/03/15/01f64fcbd42158d47188ec0d07a3d24938.jpg");
|
|
|
infos.add(info7);
|
|
|
|
|
|
|
|
|
SkupImageInfo info8 = new SkupImageInfo();
|
|
|
info8.setImageDesc("测试笔 ooo");
|
|
|
info8.setImageUrl("http://img11.static.yhbimg.com/goodsimg/2019/04/03/15/01f64fcbd42158d47188ec0d07a3d24938.jpg");
|
|
|
infos.add(info8);
|
|
|
|
|
|
SkupImageInfo info9 = new SkupImageInfo();
|
|
|
info9.setImageDesc("测试笔 ooo");
|
|
|
info9.setImageUrl("http://img11.static.yhbimg.com/goodsimg/2019/04/03/15/01f64fcbd42158d47188ec0d07a3d24938.jpg");
|
|
|
infos.add(info9);
|
|
|
|
|
|
secondDetailResp.setImageInfoList(infos);
|
|
|
|
|
|
secondDetailResp.setDesc("测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好测试好");
|
|
|
return secondDetailResp;
|
|
|
}
|
|
|
|
|
|
} |
...
|
...
|
|