diff --git a/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java b/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java index 9dfaf025..82afd784 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java +++ b/ms-biz/src/main/java/com/ms/api/spi/order/SearchChooseSourceProductListService.java @@ -68,7 +68,28 @@ public class SearchChooseSourceProductListService extends SPIBaseService impleme ret.put("total", productToDsItemPager.getTotal()); ret.put("page", productToDsItemPager.getPage()); ret.put("pageSize", productToDsItemPager.getPageSize()); - +if (productToDsItemPager.getTotal()==0) { + ret = new HashMap(); + List list = new ArrayList<>(); + ChooseSourceProductDTO dto1 = new ChooseSourceProductDTO(); + ChooseSourceProductDTO dto2 = new ChooseSourceProductDTO(); + dto1.setName("开发商品名字11111"); + dto1.setProductId("911111111"); + dto1.setPrice(99.99); + dto1.setStatus(0L); + dto1.setImg("https://cbu01.alicdn.com/img/ibank/O1CN01XQ4vkl1V78Qnhpvxl_!!939772605-0-cib.jpg"); + dto1.setName("开发商品名字2"); + dto1.setProductId("9222222"); + dto1.setPrice(81.0); + dto1.setStatus(0L); + dto1.setImg("https://cbu01.alicdn.com/img/ibank/O1CN01XQ4vkl1V78Qnhpvxl_!!939772605-0-cib.jpg"); + list.add(dto1); + list.add(dto2); + ret.put("productList", list); + ret.put("total", 2); + ret.put("page", productToDsItemPager.getPage()); + ret.put("pageSize", productToDsItemPager.getPageSize()); +} return R.ok(Ret.success(ret)); } } diff --git a/ms-biz/src/main/java/com/ms/api/spi/order/SearchDsSourceSellerListService.java b/ms-biz/src/main/java/com/ms/api/spi/order/SearchDsSourceSellerListService.java index bb3d7b16..9b77a41c 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/order/SearchDsSourceSellerListService.java +++ b/ms-biz/src/main/java/com/ms/api/spi/order/SearchDsSourceSellerListService.java @@ -59,6 +59,7 @@ if (sourceSellersObject.size() == 0) { b.put("sellerName", "开发人员的店2"); b.put("sellerIdMd5", "2234567890qwertyuio"); b.put("isEncryptLogisticsOrderSupportDouyin", 0); + sourceSellerList.add(a); sourceSellerList.add(b); } JSONObject retObj = new JSONObject();