转账,自己搜不到自己
This commit is contained in:
parent
fa93075a8c
commit
5328936e27
@ -10,6 +10,7 @@ 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 com.red.circle.wallet.inner.model.enums.UserBankWaterEvent;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@ -43,6 +44,12 @@ public class UserBankSearchUserProfileQryExe {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (UserBankWaterEvent.TRANSFER.name().equals(cmd.getSearchType())) {
|
||||
if (Objects.equals(cmd.getReqUserId(), userProfile.getId())) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
if (cmd.typeEqBD()) {
|
||||
return
|
||||
Objects.equals(ResponseAssert.requiredSuccess(bdTeamClient.check(userProfile.getId())),
|
||||
|
||||
@ -25,6 +25,11 @@ public class UserBankSearchUserProfileCmd extends AppExtCommand {
|
||||
@NotBlank(message = "account required.")
|
||||
private String account;
|
||||
|
||||
/**
|
||||
* 搜索类型
|
||||
*/
|
||||
private String searchType;
|
||||
|
||||
public boolean typeEqBD() {
|
||||
return Objects.equals("BD", type);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user