|
|
@@ -112,7 +112,7 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
//关闭老订单
|
|
|
if (StringUtils.isNotEmpty(studentGoodsSell.getOrderNo())) {
|
|
|
StudentPaymentOrder orderByOrderNo = studentPaymentOrderService.findOrderByOrderNo(studentGoodsSell.getOrderNo());
|
|
|
- if (orderByOrderNo.getBalancePaymentAmount() != null && orderByOrderNo.getBalancePaymentAmount().compareTo(BigDecimal.ZERO) != 0) {
|
|
|
+ if (orderByOrderNo.getBalancePaymentAmount() != null && orderByOrderNo.getBalancePaymentAmount().longValue() != 0l) {
|
|
|
studentGoodsSell.setIsUseBalancePayment(true);
|
|
|
} else {
|
|
|
studentGoodsSell.setIsUseBalancePayment(false);
|
|
|
@@ -292,7 +292,7 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
throw new BizException("该订单已支付");
|
|
|
}
|
|
|
//关闭老订单
|
|
|
- if (studentPaymentOrder.getBalancePaymentAmount() != null) {
|
|
|
+ if (studentPaymentOrder.getBalancePaymentAmount() != null && studentPaymentOrder.getBalancePaymentAmount().longValue() != 0l) {
|
|
|
studentGoodsSell.setIsUseBalancePayment(true);
|
|
|
} else {
|
|
|
studentGoodsSell.setIsUseBalancePayment(false);
|