李昊 4 vuotta sitten
vanhempi
commit
b446ee0378

+ 13 - 1
gx_api/GxPress/Repository/GxPress.Repository.Implement/Note/NoteRepository.cs

@@ -264,6 +264,12 @@ namespace GxPress.Repository.Implement.Note
                             tede_user
                         WHERE
                             1 = a.RoleId)
+                         OR a.UserId IN (SELECT 
+                            Id
+                        FROM
+                            tede_user
+                        WHERE
+                            0 = a.RoleId)
                         OR {sqlStr} IN (SELECT 
                             MiddleId
                         FROM
@@ -429,7 +435,13 @@ namespace GxPress.Repository.Implement.Note
                         FROM
                             tede_user
                         WHERE
-                            1 = a.RoleId)
+                            1 = a.RoleId) 
+                         OR a.UserId IN (SELECT 
+                                Id
+                            FROM
+                                tede_user
+                            WHERE
+                                0 = a.RoleId)
                         OR {sqlStr} IN (SELECT 
                             MiddleId
                         FROM