xin
2025-07-14 6d3f43aceecf5cb35c8440e8593263b0ca1bdcd6
oying-system/src/main/java/com/oying/modules/pc/search/rest/StoreSearchController.java
@@ -36,6 +36,14 @@
        return R.success(toStoreSearchVo(storeSearchService.findNearStores(criteria)));
    }
    /**
     * 查询最近的店铺
     */
    @GetMapping("/find")
    public R<PageResult<StoreSearchView>> find(NearbyStoreQueryCriteria criteria) {
        return R.success(toStoreSearchVo(storeSearchService.findNearStores(criteria)));
    }
    private PageResult<StoreSearchView> toStoreSearchVo(PageResult<StoreSearchDto> resources) {
        PageResult<StoreSearchView> t = new PageResult<>();
        t.setTotalElements(resources.getTotalElements());