skyouc
2025-01-02 43fb93554a1b530bd3ade363adc0a3aad7b1daf5
zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/WorkServiceImpl.java
@@ -226,7 +226,7 @@
                    return defaultLoc;
                }
            }
            //fixme 如果没有相邻库位是否考虑推荐库位
            if (ruleDetl.getDetlType().equals(ShelvesRuleDetlType.SUGGEST.id)) {
                //获取推荐库位
                List<Loc> suggestLoc = locUtils.getSuggestLoc(taskType, mat.getId(), batch, locTypeHeight, laneRowList, currentLev);
@@ -622,6 +622,7 @@
    }
    @Override
    @Transactional(rollbackFor = Exception.class)
    public boolean pickTask(Long taskId) {
        Task task = taskService.getById(taskId);
        if(task == null){
@@ -669,8 +670,8 @@
        if(loc == null) {
            throw new CoolException("没有空库位");
        }
        task.setTaskSts(TaskStsType.GENERATE_IN.id);//1.生成入库任务
        //102拣料此处需修改为WCS_CONTAINER_RECEIVE,定时任务查询后,自动下发入库任务至ESS
        task.setTaskSts(TaskStsType.WCS_CONTAINER_RECEIVE.id);//1.生成入库任务
        task.setTaskType(taskType);
        task.setTargetLoc(loc.getLocNo());
        task.setUpdateTime(new Date());