From 664184af3e070dee665ee736caffa0297804975f Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Tue, 18 Mar 2025 11:46:02 +0800 Subject: [PATCH] perf(mall): 移除会员利润计算中的异步执行 --- src/test/java/cc/mrbird/febs/AgentTest.java | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/test/java/cc/mrbird/febs/AgentTest.java b/src/test/java/cc/mrbird/febs/AgentTest.java index 4358b15..bcd0b30 100644 --- a/src/test/java/cc/mrbird/febs/AgentTest.java +++ b/src/test/java/cc/mrbird/febs/AgentTest.java @@ -1,5 +1,6 @@ package cc.mrbird.febs; +import cc.mrbird.febs.mall.service.IApiMallMemberService; import cc.mrbird.febs.mall.service.IMemberProfitService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; @@ -8,13 +9,25 @@ @Slf4j @SpringBootTest public class AgentTest { - @Autowired private IMemberProfitService memberProfitService; + @Autowired + private IApiMallMemberService apiMallMemberService; // @Test // public void getCouponAmountMap(){ +// for(int i = 0;i<10;i++){ +// RegisterDto registerDto = new RegisterDto(); +// registerDto.setAccount("1910000044"+i); +// registerDto.setRegistType("admin"); +// registerDto.setPassword("a123456"); +// registerDto.setPasswordAgain("a123456"); +// registerDto.setInviteId("36940411"); +// apiMallMemberService.register(registerDto); +// } // -// memberProfitService.updateRunScore(); -// +// } +// @Test +// public void getCouponAmountMapV2(){ +// memberProfitService.updateMemberCoin(); // } } -- Gitblit v1.9.1