From 05f2a9990e7e15f8c44c838a47bf5e7ce69f32d2 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Sun, 9 Nov 2025 16:37:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=94=A8=E6=88=B7=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E9=87=91=E5=B8=81=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bank/query/UserBankSearchUserProfileQryExe.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rc-service/rc-service-wallet/wallet-application/src/main/java/com/red/circle/wallet/app/command/bank/query/UserBankSearchUserProfileQryExe.java b/rc-service/rc-service-wallet/wallet-application/src/main/java/com/red/circle/wallet/app/command/bank/query/UserBankSearchUserProfileQryExe.java index 3577f950..0c5c1a40 100644 --- a/rc-service/rc-service-wallet/wallet-application/src/main/java/com/red/circle/wallet/app/command/bank/query/UserBankSearchUserProfileQryExe.java +++ b/rc-service/rc-service-wallet/wallet-application/src/main/java/com/red/circle/wallet/app/command/bank/query/UserBankSearchUserProfileQryExe.java @@ -8,6 +8,8 @@ import com.red.circle.other.inner.model.dto.user.UserProfileDTO; import com.red.circle.other.inner.endpoint.user.user.UserProfileClient; import com.red.circle.wallet.app.dto.cmd.UserBankSearchUserProfileCmd; import java.util.Objects; + +import com.red.circle.wallet.infra.database.rds.service.freight.FreightBalanceService; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Component; @@ -24,6 +26,7 @@ public class UserBankSearchUserProfileQryExe { private final AgentTeamClient agentTeamClient; private final UserProfileClient userProfileClient; private final UserRegionClient userRegionClient; + private final FreightBalanceService freightBalanceService; public UserProfileDTO execute(UserBankSearchUserProfileCmd cmd) { @@ -57,6 +60,11 @@ public class UserBankSearchUserProfileQryExe { } if (cmd.typeEqAgent()) { + Boolean freightAgent = freightBalanceService.checkFreightAgent(userProfile.getId()); + if (freightAgent) { + return userProfile; + } + return Objects.equals( ResponseAssert.requiredSuccess(agentTeamClient.existsTeamOwn(userProfile.getId())), Boolean.TRUE)