zepengdev
2025-06-23 c466ff02844412184c6e032c82eeca18836b4e2d
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());