|
@@ -42,11 +42,11 @@ public class MethodGoodsCartService {
|
|
|
List<GoodsCartVo> resultList = new ArrayList<>();
|
|
|
//遍历封装
|
|
|
cartList.forEach(item -> {
|
|
|
- //获取店铺
|
|
|
- TbShop tbShop = tbShopMapper.selectById(item.getShopId());
|
|
|
- if(tbShop == null)throw new ServiceException("店铺信息有误~");
|
|
|
- //店铺名称
|
|
|
- String shopName = tbShop.getName();
|
|
|
+ //获取店铺 todo:届时放开店铺信息
|
|
|
+// TbShop tbShop = tbShopMapper.selectById(item.getShopId());
|
|
|
+// if(tbShop == null)throw new ServiceException("店铺信息有误~");
|
|
|
+// //店铺名称
|
|
|
+// String shopName = tbShop.getName();
|
|
|
//设置重量
|
|
|
Long goodsTransitId = item.getPublishGoodsId();
|
|
|
TbGoodsTransit tbGoodsTransit = tbGoodsTransitMapper.selectById(goodsTransitId);
|
|
@@ -59,7 +59,7 @@ public class MethodGoodsCartService {
|
|
|
//数据拷贝
|
|
|
BeanUtils.copyProperties(item,goodsCartVo);
|
|
|
//设置店铺名称
|
|
|
- goodsCartVo.setShopName(shopName);
|
|
|
+ goodsCartVo.setShopName("shopName");
|
|
|
//设置净重
|
|
|
goodsCartVo.setNetWeight(netWeight + goodsUnits);
|
|
|
//设置毛重
|