自动化立体仓库 - WMS系统
#
luxiaotao1123
2022-04-20 c4cd39a3649843b5e6e01810a9c93fa6c60f1f56
src/main/java/com/zy/asrs/service/impl/OpenServiceImpl.java
@@ -43,6 +43,8 @@
    private LocDetlService locDetlService;
    @Autowired
    private PackService packService;
    @Autowired
    private TagService tagService;
    @Override
    @Transactional
@@ -311,6 +313,7 @@
    }
    @Override
    @Transactional
    public void packageUp(String barcode) {
        Pack pack = packService.selectByBarcode(barcode);
        if (null != pack) {
@@ -333,6 +336,16 @@
        if (!packService.insert(pack)) {
            throw new CoolException("服务器内部错误,请联系管理员");
        }
        Mat mat = new Mat();
        mat.setTagId(tagService.getTop().getId());
        mat.setMatnr(barcode);
        mat.setMaktx(barcode);
        mat.setStatus(1);
        mat.setCreateTime(now);
        mat.setUpdateTime(now);
        if (!matService.insert(mat)) {
            throw new CoolException("服务器内部错误,请联系管理员");
        }
    }
}