ruifeng_liu 3 years ago
parent
commit
21760e8e4b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/service/statistics/index.js

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

@@ -383,11 +383,11 @@ class IndexService extends CrudService {
 
   async patentUserIndex({ id }) {
     const patentExamine = this.ctx.model.Patent.Patentexamine;
-    const unread = await patentExamine.count({ id, is_read: false });
+    const unread = await patentExamine.count({ to: id, is_read: false });
 
 
     const papply = this.ctx.model.Patent.Patentapply;
-    const apply = await papply.count({ status: [ '0', '1', '-1', '2' ], user_id: id });
+    const apply = await papply.count({ status: [ '0', '1', '-1', '-2' ], user_id: id });
     const palysis = this.ctx.model.Patent.Patentanalysis;
     const analysis = await palysis.count({ status: [ '0', '-1' ], user_id: id });
     const paccess = this.ctx.model.Patent.Patentassess;