ruifeng_liu 3 年之前
父节点
当前提交
21760e8e4b
共有 1 个文件被更改,包括 2 次插入2 次删除
  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;