class ProductSearchController {

    @Autowired
    private ProductSearchManager productSearchManager;

    @Autowired
    private ShopDetailFeignClient shopDetailFeignClient;

    @GetMapping("/page")
    @Operation(summary = "商品信息列表-包含spu、品牌、分类、属性和店铺信息" , description = "spu列表-包含spu、品牌、分类、属性和店铺信息")
    public ServerResponseEntity<EsPageVO<ProductSearchVO>> page(@Valid EsPageDTO pageDTO, ProductSearchDTO productSearchDTO) {<FILL_FUNCTION_BODY>}

    @GetMapping("/simple_page")
    @Operation(summary = "商品信息列表-包含spu信息" , description = "商品信息列表-包含spu信息")
    public ServerResponseEntity<EsPageVO<ProductSearchVO>> simplePage(@Valid EsPageDTO pageDTO, ProductSearchDTO productSearchDTO) {
        productSearchDTO.setSpuStatus(StatusEnum.ENABLE.value());
        EsPageVO<ProductSearchVO> searchPage =  productSearchManager.simplePage(pageDTO, productSearchDTO);
        loadShopData(searchPage.getList());
        return ServerResponseEntity.success(searchPage);
    }

    /**
     * 获取店铺数据
     * @param list
     */
    private void loadShopData(List<ProductSearchVO> list) {
        if (CollUtil.isEmpty(list)) {
            return;
        }
        for (ProductSearchVO productSearchVO : list) {
            if (Objects.isNull(productSearchVO.getShopInfo()) || Objects.isNull(productSearchVO.getShopInfo().getShopId())) {
                continue;
            }
            ServerResponseEntity<EsShopDetailBO> shopDataResponse = shopDetailFeignClient.shopExtensionData(productSearchVO.getShopInfo().getShopId());
            if (Objects.equals(shopDataResponse.getCode(), ResponseEnum.OK.value())) {
                EsShopDetailBO esShopDetailBO = shopDataResponse.getData();
                ShopInfoSearchVO shopInfo = productSearchVO.getShopInfo();
                shopInfo.setShopLogo(esShopDetailBO.getShopLogo());
                shopInfo.setShopName(esShopDetailBO.getShopName());
                shopInfo.setType(esShopDetailBO.getType());
            }
        }
    }
}

        productSearchDTO.setSpuStatus(StatusEnum.ENABLE.value());
        EsPageVO<ProductSearchVO> searchPage = productSearchManager.page(pageDTO, productSearchDTO);
        loadShopData(searchPage.getList());
        return ServerResponseEntity.success(searchPage);
    
<no_super_class>