aslan 新增代理默认开启提现

This commit is contained in:
tianfeng 2026-05-13 18:34:27 +08:00
parent 0cf49ca884
commit 8ba7d3aa62
4 changed files with 14 additions and 0 deletions

View File

@ -49,6 +49,11 @@ public class TeamCreateCmd extends CommonCommand {
*/
private TeamSetting setting;
/**
* 允许提现开关.
*/
private Boolean withdrawalEnabled;
/**
* 国家.
*/

View File

@ -66,6 +66,11 @@ public class TeamProfileCmd extends CommonCommand {
*/
private TeamSetting setting;
/**
* 允许提现开关.
*/
private Boolean withdrawalEnabled;
/**
* 国家.
*/

View File

@ -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)

View File

@ -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())