|
@@ -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 },
|
|
|
};
|