소스 검색

档案管理,检查文件相关

MaiXinRong 1 년 전
부모
커밋
fbf86e7632
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/service/file.js

+ 1 - 1
app/service/file.js

@@ -45,7 +45,7 @@ module.exports = app => {
         }
 
         async checkFiles(filing_id, files) {
-            const existFiles = await this.getAllDataByCondition({ columns: ['filename', 'fileext'], where: { filing_id } });
+            const existFiles = await this.getAllDataByCondition({ columns: ['filename', 'fileext'], where: { filing_id, is_deleted: 0 } });
             const existFilesName = existFiles.map(x => { return x.filename + x.fileext });
             return files.filter(x => { return existFilesName.indexOf(x) >= 0; });
         }