mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-06 15:08:05 +08:00
后管充值本金
This commit is contained in:
@@ -201,7 +201,7 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
|
|||||||
: info.getPrincipalBalance();
|
: info.getPrincipalBalance();
|
||||||
newPrincipalBalance = oldPrincipalBalance.add(updatePrincipalBalance);
|
newPrincipalBalance = oldPrincipalBalance.add(updatePrincipalBalance);
|
||||||
if (newPrincipalBalance.compareTo(BigDecimal.ZERO) < 0) {
|
if (newPrincipalBalance.compareTo(BigDecimal.ZERO) < 0) {
|
||||||
log.warn("新本金余额不能为负数");
|
log.warn("变更后本金余额不能为负数");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
// 记流水
|
// 记流水
|
||||||
@@ -230,7 +230,7 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
|
|||||||
newGiftBalance = oldGiftBalance.add(updateGiftBalance);
|
newGiftBalance = oldGiftBalance.add(updateGiftBalance);
|
||||||
// 余额不能为负数
|
// 余额不能为负数
|
||||||
if (newGiftBalance.compareTo(BigDecimal.ZERO) < 0) {
|
if (newGiftBalance.compareTo(BigDecimal.ZERO) < 0) {
|
||||||
log.warn("新赠送余额不能为负数");
|
log.warn("变更后赠送余额不能为负数");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
// 记流水
|
// 记流水
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
// 子类型 进账:10-充值, 11-赠送, 12-订单结算退款 出账:20-后管扣款, 21-订单付款, 22-用户退款
|
// 子类型 进账:10-充值, 11-赠送, 12-订单结算退款 出账:20-后管扣款, 21-订单付款, 22-用户退款
|
||||||
subType() {
|
subType() {
|
||||||
return this.type === '1' ? '11' : '20';
|
return this.type === '1' ? '10' : '20';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -383,7 +383,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 重置 充值赠送金额相关
|
// 重置 充值赠送金额相关
|
||||||
resetBalance() {
|
resetBalance() {
|
||||||
console.log("重置 充值赠送金额相关");
|
// console.log("重置 充值赠送金额相关");
|
||||||
this.openUpdateBalance = false;
|
this.openUpdateBalance = false;
|
||||||
this.updatePrincipalBalance = "";
|
this.updatePrincipalBalance = "";
|
||||||
this.updateBalanceMemberId = "";
|
this.updateBalanceMemberId = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user