|
@@ -873,11 +873,8 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
String orderNo = idGeneratorService.generatorId("payment") + "";
|
|
|
|
|
|
String channelType = "";
|
|
|
- if (amount.compareTo(orderAmount) != 0) {
|
|
|
- throw new BizException("商品价格不符");
|
|
|
- }
|
|
|
StudentPaymentOrder studentPaymentOrder = studentRegistrationService.addOrder(studentRegistration,
|
|
|
- amount,
|
|
|
+ orderAmount,
|
|
|
orderNo,
|
|
|
channelType,
|
|
|
courseFee,
|
|
@@ -888,7 +885,10 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
registerPayDto.getBuyMaintenance(),
|
|
|
registerPayDto.getBuyCloudTeacher(),
|
|
|
registerPayDto.getBuyCloudTeacherPlus(),registerPayDto.getCouponIdList());
|
|
|
- amount = studentPaymentOrder.getActualAmount();
|
|
|
+ orderAmount = studentPaymentOrder.getActualAmount();
|
|
|
+ if (amount.compareTo(orderAmount) != 0) {
|
|
|
+ throw new BizException("商品价格不符");
|
|
|
+ }
|
|
|
if (amount.compareTo(BigDecimal.ZERO) < 0) {
|
|
|
throw new BizException("价格异常");
|
|
|
}
|
|
@@ -1144,11 +1144,8 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
String orderNo = idGeneratorService.generatorId("payment") + "";
|
|
|
|
|
|
String channelType = "";
|
|
|
- if (amount.compareTo(orderAmount) != 0) {
|
|
|
- throw new BizException("商品价格不符");
|
|
|
- }
|
|
|
StudentPaymentOrder studentPaymentOrder = studentRegistrationService.addOrder(studentRegistration,
|
|
|
- amount,
|
|
|
+ orderAmount,
|
|
|
orderNo,
|
|
|
channelType,
|
|
|
courseFee,
|
|
@@ -1160,8 +1157,10 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
registerPayDto.getBuyCloudTeacher(),
|
|
|
registerPayDto.getBuyCloudTeacherPlus(),registerPayDto.getCouponIdList());
|
|
|
studentPaymentOrder = studentPaymentOrderService.get(studentPaymentOrder.getId());
|
|
|
- amount = studentPaymentOrder.getActualAmount();
|
|
|
-
|
|
|
+ orderAmount = studentPaymentOrder.getActualAmount();
|
|
|
+ if (amount.compareTo(orderAmount) != 0) {
|
|
|
+ throw new BizException("商品价格不符");
|
|
|
+ }
|
|
|
if (amount.compareTo(BigDecimal.ZERO) < 0) {
|
|
|
throw new BizException("价格异常");
|
|
|
}
|