diff --git a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamUpdateCmd.java b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamUpdateCmd.java index ff1bff5d..cf8bdaf4 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamUpdateCmd.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/cmd/team/TeamUpdateCmd.java @@ -56,4 +56,9 @@ public class TeamUpdateCmd extends CommonCommand { */ private Long updateUser; + /** + * 允许提现开关. + */ + private Boolean withdrawalEnabled; + } diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/entity/team/team/TeamProfile.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/entity/team/team/TeamProfile.java index a0f3b61a..b3aecb32 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/entity/team/team/TeamProfile.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/entity/team/team/TeamProfile.java @@ -78,6 +78,12 @@ public class TeamProfile implements Serializable { */ private TeamCounter counter; + + /** + * 允许提现开关. + */ + private Boolean withdrawalEnabled; + /** * 联系方式. */ diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/team/team/impl/TeamProfileServiceImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/team/team/impl/TeamProfileServiceImpl.java index 9f0de909..eb873dce 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/team/team/impl/TeamProfileServiceImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/team/team/impl/TeamProfileServiceImpl.java @@ -78,6 +78,10 @@ public class TeamProfileServiceImpl implements TeamProfileService { update.set("status", teamProfile.getStatus()); } + if (Objects.nonNull(teamProfile.getWithdrawalEnabled())) { + update.set("withdrawalEnabled", teamProfile.getWithdrawalEnabled()); + } + if (Objects.nonNull(teamProfile.getSetting())) { TeamSetting setting = teamProfile.getSetting(); if (Objects.nonNull(setting.getMaxMember())) {