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