yangyang
2025-06-02 ffc4d0526bf02e7e00a7872d05a1e67e520e59d6
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/WorkServiceImpl.java
@@ -441,13 +441,12 @@
        } 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("任务更新失败");
@@ -639,7 +638,7 @@
            throw new CoolException("任务不存在");
        }
        if (task.getTaskType() != 103) {
        if (task.getTaskType() != 103 && task.getTaskType() != 107) {
            throw new CoolException("任务类型不可拣料");
        }
@@ -654,7 +653,9 @@
        }
        //获取源库位高度
        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("库位类型不存在");
        }