| | |
| | | import com.core.common.Arith; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.zy.core.model.CrnSlave; |
| | | import com.zy.core.properties.SlaveProperties; |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //转换wms传输的库位号 |
| | | public static String getWcsLocNo(String locNo){ |
| | | String[] split = locNo.split("-"); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | return wcsLocNo; |
| | | } |
| | | |
| | | public static int[] getWcsRow(String row){ |
| | | int[] array = null; |
| | | switch (row){ |
| | |
| | | int shallowRow = getShallowRow(row); |
| | | return zerofill(String.valueOf(shallowRow), 2) + deepLoc.substring(2); |
| | | } |
| | | |
| | | public static int getShallowRow(Integer row){ |
| | | Map<Integer, Integer> map = new HashMap<>(); |
| | | map.put(1,2);map.put(4,3); |
| | | map.put(7,8);map.put(10,9); |
| | | map.put(11,12);map.put(14,13); |
| | | map.put(15,16);map.put(18,17); |
| | | map.put(1, 2); |
| | | map.put(4, 3); |
| | | map.put(7, 8); |
| | | map.put(10, 9); |
| | | map.put(11, 12); |
| | | map.put(14, 13); |
| | | map.put(15, 16); |
| | | map.put(18, 17); |
| | | map.put(19,20); |
| | | return map.get(row); |
| | | } |