소스 검색

增加保护

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