From 9a968ba186af5280fcc29cc3eb04412eff204ba7 Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 27 May 2021 16:37:33 +0800 Subject: [PATCH] modify --- src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java b/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java index 50c36c2..a0fc791 100644 --- a/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java +++ b/src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java @@ -30,6 +30,7 @@ import com.xcong.excoin.modules.member.parameter.dto.*; import com.xcong.excoin.modules.member.parameter.vo.*; import com.xcong.excoin.modules.member.service.MemberService; +import com.xcong.excoin.modules.member.vo.DefaultWayVo; import com.xcong.excoin.modules.platform.dao.PlatformFeeSettingDao; import com.xcong.excoin.modules.platform.dao.PlatformSymbolsCoinDao; import com.xcong.excoin.modules.platform.entity.PlatformFeeSettingEntity; @@ -559,7 +560,7 @@ } String isDefault = "1"; - MemberPaymentMethodEntity defaultMethod = memberPaymentMethodDao.selectDefualtMethod(memberId, MemberPaymentMethodEntity.PAYMENTTYPE_CARD, ""); + MemberPaymentMethodEntity defaultMethod = memberPaymentMethodDao.selectDefualtMethod(memberId, null, "1"); if (defaultMethod != null) { isDefault = "2"; } @@ -902,6 +903,7 @@ Integer fingerprintState = member.getFingerprintState(); memberPersonCenterInfoVo.setFingerprintState(fingerprintState); + memberPersonCenterInfoVo.setIsMb(member.getIsTrader()); return Result.ok(memberPersonCenterInfoVo); } @@ -1276,6 +1278,20 @@ return Result.ok(memberMessageReminderVo); } + @Override + public Result findDefaultWay() { + //获取用户ID + Long memberId = LoginUserUtils.getAppLoginUser().getId(); +// Long memberId = 446L; + + DefaultWayVo defaultWayVo = new DefaultWayVo(); + MemberPaymentMethodEntity defualtMethod = this.memberPaymentMethodDao.selectDefualtMethod(memberId, null, "1"); + if(ObjectUtil.isNotEmpty(defualtMethod)){ + String paymentType = defualtMethod.getPaymentType(); + defaultWayVo.setPaymentType(paymentType); + } + return Result.ok(defaultWayVo); + } } -- Gitblit v1.9.1