| | |
| | | @ResponseBody |
| | | @PostMapping("/getGoodsShopByGoodsIds") |
| | | public R<List<GoodsShop>> getGoodsShopByGoodsIds(@RequestBody GetGoodsShopByGoodsIds goodsIds) { |
| | | List<GoodsShop> list = goodsShopService.list(new LambdaQueryWrapper<GoodsShop>().eq(GoodsShop::getShopId, goodsIds.getShopId()).in(GoodsShop::getGoodsId, goodsIds.getGoodsIds())); |
| | | List<GoodsShop> list = goodsShopService.list(new LambdaQueryWrapper<GoodsShop>() |
| | | .eq(goodsIds.getShopId() != null,GoodsShop::getShopId, goodsIds.getShopId()) |
| | | .in(goodsIds.getGoodsIds() !=null ,GoodsShop::getGoodsId, goodsIds.getGoodsIds())); |
| | | return R.ok(list); |
| | | } |
| | | } |