|
@@ -42,6 +42,7 @@ namespace GxPress.Service.Implement.Collection
|
|
|
private readonly IMissiveRepository _missiveRepository;
|
|
|
private readonly IGroupRepository _groupRepository;
|
|
|
private readonly IMeetingSummaryRepository _meetingSummaryRepository;
|
|
|
+ private readonly IMeetingRepository meetingRepository;
|
|
|
private readonly IMapper _mapper;
|
|
|
private readonly IFolderUserRepository _folderUserRepository;
|
|
|
private readonly IAnalyzeService _analyzeService;
|
|
@@ -52,7 +53,7 @@ namespace GxPress.Service.Implement.Collection
|
|
|
IArticleRepository articleRepository, ITopicRepository topicRepository, IMiddleRepository middleRepository,
|
|
|
INoteRepository noteRepository, IUserRepository userRepository, IArticleService articleService, INoticeRepository noticeRepository,
|
|
|
IMissiveRepository missiveRepository, IMapper mapper,
|
|
|
- IGroupRepository groupRepository, IMeetingSummaryRepository meetingSummaryRepository, IFolderUserRepository folderUserRepository, IAnalyzeService analyzeService, IFileLibraryRepository fileLibraryRepository, IUserMiddleService userMiddleService, IMediaRepository mediaRepository)
|
|
|
+ IGroupRepository groupRepository, IMeetingSummaryRepository meetingSummaryRepository, IFolderUserRepository folderUserRepository, IAnalyzeService analyzeService, IFileLibraryRepository fileLibraryRepository, IUserMiddleService userMiddleService, IMediaRepository mediaRepository, IMeetingRepository meetingRepository)
|
|
|
{
|
|
|
_collectionRepository = collectionRepository;
|
|
|
_middleService = middleService;
|
|
@@ -72,6 +73,7 @@ namespace GxPress.Service.Implement.Collection
|
|
|
this.fileLibraryRepository = fileLibraryRepository;
|
|
|
_userMiddleService = userMiddleService;
|
|
|
this.mediaRepository = mediaRepository;
|
|
|
+ this.meetingRepository = meetingRepository;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -186,10 +188,10 @@ namespace GxPress.Service.Implement.Collection
|
|
|
//收藏会议
|
|
|
if (request.CollectionType == AllTypeConst.Meeting.GetHashCode())
|
|
|
{
|
|
|
- var meetingSummary = await _meetingSummaryRepository.GetAsync(Q.Where(nameof(MeetingSummary.MeetingId), request.CollectionDataId));
|
|
|
- if (meetingSummary == null)
|
|
|
+ var meeting = await meetingRepository.GetAsync(request.CollectionDataId);
|
|
|
+ if (meeting == null)
|
|
|
throw new BusinessException("会议无效");
|
|
|
- collection.Title = meetingSummary.Title;
|
|
|
+ collection.Title = meeting.Name;
|
|
|
//收藏会议
|
|
|
analyzeRequest.TypeValue = request.CollectionType;
|
|
|
await _analyzeService.SetAnalyzeAsync(analyzeRequest);
|
|
@@ -208,7 +210,7 @@ namespace GxPress.Service.Implement.Collection
|
|
|
{
|
|
|
var meetingSummary = await _meetingSummaryRepository.GetAsync(Q.Where(nameof(MeetingSummary.Id), request.CollectionDataId));
|
|
|
if (meetingSummary == null)
|
|
|
- throw new BusinessException("会议无效");
|
|
|
+ throw new BusinessException("会议纪要无效");
|
|
|
collection.Title = meetingSummary.Title;
|
|
|
//会议纪要
|
|
|
analyzeRequest.TypeValue = request.CollectionType;
|