|
@@ -92,9 +92,9 @@ public class StudentInstrumentServiceImpl extends BaseServiceImpl<Long, StudentI
|
|
|
}
|
|
|
Integer userId = studentInstrument.getStudentId();
|
|
|
BigDecimal orderAmount = new BigDecimal(sysConfigDao.findConfigValue("maintenance_price"));
|
|
|
- StudentPaymentOrder studentPaymentOrder = sysCouponCodeService.use(maintenancePayDto.getCouponIdList(),maintenancePayDto.getAmount(),true);
|
|
|
+ StudentPaymentOrder studentPaymentOrder = sysCouponCodeService.use(maintenancePayDto.getCouponIdList(),orderAmount,true);
|
|
|
BigDecimal amount = studentPaymentOrder.getActualAmount();
|
|
|
- if (amount.compareTo(orderAmount) != 0) {
|
|
|
+ if (amount.compareTo(maintenancePayDto.getAmount()) != 0) {
|
|
|
throw new BizException("商品价格不符");
|
|
|
}
|
|
|
|