|
@@ -413,8 +413,8 @@ class IndexService extends CrudService {
|
|
|
const query = {};
|
|
|
if (name) query.$or = [{ inventor: new RegExp(name) }, { apply_personal: new RegExp(name) }];
|
|
|
invent = await this.patentModel.count({ type: '发明', ...query });
|
|
|
- practical = await this.patentModel.count({ type: '使用新型', ...query });
|
|
|
- other = await this.patentModel.count({ $and: [{ type: { $ne: '使用新型' } }, { type: { $ne: '发明' } }], ...query });
|
|
|
+ practical = await this.patentModel.count({ type: '实用新型', ...query });
|
|
|
+ other = await this.patentModel.count({ $and: [{ type: { $ne: '实用新型' } }, { type: { $ne: '发明' } }], ...query });
|
|
|
}
|
|
|
patent = { invent, practical, other };
|
|
|
// 消息:未读,已读,通知(所有)
|