diff --git a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamCreateCmd.java b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamCreateCmd.java index 1ed9d6e3..fbe5276e 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamCreateCmd.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamCreateCmd.java @@ -49,6 +49,11 @@ public class TeamCreateCmd extends CommonCommand { */ private TeamSetting setting; + /** + * 允许提现开关. + */ + private Boolean withdrawalEnabled; + /** * 国家. */ diff --git a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamProfileCmd.java b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamProfileCmd.java index b4d83f9d..b2f90d3c 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamProfileCmd.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamProfileCmd.java @@ -66,6 +66,11 @@ public class TeamProfileCmd extends CommonCommand { */ private TeamSetting setting; + /** + * 允许提现开关. + */ + private Boolean withdrawalEnabled; + /** * 国家. */ diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/BdInviteMessageProcessExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/BdInviteMessageProcessExe.java index d662766a..9d166119 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/BdInviteMessageProcessExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/BdInviteMessageProcessExe.java @@ -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) diff --git a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/team/impl/TeamProfileClientServiceImpl.java b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/team/impl/TeamProfileClientServiceImpl.java index 2f22df93..69a25d75 100644 --- a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/team/impl/TeamProfileClientServiceImpl.java +++ b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/service/team/impl/TeamProfileClientServiceImpl.java @@ -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())