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()); .collect(Collectors.toList());
} }
@Mapping(target = "columnNames", source = "columnNameArray") @Mapping(target = "columnNames", source = "columnNameArray")
DatabaseDocumentResponse.TableDocumentResponse.IndexDocumentResponse of(TableIndexDocumentPojo indexDocument); DatabaseDocumentResponse.TableDocumentResponse.IndexDocumentResponse of(TableIndexDocumentPojo indexDocument);

View File

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

View File

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