From 613362efb471ac5ec435f1ede87481d53a16be56 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Tue, 22 Nov 2022 23:59:32 +0800
Subject: [PATCH] 20221117
---
src/main/resources/mapper/dapp/DappMemberDao.xml | 4 ++--
src/main/resources/application-prod.yml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml
index 9de4699..700b3a8 100644
--- a/src/main/resources/application-prod.yml
+++ b/src/main/resources/application-prod.yml
@@ -2,7 +2,7 @@
datasource:
dynamic:
# 是否开启 SQL日志输出,生产环境建议关闭,有性能损耗
- p6spy: true
+ p6spy: false
hikari:
connection-timeout: 30000
max-lifetime: 1800000
diff --git a/src/main/resources/mapper/dapp/DappMemberDao.xml b/src/main/resources/mapper/dapp/DappMemberDao.xml
index 973ef8c..9cbf160 100644
--- a/src/main/resources/mapper/dapp/DappMemberDao.xml
+++ b/src/main/resources/mapper/dapp/DappMemberDao.xml
@@ -23,12 +23,12 @@
from dapp_member a
left join dapp_wallet_coin b on a.id = b.member_id
left join dapp_member c on a.referer_id = c.invite_id
- left join member_coin_address d on d.member_id = a.id
+ left join member_coin_address d on d.member_id = a.id and d.is_biyict = 1 and d.tag = 'TRC20'
<where>
<!-- <if test="record.currentUser != null">-->
<!-- and referer_id = (select invite_id from dapp_user_member_relate where user_id=#{record.currentUser})-->
<!-- </if>-->
- and d.is_biyict = 1 and d.tag = 'TRC20'
+
<if test="record.description!=null and record.description!=''">
and a.id in (select id from dapp_member where FIND_IN_SET(#{record.description}, referer_ids))
</if>
--
Gitblit v1.9.1