王佳豪
2021-05-14 6f4cc4d13155e22a84a4117f3773e768da40ded4
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);
        // 成品物料
@@ -237,6 +237,7 @@
            wrkMast.setSourceStaNo(staDesc.getCrnStn()); // 源站
            wrkMast.setStaNo(staDesc.getStnNo()); // 目标站
            wrkMast.setSourceLocNo(dto.getLocNo()); // 源库位
            wrkMast.setBarcode(locMast.getBarcode()); // 条码
            wrkMast.setFullPlt("Y"); // 满板:Y
            wrkMast.setPicking("N"); // 拣料
            wrkMast.setExitMk("N"); // 退出
@@ -419,6 +420,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);