|
@@ -117,9 +117,11 @@ public class SubjectChangeServiceImpl extends BaseServiceImpl<Integer, SubjectCh
|
|
|
|
|
|
studentPaymentOrderService.insert(studentPaymentOrder);
|
|
|
studentPaymentOrder.setVersion(0);
|
|
|
-
|
|
|
+ if (amount.compareTo(viewAmount) != 0) {
|
|
|
+ throw new BizException("价格异常");
|
|
|
+ }
|
|
|
BigDecimal balance = BigDecimal.ZERO;
|
|
|
- if (isUseBalancePayment != null && amount.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
+ if (isUseBalancePayment != null && isUseBalancePayment && amount.compareTo(BigDecimal.ZERO) > 0) {
|
|
|
SysUserCashAccount userCashAccount = sysUserCashAccountService.getLocked(subjectChange.getStudentId());
|
|
|
if (userCashAccount == null) {
|
|
|
throw new BizException("用户账户找不到");
|