| | |
| | | import com.xcong.excoin.modules.member.entity.MemberWalletAgentEntity;
|
| | | import com.xcong.excoin.modules.member.entity.MemberWalletCoinEntity;
|
| | | import com.xcong.excoin.modules.member.entity.MemberWalletContractEntity;
|
| | | import com.xcong.excoin.modules.member.vo.MemberCoinChargeVo;
|
| | | import com.xcong.excoin.modules.platform.dao.PlatformCnyUsdtExchangeDao;
|
| | | import com.xcong.excoin.utils.CoinTypeConvert;
|
| | | import com.xcong.excoin.utils.MessageSourceUtils;
|
| | |
| | | import cn.hutool.core.collection.CollUtil;
|
| | | import cn.hutool.core.util.ObjectUtil;
|
| | | import cn.hutool.core.util.StrUtil;
|
| | | import jnr.ffi.Struct.int16_t;
|
| | |
|
| | | @Service
|
| | | public class CoinServiceImpl extends ServiceImpl<MemberWalletCoinDao, MemberWalletCoinEntity> implements CoinService {
|
| | |
| | | String symbolIns = symbolIn+"/USDT";
|
| | | ThreadPoolUtils.sendWholeForceClosingPrice(symbolIns, memberEntity);
|
| | |
|
| | | ThreadPoolUtils.sendWholePrice(memberId);
|
| | | |
| | | //添加币币资金划转历史记录
|
| | | MemberAccountMoneyChange memberAccountRecord = new MemberAccountMoneyChange();
|
| | | memberAccountRecord.setContent("转出至合约"+symbolIn+"账户");
|
| | |
| | | coinInListVo.setSymbol(memberCoinWithdrawEntitys.getSymbol());
|
| | | coinInListVo.setAmount(memberCoinWithdrawEntitys.getAmount());
|
| | | coinInListVo.setContent("提币");
|
| | | coinInListVo.setStatus(memberCoinWithdrawEntitys.getStatus());
|
| | | int status = memberCoinWithdrawEntitys.getStatus();
|
| | | int statusOut = 0;
|
| | | if(status == 1) {
|
| | | statusOut = 0;
|
| | | }
|
| | | if(status == 2) {
|
| | | statusOut = 1;
|
| | | }
|
| | | if(status == 3) {
|
| | | statusOut = 2;
|
| | | }
|
| | | coinInListVo.setStatus(statusOut);
|
| | | coinInListVo.setUpdateTime(memberCoinWithdrawEntitys.getUpdateTime());
|
| | | coinInListVo.setIsInside(memberCoinWithdrawEntitys.getIsInside());
|
| | | arrayList.add(coinInListVo);
|