Просмотр исходного кода

档案管理,检查文件相关

MaiXinRong 1 год назад
Родитель
Сommit
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; });
         }