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

这个提交包含在:
李广豪 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("当前目标工业炉已满!缓存区已满!请稍后重试!");