|
@@ -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
|