From bfa9a4a35662164d5828c0c9416290b776902a2e Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 14 May 2021 14:49:40 +0800
Subject: [PATCH] Merge branch 'yunding' of http://120.27.238.55:7000/r/exchange into yunding
---
src/test/java/com/xcong/excoin/XchTest.java | 27 ++++++++++++++++++++++++---
1 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/src/test/java/com/xcong/excoin/XchTest.java b/src/test/java/com/xcong/excoin/XchTest.java
index 1a70038..611af9d 100644
--- a/src/test/java/com/xcong/excoin/XchTest.java
+++ b/src/test/java/com/xcong/excoin/XchTest.java
@@ -3,11 +3,15 @@
import cn.hutool.core.date.DateUnit;
import cn.hutool.core.date.DateUtil;
+import com.xcong.excoin.modules.yunding.dao.YdOrderDao;
+import com.xcong.excoin.modules.yunding.entity.YdOrderEntity;
import com.xcong.excoin.modules.yunding.service.XchProfitService;
import com.xcong.excoin.quartz.job.YdPowerJob;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
+
+import java.math.BigDecimal;
@SpringBootTest
public class XchTest {
@@ -36,12 +40,29 @@
public void orderUsdtProfitTest() {
xchProfitService.usdtProfitDistributorByOrderId(7L);
}
+//
+// @Autowired
+// private YdPowerJob ydPowerJob;
+//
+// @Test
+// public void ydPowerTest() {
+// ydPowerJob.orderWork();
+// }
@Autowired
- private YdPowerJob ydPowerJob;
+ private YdOrderDao ydOrderDao;
@Test
- public void ydPowerTest() {
- ydPowerJob.orderWork();
+ public void orderTest() {
+ YdOrderEntity orderEntity = new YdOrderEntity();
+ orderEntity.setType(YdOrderEntity.AGENT_ORDER);
+ orderEntity.setMemberId(40L);
+ orderEntity.setAmount(BigDecimal.TEN);
+ ydOrderDao.insert(orderEntity);
+ }
+
+ @Test
+ public void xchProfitTest() {
+ xchProfitService.xchProfitDistributor(BigDecimal.valueOf(1));
}
}
--
Gitblit v1.9.1