李昊 4 年之前
父节点
当前提交
8697cbb215

+ 1 - 1
gx_api/GxPress/Model/GxPress.Entity/Notice.cs

@@ -45,7 +45,7 @@ namespace GxPress.Entity
         [DataColumn]
         public NoticeTypeConst NoticeType { get; set; }
         /// <summary>
-        ///  5 通知 6站内信 15 我审批的 16 我发出的 17 抄送我的
+        ///  5 通知 6站内信 15 我审批的 16 我发出的 17 抄送我的 
         /// </summary>
         /// <value></value>
         [DataColumn]

+ 12 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/Missive/MissiveService.cs

@@ -414,7 +414,18 @@ namespace GxPress.Service.Implement.Missive
                 throw new Common.Exceptions.BusinessException("站内信已删除");
                 //return missiveInfoResults;
             }
-            var missiveInfoResult = _mapper.Map<MissiveInfo>(missive);
+            var missiveInfoResult = new MissiveInfo
+            {
+                Id = missive.Id,
+                Title = missive.Title,
+                HtmlContent = missive.HtmlContent,
+                Content = missive.Content,
+                UserId = missive.UserId,
+                UserName = missive.UserName,
+                ParentId = missive.ParentId,
+                MissiveType = missive.TypeValue == 18 ? 2 : 1,
+                MissiveSendType = missive.NoticeType.GetHashCode()
+            };
             //是否可撤回
             if (missive.UserId == userId)
             {