成长值

This commit is contained in:
2025-12-25 19:56:32 +08:00
parent 87dd4cc3ba
commit 19af647b04
6 changed files with 43 additions and 39 deletions

View File

@@ -34,7 +34,8 @@ public interface MkShopRechargeService extends IService<MkShopRecharge> {
* @param isNoJoin 是否没有执行 加入会员的方法
* 会员如果是条件开通 则 需要统计
*/
void recharge(Long shopId, Long shopUserId, Long rechargeDetailId, BigDecimal amount, Long paymentId, String payType, ShopUserFlowBizEnum bizEnum, boolean isNoJoin);
void recharge(Long shopId, Long shopUserId, Long rechargeDetailId, BigDecimal amount, Long paymentId,
String payType, ShopUserFlowBizEnum bizEnum, boolean isNoJoin);
List<RechargeListVO> getList(long loginIdAsLong);

View File

@@ -1,6 +1,7 @@
package com.czg.utils;
import cn.hutool.core.lang.func.Func0;
import cn.hutool.core.thread.ThreadUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.transaction.support.TransactionSynchronization;
import org.springframework.transaction.support.TransactionSynchronizationManager;
@@ -42,6 +43,10 @@ public class FunUtils {
}
}
public static void asyncSafeRunVoid(Runnable func, String... msg) {
ThreadUtil.execAsync(() -> safeRunVoid(func, msg));
}
/**
* 在事务提交后执行方法
* 异步 执行