update 会员钱包

This commit is contained in:
2023-11-21 15:29:05 +08:00
parent f07f71d91d
commit 32966ad72d

View File

@@ -9,6 +9,7 @@ import com.jsowell.common.core.redis.RedisCache;
import com.jsowell.common.enums.MemberWalletEnum;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.util.DateUtils;
import com.jsowell.common.util.SecurityUtils;
import com.jsowell.common.util.StringUtils;
import com.jsowell.common.util.id.IdUtils;
import com.jsowell.pile.domain.MemberBasicInfo;
@@ -223,6 +224,7 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
// 记流水
logList.add(MemberWalletLog.builder()
.memberId(dto.getMemberId())
.walletCode(walletInfo.getWalletCode())
.type(dto.getType())
.subType(dto.getSubType())
.amount(updatePrincipalBalance)
@@ -259,7 +261,7 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
.relatedOrderCode(dto.getRelatedOrderCode())
.beforeAmount(oldGiftBalance)
.afterAmount(newGiftBalance)
.createBy(dto.getMemberId())
.createBy(SecurityUtils.getLoginUser().getUserId() + "")
.build());
}