fix: checkstyle
This commit is contained in:
parent
e76ccd8268
commit
5cb679d161
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue