| | |
| | | if(1 != goodsResult){ |
| | | throw new FebsException(mallGoods.getGoodsName() + "库存不足"); |
| | | } |
| | | BigDecimal amount = BigDecimal.ZERO; |
| | | BigDecimal itemPrice = BigDecimal.ZERO; |
| | | /** |
| | | * |
| | | */ |
| | | orderItem.setAmount(sku.getPresentPrice().multiply(BigDecimal.valueOf(item.getCnt()))); |
| | | BigDecimal amount = sku.getPresentPrice().multiply(BigDecimal.valueOf(item.getCnt())); |
| | | BigDecimal itemPrice = sku.getPresentPrice(); |
| | | orderItem.setAmount(amount); |
| | | orderItem.setCnt(item.getCnt()); |
| | | orderItem.setOrderId(orderInfo.getId()); |
| | | orderItem.setPrice(itemPrice); |