From 18e593b32ebc6ed4b727a2c9fe16135ea8272595 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 03 Aug 2020 17:00:17 +0800
Subject: [PATCH] modify

---
 src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml |   28 ++++++++++++++++++++++++++--
 1 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml b/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml
index 449a3c1..73cfc88 100644
--- a/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml
+++ b/src/main/resources/mapper/documentary/FollowTraderProfitInfoDao.xml
@@ -2,10 +2,34 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.xcong.excoin.modules.documentary.dao.FollowTraderProfitInfoDao">
 	
-	<select id="selectFollowTraderProfitInfoEntity" resultType="com.xcong.excoin.modules.documentary.entity.FollowTraderProfitInfoEntity">
+	<select id="selectFollowTraderProfitInfoEntity" resultType="com.xcong.excoin.modules.documentary.vo.FollowTraderProfitInfoVo">
 		select * from follow_trader_profit_info 
-		
         order by id desc
     </select>
     
+	<select id="selectOneByMemberId" resultType="com.xcong.excoin.modules.documentary.vo.FollowTraderProfitInfoVo">
+		select * from follow_trader_profit_info where member_id = #{memberId} 
+    </select>
+    
+	<select id="selectHistoryOrderRecords" resultType="com.xcong.excoin.modules.documentary.vo.HistoryOrderRecordsVo">
+		SELECT
+			symbol,
+			order_type orderType,
+			lever_ratio leverRatio,
+			opening_price openingPrice,
+			closing_price closingPrice,
+			reward_ratio rewardRatio,
+			opening_time openingTime,
+			closing_time closingTime,
+			order_no orderNo
+		FROM
+			contract_order 
+		WHERE 
+			member_id = #{memberId} 
+			and contract_type = 2
+			and order_type in (3,4)
+			and closing_type not in (4,5)
+		order by opening_time desc
+    </select>
+    
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1