Browse Source

info查询

ruifeng_liu 3 năm trước cách đây
mục cha
commit
1f5bc165f0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/patent/patentinfo.js

+ 1 - 1
app/service/patent/patentinfo.js

@@ -79,7 +79,7 @@ class PatentinfoService extends CrudService {
     let pids = await this.personalModel.find({ code }, { _id: 1 });
     if (pids.length <= 0) return { data: [], total: 0 };
     pids = pids.map(i => i._id);
-    const query = { 'inventor.id': { $elemMatch: { $in: pids } } };
+    const query = { 'inventor.id': pids };
     if (status) query.status = status;
     if (term) query.term = term;
     const data = await this.model