aslan 新增代理默认开启提现
This commit is contained in:
parent
0cf49ca884
commit
8ba7d3aa62
@ -49,6 +49,11 @@ public class TeamCreateCmd extends CommonCommand {
|
||||
*/
|
||||
private TeamSetting setting;
|
||||
|
||||
/**
|
||||
* 允许提现开关.
|
||||
*/
|
||||
private Boolean withdrawalEnabled;
|
||||
|
||||
/**
|
||||
* 国家.
|
||||
*/
|
||||
|
||||
@ -66,6 +66,11 @@ public class TeamProfileCmd extends CommonCommand {
|
||||
*/
|
||||
private TeamSetting setting;
|
||||
|
||||
/**
|
||||
* 允许提现开关.
|
||||
*/
|
||||
private Boolean withdrawalEnabled;
|
||||
|
||||
/**
|
||||
* 国家.
|
||||
*/
|
||||
|
||||
@ -164,6 +164,8 @@ public class BdInviteMessageProcessExe {
|
||||
.setSysOrigin(cmd.requireReqSysOrigin())
|
||||
.setOwnUserId(userProfile.getId())
|
||||
.setRemarks(CollectionUtils.newArrayList())
|
||||
//默认开启提现
|
||||
.setWithdrawalEnabled(true)
|
||||
.setStatus(TeamStatus.AVAILABLE)
|
||||
.setSetting(new TeamSetting()
|
||||
.setMaxMember(1000)
|
||||
|
||||
@ -190,6 +190,7 @@ public class TeamProfileClientServiceImpl implements TeamProfileClientService {
|
||||
|
||||
@Override
|
||||
public void create(TeamProfileCmd cmd) {
|
||||
cmd.setWithdrawalEnabled(Objects.isNull(cmd.getWithdrawalEnabled()) || cmd.getWithdrawalEnabled());
|
||||
teamProfileService.create(teamInfraConvertor.toTeamProfile(cmd));
|
||||
}
|
||||
|
||||
@ -243,6 +244,7 @@ public class TeamProfileClientServiceImpl implements TeamProfileClientService {
|
||||
);
|
||||
teamProfile.setRemarks(Lists.newArrayList());
|
||||
teamProfile.setSetting(cmd.getSetting());
|
||||
teamProfile.setWithdrawalEnabled(Objects.isNull(cmd.getWithdrawalEnabled()) || cmd.getWithdrawalEnabled());
|
||||
teamProfile.setCountry(
|
||||
new TeamCountry()
|
||||
.setCountryId(userProfile.getCountryId())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user