From 313cfad530634d110e19240737312d8d9de7b972 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 01 Jun 2020 21:21:26 +0800
Subject: [PATCH] modify
---
src/main/java/com/xcong/excoin/modules/contract/service/impl/ContractEntrustOrderServiceImpl.java | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/contract/service/impl/ContractEntrustOrderServiceImpl.java b/src/main/java/com/xcong/excoin/modules/contract/service/impl/ContractEntrustOrderServiceImpl.java
index a63468f..fa5f0d1 100644
--- a/src/main/java/com/xcong/excoin/modules/contract/service/impl/ContractEntrustOrderServiceImpl.java
+++ b/src/main/java/com/xcong/excoin/modules/contract/service/impl/ContractEntrustOrderServiceImpl.java
@@ -17,6 +17,7 @@
import com.xcong.excoin.modules.member.entity.MemberEntity;
import com.xcong.excoin.modules.member.entity.MemberWalletContractEntity;
import com.xcong.excoin.modules.platform.entity.PlatformTradeSettingEntity;
+import com.xcong.excoin.rabbit.producer.OrderProducer;
import com.xcong.excoin.utils.CacheSettingUtils;
import com.xcong.excoin.utils.CoinTypeConvert;
import com.xcong.excoin.utils.RedisUtils;
@@ -53,6 +54,9 @@
@Resource
private CommonService commonService;
+
+ @Resource
+ private OrderProducer producer;
@Transactional(rollbackFor = Exception.class)
@Override
@@ -116,7 +120,7 @@
walletContract.setFrozenBalance(walletContract.getFrozenBalance().add(entrustTotalAmount));
walletContract.setAvailableBalance(walletContract.getAvailableBalance().subtract(entrustTotalAmount));
memberWalletContractDao.updateById(walletContract);
- if (1 > 0) {
+ if (i > 0) {
return Result.ok("委托成功");
} else {
return Result.fail("委托失败");
--
Gitblit v1.9.1