guhongwei пре 3 година
родитељ
комит
1aae48ff6a
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 });
-    const trans2 = await patentTrans.count({ type: '许可', user_id: id });
-    const trans3 = await patentTrans.count({ type: '招商', user_id: id });
+    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' });
     return {
       message: { unread }, apply: { apply, analysis, access }, patent: { information, safeg, early }, transaction: { trans1, trans2, trans3 },
     };