mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-06 23:18:01 +08:00
update后管充值余额 大于零才进行操作
This commit is contained in:
@@ -258,7 +258,7 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
|
|||||||
BigDecimal newGiftBalance = null;
|
BigDecimal newGiftBalance = null;
|
||||||
|
|
||||||
// 更新本金金额
|
// 更新本金金额
|
||||||
if (updatePrincipalBalance != null) {
|
if (updatePrincipalBalance != null && updatePrincipalBalance.compareTo(BigDecimal.ZERO) > 0) {
|
||||||
if (StringUtils.equals(dto.getType(), MemberWalletEnum.TYPE_OUT.getValue())) {
|
if (StringUtils.equals(dto.getType(), MemberWalletEnum.TYPE_OUT.getValue())) {
|
||||||
// 扣款 转为负数
|
// 扣款 转为负数
|
||||||
updatePrincipalBalance = updatePrincipalBalance.negate();
|
updatePrincipalBalance = updatePrincipalBalance.negate();
|
||||||
@@ -295,7 +295,7 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 更新赠送金额
|
// 更新赠送金额
|
||||||
if (updateGiftBalance != null) {
|
if (updateGiftBalance != null && updateGiftBalance.compareTo(BigDecimal.ZERO) > 0) {
|
||||||
if (StringUtils.equals(dto.getType(), MemberWalletEnum.TYPE_OUT.getValue())) {
|
if (StringUtils.equals(dto.getType(), MemberWalletEnum.TYPE_OUT.getValue())) {
|
||||||
// 扣款 转为负数
|
// 扣款 转为负数
|
||||||
updateGiftBalance = updateGiftBalance.negate();
|
updateGiftBalance = updateGiftBalance.negate();
|
||||||
|
|||||||
Reference in New Issue
Block a user