王佳豪
2021-05-10 1667372f02fb00dc76e172b5348c8e75ffb79bb9
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
@@ -111,7 +111,7 @@
        List<MatCodeCountDto> matDtos = new ArrayList<>();
        if (Cools.isEmpty(param.getProductCode())) {
            param.getList().forEach(elem -> {
                matDtos.add(new MatCodeCountDto(elem.getMatNo(), elem.getCount(), elem.getMatStatus()));
                matDtos.add(new MatCodeCountDto(elem.getMatNo(), elem.getCount(), elem.getMatStatus(), elem.getStr5(), elem.getStr6()));
            });
            wrkDetlService.createWorkDetail(workNo, matDtos, param.getBarcode(), userId);
        // 成品物料
@@ -419,6 +419,11 @@
                if (null != one) locDetlDtos.add(new LocDetlDto(one, one.getAnfme()));
            }
        }
        for (LocDetlDto e: locDetlDtos) {
            if (Cools.isEmpty(e.getLocDetl().getZpallet())) {
                throw new CoolException("托盘码为空不允许盘点,库位号" + e.getLocDetl().getLocNo());
            }
        }
        if (!locDetlDtos.isEmpty()) {
            // 启动出库开始 107.盘点出库
            stockOut(staNo, locDetlDtos, 107, userId);