From 1e4cab335b1cb68ad3438e522ea410c2d2e753ed Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 07 Sep 2021 14:54:16 +0800
Subject: [PATCH] data_move

---
 src/test/java/com/xcong/excoin/OtcTest.java |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/test/java/com/xcong/excoin/OtcTest.java b/src/test/java/com/xcong/excoin/OtcTest.java
index b288801..aaa786e 100644
--- a/src/test/java/com/xcong/excoin/OtcTest.java
+++ b/src/test/java/com/xcong/excoin/OtcTest.java
@@ -9,6 +9,7 @@
 import com.xcong.excoin.modules.otc.dao.OtcMarketBussinessDao;
 import com.xcong.excoin.modules.otc.entity.OtcMarketBussiness;
 import com.xcong.excoin.quartz.job.OtcOrderJob;
+import com.xcong.excoin.rabbit.consumer.OtcConsumer;
 import com.xcong.excoin.rabbit.producer.OtcProducter;
 import lombok.extern.slf4j.Slf4j;
 import org.junit.jupiter.api.Test;
@@ -102,4 +103,24 @@
             memberPaymentMethodDao.insert(memberPaymentMethodEntity);
         }
     }
+
+    @Test
+    public void bigdecimalTest() {
+        BigDecimal one = BigDecimal.valueOf(6.39);
+        BigDecimal two = BigDecimal.valueOf(3129.860025);
+        BigDecimal three = BigDecimal.valueOf(19999.80);
+
+        BigDecimal cny = one.multiply(two).setScale(2, BigDecimal.ROUND_DOWN);
+        BigDecimal usdt = three.divide(one, 2, BigDecimal.ROUND_DOWN);
+        System.out.println(cny.compareTo(three) != 0 && usdt.compareTo(two) != 0);
+    }
+
+//    @Autowired
+//    private OtcConsumer otcConsumer;
+
+    @Test
+    public void returnMoneyTest() {
+//        otcConsumer.orderReturn("20210605446780002");
+//        otcProducter.sendOrderReturn("20210605446780002");
+    }
 }

--
Gitblit v1.9.1