| | |
| | | |
| | | private ReturnT<String> doAutoMove2(AgvWrkMast agvWrkMast) { |
| | | Date now = new Date(); |
| | | //检索库位,选择合适的库位 |
| | | AgvLocMast locMast = agvCommonService.getLocNo(3, agvWrkMast.getCrnNo(), false, true); |
| | | String barcode = agvWrkMast.getBarcode(); |
| | | AgvLocMast locMast; |
| | | if (Integer.parseInt(barcode.substring(0, 2)) == 31) { |
| | | //检索库位,选择合适的库位 |
| | | locMast = agvCommonService.getLocByLocRule(6, 2, 1); |
| | | } else { |
| | | //检索库位,选择合适的库位 |
| | | locMast = agvCommonService.getLocNo(3, agvWrkMast.getCrnNo(), false, true); |
| | | } |
| | | |
| | | if (Cools.isEmpty(locMast)) { |
| | | log.info("暂无库位"); |
| | | return FAIL; |