修改入炉前去缓存区时因为异步调用查询到的localtion为null的问题

This commit is contained in:
李广豪 2022-08-02 22:55:06 +08:00
부모 a4951da905
커밋 3dce5380d8
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제

파일 보기

@ -274,9 +274,9 @@ public class AsynRunTaskService extends BaseService {
//工业炉已满调用车辆起点为提升台终点为缓存区
@Async("asyncServiceExecutor")
public void asynRunTaskToWarehouse(Long currTaskId, Long vehicleId) throws IOException {
public void asynRunTaskToWarehouse(Long currTaskId, Long vehicleId,Location location) throws IOException {
CurrTask currTask = currTaskServiceBiz.getById(currTaskId);
Location location = locationServiceBiz.getById(currTask.getLocationId());
//Location location = locationServiceBiz.getById(currTask.getLocationId());
VehicleInfo vehicle = vehicleInfoServiceBiz.getById(vehicleId);
//检查车辆是否冲突冲突则避让
rgvStatus(vehicleId, currTask);

파일 보기

@ -179,7 +179,7 @@ public class RunTaskUtils {
currTask.setLocationId(location.getId());
currTaskServiceBiz.updateById(currTask);
//异步调用车辆
asynRunTaskService.asynRunTaskToWarehouse(currTask.getId(),vehicleId);
asynRunTaskService.asynRunTaskToWarehouse(currTask.getId(),vehicleId,location);
return R.ok("操作成功!当前目标工业炉已满,托盘准备加入缓存区待加工队列。");
}
return R.failed("当前目标工业炉已满!缓存区已满!请稍后重试!");