| | |
| | | return defaultLoc;
|
| | | }
|
| | | }
|
| | |
|
| | | //fixme 如果没有相邻库位是否考虑推荐库位
|
| | | if (ruleDetl.getDetlType().equals(ShelvesRuleDetlType.SUGGEST.id)) {
|
| | | //获取推荐库位
|
| | | List<Loc> suggestLoc = locUtils.getSuggestLoc(taskType, mat.getId(), batch, locTypeHeight, laneRowList, currentLev);
|
| | |
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | public boolean pickTask(Long taskId) {
|
| | | Task task = taskService.getById(taskId);
|
| | | if(task == null){
|
| | |
| | | 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());
|