fix: checkstyle

This commit is contained in:
vran 2022-03-13 09:35:45 +08:00
parent e76ccd8268
commit 5cb679d161
3 changed files with 5 additions and 4 deletions

View File

@ -47,7 +47,6 @@ public interface DocumentResponseConverter {
.collect(Collectors.toList());
}
@Mapping(target = "columnNames", source = "columnNameArray")
DatabaseDocumentResponse.TableDocumentResponse.IndexDocumentResponse of(TableIndexDocumentPojo indexDocument);

View File

@ -233,9 +233,10 @@ public class DocumentService {
var subIndexes = indexesGroupByTableMetaId.getOrDefault(tableId, Collections.emptyList());
var subTriggers = triggersGroupByTableMetaId.getOrDefault(tableId, Collections.emptyList());
var discussionCount = discussionCountMapByJoinName.get(table.getName());
var columnResponseList =
var columnResponses =
documentResponseConverter.of(subColumns, table.getName(), discussionCountMapByJoinName);
return documentResponseConverter.of(table, discussionCount, columnResponseList, subIndexes, subTriggers);
return documentResponseConverter.of(table, discussionCount, columnResponses, subIndexes,
subTriggers);
})
.collect(Collectors.toList());
}

View File

@ -47,7 +47,8 @@ public class DocumentDiscussionService {
Pageable pageable,
DiscussionListCondition condition) {
if (projectDao.exists(groupId, projectId)) {
Page<DocumentDiscussionPojo> data = documentDiscussionDao.selectByPage(pageable, condition.toCondition(projectId));
Page<DocumentDiscussionPojo> data =
documentDiscussionDao.selectByPage(pageable, condition.toCondition(projectId));
Set<Integer> userIdList = data.getContent()
.stream()
.map(DocumentDiscussionPojo::getUserId)