|
@@ -133,7 +133,7 @@ public class UploadPatentBatchService {
|
|
* @description uploadPatentBatch的兄弟方法
|
|
* @description uploadPatentBatch的兄弟方法
|
|
*/
|
|
*/
|
|
@Async("singleThreadAsyncTaskExecutor")
|
|
@Async("singleThreadAsyncTaskExecutor")
|
|
- public void uploadPatentBatchBro(TaskParams params) {
|
|
|
|
|
|
+ public String uploadPatentBatchBro(TaskParams params) {
|
|
Integer total = params.getTotal();
|
|
Integer total = params.getTotal();
|
|
Integer index =params.getIndex();
|
|
Integer index =params.getIndex();
|
|
try {
|
|
try {
|
|
@@ -183,7 +183,7 @@ public class UploadPatentBatchService {
|
|
.setUrl("")
|
|
.setUrl("")
|
|
.setTotal(total), ResponseEnum.PATENT_IMPORT_TASK_SUCCESS), params.getUserId());
|
|
.setTotal(total), ResponseEnum.PATENT_IMPORT_TASK_SUCCESS), params.getUserId());
|
|
|
|
|
|
-
|
|
|
|
|
|
+ return Response.success();
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
|
|
|
SpringUtil.getBean(ProjectService.class).setImportPatentTaskStatus(2, params.getTaskId());
|
|
SpringUtil.getBean(ProjectService.class).setImportPatentTaskStatus(2, params.getTaskId());
|
|
@@ -204,6 +204,7 @@ public class UploadPatentBatchService {
|
|
WebSocketServer.sendInfo(Response.error("部分数据上传成功" + "\n" + "成功条数:" + successCount + "失败条数:" + FLAG), params.getUserId());
|
|
WebSocketServer.sendInfo(Response.error("部分数据上传成功" + "\n" + "成功条数:" + successCount + "失败条数:" + FLAG), params.getUserId());
|
|
}
|
|
}
|
|
FLAG = 0;
|
|
FLAG = 0;
|
|
|
|
+ return Response.error();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|