lihao 4 rokov pred
rodič
commit
1ad8a7ff0c

+ 1 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/NoticeRepository.cs

@@ -369,7 +369,7 @@ namespace GxPress.Repository.Implement
                     sb += " AND a.ParentId = " + request.NoticeFolderId;
             }
             var noticeTypeValue = GxPress.EnumConst.AllTypeConst.Inbox.GetHashCode();
-            var sql = $@"SELECT a.*,(SELECT GROUP_CONCAT(SourceName Separator'、') from tede_user_middle where MiddleType=10 and DataSourceId=a.MiddleId) as EnjoyUser,(SELECT 
+            var sql = $@"SELECT a.*,(select count(1) from tede_flow where id=b.SourceId and UserId={request.UserId}) as IsAdmin,(SELECT GROUP_CONCAT(SourceName Separator'、') from tede_user_middle where MiddleType=10 and DataSourceId=a.MiddleId) as EnjoyUser,(SELECT 
                                                         GROUP_CONCAT(Name
                                                                 SEPARATOR '、')
                                                     FROM

+ 2 - 2
gx_api/GxPress/Service/GxPress.Service.Implement/Notice/NoticeService.cs

@@ -341,8 +341,8 @@ namespace GxPress.Service.Implement.Notice
                 ,AllTypeConst.MyCc.GetHashCode(),AllTypeConst.MySubmitted.GetHashCode()};
                 if (typeValueIds.Contains(item.TypeValue))
                 {
-                    if (item.TypeValue == AllTypeConst.MySubmitted.GetHashCode())
-                        item.IsAdmin = true;
+                    // if (item.TypeValue == AllTypeConst.MySubmitted.GetHashCode())
+                    //     item.IsAdmin = true;
                     item.TodoId = item.SonId;
                     item.MiddleId = item.SourceId;
                     //item.UserName = item.SendUserName;