fix: duplicate search result

This commit is contained in:
vran
2022-05-29 21:37:17 +08:00
parent 9ab15514b5
commit d9a9f359cd
2 changed files with 4 additions and 3 deletions

View File

@@ -160,8 +160,9 @@ public class DocumentFullTextDao extends BaseDao<DocumentFullTextPojo> {
return new PageImpl<>(content, pageable, total.longValue());
}
public int deleteByTableId(Integer tableDocumentId) {
return this.delete(DOCUMENT_FULL_TEXT.TABLE_DOCUMENT_ID.eq(tableDocumentId));
public int deleteTableFullText(Integer projectId) {
return this.delete(DOCUMENT_FULL_TEXT.PROJECT_ID.eq(projectId)
.and(DOCUMENT_FULL_TEXT.TABLE_DOCUMENT_ID.isNotNull()));
}
public int deleteByGroupId(Integer groupId) {