From bfb2d12013a62a2da3e76b9bcf43398cc7716fc5 Mon Sep 17 00:00:00 2001 From: zoujiangtao Date: Fri, 1 Aug 2025 11:50:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=86=85=E5=AE=B9=EF=BC=9A?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E5=9B=9E=E5=8D=95=EF=BC=8C=E5=85=B3=E8=81=94?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E6=A0=87=E8=AE=B0=E6=9B=B4=E6=94=B9=20?= =?UTF-8?q?=E6=97=B6=E9=97=B4=EF=BC=9A2025-08-01=2011=EF=BC=9A48=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BA=BA=EF=BC=9A=E9=82=B9=E6=B1=9F=E6=B6=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shkd/sys/sys/mservice/ApiService.java | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) 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 f5f6084..2d34593 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 @@ -573,6 +573,10 @@ public class ApiService { } else { value = ""; } + } else if ("associatedflownumber".equals(parts[0])) { + String receiptno = billObject.getString("receiptno"); + DynamicObject[] dynamicObjects = BusinessDataServiceHelper.load("bei_transdetail_cas", "id,billno,receiptno", new QFilter("receiptno", QCP.equals, receiptno).toArray()); + value = dynamicObjects[0].getString("billno"); } else { value = billObject.get(parts[0]); } @@ -1036,6 +1040,7 @@ public class ApiService { /** * 构建星空K3CloudApi对象 + * * @param dataEntity * @return */ @@ -1052,9 +1057,10 @@ public class ApiService { /** * 查询星空收付款单(司库推送星空) - * @param dataEntity API映射元数据对象 - * @param billMark 单据类型(收、付、上划、下拨) - * @param billNumber 单据编码(星瀚单据编码) + * + * @param dataEntity API映射元数据对象 + * @param billMark 单据类型(收、付、上划、下拨) + * @param billNumber 单据编码(星瀚单据编码) * @return */ public static HashMap getSKPushXKBill(DynamicObject dataEntity, String billMark, String billNumber) { @@ -1101,9 +1107,10 @@ public class ApiService { /** * 查询星空收付款单(星空推送司库) - * @param dataEntity API映射元数据对象 - * @param billMark 单据类型(收、付、上划、下拨) - * @param billNumber 推送单据编码(星空单据编码) + * + * @param dataEntity API映射元数据对象 + * @param billMark 单据类型(收、付、上划、下拨) + * @param billNumber 推送单据编码(星空单据编码) * @return */ public static HashMap getXKPushSKBill(DynamicObject dataEntity, String billMark, String billNumber) { @@ -1149,6 +1156,7 @@ public class ApiService { /** * 推送星空单据附件(测试推送附件 → 此附件为API映射元数据的单据附件) + * * @param dataEntity API映射元数据对象 * @return */ @@ -1162,7 +1170,7 @@ public class ApiService { logger.info("获取推送单据编码 → billNumber:{}", billNumber); HashMap xkBillData = getSKPushXKBill(dataEntity, billMark, billNumber); String uploadAttachmentResult = null; - if ((Boolean)xkBillData.get("result")) { + if ((Boolean) xkBillData.get("result")) { List> attachmentData = get_attachment(dataEntity); JSONObject jsonObject = new JSONObject(); @@ -1188,7 +1196,7 @@ public class ApiService { * @param dataEntity API映射元数据对象 * @return */ - public static List> get_attachment(DynamicObject dataEntity) { + public static List> get_attachment(DynamicObject dataEntity) { String entityId = dataEntity.getDataEntityType().toString(); List> list = AttachmentServiceHelper.getAttachments(entityId, dataEntity.get("id"), "shkd_attachmentpanelap"); List> attachments = new ArrayList<>();