guhongwei 3 年之前
父節點
當前提交
f9f2d51667
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/statistics/index.js

+ 1 - 1
app/service/statistics/index.js

@@ -397,7 +397,7 @@ class IndexService extends CrudService {
     const access = await paccess.count({ status: [ '0', '1', '-1', '2' ], user_id: id });
     // 专利信息
     const patentInfo = this.ctx.model.Patent.Patentinfo;
-    const information = await patentInfo.count({ inventor: { $elemMatch: { $in: [ ObjectId(id) ] } } });
+    const information = await patentInfo.count({ user_id: { $elemMatch: { $in: [ ObjectId(id) ] } } });
     // 专利维权
     const patentsafeg = this.ctx.model.Patent.Patentsafeg;
     const safeg = await patentsafeg.count({ status: [ '0', '1', '2' ], user_id: id });