mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-15 07:18:31 +08:00
后管充值本金
This commit is contained in:
@@ -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;
|
||||
}
|
||||
// 记流水
|
||||
|
||||
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user