Procházet zdrojové kódy

档案管理,检查文件相关

MaiXinRong před 1 rokem
rodič
revize
fbf86e7632
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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; });
         }