diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java index 521d4a7..cc35bf9 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java @@ -326,12 +326,12 @@ public class ApiService { Long userId = RequestContext.get().getCurrUserId(); DynamicObjectCollection userObj = QueryServiceHelper.query("bos_user", "id,phone", (new QFilter("id", "=", userId)).toArray()); DynamicObjectCollection configObj = QueryServiceHelper.query("bas_imageconfig", "imageurl,clientid,clientsecret", (new QFilter("enable", "=", "A")).toArray()); - InputStream image = ScanServiceImpl.getImage(configObj.get(0).getString("clientid"), ((DynamicObject)configObj.get(0)).getString("clientsecret"), ((DynamicObject)configObj.get(0)).getString("imageurl"), ((DynamicObject)userObj.get(0)).getString("phone"), fileServerUrl); + InputStream image = ScanServiceImpl.getImage(configObj.get(0).getString("clientid"), configObj.get(0).getString("clientsecret"), configObj.get(0).getString("imageurl"), userObj.get(0).getString("phone"), fileServerUrl); ReceiptPrintHelper.imageConvertPdf("", resList, image); } else if (!uploadFileName.endsWith("pdf") && !uploadFileName.endsWith("PDF")) { if (!uploadFileName.endsWith("ofd") && !uploadFileName.endsWith("OFD")) { logger.info("fileReceipt url:" + uploadFileName); - ReceiptPrintHelper.imageConvertPdf(uploadFileName, resList, (InputStream)null); + ReceiptPrintHelper.imageConvertPdf(uploadFileName, resList, null); } else { logger.info("ofdReceipt url:" + uploadFileName); byte[] bytes = OfdConvertUtil.convertToPdfNew(BeiHelper.getPdfPutStream(uploadFileName, "old"));