线程等待

master
Cui YongXing 2024-09-05 19:50:11 +08:00
parent 42da1a6d84
commit 366a3e613e
1 changed files with 6 additions and 0 deletions

View File

@ -285,6 +285,11 @@ public class TaskInfoServiceImpl extends ServiceImpl<TaskInfoMapper, TaskInfo> i
getString(pageNum, finalFieName, finalJoint,basicId,newBasicId,tableId,map,num);
});
}
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
// 任务完成后恢复默认线程分配
restoreDefaults();
}
@ -307,6 +312,7 @@ public class TaskInfoServiceImpl extends ServiceImpl<TaskInfoMapper, TaskInfo> i
dataValue.setKey(newKey);
}
}
Result result = datasourceFeign.addProduct(newBasicId, tableId, data);
log.info(result);
// for (List<DataValue> dataValues : tableValue) {