From 48b6f19e19502b2f6469bab3e6a266d88a8e9c8b Mon Sep 17 00:00:00 2001 From: leomon <2233021400@qq.com> Date: Wed, 09 Jul 2025 23:04:29 +0800 Subject: [PATCH] 订单号string 提供订单消息插入接口 --- oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCustomerController.java | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCustomerController.java b/oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCustomerController.java index 3a12592..59900e0 100644 --- a/oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCustomerController.java +++ b/oying-system/src/main/java/com/oying/modules/pc/store/rest/StoreCustomerController.java @@ -46,11 +46,9 @@ @GetMapping(value = "/page") @ApiOperation("查询店铺") public ResponseEntity<?> getStoresByPage(StoreQueryCriteria criteria) { + criteria.setLimit(1000); PageResult<Store> pagedStores = storeQueryService.findPagedStores(criteria); - List<Store> stores = pagedStores.getContent(); - for (Store store : stores) { - store.setProducts(this.getProductsByStoreId(store.getStoreId())); - } + pagedStores.getContent().forEach(store -> store.setProducts(this.getProductsByStoreId(store.getStoreId()))); return ResponseEntity.ok(R.success(pagedStores)); } -- Gitblit v1.9.3