|
@@ -463,14 +463,14 @@ public class TaskService extends ServiceImpl<TaskMapper, Task> implements ITaskS
|
|
|
//若该任务处于进行中
|
|
|
if (task.getStatus().equals(1)) {
|
|
|
//将生产者生产专利中的公共任务状态改为暂停
|
|
|
- if (task.getType() == 1) {
|
|
|
+ if (task.getType() == 1) { //Excel导入
|
|
|
excutePatentDataExcel.setTaskStatus(taskId, 4);
|
|
|
- } else if (task.getType() == 3) {
|
|
|
- //excutePatentDataEpo.setTaskStatus(taskId, 4);
|
|
|
- } else if (task.getType() == 4) {
|
|
|
+ } else if (task.getType() == 4) { //检索导入
|
|
|
excutePatentDataStar.setTaskStatus(taskId, 4);
|
|
|
+ } else if (task.getType() == 5) { //专利号导入
|
|
|
+ excutePatentDataPatentNo.setTaskStatus(taskId, 4);
|
|
|
}
|
|
|
- if (task.getType().equals(3) || task.getType().equals(4)) {
|
|
|
+ if (task.getType().equals(4) || task.getType().equals(5)) { //检索导入和专利号导入
|
|
|
Thread.sleep(500);
|
|
|
//将专利各部分装载线程队列中该任务的专利清空
|
|
|
pantentQueueService.setQueueRemoveTasks(taskId);
|