家族列表新增等级字段
This commit is contained in:
parent
e9aef603ba
commit
a07b45a017
@ -15,6 +15,7 @@ import com.red.circle.other.infra.database.rds.service.family.FamilyMemberInfoSe
|
||||
import com.red.circle.tool.core.collection.CollectionUtils;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
import java.util.Set;
|
||||
import java.util.stream.Collectors;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
@ -73,7 +74,10 @@ public class FamilyListExe {
|
||||
.setFamilyIntro(family.getFamilyIntro())
|
||||
.setFamilyNotice(family.getFamilyNotice())
|
||||
.setCurrentMember(currentMember.intValue())
|
||||
.setMaxMember(levelConfig != null ? levelConfig.getMaxMember() : 0);
|
||||
.setFamilyLevel(Optional.ofNullable(levelConfig.getLevelKey())
|
||||
.map(key -> Integer.parseInt(key.substring(6)))
|
||||
.orElse(0))
|
||||
.setMaxMember(levelConfig.getMaxMember());
|
||||
}).toList();
|
||||
|
||||
pageResult.setRecords(records);
|
||||
|
||||
@ -43,6 +43,11 @@ public class FamilyListCO {
|
||||
*/
|
||||
private String familyNotice;
|
||||
|
||||
/**
|
||||
* d
|
||||
*/
|
||||
private Integer familyLevel;
|
||||
|
||||
/**
|
||||
* 家族当前成员数.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user