update 查询会员钱包信息

This commit is contained in:
2024-03-25 15:04:01 +08:00
parent 99c6a584a3
commit 9f5b032ce1
2 changed files with 3 additions and 3 deletions

View File

@@ -343,8 +343,8 @@ public class PayController extends BaseController {
public void adapayCallback(HttpServletRequest request) {
try {
orderService.adapayCallback(request);
String type = request.getParameter("type");
logger.info("1汇付回调type:{}", type);
// String type = request.getParameter("type");
logger.info("1汇付回调type:{}", request.getParameter("type"));
} catch (Exception e) {
logger.error("1汇付支付回调失败 error", e);
}

View File

@@ -97,7 +97,7 @@ public class MemberWalletInfoServiceImpl implements MemberWalletInfoService {
MemberWalletVO memberWalletVO = memberWalletInfoMapper.selectMemberWalletInfo(walletCode);
// 累计消费金额 = 累计充值 + 累计赠送 - 本金余额 - 赠送金余额
BigDecimal accumulatedConsumptionAmount = memberWalletVO.getAccumulatedRechargeAmount()
.add(memberWalletVO.getAccumulatedRechargeAmount())
.add(memberWalletVO.getAccumulatedRechargeGift())
.subtract(memberWalletVO.getPrincipalBalance())
.subtract(memberWalletVO.getGiftBalance());
memberWalletVO.setAccumulatedConsumptionAmount(accumulatedConsumptionAmount);