| | |
| | | } |
| | | //查询终点是否需要补充此容器 |
| | | String barcodeType = "barcode REGEXP '"+basContainer.getCodeType()+"'"; |
| | | int count = locService.count(new LambdaQueryWrapper<Loc>() |
| | | long count = locService.count(new LambdaQueryWrapper<Loc>() |
| | | .apply(barcodeType) |
| | | .in(Loc::getUseStatus, new ArrayList<>(Arrays.asList( |
| | | LocStsType.LOC_STS_TYPE_D.type, |
| | |
| | | .eq(Loc::getStatus, 1) |
| | | .orderByDesc(Loc::getId)); |
| | | if (!Cools.isEmpty(count) && count<autoOutCount){ |
| | | CONTAINER_IDS.put(barcodeType, autoOutCount-count); |
| | | CONTAINER_IDS.put(barcodeType, Math.toIntExact(autoOutCount - count)); |
| | | } |
| | | } |
| | | } catch (Exception e){ |