From bd034b20e86824436e9a35ba407a8e626c67f210 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 08 Aug 2022 16:31:10 +0800 Subject: [PATCH] 20220808 --- src/test/java/cc/mrbird/febs/ProfitTest.java | 32 ++++++++++++++++++++++++++++---- 1 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/test/java/cc/mrbird/febs/ProfitTest.java b/src/test/java/cc/mrbird/febs/ProfitTest.java index ce90bcd..155bb83 100644 --- a/src/test/java/cc/mrbird/febs/ProfitTest.java +++ b/src/test/java/cc/mrbird/febs/ProfitTest.java @@ -13,7 +13,9 @@ import java.math.BigDecimal; import java.util.Date; +import java.util.HashMap; import java.util.List; +import java.util.Map; /** * @author wzy @@ -33,18 +35,22 @@ @Test public void dynamicProfit() { - memberProfitService.dynamicProfit(16L); + memberProfitService.dynamicProfit(21L); + } + @Test + public void agentProfit() { + memberProfitService.agentProfit(null); } @Test public void staticProfit() { - memberProfitService.staticProfit(); + memberProfitService.staticProfit(new Date()); } @Test public void thankfulProfit() { - memberProfitService.thankfulProfit(); + memberProfitService.thankfulProfit(new Date()); } @Test @@ -57,7 +63,7 @@ @Test public void directorProfitTest() { - memberProfitService.storeAndDirectorProfit(null); + memberProfitService.storeAndDirectorProfit(new Date()); } @Autowired @@ -73,4 +79,22 @@ mallAchieveService.add(item.getId()); } } + + @Test + public void paramTest() { + Map<String, Integer> map = new HashMap<>(); + BigDecimal amount = new BigDecimal("100"); + map.put("amount", 1); + changeAmount(map); + System.out.println(map.get("amount")); + } + + public void changeAmount(Map<String, Integer> amount) { + amount.put("amount", 2); + } + + @Test + public void scorePool(){ + memberProfitService.scorePool(); + } } -- Gitblit v1.9.1