|
@@ -265,12 +265,12 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
throw new BizException("支付项不存在");
|
|
|
}
|
|
|
BigDecimal amount = sporadicPayDto.getAmount();
|
|
|
- if (!(amount.compareTo(chargeInfo.getAmount()) == 0)) {
|
|
|
- throw new BizException("订单金额异常");
|
|
|
- }
|
|
|
if(chargeInfo.getDiscountAmount() != null && chargeInfo.getDiscountAmount().compareTo(BigDecimal.ZERO)>0){
|
|
|
amount = amount.subtract(chargeInfo.getDiscountAmount());
|
|
|
}
|
|
|
+ if (!(amount.compareTo(chargeInfo.getAmount()) == 0)) {
|
|
|
+ throw new BizException("订单金额异常");
|
|
|
+ }
|
|
|
|
|
|
OrderTypeEnum type = OrderTypeEnum.SPORADIC;
|
|
|
String receiver = null;
|