From 8e6b7e219dd6bc39b9707daa5025473a5cf32c90 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 13 Jul 2020 10:54:49 +0800
Subject: [PATCH] modify
---
src/main/resources/mapper/modules/ContractOrderMapper.xml | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/modules/ContractOrderMapper.xml b/src/main/resources/mapper/modules/ContractOrderMapper.xml
index 065c5bc..8b242e6 100644
--- a/src/main/resources/mapper/modules/ContractOrderMapper.xml
+++ b/src/main/resources/mapper/modules/ContractOrderMapper.xml
@@ -9,11 +9,22 @@
contract_order s
LEFT JOIN member m ON m.id = s.member_id
<where>
- order_type in (3,4)
+ s.order_type IN (3, 4)
+ AND s.member_id IN (
+ SELECT
+ id
+ FROM
+ member
+ WHERE
+ account_type = '1'
+ )
<if test="record != null" >
<if test="record.account!=null and record.account!=''">
and (m.phone = #{record.account} or m.email = #{record.account} or m.invite_id=#{record.account})
</if>
+ <if test="record.closingType!=null and record.closingType!=''">
+ and s.closing_type = #{record.closingType}
+ </if>
</if>
</where>
order by s.order_no DESC,s.create_time asc
--
Gitblit v1.9.1