guhongwei 3 years ago
parent
commit
8969a45d47
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/statistics/index.js

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

@@ -384,7 +384,7 @@ class IndexService extends CrudService {
     const unread = await patentExamine.count({ to: id, is_read: false });
     // 通知信息
     const patentNotice = this.ctx.model.Patent.Patentnotice;
-    const notice = await patentNotice.count({ to_id: { $elemMatch: { to_id: id } }, is_read: false });
+    const notice = await patentNotice.count({ to_id: { $elemMatch: { $in: [ ObjectId(id) ] } }, is_read: false });
     // 专利申请
     const papply = this.ctx.model.Patent.Patentapply;
     const apply = await papply.count({