Commit ffa63124 authored by 刘基明's avatar 刘基明

Merge branch 'v2.3.1' into 'dev'

讨论区置顶

See merge request !66
parents 1871e243 e054820f
...@@ -45,6 +45,9 @@ public class ThemeQo implements Serializable { ...@@ -45,6 +45,9 @@ public class ThemeQo implements Serializable {
@ApiModelProperty(value = "话题名称") @ApiModelProperty(value = "话题名称")
public String topicTitle; public String topicTitle;
@ApiModelProperty(value = "话题是否需要权限")
public Integer topicSpecialPermission;
@ApiModelProperty(value = "昵称") @ApiModelProperty(value = "昵称")
public String nickName; public String nickName;
......
...@@ -105,7 +105,7 @@ public class BatchFeignCallService { ...@@ -105,7 +105,7 @@ public class BatchFeignCallService {
// 图片信息 // 图片信息
Map<String, FileRecordEntity> imgMap = Maps.newHashMap(); Map<String, FileRecordEntity> imgMap = Maps.newHashMap();
// 话题标题 // 话题标题
Map<String, String> topicMap = Maps.newHashMap(); Map<String, TopicEntity> topicMap = Maps.newHashMap();
// 图片信息 // 图片信息
Map<String, UserInfoResp> userMap = Maps.newHashMap(); Map<String, UserInfoResp> userMap = Maps.newHashMap();
// 批量查询资源信息,将不同类型的id抽取,并通过ids查询并存放到id-对象Map中 // 批量查询资源信息,将不同类型的id抽取,并通过ids查询并存放到id-对象Map中
...@@ -131,7 +131,7 @@ public class BatchFeignCallService { ...@@ -131,7 +131,7 @@ public class BatchFeignCallService {
Map<String, ZhiboListResp> zhiboMap, Map<String, ZhiboListResp> zhiboMap,
Map<String, FundInfoBaseResp> fundMap, Map<String, FundInfoBaseResp> fundMap,
Map<String, OfflineActivitySimpleResp> activityMap, Map<String, FileRecordEntity> imgMap, Map<String, OfflineActivitySimpleResp> activityMap, Map<String, FileRecordEntity> imgMap,
Map<String, String> topicMap, Map<String, TopicEntity> topicMap,
Map<String, UserInfoResp> userMap, Map<String, UserInfoResp> userMap,
List<ThemeQo> themeQos List<ThemeQo> themeQos
) { ) {
...@@ -249,7 +249,7 @@ public class BatchFeignCallService { ...@@ -249,7 +249,7 @@ public class BatchFeignCallService {
topicService.queryByIds(setToList(topicIds)); topicService.queryByIds(setToList(topicIds));
if (!CollectionUtils.isEmpty(topicEntities)) { if (!CollectionUtils.isEmpty(topicEntities)) {
topicMap.putAll(topicEntities.stream().collect(Collectors topicMap.putAll(topicEntities.stream().collect(Collectors
.toMap(TopicEntity::getTopicId, TopicEntity::getTopicTitle))); .toMap(TopicEntity::getTopicId, o->o)));
} }
} }
if (!CollectionUtils.isEmpty(userIds)) { if (!CollectionUtils.isEmpty(userIds)) {
...@@ -376,11 +376,13 @@ public class BatchFeignCallService { ...@@ -376,11 +376,13 @@ public class BatchFeignCallService {
Map<String, FundInfoBaseResp> fundMap, Map<String, FundInfoBaseResp> fundMap,
Map<String, OfflineActivitySimpleResp> activityMap, Map<String, FileRecordEntity> imgUrlMap, Map<String, OfflineActivitySimpleResp> activityMap, Map<String, FileRecordEntity> imgUrlMap,
Map<String, UserInfoResp> userMap, Map<String, UserInfoResp> userMap,
Map<String, String> topicMap) { Map<String, TopicEntity> topicMap) {
for (ThemeQo themeQo : themeQos) { for (ThemeQo themeQo : themeQos) {
if (!StringUtils.isEmpty(themeQo.getTopicId()) && topicMap.containsKey(themeQo.getTopicId())) { if (!StringUtils.isEmpty(themeQo.getTopicId()) && topicMap.containsKey(themeQo.getTopicId())) {
//话题标题 //话题标题
themeQo.setTopicTitle(topicMap.get(themeQo.getTopicId())); TopicEntity topicEntity = topicMap.get(themeQo.getTopicId());
themeQo.setTopicTitle(topicEntity.getTopicTitle());
themeQo.setTopicSpecialPermission(topicEntity.getSpecialPermission());
} }
if (!StringUtils.isEmpty(themeQo.getAuthorId()) && userMap.containsKey(themeQo.getAuthorId())) { if (!StringUtils.isEmpty(themeQo.getAuthorId()) && userMap.containsKey(themeQo.getAuthorId())) {
//用户信息 //用户信息
......
...@@ -78,7 +78,8 @@ ...@@ -78,7 +78,8 @@
and topic_id="") or topic_id in and topic_id="") or topic_id in
<foreach item="item" index="index" collection="topicIdCollection" <foreach item="item" index="index" collection="topicIdCollection"
open="(" separator="," close=")"> open="(" separator="," close=")">
#{item}) limit #{pageStart}, #{pageSize} #{item}
</foreach> </foreach>
) limit #{pageStart}, #{pageSize}
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment