| | |
| | | import com.vincent.rsf.server.api.entity.dto.InTaskMsgDto; |
| | | import com.vincent.rsf.server.api.entity.dto.LocTypeDto; |
| | | import com.vincent.rsf.server.api.controller.params.TaskInParam; |
| | | import com.vincent.rsf.server.manager.enums.OrderType; |
| | | import com.vincent.rsf.server.manager.enums.TaskStsType; |
| | | import com.vincent.rsf.server.manager.enums.TaskType; |
| | | import com.vincent.rsf.server.manager.enums.*; |
| | | import com.vincent.rsf.server.api.service.WcsService; |
| | | import com.vincent.rsf.server.api.utils.LocUtils; |
| | | import com.vincent.rsf.server.api.utils.SlaveProperties; |
| | | import com.vincent.rsf.server.manager.entity.*; |
| | | import com.vincent.rsf.server.manager.enums.PakinIOStatus; |
| | | import com.vincent.rsf.server.manager.service.*; |
| | | import com.vincent.rsf.server.manager.service.impl.LocServiceImpl; |
| | | import com.vincent.rsf.server.system.constant.SerialRuleCode; |
| | |
| | | private TaskItemService taskItemService; |
| | | @Autowired |
| | | private WaitPakinItemService waitPakinItemService; |
| | | @Autowired |
| | | private BasStationService basStationService; |
| | | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void agvTaskPickUpComplete(TaskInParam param) { |
| | | Task task = taskService.getOne(new LambdaQueryWrapper<Task>() |
| | | .eq(Task::getBarcode, param.getBarcode()) |
| | | ); |
| | | if (null == task) { |
| | | throw new CoolException("未找到任务信息"); |
| | | } |
| | | // if (!task.getTaskStatus().equals(TaskStsType.WCS_CONVEYOR_START.id)){ |
| | | // throw new CoolException("任务状态有误"); |
| | | // } |
| | | BasStation basStation = basStationService.getOne(new LambdaQueryWrapper<BasStation>() |
| | | .eq(BasStation::getStationName, param.getSourceStaNo()) |
| | | ); |
| | | if (null == basStation) { |
| | | throw new CoolException("未找到站点信息"); |
| | | } |
| | | task.setTaskStatus(TaskStsType.WCS_EXECUTE_OUT_TOTE_LOAD.id); |
| | | taskService.updateById(task); |
| | | |
| | | basStation.setUseStatus(StaUseStatusType.TYPE_O.type); |
| | | basStation.setBarcode(null); |
| | | basStationService.updateById(basStation); |
| | | |
| | | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return locNo; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 验证设备站点 |
| | | */ |