fix: 附件下载对齐金蝶契约——A801-1 pdfurl 优先取 PDF 版式走 A801-2
This commit is contained in:
+3
-3
@@ -1244,9 +1244,9 @@ public class InvoiceReceiptServiceImpl extends BaseServiceImpl<InvoiceReceiptMap
|
||||
}
|
||||
|
||||
private String buildAttachmentJson(BfiInvoicePoolVO row) {
|
||||
// 数电票 downloadUrl 可能是 OFD 版式(fileType=4,ZIP 容器),前端按扩展名选预览器:
|
||||
// 依次取 PDF 版式地址(taxPdfUrl/pdfurl,A801-1 样例中两者互有空缺),都缺才用 downloadUrl 并按 fileType 命名
|
||||
String path = Func.isBlank(row.getTaxPdfUrl()) ? row.getPdfurl() : row.getTaxPdfUrl();
|
||||
// 数电票 downloadUrl 可能是 OFD 版式(fileType=4,ZIP 容器),前端按扩展名选预览器。
|
||||
// 下载契约:取 A801-1 的 pdfurl(PDF 版式地址)走 A801-2;taxPdfUrl 兜底,都缺才退 downloadUrl 并按 fileType 命名
|
||||
String path = Func.isBlank(row.getPdfurl()) ? row.getTaxPdfUrl() : row.getPdfurl();
|
||||
boolean fromPdfField = !Func.isBlank(path);
|
||||
if (!fromPdfField) {
|
||||
path = row.getDownloadUrl();
|
||||
|
||||
Reference in New Issue
Block a user