|
@@ -278,7 +278,7 @@ namespace GxPress.Api.AppControllers
|
|
|
foreach (var item in request.AddresseeUserMiddles)
|
|
|
{
|
|
|
item.DataSourceId = summary.Id;
|
|
|
- item.MiddleType = 400;
|
|
|
+ item.MiddleType = GxPress.EnumConst.AllTypeConst.MeetingSummary.GetHashCode();
|
|
|
}
|
|
|
await _userMiddleService.AddUserMiddleAsync(request.AddresseeUserMiddles);
|
|
|
//获取用户
|
|
@@ -383,11 +383,11 @@ namespace GxPress.Api.AppControllers
|
|
|
//获取新版
|
|
|
if (request.AddresseeUserMiddles.Count > 0)
|
|
|
{
|
|
|
- await _userMiddleService.DeleteAsync(Q.Where(nameof(Entity.UserMiddle.UserMiddle.MiddleType), 400).Where(nameof(Entity.UserMiddle.UserMiddle.DataSourceId), id));
|
|
|
+ await _userMiddleService.DeleteAsync(Q.Where(nameof(Entity.UserMiddle.UserMiddle.MiddleType), GxPress.EnumConst.AllTypeConst.MeetingSummary.GetHashCode()).Where(nameof(Entity.UserMiddle.UserMiddle.DataSourceId), id));
|
|
|
foreach (var item in request.AddresseeUserMiddles)
|
|
|
{
|
|
|
item.DataSourceId = id;
|
|
|
- item.MiddleType = 400;
|
|
|
+ item.MiddleType = GxPress.EnumConst.AllTypeConst.MeetingSummary.GetHashCode();
|
|
|
}
|
|
|
await _userMiddleService.AddUserMiddleAsync(request.AddresseeUserMiddles);
|
|
|
var users = await _userMiddleService.FindUsersAsync(request.AddresseeUserMiddles, summary.UserId);
|
|
@@ -432,7 +432,7 @@ namespace GxPress.Api.AppControllers
|
|
|
var meeting = await _meetingRepository.GetAsync(summary.MeetingId);
|
|
|
var address = await _meetingLocationRepository.GetAddress(meeting.LocationId);
|
|
|
//获取新版
|
|
|
- var addresseeUserMiddles = await _userMiddleService.FindUserMiddlesAsync(400, id);
|
|
|
+ var addresseeUserMiddles = await _userMiddleService.FindUserMiddlesAsync( GxPress.EnumConst.AllTypeConst.MeetingSummary.GetHashCode(), id);
|
|
|
var meetingSummaryResult = new MeetingSummaryResult
|
|
|
{
|
|
|
Id = summary.Id,
|
|
@@ -450,7 +450,7 @@ namespace GxPress.Api.AppControllers
|
|
|
//是否是自己创建
|
|
|
meetingSummaryResult.IsAdmin = _loginContext.AccountId == summary.UserId;
|
|
|
var analyzeRequest = new Request.App.Analyze.AnalyzeRequest();
|
|
|
- analyzeRequest.TypeValue = 10;
|
|
|
+ analyzeRequest.TypeValue = GxPress.EnumConst.AllTypeConst.MeetingSummary.GetHashCode();
|
|
|
analyzeRequest.AnalyzeType = 1;
|
|
|
analyzeRequest.SourceId = meetingSummaryResult.Id;
|
|
|
analyzeRequest.UserId = _loginContext.AccountId;
|