#
zhou zhou
2 天以前 b5b400a615743a74e9d127261bd3785554aa06aa
rsf-server/src/main/java/com/vincent/rsf/server/manager/utils/LocManageUtil.java
@@ -33,6 +33,25 @@
        return getTargetLoc(areaId, null);
    }
    public static String getTargetLoc(Long areaId, Long containerType,List<Integer> rowList) {
        Long locType = containerType;
        //TODO 库位策略后续排期
        LocService locService = SpringUtils.getBean(LocService.class);
        Loc loc = locService.getOne(new LambdaQueryWrapper<Loc>()
                .eq(!Objects.isNull(locType), Loc::getType, locType)
                .eq(Loc::getAreaId, areaId)
                .eq(Loc::getUseStatus, LocStsType.LOC_STS_TYPE_O.type)
                .in(Objects.nonNull(rowList) && !rowList.isEmpty(), Loc::getRow, rowList)
                .orderByAsc(Loc::getLev)
                .orderByAsc(Loc::getCol)
                .orderByAsc(Loc::getRow)
                .last("LIMIT 1")
        );
        return !Objects.isNull(loc) ? loc.getCode() : null;
    }
    public static String getTargetLoc(Long areaId, Long containerType) {
        Long locType = null;
//        if (!Objects.isNull(containerType)) {