后管充值本金

This commit is contained in:
2023-11-08 13:55:07 +08:00
parent 8d09695324
commit d87eb90691
2 changed files with 4 additions and 4 deletions

View File

@@ -201,7 +201,7 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
: info.getPrincipalBalance();
newPrincipalBalance = oldPrincipalBalance.add(updatePrincipalBalance);
if (newPrincipalBalance.compareTo(BigDecimal.ZERO) < 0) {
log.warn("本金余额不能为负数");
log.warn("变更后本金余额不能为负数");
return 0;
}
// 记流水
@@ -230,7 +230,7 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
newGiftBalance = oldGiftBalance.add(updateGiftBalance);
// 余额不能为负数
if (newGiftBalance.compareTo(BigDecimal.ZERO) < 0) {
log.warn("赠送余额不能为负数");
log.warn("变更后赠送余额不能为负数");
return 0;
}
// 记流水

View File

@@ -289,7 +289,7 @@ export default {
computed: {
// 子类型 进账10-充值, 11-赠送, 12-订单结算退款 出账20-后管扣款, 21-订单付款, 22-用户退款
subType() {
return this.type === '1' ? '11' : '20';
return this.type === '1' ? '10' : '20';
}
},
created() {
@@ -383,7 +383,7 @@ export default {
},
// 重置 充值赠送金额相关
resetBalance() {
console.log("重置 充值赠送金额相关");
// console.log("重置 充值赠送金额相关");
this.openUpdateBalance = false;
this.updatePrincipalBalance = "";
this.updateBalanceMemberId = "";