家族列表新增等级字段
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 com.red.circle.tool.core.collection.CollectionUtils;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Optional;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
@ -73,7 +74,10 @@ public class FamilyListExe {
|
|||||||
.setFamilyIntro(family.getFamilyIntro())
|
.setFamilyIntro(family.getFamilyIntro())
|
||||||
.setFamilyNotice(family.getFamilyNotice())
|
.setFamilyNotice(family.getFamilyNotice())
|
||||||
.setCurrentMember(currentMember.intValue())
|
.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();
|
}).toList();
|
||||||
|
|
||||||
pageResult.setRecords(records);
|
pageResult.setRecords(records);
|
||||||
|
|||||||
@ -43,6 +43,11 @@ public class FamilyListCO {
|
|||||||
*/
|
*/
|
||||||
private String familyNotice;
|
private String familyNotice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* d
|
||||||
|
*/
|
||||||
|
private Integer familyLevel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 家族当前成员数.
|
* 家族当前成员数.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user