|
|
|
@ -49,7 +49,7 @@ public class EleEctronVoucherServiceImpl extends Service implements EleEctronVou
|
|
|
|
|
Map<String, Object> fileMap = new HashMap<>(2);
|
|
|
|
|
String apiUrl = host + "/uapws/rest/gl/voucherout/voucheroutpdf";
|
|
|
|
|
|
|
|
|
|
String fileName = "凭证" + billId + ".pdf";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 1. 发送 POST 请求,获取 InputStream
|
|
|
|
|
try (HttpResponse response = HttpRequest.post(apiUrl)
|
|
|
|
@ -78,6 +78,7 @@ public class EleEctronVoucherServiceImpl extends Service implements EleEctronVou
|
|
|
|
|
|
|
|
|
|
//InputStream inputStream = response.bodyStream();
|
|
|
|
|
//附件生成
|
|
|
|
|
String fileName = json.getStr("voucherName") + ".pdf";
|
|
|
|
|
int imageFileid = generateImageFileid(inputStream, fileName);
|
|
|
|
|
GenerateDocParams generateDocParams = GenerateDocParams.builder()
|
|
|
|
|
.imageFileid(imageFileid)
|
|
|
|
|