guhongwei 3 年之前
父节点
当前提交
da373c511a
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/service/statistics/index.js

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

@@ -406,9 +406,9 @@ class IndexService extends CrudService {
     const early = await patentEarly.count({ user_id: { $elemMatch: { $in: [ ObjectId(id) ] } } });
     // 专利交易
     const patentTrans = this.ctx.model.Patent.Patenttrans;
-    const trans1 = await patentTrans.count({ type: '转让', user_id: id, is_del: '0' });
-    const trans2 = await patentTrans.count({ type: '许可', user_id: id, is_del: '0' });
-    const trans3 = await patentTrans.count({ type: '招商', user_id: id, is_del: '0' });
+    const trans1 = await patentTrans.count({ type: '转让', user_id: id });
+    const trans2 = await patentTrans.count({ type: '许可', user_id: id });
+    const trans3 = await patentTrans.count({ type: '招商', user_id: id });
     return {
       message: { unread }, apply: { apply, analysis, access }, patent: { information, safeg, early }, transaction: { trans1, trans2, trans3 },
     };