| | |
| | | .eq("MEMBER_ID",addCartGoodsRequest.getMemberId()) |
| | | .eq("GOODS_SKU_ID",addCartGoodsRequest.getGoodsSkuId()) |
| | | ); |
| | | // Goods goods = goodsMapper.selectById(addCartGoodsRequest.getGoodsId()); |
| | | // if(Objects.isNull(goods)){ |
| | | // throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"未查询到商品信息"); |
| | | // } |
| | | // if(!goods.getType().equals(Constants.ZERO)){ |
| | | // throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"非商城商品无法加入购物车"); |
| | | // } |
| | | GoodsSku goodsSku = goodsSkuMapper.selectById(addCartGoodsRequest.getGoodsSkuId()); |
| | | if(Objects.isNull(goodsSku)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"未查询到商品SKU信息"); |