| | |
| | | public class CommonService { |
| | | |
| | | public static final List<Integer> FIRST_GROUP_ROW_LIST = new ArrayList<Integer>() {{ |
| | | add(1);add(2);add(3);add(4);add(5);add(6);add(7);add(8);add(9);add(10); |
| | | }}; |
| | | public static final List<Integer> FIRST_GROUP_ROW_LIST_SHORT = new ArrayList<Integer>() {{ |
| | | add(8);add(9);add(10); |
| | | add(1); |
| | | }}; |
| | | public static final List<Integer> SECOND_GROUP_ROW_LIST = new ArrayList<Integer>() {{ |
| | | add(12);add(13);add(14);add(15);add(16);add(17);add(18); |
| | | add(3);add(4); |
| | | }}; |
| | | public static final List<Integer> THIRD_GROUP_ROW_LIST = new ArrayList<Integer>() {{ |
| | | add(20);add(21);add(22);add(23); |
| | | add(6);add(7); |
| | | }}; |
| | | public static final List<Integer> FOURTH_GROUP_ROW_LIST = new ArrayList<Integer>() {{ |
| | | add(8); |
| | | }}; |
| | | public static final List<Integer> FIFTH_GROUP_ROW_LIST = new ArrayList<Integer>() {{ |
| | | add(10);add(11); |
| | | }}; |
| | | public static final List<Integer> SIXTH_GROUP_ROW_LIST = new ArrayList<Integer>() {{ |
| | | add(13);add(14);add(15);add(16); |
| | | }}; |
| | | public static final List<Integer> SEVENTH_GROUP_ROW_LIST = new ArrayList<Integer>() {{ |
| | | add(13);add(14); |
| | | }}; |
| | | public static final List<Integer> EIGHTH_GROUP_ROW_LIST = new ArrayList<Integer>() {{ |
| | | add(16); |
| | | }}; |
| | | |
| | | |
| | |
| | | // 1.当检索库排为浅库位排时,优先寻找当前库排的深库位排 |
| | | List<LocMast> peakLocs = locMastService.selectAllPeakLoc(); |
| | | for (LocMast peakLoc : peakLocs) { |
| | | List<String> groupInsideLoc = Utils.getGroupInsideLoc(peakLoc.getLocNo()); |
| | | if (!Cools.isEmpty(groupInsideLoc)) { |
| | | if (!locMastService.checkAllLocEmpty(groupInsideLoc)) continue; |
| | | List<String> groupInnerLoc = Utils.getGroupInnerLoc(peakLoc.getLocNo()); |
| | | if (!Cools.isEmpty(groupInnerLoc)) { |
| | | if (!locMastService.checkAllLocEmpty(groupInnerLoc)) continue; |
| | | locMast = peakLoc; |
| | | break; |
| | | } else { |