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/MemberMapper.xml | 47 +++++++++++++++++++++--------------------------
1 files changed, 21 insertions(+), 26 deletions(-)
diff --git a/src/main/resources/mapper/modules/MemberMapper.xml b/src/main/resources/mapper/modules/MemberMapper.xml
index 9ee4ce5..753b6b1 100644
--- a/src/main/resources/mapper/modules/MemberMapper.xml
+++ b/src/main/resources/mapper/modules/MemberMapper.xml
@@ -79,7 +79,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
@@ -97,7 +97,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
@@ -116,7 +116,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
@@ -134,7 +134,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
@@ -153,7 +153,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
@@ -171,7 +171,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
@@ -189,35 +189,26 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
<select id="selectRewardratioForBasicRealData" resultType="java.lang.String">
SELECT
- IFNULL(SUM(a.reward_amount),'0')
+ IFNULL(SUM(a.reward_amount), '0')
FROM
contract_order a
WHERE
a.closing_type IN (4, 5, 6, 7, 8, 9)
- and a.order_status = '1'
+ AND a.order_status = '1'
AND a.member_id NOT IN (
SELECT
id
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
- AND a.member_id NOT IN (
- SELECT
- id
- FROM
- member
- WHERE
- account_type = '1'
- AND account_status = '1'
- )
)
</select>
<select id="selectSFCCForBasicRealData" resultType="java.lang.String">
@@ -237,7 +228,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
GROUP BY
@@ -258,7 +249,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
@@ -276,7 +267,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
@@ -292,7 +283,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
@@ -309,7 +300,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
@@ -325,7 +316,7 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
@@ -341,9 +332,13 @@
FROM
member
WHERE
- account_type = '1'
+ account_type = '2'
AND account_status = '1'
)
</select>
+ <select id="selectMemberBylowLevelInviteId" resultType="java.lang.String">
+ select id from member where FIND_IN_SET(#{inviteId},referer_ids)
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1