xin
2025-07-19 f8bb85d9864702f411971b6133d69f8abce6441a
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());