parent
3207117faa
commit
5af9e89356
|
@ -326,12 +326,12 @@ public class ApiService {
|
||||||
Long userId = RequestContext.get().getCurrUserId();
|
Long userId = RequestContext.get().getCurrUserId();
|
||||||
DynamicObjectCollection userObj = QueryServiceHelper.query("bos_user", "id,phone", (new QFilter("id", "=", userId)).toArray());
|
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());
|
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);
|
ReceiptPrintHelper.imageConvertPdf("", resList, image);
|
||||||
} else if (!uploadFileName.endsWith("pdf") && !uploadFileName.endsWith("PDF")) {
|
} else if (!uploadFileName.endsWith("pdf") && !uploadFileName.endsWith("PDF")) {
|
||||||
if (!uploadFileName.endsWith("ofd") && !uploadFileName.endsWith("OFD")) {
|
if (!uploadFileName.endsWith("ofd") && !uploadFileName.endsWith("OFD")) {
|
||||||
logger.info("fileReceipt url:" + uploadFileName);
|
logger.info("fileReceipt url:" + uploadFileName);
|
||||||
ReceiptPrintHelper.imageConvertPdf(uploadFileName, resList, (InputStream)null);
|
ReceiptPrintHelper.imageConvertPdf(uploadFileName, resList, null);
|
||||||
} else {
|
} else {
|
||||||
logger.info("ofdReceipt url:" + uploadFileName);
|
logger.info("ofdReceipt url:" + uploadFileName);
|
||||||
byte[] bytes = OfdConvertUtil.convertToPdfNew(BeiHelper.getPdfPutStream(uploadFileName, "old"));
|
byte[] bytes = OfdConvertUtil.convertToPdfNew(BeiHelper.getPdfPutStream(uploadFileName, "old"));
|
||||||
|
|
Loading…
Reference in New Issue