|
|
@ -114,7 +114,7 @@ public class AppletIndexServiceImpl implements AppletIndexService { |
|
|
|
page = commonShopService.lambdaQuery() |
|
|
|
.like(StringUtils.isNotBlank(pageBean.getTitle()),CommonShop::getName,pageBean.getTitle()) |
|
|
|
.eq(StringUtils.isNotBlank(shopIconId),CommonShop::getShopCion,shopIconId) |
|
|
|
.eq(StringUtils.isNotBlank(shopClassId),CommonShop::getShopClass,shopClassId) |
|
|
|
.like(StringUtils.isNotBlank(shopClassId),CommonShop::getShopClass,shopClassId) |
|
|
|
.eq(StringUtils.isNotBlank(cityId),CommonShop::getCityId,cityId) |
|
|
|
.eq(CommonShop::getIsOpen,"Y") |
|
|
|
.page(page); |
|
|
@ -353,17 +353,21 @@ public class AppletIndexServiceImpl implements AppletIndexService { |
|
|
|
List<CommonAddOrder> commonAddOrders = new ArrayList<>(); |
|
|
|
|
|
|
|
records.forEach(item->{ |
|
|
|
//获取商品标识 |
|
|
|
String[] shopIdSplit = item.getShopId().split(","); |
|
|
|
//创建一个集合 |
|
|
|
List<CommonShop> list1 = new ArrayList<>(); |
|
|
|
for (String shopId : shopIdSplit) { |
|
|
|
//获取商品信息 |
|
|
|
CommonShop commonShop = commonShopService.getById(shopId); |
|
|
|
//加入集合 |
|
|
|
list1.add(commonShop); |
|
|
|
if(StringUtils.isNotBlank(item.getShopId())){ |
|
|
|
//获取商品标识 |
|
|
|
String[] shopIdSplit = item.getShopId().split(","); |
|
|
|
//创建一个集合 |
|
|
|
List<CommonShop> list1 = new ArrayList<>(); |
|
|
|
for (String shopId : shopIdSplit) { |
|
|
|
//获取商品信息 |
|
|
|
CommonShop commonShop = commonShopService.getById(shopId); |
|
|
|
//加入集合 |
|
|
|
list1.add(commonShop); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
commonAddOrders.add(item); |
|
|
|
|
|
|
|
}); |
|
|
|
pageList.setRecords(commonAddOrders); |
|
|
|
|
|
|
|