| | |
| | | package com.zy.asrs.utils; |
| | | |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Arith; |
| | | import com.core.common.Cools; |
| | | import com.core.common.SpringUtils; |
| | |
| | | // } |
| | | |
| | | public static Integer GetWhsType(Integer sourceStaNo) { |
| | | switch (sourceStaNo){ |
| | | case 104: |
| | | case 173: |
| | | case 174: |
| | | case 175: |
| | | case 130: |
| | | case 125: |
| | | return 5; |
| | | case 204: |
| | | case 273: |
| | | case 274: |
| | | case 275: |
| | | case 230: |
| | | case 225: |
| | | return 2; |
| | | default: |
| | | return 0; |
| | | RowLastnoService rowLastnoService = SpringUtils.getBean(RowLastnoService.class); |
| | | List<RowLastno> rowLastnos = rowLastnoService.selectList(new EntityWrapper<RowLastno>()); |
| | | for (RowLastno rowLastno:rowLastnos){ |
| | | String[] staNoList = rowLastno.getStaNoList().split(";"); |
| | | for (String staNo : staNoList){ |
| | | if (staNo.equals(sourceStaNo.toString())){ |
| | | return rowLastno.getWhsType(); |
| | | } |
| | | } |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | public static boolean BooleanWhsTypeStaIoType(Integer whsType) { //查询相似物料开关 |
| | |
| | | |
| | | |
| | | /* |
| | | * 最深库位排号 : curRow |
| | | * 最浅库位排号 : nearRow |
| | | * 最浅库位号,用于锁定列、层 : nearRow |
| | | * 入库 true:pakin |
| | | * 出库 false:pakin |
| | | * */ |
| | | * 最深库位排号 : curRow |
| | | * 最浅库位排号 : nearRow |
| | | * 最浅库位号,用于锁定列、层 : nearRow |
| | | * 入库 true:pakin |
| | | * 出库 false:pakin |
| | | * */ |
| | | // 外侧方向的货位 优先入库方向 ===>> 反之 |
| | | public static List<String> getGroupOutLocCrn(Integer curRow,Integer nearRow,String locNo,boolean pakin){ |
| | | List<String> result = new ArrayList<>(); |