|
|
|
@ -109,6 +109,9 @@ public class OrderApplicationService { |
|
|
|
totalSettlementAmount = totalSettlementAmount.add(orderItem.getSettlementAmount()); |
|
|
|
} |
|
|
|
order.setSettlementAmount(totalSettlementAmount); |
|
|
|
if (order.getSettlementAmount().compareTo(BigDecimal.ZERO) <= 0) { |
|
|
|
throw new BizException("订单金额应该大于0"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -229,7 +232,7 @@ public class OrderApplicationService { |
|
|
|
unitSettlementPrice = productSpec.getUnitSellingPrice().subtract(orderReward.getRewardAmount()); |
|
|
|
} |
|
|
|
} |
|
|
|
if (unitSettlementPrice.compareTo(BigDecimal.ZERO) <= 0) { |
|
|
|
if (unitSettlementPrice.compareTo(BigDecimal.ZERO) < 0) { |
|
|
|
throw new BizException("悬赏价格修改差价不能小于0"); |
|
|
|
} |
|
|
|
OrderItem orderItem = new OrderItem(); |
|
|
|
|