瀏覽代碼

通知公告相关代码提交

pans 6 月之前
父節點
當前提交
e036e61494

+ 4 - 4
snowy-plugin/snowy-plugin-disk/snowy-plugin-disk-func/src/main/java/vip/xiaonuo/disk/mapper/mapping/UserCommentMapper.xml

@@ -16,8 +16,8 @@
         FROM
             user_comment a LEFT JOIN  sys_user b ON a. user_id=b.id
         WHERE
-            resource_id=#{resourceId}
-          and	pid IS NULL
+            a.resource_id=#{resourceId} and a.delete_flag='NOT_DELETE'
+          and a.pid IS NULL
         order by a.id desc
     </select>
 
@@ -36,8 +36,8 @@
         FROM
             user_comment a LEFT JOIN  sys_user b ON a. user_id=b.id
         WHERE
-            resource_id=#{resourceId}
-          and	pid IS NOT NULL
+            a.resource_id=#{resourceId}  and a.delete_flag='NOT_DELETE'
+          and a.pid IS NOT NULL
     </select>