From 4ba5a3ee3263d329b3395c855df6123366a16660 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 20 Jun 2023 16:02:58 +0800
Subject: [PATCH] IM后台
---
src/test/java/cc/mrbird/febs/ProfitTest.java | 32 ++++++++++++++++++++++----------
1 files changed, 22 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..34e1c21 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,30 @@
@SpringBootTest
public class ProfitTest {
+ public static void main(String[] args) {
+ BigDecimal bigDecimal = new BigDecimal("624377928.99960000");
+ BigDecimal bigDecimal1 = new BigDecimal("975728618.82800000");
+ BigDecimal add = bigDecimal.add(bigDecimal1);
+ BigDecimal price = new BigDecimal("0.000243745811");
+ BigDecimal bigDecimal2 = add.multiply(price).setScale(2, BigDecimal.ROUND_DOWN);
+// BigDecimal divide = bigDecimal.divide(bigDecimal1, 8, BigDecimal.ROUND_DOWN);
+ System.out.println(bigDecimal2);
+ }
+
// @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