guhongwei il y a 3 ans
Parent
commit
f9f2d51667
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 });