From 128232e113567d1d1b84423bff8ade20ade8f4a4 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Thu, 17 Mar 2022 10:04:29 +0800
Subject: [PATCH] 20222223
---
src/test/java/com/xcong/excoin/ReturnMoneyTest.java | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/test/java/com/xcong/excoin/ReturnMoneyTest.java b/src/test/java/com/xcong/excoin/ReturnMoneyTest.java
index be71c28..eb40f55 100644
--- a/src/test/java/com/xcong/excoin/ReturnMoneyTest.java
+++ b/src/test/java/com/xcong/excoin/ReturnMoneyTest.java
@@ -1,6 +1,8 @@
package com.xcong.excoin;
import cn.hutool.core.collection.CollUtil;
+import jnr.ffi.annotations.IgnoreError;
+
import com.xcong.excoin.modules.coin.dao.MemberAccountMoneyChangeDao;
import com.xcong.excoin.modules.coin.entity.MemberAccountMoneyChange;
import com.xcong.excoin.modules.contract.dao.ContractOrderDao;
@@ -38,16 +40,15 @@
@Resource
private MemberAccountMoneyChangeDao memberAccountMoneyChangeDao;
- @Test
+ /*@Test
public void returnTest() {
ContractOrderEntity entity = contractOrderDao.selectById(667L);
OrderWebsocketServiceImpl orderWebsocketService = SpringContextHolder.getBean(OrderWebsocketServiceImpl.class);
orderWebsocketService.calYj(19L, new BigDecimal(4.18004236), entity, AgentReturnEntity.ORDER_TYPE_OPEN);
- }
+ }*/
@Test
- @Transactional(rollbackFor = Exception.class)
public void moneyReturnTest() {
List<AgentReturnEntity> list = agentReturnDao.selectAllNeedMoneyReturn();
log.info("返佣条数:{}", list.size());
@@ -74,11 +75,11 @@
moneyChange.setSymbol("USDT");
// // 更新代理钱包金额
-// memberWalletAgentDao.updateById(walletAgent);
+ memberWalletAgentDao.updateById(walletAgent);
// // 更新返佣明细中状态
-// agentReturnDao.updateAgentReturnStatusByRefererId(AgentReturnEntity.IS_RETURN_Y, refererId);
+ agentReturnDao.updateAgentReturnStatusByRefererId(AgentReturnEntity.IS_RETURN_Y, refererId);
// // 插入财务流水记录
-// memberAccountMoneyChangeDao.insert(moneyChange);
+ memberAccountMoneyChangeDao.insert(moneyChange);
}
}
}
--
Gitblit v1.9.1