From 0f8787a1812355e47108f73569e7c0e8eecff289 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Tue, 01 Jun 2021 11:10:26 +0800
Subject: [PATCH] modify
---
src/main/resources/mapper/otc/OtcEntrustOrderDao.xml | 2 +-
src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcEntrustOrderServiceImpl.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcEntrustOrderServiceImpl.java b/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcEntrustOrderServiceImpl.java
index 5b7e4d3..a7c1c69 100644
--- a/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcEntrustOrderServiceImpl.java
+++ b/src/main/java/com/xcong/excoin/modules/otc/service/impl/OtcEntrustOrderServiceImpl.java
@@ -221,7 +221,7 @@
detail.setOrderCnt(mb.getSaleOrderCnt());
detail.setFinishRatio(mb.getSaleFinishRatio());
} else {
- detail.setOrderCnt(mb.getTotalOrderCnt());
+ detail.setOrderCnt(mb.getBuyOrderCnt());
detail.setFinishRatio(mb.getFinishRatio());
}
detail.setPayType(defualtMethod.getPaymentType());
diff --git a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml
index 7d64025..d61cbb2 100644
--- a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml
+++ b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml
@@ -11,7 +11,7 @@
,a.remain_coin_amount amount
,a.limit_min_amount min
,a.limit_max_amount max
- ,case when a.order_type = 'B' then b.total_order_cnt
+ ,case when a.order_type = 'B' then b.buy_order_cnt
when a.order_type = 'S' then b.sale_order_cnt end orderCnt
,case when a.order_type = 'B' then b.finish_ratio
when a.order_type = 'S' then b.sale_finish_ratio end finishRatio
--
Gitblit v1.9.1