huangtf преди 3 месеца
родител
ревизия
34859ed765
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      blade-service/blade-archive/src/main/java/org/springblade/archive/mapper/ArchivesAutoMapper.xml

+ 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