mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +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;
|
||||
}
|
||||
// 记流水
|
||||
|
||||
Reference in New Issue
Block a user