|
@@ -83,11 +83,11 @@ public class TbGoodsCartService extends ServiceImpl<TbGoodsCartMapper, TbGoodsCa
|
|
|
//购买方式,默认都是互助组进行购买
|
|
|
tbGoodsCart.setBuyType(2 + "");
|
|
|
//购买商品的重量
|
|
|
- tbGoodsCart.setBuyWeight(Double.valueOf(goodsCartInfoDto.getBuyNum()));
|
|
|
+ tbGoodsCart.setBuyWeight(goodsCartInfoDto.getBuyWeight());
|
|
|
//当前商品的单位
|
|
|
tbGoodsCart.setGoodsUnit(tbGoodsTransit.getGoodsUnits());
|
|
|
//商品价格
|
|
|
- tbGoodsCart.setTotalPrice((goodsCartInfoDto.getBuyNum() == null? 0 : goodsCartInfoDto.getBuyNum())
|
|
|
+ tbGoodsCart.setTotalPrice((goodsCartInfoDto.getBuyWeight() == null? 0 : goodsCartInfoDto.getBuyWeight())
|
|
|
*
|
|
|
(tbGoodsTransit.getPrice() == null? 0 : tbGoodsTransit.getPrice()));
|
|
|
//设置基本属性
|