瀏覽代碼

info导入

ruifeng_liu 3 年之前
父節點
當前提交
20509ae8e6
共有 1 個文件被更改,包括 2 次插入1 次删除
  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 = {