Browse Source

info导入

ruifeng_liu 3 years ago
parent
commit
20509ae8e6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/service/patent/patentinfo.js

+ 2 - 1
app/service/patent/patentinfo.js

@@ -241,7 +241,8 @@ class PatentinfoService extends CrudService {
       }
       i.inventor = iList;
     }
-    await this.model.insertMany(arr);
+    const res = await this.model.insertMany(arr);
+    return res;
   }
   async toExport({ user }) {
     const data = {