ow
This commit is contained in:
1 parent
996bb243df
commit
5f1062c010
15 files changed
+769
-104
No files matched your search
@@ -29,11 +29,11 @@ namespace CloudBuilder.AI.Service
|
||||
|
||||
|
||||
[PermissionOperate(name: AIPermissionPolicy.AiBook, operate: Operate.Find)]
|
||||
public AiSentenceViewEntity[] FindByChapterId(long chapterId)
|
||||
public AiSentenceViewEntity[] FindByChapterId(string bookId, long chapterId)
|
||||
{
|
||||
IRepository<AiSentenceViewEntity> repositoryAiSentenceViewEntity = repository.GetRepository<IRepository<AiSentenceViewEntity>>();
|
||||
|
||||
return repositoryAiSentenceViewEntity.DetachedEntities.Where(x => x.ChapterId == chapterId).OrderBy(x => x.ParagraphId).ThenBy(x=>x.SentenceIndex).ToArray();
|
||||
return repositoryAiSentenceViewEntity.DetachedEntities.Where(x => x.BookId == bookId && x.ChapterId == chapterId).OrderBy(x => x.ParagraphId).ThenBy(x => x.SentenceIndex).ToArray();
|
||||
}
|
||||
|
||||
[PermissionOperate(name: AIPermissionPolicy.AiBook, operate: Operate.Find)]
|
||||
|
||||
Reference in new issue
Block a user