|  |  | 
 |  |  | 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; | 
 |  |  | 
 |  |  |     @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()); | 
 |  |  | 
 |  |  |                 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); | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |     } |