|
@@ -85,9 +85,10 @@ class PatentearlyService extends CrudService {
|
|
|
total++;
|
|
|
const { inventor, name } = i;
|
|
|
// 2021-11-04 修改,因为inventor修改为发明人[Object],所以发明人需要处理成字符串
|
|
|
+ const user_id = inventor.map((i) => ObjectId(i.user_id));
|
|
|
const inventorNameString = inventor.map((i) => i.name).join(';');
|
|
|
const content = `发明人 【${inventorNameString}】 的已授权专利 【${name}】 即将失效,避免专利失效过期,请用户及时查看消息并处理! `;
|
|
|
- const nobj = { ..._.omit(i, ['_id', 'id']), content, parent_id: i._id };
|
|
|
+ const nobj = { ..._.omit(i, ['_id', 'id', 'user_id', 'inventor']), content, parent_id: i._id, user_id };
|
|
|
this.model.create(nobj);
|
|
|
// 2021-11-04添加 向 patentexamine 表中添加数据
|
|
|
const patentexamineArray = [];
|