|
|
|
@ -189,8 +189,10 @@ public class BasketServiceImpl extends ServiceImpl<BasketMapper, Basket> impleme |
|
|
|
|
shopCartItemDto.setSkuName(sku.getSkuName()); |
|
|
|
|
shopCartItemDto.setPic(StrUtil.isBlank(sku.getPic())? prod.getPic() : sku.getPic()); |
|
|
|
|
shopCartItemDto.setProdName(sku.getProdName()); |
|
|
|
|
shopCartItemDto.setProductTotalAmount(Arith.mul(sku.getPrice(),orderItem.getProdCount())); |
|
|
|
|
shopCartItemDto.setPrice(sku.getPrice()); |
|
|
|
|
if (sku.getPrice()!= null){ |
|
|
|
|
shopCartItemDto.setProductTotalAmount(Arith.mul(sku.getPrice(),orderItem.getProdCount())); |
|
|
|
|
shopCartItemDto.setPrice(sku.getPrice()); |
|
|
|
|
} |
|
|
|
|
// shopCartItemDto.setDistributionCardNo(orderItem.getDistributionCardNo());
|
|
|
|
|
shopCartItemDto.setBasketDate(new Date()); |
|
|
|
|
ShopDetail shopDetail = shopDetailService.getShopDetailByShopId(orderItem.getShopId()); |
|
|
|
|