lrf402788946 3 年之前
父節點
當前提交
4419d9b13b
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 };
     // 消息:未读,已读,通知(所有)