| | |
| | | import com.alibaba.fastjson.JSON;
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.zy.asrs.framework.common.Cools;
|
| | | import com.zy.asrs.framework.common.R;
|
| | | import com.zy.asrs.framework.exception.CoolException;
|
| | | import com.zy.asrs.wms.asrs.entity.*;
|
| | | import com.zy.asrs.wms.asrs.entity.enums.*;
|
| | |
| | | }
|
| | |
|
| | | if (ruleDetl.getDetlType().equals(ShelvesRuleDetlType.COMPLETE.id)) {
|
| | | return locUtils.getGlobalEmptyLocToCtu(locTypeHeight);
|
| | | //从全局库位中获取(完整巷道)
|
| | | List<Loc> globalLoc = locUtils.getGlobalEmptyLoc(taskType, locTypeHeight, laneRowList, currentLev);
|
| | | //获取库位
|
| | | if (!globalLoc.isEmpty()) {
|
| | | defaultLoc = locUtils.filterAllLoc(globalLoc);
|
| | | if (defaultLoc != null) {
|
| | | return defaultLoc;
|
| | | }
|
| | | }
|
| | | // List<Loc> globalLoc = locUtils.getGlobalEmptyLoc(taskType, locTypeHeight, laneRowList, currentLev);
|
| | | // //获取库位
|
| | | // if (!globalLoc.isEmpty()) {
|
| | | // defaultLoc = locUtils.filterAllLoc(globalLoc);
|
| | | // if (defaultLoc != null) {
|
| | | // return defaultLoc;
|
| | | // }
|
| | | // }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | if (ruleDetl.getDetlType().equals(ShelvesRuleDetlType.COMPLETE.id)) {
|
| | | return locUtils.getGlobalEmptyLocToCtu(locTypeHeight);
|
| | | //从全局库位中获取(完整巷道)
|
| | | List<Loc> globalLoc = locUtils.getGlobalLoc(taskType, locTypeHeight, laneRowList, currentLev);
|
| | | //获取库位
|
| | | if (!globalLoc.isEmpty()) {
|
| | | defaultLoc = locUtils.filterAllLoc(globalLoc);
|
| | | if (defaultLoc != null) {
|
| | | return defaultLoc;
|
| | | }
|
| | | }
|
| | | // List<Loc> globalLoc = locUtils.getGlobalLoc(taskType, locTypeHeight, laneRowList, currentLev);
|
| | | // //获取库位
|
| | | // if (!globalLoc.isEmpty()) {
|
| | | // defaultLoc = locUtils.filterAllLoc(globalLoc);
|
| | | // if (defaultLoc != null) {
|
| | | // return defaultLoc;
|
| | | // }
|
| | | // }
|
| | | }
|
| | | }
|
| | | return defaultLoc;
|