src/main/java/com/zy/asrs/controller/MatCodeController.java
@@ -170,6 +170,10 @@ @RequestMapping(value = "/macCode/barcode/auth") // @ManagerAuth(memo = "物料编码条形码获取") public R matCodeBarcode(@RequestParam String param, HttpServletResponse response) throws IOException { if (Cools.isEmpty(param)){ System.out.println(1); return R.parse(BaseRes.EMPTY); } BufferedImage img = BarcodeUtils.encode(param); if (!ImageIO.write(img, "jpg", response.getOutputStream())) { throw new IOException("Could not write an image of format jpg");