From 289e6e4e11833c20c3578967670c9d7505f33a57 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 19 Mar 2026 16:44:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=A2=E9=98=9F=E8=B5=84?= =?UTF-8?q?=E6=96=99=E6=96=B0=E5=A2=9E=E5=85=81=E8=AE=B8=E4=BD=93=E7=8E=B0?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circle/other/inner/model/cmd/team/TeamUpdateCmd.java | 5 +++++ .../infra/database/mongo/entity/team/team/TeamProfile.java | 6 ++++++ .../service/team/team/impl/TeamProfileServiceImpl.java | 4 ++++ 3 files changed, 15 insertions(+) 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())) {