| | |
| | | break; |
| | | } |
| | | } |
| | | String val = String.valueOf(vo.getValue()); |
| | | if (Cools.isEmpty(batch)) { |
| | | batch = val; |
| | | } else { |
| | | int year0 = Integer.parseInt(batch.substring(0, 2)); |
| | | int month0 = Integer.parseInt(batch.substring(2, 4)); |
| | | int year = Integer.parseInt(val.substring(0, 2)); |
| | | int month = Integer.parseInt(val.substring(2, 4)); |
| | | if (year <= year0) { |
| | | if (month < month0) { |
| | | batch = val; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if (sameMatnr) { |
| | | List<String> locNos = locDetlService.getSameDetlToday2(matnr, batch, sRow, eRow); |
| | | List<String> locNos = locDetlService.getSameDetlToday(matnr, sRow, eRow); |
| | | for (String locNo : locNos) { |
| | | if (Utils.isShallowLoc(slaveProperties, locNo)) { |
| | | continue; |
| | |
| | | locTypeDto.setLocType1((short) 2); |
| | | return getLocNo(1, staDescId, sourceStaNo, list, locTypeDto, times); |
| | | } |
| | | if (!sign){ |
| | | throw new CoolException("目标站"+staDesc.getCrnStn()+"不可用"); |
| | | } |
| | | log.error("系统没有空库位!!! 尺寸规格: {}, 轮询次数:{}", JSON.toJSONString(locTypeDto), times); |
| | | throw new CoolException("没有空库位"); |
| | | } |