#
18516761980
2021-09-29 15c8f00ab3a1e3d2d96b56bae0ec11efedd60231
src/main/java/com/zy/asrs/service/impl/WrkDetlServiceImpl.java
@@ -40,11 +40,20 @@
            wrkDetl.setIoTime(new Date());
            wrkDetl.setAnfme(dto.getCount()); // 数量
            VersionUtils.setWrkDetl(wrkDetl, matCode); // 版本控制
            // 如果生成单号为空进行补充
            if (Cools.isEmpty(wrkDetl.getMnemonic())) {
                wrkDetl.setMnemonic(dto.getStr5());
            }
            // 如果通知单号为空进行补充
            if (Cools.isEmpty(wrkDetl.getSupplier())) {
                wrkDetl.setSupplier(dto.getStr6());
            }
            wrkDetl.setZpallet(barcode); // 托盘条码
            wrkDetl.setAppeUser(userId);
            wrkDetl.setAppeTime(new Date());
            wrkDetl.setModiUser(userId);
            wrkDetl.setModiTime(new Date());
            wrkDetl.setMatStatus(dto.getMatStatus());
            if (!this.insert(wrkDetl)) {
                throw new CoolException("保存工作明细失败");
            }