|
@@ -18,6 +18,7 @@ class PatentwarningService extends CrudService {
|
|
this.patentInfo = this.ctx.model.Patent.Patentinfo;
|
|
this.patentInfo = this.ctx.model.Patent.Patentinfo;
|
|
this.patentApply = this.ctx.model.Patent.Patentapply;
|
|
this.patentApply = this.ctx.model.Patent.Patentapply;
|
|
this.personalModel = this.ctx.model.Personal;
|
|
this.personalModel = this.ctx.model.Personal;
|
|
|
|
+ this.cpcErrorMsg = this.ctx.model.Patent.Cpcimporterror;
|
|
}
|
|
}
|
|
async import({ uri }) {
|
|
async import({ uri }) {
|
|
uri = uri.replace('/files', this.import_root_path);
|
|
uri = uri.replace('/files', this.import_root_path);
|
|
@@ -132,7 +133,6 @@ class PatentwarningService extends CrudService {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
} finally {
|
|
} finally {
|
|
try {
|
|
try {
|
|
@@ -142,6 +142,9 @@ class PatentwarningService extends CrudService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ // 2022-09-05 将错误信息添加到表中
|
|
|
|
+ errorList = errorList.map((i) => ({ ...i, filepath: uri, time: moment().format('YYYY-MM-DD HH:mm:ss') }));
|
|
|
|
+ await this.cpcErrorMsg.insertMany(errorList);
|
|
if (errorList.length > 0) return errorList;
|
|
if (errorList.length > 0) return errorList;
|
|
return 'ok';
|
|
return 'ok';
|
|
}
|
|
}
|