| | |
| | | import cn.lili.modules.goods.entity.vos.GoodsVO; |
| | | import cn.lili.modules.goods.service.GoodsService; |
| | | import cn.lili.modules.goods.service.GoodsSkuService; |
| | | import cn.lili.modules.lmk.domain.query.GoodsBannerQuery; |
| | | import cn.lili.modules.lmk.domain.query.VideoGoodsEsQuery; |
| | | import cn.lili.modules.lmk.service.GoodsBannerService; |
| | | import cn.lili.modules.search.entity.dos.EsGoodsIndex; |
| | | import cn.lili.modules.search.entity.dos.EsGoodsRelatedInfo; |
| | | import cn.lili.modules.search.entity.dto.EsGoodsSearchDTO; |
| | |
| | | |
| | | @Autowired |
| | | private COSUtil cosUtil; |
| | | @Autowired |
| | | private GoodsBannerService goodsBannerService; |
| | | |
| | | @ApiOperation(value = "通过id获取商品信息") |
| | | @ApiImplicitParam(name = "goodsId", value = "商品ID", required = true, paramType = "path", dataType = "Long") |
| | |
| | | public ResultMessage<Page<EsGoodsIndex>> getGoodsByPageFromEs(EsGoodsSearchDTO goodsSearchParams, PageVO pageVO) { |
| | | pageVO.setNotConvert(true); |
| | | Page<EsGoodsIndex> ePage = goodsSearchService.searchGoodsByPage(goodsSearchParams, pageVO); |
| | | ePage.getRecords().forEach(item -> { |
| | | ePage.getRecords().stream().filter(Objects::nonNull).forEach(item -> { |
| | | String small = item.getSmall(); |
| | | String thumbnail = item.getThumbnail(); |
| | | String goodsVideo = item.getGoodsVideo(); |
| | |
| | | }); |
| | | return ResultUtil.data(ePage); |
| | | } |
| | | @ApiOperation(value = "获取推广信息") |
| | | @GetMapping("/getBannerList") |
| | | public Result getBannerList(GoodsBannerQuery query) { |
| | | return goodsBannerService.getBannerList(query); |
| | | } |
| | | |
| | | @ApiOperation(value = "商品分页-发布视频时关联商品") |
| | | @GetMapping("/video/es") |