|
@@ -52,14 +52,14 @@ public class ProjectImportController {
|
|
|
|
|
|
@Permission(roles = {2})
|
|
|
@PostMapping("patent")
|
|
|
- @Operation(summary = "为专题库导入专利")
|
|
|
+ @Operation(summary = "Excel导入专利")
|
|
|
public String importPatent(MultipartFile file, String json) throws IOException {
|
|
|
ProjectImportPatentVO params = JsonUtils.jsonToPojo(json, ProjectImportPatentVO.class);
|
|
|
if (params == null) {
|
|
|
return Response.error("参数错误");
|
|
|
}
|
|
|
- TaskParams taskParams = projectService.getImportPatentTaskParams(file, params.getProjectId());
|
|
|
-// uploadPatentBatchService.uploadPatentBatch(taskParams, params);
|
|
|
+ //TaskParams taskParams = projectService.getImportPatentTaskParams(file, params.getProjectId());
|
|
|
+ //uploadPatentBatchService.uploadPatentBatch(taskParams, params);
|
|
|
//Excel导入专利
|
|
|
uploadTaskService.addExcelTask(file, json);
|
|
|
return Response.success(true);
|