自动化立体仓库 - WMS系统
zhang
昨天 8d90833250abee5951572659e9a192f2487cd704
src/main/java/com/zy/common/utils/BarcodeUtils.java
@@ -33,8 +33,9 @@
            Code128Writer writer = new Code128Writer();
            BitMatrix bar = writer.encode(string, BarcodeFormat.CODE_128, width==null?DEFAULT_WIDTH:width, height==null?DEFAULT_HEIGHT:height, new HashMap<>());
            return MatrixToImageWriter.toBufferedImage(bar);
        } catch (WriterException e) {
            throw new RuntimeException(e);
        }
        catch (WriterException e){ throw new RuntimeException(e); }
    }
    /**