| | |
| | | if(goods.getAppointStore() == 1){ |
| | | List<Integer> shopIdList = goodsShopMapper.selectList(new LambdaQueryWrapper<GoodsShop>() |
| | | .eq(GoodsShop::getGoodsId, goodsId)).stream().map(GoodsShop::getShopId).collect(Collectors.toList()); |
| | | shops = shopMapper.selectObjs(new LambdaQueryWrapper<Shop>() |
| | | .select(Shop::getName) |
| | | .in(shopIdList.size() > 0, Shop::getId, shopIdList)); |
| | | shops = shopMapper.selectList(new LambdaQueryWrapper<Shop>() |
| | | .in(shopIdList.size() > 0, Shop::getId, shopIdList).eq(Shop::getDelFlag, 0)); |
| | | }else{ |
| | | shops = shopMapper.selectList(new LambdaUpdateWrapper<Shop>().eq(Shop::getDelFlag, 0)); |
| | | } |