From 1b0e20f11a920ba8c0c38e4c8fef58e8fa1fe0d2 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 14 Jul 2020 19:41:31 +0800
Subject: [PATCH] Merge branch 'master' of https://gitee.com/chonggaoxiao/new_excoin

---
 src/main/java/com/xcong/excoin/modules/coin/service/impl/OrderCoinServiceImpl.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/coin/service/impl/OrderCoinServiceImpl.java b/src/main/java/com/xcong/excoin/modules/coin/service/impl/OrderCoinServiceImpl.java
index c131779..c96299f 100644
--- a/src/main/java/com/xcong/excoin/modules/coin/service/impl/OrderCoinServiceImpl.java
+++ b/src/main/java/com/xcong/excoin/modules/coin/service/impl/OrderCoinServiceImpl.java
@@ -253,7 +253,7 @@
                 totalPayPrice = nowPrice.multiply(amount).add(closingPrice);
                 price = nowPrice;
             }
-            order.setDealPrice(price);
+            order.setDealPrice(nowPrice);
             order.setDealAmount(totalPayPrice);
             order.setOrderStatus(OrderCoinsEntity.ORDERSTATUS_DONE);
             order.setTradeType(tradeType);
@@ -269,7 +269,7 @@
             detail.setSymbol(symbol);
             detail.setSymbolCnt(amount);
             detail.setEntrustPrice(nowPriceinBigDecimal);
-            detail.setDealPrice(price);
+            detail.setDealPrice(nowPrice);
             detail.setDealAmount(totalPayPrice);
             detail.setFeeAmount(closingPrice);
             detail.setOrderStatus(OrderCoinsDealEntity.ORDERSTATUS_DONE);

--
Gitblit v1.9.1