| | |
| | | } else {
|
| | | //出库
|
| | | TaskDetl taskDetl = taskDetls.get(0); //TODO 出库流程待确认,ESS取货后,输送线流转到扫码处状态
|
| | | if (taskDetl.getWaveId() == null) {
|
| | | if (taskDetl.getWaveId() == null && task.getTaskType() != 103 && task.getTaskType() != 107) {
|
| | | task.setTaskSts(TaskStsType.COMPLETE_OUT.id);//199.出库完成
|
| | | } else {
|
| | | task.setTaskSts(TaskStsType.WAVE_SEED.id);//198.播种中
|
| | | }
|
| | | }
|
| | |
|
| | | task.setUpdateTime(new Date());
|
| | | if (!taskService.updateById(task)) {
|
| | | throw new CoolException("任务更新失败");
|
| | |
| | | throw new CoolException("任务不存在");
|
| | | }
|
| | |
|
| | | if (task.getTaskType() != 103) {
|
| | | if (task.getTaskType() != 103 && task.getTaskType() != 107) {
|
| | | throw new CoolException("任务类型不可拣料");
|
| | | }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | //获取源库位高度
|
| | | LocTypeBind locTypeBind = locTypeBindService.getOne(new LambdaQueryWrapper<LocTypeBind>().eq(LocTypeBind::getLocId, originLoc.getId()).in(LocTypeBind::getTypeId, LocBindType.HEIGHT.list()));
|
| | | LocTypeBind locTypeBind = locTypeBindService.getOne(new LambdaQueryWrapper<LocTypeBind>()
|
| | | .eq(LocTypeBind::getLocId, originLoc.getId())
|
| | | .in(LocTypeBind::getTypeId, LocBindType.HEIGHT.list()));
|
| | | if (locTypeBind == null) {
|
| | | throw new CoolException("库位类型不存在");
|
| | | }
|