From eda98a749ecc0a0385e158bc9d9ac1f3f98280bf Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Sun, 12 Jul 2020 17:03:37 +0800 Subject: [PATCH] 20200712 代码提交 --- 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