From a99275f05dcbd532ee5b8c5f9c5a80afea16e16a Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 04 Mar 2022 11:07:54 +0800
Subject: [PATCH] 20211201  fish

---
 src/main/resources/mapper/modules/OrderCoinDealMapper.xml |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/modules/OrderCoinDealMapper.xml b/src/main/resources/mapper/modules/OrderCoinDealMapper.xml
index 2b2d877..f0a4cd8 100644
--- a/src/main/resources/mapper/modules/OrderCoinDealMapper.xml
+++ b/src/main/resources/mapper/modules/OrderCoinDealMapper.xml
@@ -4,7 +4,7 @@
 
 	<select id="selectOrderCoinsDealListInPage" resultType="com.xcong.excoin.modules.trademanage.entity.OrderCoinsDealEntity">
 		SELECT
-			s.*,m.phone,m.email
+			s.*,m.phone,m.email,m.ipo
 		FROM
 		coins_order_deal s
 		LEFT JOIN member m ON m.id = s.member_id
@@ -19,5 +19,27 @@
 		ORDER BY s.create_time DESC
 	</select>
 
+	<select id="selectGbzOrderEntitysInPage" resultType="com.xcong.excoin.modules.trademanage.entity.GbzOrderEntity">
+		SELECT
+		*,
+		CONCAT(first_name, second_name) realName
+		FROM
+		gbz_order s
+		LEFT JOIN member m ON m.id = s.member_id
+		LEFT JOIN member_authentication a ON a.member_id = s.member_id
+		<where>
+			<if test="record != null" >
+				<if test="record.account!=null and record.account!=''">
+					and (m.phone like concat("%",#{record.account},"%") or m.email like concat("%",#{record.account},"%") or m.invite_id=#{record.account})
+				</if>
+
+				<if test="record.status!=null and record.status!=''">
+					and s.status = #{record.status}
+				</if>
+			</if>
+		</where>
+		ORDER BY s.create_time DESC
+	</select>
+
     
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.1