|
@@ -57,8 +57,9 @@ public class StorePlatformDiscussionServiceImpl extends ServiceImpl<StorePlatfor
|
|
|
IPage<StorePlatformDiscussion> replyPage = this.page(page, new LambdaQueryWrapper<StorePlatformDiscussion>()
|
|
IPage<StorePlatformDiscussion> replyPage = this.page(page, new LambdaQueryWrapper<StorePlatformDiscussion>()
|
|
|
.eq(StorePlatformDiscussion::getRootId, rootId)
|
|
.eq(StorePlatformDiscussion::getRootId, rootId)
|
|
|
.ne(StorePlatformDiscussion::getId, rootId) // 排除主贴本身
|
|
.ne(StorePlatformDiscussion::getId, rootId) // 排除主贴本身
|
|
|
- .orderByAsc(StorePlatformDiscussion::getCreatedTime));
|
|
|
|
|
-
|
|
|
|
|
|
|
+ .orderByDesc(StorePlatformDiscussion::getCreatedTime));
|
|
|
|
|
+// .orderByAsc(StorePlatformDiscussion::getCreatedTime));
|
|
|
|
|
+
|
|
|
// 3. 转换为VO并补充用户信息
|
|
// 3. 转换为VO并补充用户信息
|
|
|
IPage<StorePlatformDiscussionUserVo> voPage = replyPage.convert(this::convertToVo);
|
|
IPage<StorePlatformDiscussionUserVo> voPage = replyPage.convert(this::convertToVo);
|
|
|
fillUserInfoBatch(voPage.getRecords());
|
|
fillUserInfoBatch(voPage.getRecords());
|