transfer搜索问题处理

This commit is contained in:
tianfeng 2025-11-19 11:46:23 +08:00
parent 7b690aa65f
commit 11c7269ee0

View File

@ -44,7 +44,7 @@ public class UserBankSearchUserProfileQryExe {
return null;
}
if (UserBankWaterEvent.TRANSFER.name().equals(cmd.getSearchType())) {
if (isTransfer(cmd)) {
if (Objects.equals(cmd.getReqUserId(), userProfile.getId())) {
return null;
}
@ -71,6 +71,9 @@ public class UserBankSearchUserProfileQryExe {
if (freightAgent) {
return userProfile;
}
if (isTransfer(cmd)) {
return null;
}
return Objects.equals(
ResponseAssert.requiredSuccess(agentTeamClient.existsTeamOwn(userProfile.getId())),
@ -82,4 +85,8 @@ public class UserBankSearchUserProfileQryExe {
return null;
}
private static boolean isTransfer(UserBankSearchUserProfileCmd cmd) {
return UserBankWaterEvent.TRANSFER.name().equals(cmd.getSearchType());
}
}