李昊 4 年之前
父節點
當前提交
30d4319961

+ 5 - 5
gx_api/GxPress/Api/GxPress.Api/AppControllers/AppMeetingController.cs

@@ -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;

+ 1 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/OftenContact/OftenContactService.Insert.cs

@@ -104,7 +104,7 @@ namespace GxPress.Service.Implement.OftenContact
                         var middle = new Entity.Middle.Middle();
                         middle.IsAdmin = true;
                         middle.MiddleId = oftenContactId;
-                        middle.FolderType = 10;
+                        middle.FolderType =  GxPress.EnumConst.AllTypeConst.Wechat.GetHashCode();
                         middle.IsDefault = false;
                         middle.IsDelete = false;
                         middle.IsRead = false;