From e18c5b4d84b5970d973208dae347ac5fd937b66f Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 04 Nov 2021 10:23:23 +0800 Subject: [PATCH] fix --- src/main/resources/mapper/modules/OrderCoinDealMapper.xml | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/modules/OrderCoinDealMapper.xml b/src/main/resources/mapper/modules/OrderCoinDealMapper.xml index 98982d7..f0a4cd8 100644 --- a/src/main/resources/mapper/modules/OrderCoinDealMapper.xml +++ b/src/main/resources/mapper/modules/OrderCoinDealMapper.xml @@ -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