lrf402788946 3 years ago
parent
commit
4419d9b13b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/service/statistics/index.js

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

@@ -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 };
     // 消息:未读,已读,通知(所有)