|
|
@@ -318,6 +318,9 @@ public class WxPayServiceImpl implements WxPayService {
|
|
|
accountService.lambdaUpdate().setSql("balance = (balance+%d)".formatted(transaction.getAmount().getTotal()))
|
|
|
.eq(Account::getUserId, walletDetail.getUserId()).update();
|
|
|
|
|
|
+ // 异步处理充值服务费打折权益活动相关逻辑
|
|
|
+ activityService.handleRechargeActivity(walletDetail.getUserId(), transaction.getAmount().getTotal());
|
|
|
+
|
|
|
// 支付记录
|
|
|
var payLog = new PayLog();
|
|
|
payLog.setUserId(walletDetail.getUserId());
|
|
|
@@ -343,11 +346,7 @@ public class WxPayServiceImpl implements WxPayService {
|
|
|
var account = accountService.getAccountByUserId(walletDetail.getUserId());
|
|
|
var res = enPlusService.updateBalanceByQueryEquipChargeStatus(chargingOrder.getStartChargeSeq(), account.getBalance() - 50);
|
|
|
LOGGER.info("用户:{}充电过程中充值,已更新en+充电金额,en+返回数据:{}", account.getUserId(), res);
|
|
|
-
|
|
|
- // 异步处理充值服务费打折权益活动相关逻辑
|
|
|
- activityService.handleRechargeActivity(chargingOrder.getUserId(), transaction.getAmount().getTotal());
|
|
|
}
|
|
|
-
|
|
|
return ResponseEntity.status(HttpStatus.OK).build();
|
|
|
|
|
|
} else {
|