From db93e8671fe9192dcd3ec5b364b65c672073b56e Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 04 Jun 2021 11:39:19 +0800 Subject: [PATCH] 20210604 --- src/main/resources/mapper/modules/AgentReturnMapper.xml | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/modules/AgentReturnMapper.xml b/src/main/resources/mapper/modules/AgentReturnMapper.xml index ef3bc1e..93df975 100644 --- a/src/main/resources/mapper/modules/AgentReturnMapper.xml +++ b/src/main/resources/mapper/modules/AgentReturnMapper.xml @@ -36,5 +36,16 @@ a.referer_id = 8 and FIND_IN_SET('22015141', m.referer_ids) </select> + <select id="selectYJTestByMemberId" resultType="java.lang.String"> + SELECT + IFNULL(SUM(return_amount), '0') AS amount + FROM + agent_return a + LEFT JOIN member m on m.id = a.member_id + WHERE + a.referer_id = 8 + and + (a.member_id not in (select id from member where FIND_IN_SET('22015141', referer_ids)) and m.id != 10) + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1