lrf402788946 4 년 전
부모
커밋
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 };
     // 消息:未读,已读,通知(所有)