From 1ec64e6847c27529e031169463b01900e5e878eb Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Thu, 20 Jul 2023 23:57:19 +0800 Subject: [PATCH] 111 --- .../com/zzjee/wm/controller/WmOmNoticeHController.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java b/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java index d290fd91..6dc9a757 100644 --- a/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java +++ b/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java @@ -1738,14 +1738,14 @@ public class WmOmNoticeHController extends BaseController { ByteArrayOutputStream byteArrayOut = new ByteArrayOutputStream(); // bufferImg = ImageIO.read(BarcodeUtil.generateToStream(wmImNoticeH // .getNoticeId())); - ClassPathResource classPathResource = new ClassPathResource("icon_sx.jpeg"); - bufferImg = ImageIO.read(classPathResource.getInputStream()); +// ClassPathResource classPathResource = new ClassPathResource("icon_sx.jpeg"); +// bufferImg = ImageIO.read(classPathResource.getInputStream()); // 进行转码,使其支持中文文件名 // codedFileName = java.net.URLEncoder.encode("中文", "UTF-8"); - response.setHeader("content-disposition", "attachment;filename=" - + wmOmNoticeH.getOmNoticeId() + ".xls"); - ImageIO.write(bufferImg, "jpg", byteArrayOut); +// response.setHeader("content-disposition", "attachment;filename=" +// + wmOmNoticeH.getOmNoticeId() + ".xls"); +// ImageIO.write(bufferImg, "jpg", byteArrayOut); HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet("出库单");