mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-10 18:30:02 +08:00
update 会员钱包
This commit is contained in:
@@ -9,6 +9,7 @@ import com.jsowell.common.core.redis.RedisCache;
|
|||||||
import com.jsowell.common.enums.MemberWalletEnum;
|
import com.jsowell.common.enums.MemberWalletEnum;
|
||||||
import com.jsowell.common.exception.BusinessException;
|
import com.jsowell.common.exception.BusinessException;
|
||||||
import com.jsowell.common.util.DateUtils;
|
import com.jsowell.common.util.DateUtils;
|
||||||
|
import com.jsowell.common.util.SecurityUtils;
|
||||||
import com.jsowell.common.util.StringUtils;
|
import com.jsowell.common.util.StringUtils;
|
||||||
import com.jsowell.common.util.id.IdUtils;
|
import com.jsowell.common.util.id.IdUtils;
|
||||||
import com.jsowell.pile.domain.MemberBasicInfo;
|
import com.jsowell.pile.domain.MemberBasicInfo;
|
||||||
@@ -223,6 +224,7 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
|
|||||||
// 记流水
|
// 记流水
|
||||||
logList.add(MemberWalletLog.builder()
|
logList.add(MemberWalletLog.builder()
|
||||||
.memberId(dto.getMemberId())
|
.memberId(dto.getMemberId())
|
||||||
|
.walletCode(walletInfo.getWalletCode())
|
||||||
.type(dto.getType())
|
.type(dto.getType())
|
||||||
.subType(dto.getSubType())
|
.subType(dto.getSubType())
|
||||||
.amount(updatePrincipalBalance)
|
.amount(updatePrincipalBalance)
|
||||||
@@ -259,7 +261,7 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
|
|||||||
.relatedOrderCode(dto.getRelatedOrderCode())
|
.relatedOrderCode(dto.getRelatedOrderCode())
|
||||||
.beforeAmount(oldGiftBalance)
|
.beforeAmount(oldGiftBalance)
|
||||||
.afterAmount(newGiftBalance)
|
.afterAmount(newGiftBalance)
|
||||||
.createBy(dto.getMemberId())
|
.createBy(SecurityUtils.getLoginUser().getUserId() + "")
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user