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