| | |
| | | BigDecimal delivaryAmount = addOrderDto.getDeliveryAmount() == null ? BigDecimal.ZERO : addOrderDto.getDeliveryAmount(); |
| | | if(BigDecimal.ZERO.compareTo(delivaryAmount) < 0 && 1 == addOrderDto.getIsHome()){ |
| | | total = total.add(delivaryAmount); |
| | | orderInfo.setCarriage(delivaryAmount); |
| | | } |
| | | orderInfo.setAmount(total); |
| | | orderInfo.setCarriage(carriage); |
| | | |
| | | MallAddressInfo address = mallAddressInfoMapper.selectAddressInfoByMemberIdAndId(member.getId(), addOrderDto.getAddressId()); |
| | | orderInfo.setName(address.getName()); |