From e4930c4a9ed4bc2198209370440ec19e1e0393ef Mon Sep 17 00:00:00 2001
From: wzy <wzy19931122ai@163.com>
Date: Sat, 05 Jun 2021 15:42:53 +0800
Subject: [PATCH] modify
---
src/main/resources/mapper/otc/OtcEntrustOrderDao.xml | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml
index e93f83c..d61cbb2 100644
--- a/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml
+++ b/src/main/resources/mapper/otc/OtcEntrustOrderDao.xml
@@ -11,8 +11,10 @@
,a.remain_coin_amount amount
,a.limit_min_amount min
,a.limit_max_amount max
- ,b.total_order_cnt orderCnt
- ,b.finish_ratio finishRatio
+ ,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
,d.payment_type payType
from otc_entrust_order a
left join otc_market_bussiness b on a.member_id=b.member_id
--
Gitblit v1.9.1