feat(community): 增加社区详情信息字段并优化我的社区查询逻辑
parent
89b2c58938
commit
80fcfd12ea
|
@ -41,6 +41,12 @@ public class CommunityDetailVo {
|
||||||
@ApiModelProperty(value = "社区名称")
|
@ApiModelProperty(value = "社区名称")
|
||||||
private String communityName;
|
private String communityName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 社区标签
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "社区标签")
|
||||||
|
private Integer communityTag;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 价格
|
* 价格
|
||||||
*/
|
*/
|
||||||
|
@ -53,6 +59,18 @@ public class CommunityDetailVo {
|
||||||
@ApiModelProperty(value = "描述")
|
@ApiModelProperty(value = "描述")
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 社区类型
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "社区类型")
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 有效期天数
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "有效期天数")
|
||||||
|
private Integer validityDay;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 创建天数
|
* 创建天数
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -299,7 +299,7 @@ public class CommunityServiceImpl extends ServiceImpl<CommunityMapper, Community
|
||||||
|
|
||||||
List<Community> myJoinCommunityList = baseMapper.getMyJoinCommunity(new Page<>(1, 100),
|
List<Community> myJoinCommunityList = baseMapper.getMyJoinCommunity(new Page<>(1, 100),
|
||||||
SecurityUtils.getUserId(),
|
SecurityUtils.getUserId(),
|
||||||
new JoinCommunityListPageRes());
|
JoinCommunityListPageRes.builder().isMyCreate(1).build());
|
||||||
|
|
||||||
Map<Long, Community> myJoinCommunityMap = myJoinCommunityList.stream()
|
Map<Long, Community> myJoinCommunityMap = myJoinCommunityList.stream()
|
||||||
.collect(Collectors.toMap(Community::getId, Function.identity()));
|
.collect(Collectors.toMap(Community::getId, Function.identity()));
|
||||||
|
|
Loading…
Reference in New Issue