huangtf il y a 3 mois
Parent
commit
34859ed765

+ 3 - 3
blade-service/blade-archive/src/main/java/org/springblade/archive/mapper/ArchivesAutoMapper.xml

@@ -330,7 +330,7 @@
     <select id="getFilePageUrlList" resultType="java.lang.String">
         select pdf_page_url
         from u_archive_file
-        where is_deleted = 0
+        where is_deleted = 0 and pdf_page_url!= file_url
           and archive_id in (
             select id
             from u_archives_auto
@@ -345,7 +345,7 @@
     <select id="getFilePageUrlListByContract" resultType="java.lang.String">
         select pdf_page_url
         from u_archive_file
-        where is_deleted = 0
+        where is_deleted = 0 and pdf_page_url!= file_url
           and archive_id in (
             select id
             from u_archives_auto
@@ -367,7 +367,7 @@
     <select id="getFilePageUrlListByNode" resultType="java.lang.String">
         select pdf_page_url
         from u_archive_file
-        where is_deleted = 0
+        where is_deleted = 0 and pdf_page_url!= file_url
           and archive_id in (
             SELECT id
             FROM u_archives_auto