修改团队资料新增允许体现开关字段

This commit is contained in:
tianfeng 2026-03-19 16:44:54 +08:00
parent 3f9cbf9b9e
commit 289e6e4e11
3 changed files with 15 additions and 0 deletions

View File

@ -56,4 +56,9 @@ public class TeamUpdateCmd extends CommonCommand {
*/
private Long updateUser;
/**
* 允许提现开关.
*/
private Boolean withdrawalEnabled;
}

View File

@ -78,6 +78,12 @@ public class TeamProfile implements Serializable {
*/
private TeamCounter counter;
/**
* 允许提现开关.
*/
private Boolean withdrawalEnabled;
/**
* 联系方式.
*/

View File

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