|
@@ -64,7 +64,7 @@ public class ReportCommentServiceImpl implements ReportCommentService {
|
|
|
@Override
|
|
|
public List<ReportCommentRespVO> getReportCommentList(Long reportId) {
|
|
|
List<ReportCommentRespVO> reportCommentList = ReportCommentConvert.INSTANCE.convertList(reportCommentMapper.selectList(new LambdaQueryWrapperX<ReportCommentDO>()
|
|
|
- .eqIfPresent(ReportCommentDO::getReportId, reportId)));
|
|
|
+ .eqIfPresent(ReportCommentDO::getReportId, reportId).orderByAsc(ReportCommentDO::getCommentDate)));
|
|
|
Map<String, AdminUserRespDTO> userMap = adminUserApi.getUserMap();
|
|
|
reportCommentList.forEach(comment->{
|
|
|
comment.setCommentUserName(userMap.get(comment.getCommentUserId()).getNickname());
|