From c43fd45b248b8e55861720139b7d5ff8c9b7b254 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 26 Oct 2023 11:47:45 +0800 Subject: [PATCH] 版本管理 --- src/test/java/cc/mrbird/febs/ProfitTest.java | 36 ++++++++++++++++++++++++++---------- 1 files changed, 26 insertions(+), 10 deletions(-) diff --git a/src/test/java/cc/mrbird/febs/ProfitTest.java b/src/test/java/cc/mrbird/febs/ProfitTest.java index 4b8e7e2..d3f9f3c 100644 --- a/src/test/java/cc/mrbird/febs/ProfitTest.java +++ b/src/test/java/cc/mrbird/febs/ProfitTest.java @@ -5,6 +5,8 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; +import java.math.BigDecimal; + /** * @author wzy * @date 2022-06-02 @@ -12,20 +14,34 @@ @SpringBootTest public class ProfitTest { + public static void main(String[] args) { + BigDecimal bigDecimal = new BigDecimal("290000"); + BigDecimal bigDecimal1 = new BigDecimal("0.000244427982"); + BigDecimal bigDecimal2 = bigDecimal.multiply(bigDecimal1).setScale(2, BigDecimal.ROUND_DOWN); + BigDecimal divide = bigDecimal.divide(bigDecimal1, 8, BigDecimal.ROUND_DOWN); + System.out.println(bigDecimal2); + System.out.println(divide); + } + /** + * 22977.21 回流的30% + * + * 344,632.0667 实际入金 + */ + // @Autowired // private AgentConsumer agentConsumer; // - @Autowired - private IAgentService agentService; -// // @Autowired -// private IMemberProfitService memberProfitService; -// - @Test - public void dynamicProfit() { - agentService.returnMoneyToAgent(3323L); -// agentService.autoUpAgentLevel(640L); - } +// private IAgentService agentService; +//// +//// @Autowired +//// private IMemberProfitService memberProfitService; +//// +// @Test +// public void dynamicProfit() { +// agentService.returnMoneyToAgent(3323L); +//// agentService.autoUpAgentLevel(640L); +// } // @Test // public void agentProfit() { // memberProfitService.agentProfit(null); -- Gitblit v1.9.1