bug修改
This commit is contained in:
		@@ -86,7 +86,7 @@ public class AsynRunTaskService extends BaseService {
 | 
			
		||||
 | 
			
		||||
    //工业炉可用未满的情况下,调用车辆起点为提升台终点为工业炉
 | 
			
		||||
    @Async("asyncServiceExecutor")
 | 
			
		||||
    public void asynRunTask(Long currTaskId, Long vehicleId) throws IOException {
 | 
			
		||||
    public void asynRunTask(Long currTaskId, Long vehicleId) throws IOException, InterruptedException {
 | 
			
		||||
        CurrTask currTask = currTaskServiceBiz.getById(currTaskId);
 | 
			
		||||
        VehicleInfo vehicle = vehicleInfoServiceBiz.getById(vehicleId);
 | 
			
		||||
        List<CurrTaskDet> currTaskDetList = currTaskDetServiceBiz.list(new QueryWrapper<CurrTaskDet>().eq(CurrTaskDet.CURR_TASK_ID, currTask));
 | 
			
		||||
@@ -123,6 +123,8 @@ public class AsynRunTaskService extends BaseService {
 | 
			
		||||
            currTask.setUpdateTime(LocalDateTime.now());
 | 
			
		||||
            currTask.setBeginTime(LocalDateTime.now());
 | 
			
		||||
            currTaskServiceBiz.updateById(currTask);
 | 
			
		||||
            //程序休眠10秒.防止进炉后允许入炉信号还没消失,就又发了下一个入炉任务.
 | 
			
		||||
            Thread.sleep(10000);
 | 
			
		||||
            //更新小车状态
 | 
			
		||||
            vehicle.setStatus(0);
 | 
			
		||||
            vehicleInfoServiceBiz.updateById(vehicle);
 | 
			
		||||
 
 | 
			
		||||
@@ -559,6 +559,7 @@ public class ScheduledTask extends BaseService {
 | 
			
		||||
                                vehicleInfoServiceBiz.updateById(vehicleInfo);
 | 
			
		||||
                                asynRunTaskService.asynRunTaskForStockToKiln(inStockInfo.getId(), vehicleId);
 | 
			
		||||
                            }
 | 
			
		||||
                            logger.info("当前两辆车都不在线.无法发起任务!");
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user