| | |
| | | import com.zy.asrs.entity.RowLastno; |
| | | import com.zy.asrs.service.RowLastnoService; |
| | | import com.zy.common.properties.SlaveProperties; |
| | | import org.openxmlformats.schemas.wordprocessingml.x2006.main.STString; |
| | | |
| | | import java.text.DecimalFormat; |
| | | import java.util.ArrayList; |
| | |
| | | public static final List<Integer> FOURTH_GROUP_ROW_LIST = new ArrayList<Integer>() {{ |
| | | add(7);add(8); |
| | | }}; |
| | | public static final List<Integer> FIFTH_GROUP_ROW_LIST = new ArrayList<Integer>(){{ |
| | | add(9); |
| | | }}; |
| | | public static final List<Integer> SIXTH_GROUP_ROW_LIST = new ArrayList<Integer>(){{ |
| | | add(10);add(11); |
| | | }}; |
| | | |
| | | public static List<String> getGroupLocNo(String locNo, Boolean pakIn) { |
| | | int row = getRow(locNo); |
| | |
| | | result.add(zerofill(String.valueOf(groupRow), 2) + locNo.substring(2)); |
| | | } |
| | | } else if (FOURTH_GROUP_ROW_LIST.contains(row)) { |
| | | List<Integer> clone = Arrays.asList(new Integer[FOURTH_GROUP_ROW_LIST.size()]); |
| | | Collections.copy(clone, FOURTH_GROUP_ROW_LIST); |
| | | // List<Integer> clone = Arrays.asList(new Integer[FOURTH_GROUP_ROW_LIST.size()]); |
| | | // Collections.copy(clone, FOURTH_GROUP_ROW_LIST); |
| | | // Collections.reverse(clone); |
| | | for (Integer groupRow : FOURTH_GROUP_ROW_LIST) { |
| | | result.add(zerofill(String.valueOf(groupRow), 2) + locNo.substring(2)); |
| | | } |
| | | }else if (FIFTH_GROUP_ROW_LIST.contains(row)) { |
| | | for (Integer groupRow : FIFTH_GROUP_ROW_LIST) { |
| | | result.add(zerofill(String.valueOf(groupRow), 2) + locNo.substring(2)); |
| | | } |
| | | }else if (SIXTH_GROUP_ROW_LIST.contains(row)) { |
| | | List<Integer> clone = Arrays.asList(new Integer[SIXTH_GROUP_ROW_LIST.size()]); |
| | | Collections.copy(clone, SIXTH_GROUP_ROW_LIST); |
| | | Collections.reverse(clone); |
| | | for (Integer integer : clone) { |
| | | result.add(zerofill(String.valueOf(integer), 2) + locNo.substring(2)); |