Explorar el Código

档案管理,检查文件相关

MaiXinRong hace 1 año
padre
commit
fbf86e7632
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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; });
         }