From ee1950ffc7d2be6a8ee178e0e5beaec26d995e51 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Tue, 08 Jun 2021 15:59:36 +0800 Subject: [PATCH] modify --- src/test/java/com/xcong/excoin/OtcTest.java | 18 ++++++++++++++++++ 1 files changed, 18 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..2f2a67e 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,21 @@ memberPaymentMethodDao.insert(memberPaymentMethodEntity); } } + + @Test + public void bigdecimalTest() { + BigDecimal one = BigDecimal.valueOf(6.39); + BigDecimal two = BigDecimal.valueOf(15.64); + + System.out.println(one.multiply(two)); + } + + @Autowired + private OtcConsumer otcConsumer; + + @Test + public void returnMoneyTest() { +// otcConsumer.orderReturn("20210605446780002"); + otcProducter.sendOrderReturn("20210605446780002"); + } } -- Gitblit v1.9.1