From d307f9c9caa375efaa0a26b43149758639d625d5 Mon Sep 17 00:00:00 2001 From: "tanfengling@x-ri.com" <123456> Date: Tue, 4 Nov 2025 17:33:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B3=9B=E5=BE=AE=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E3=80=91=20=E9=87=87=E8=B4=AD=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E6=8E=A8=E9=80=81=E6=B3=9B=E5=BE=AE=E3=80=81=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E6=A0=87=E5=87=86=E5=88=A4=E7=A9=BA=E4=BF=AE=E6=94=B9=20?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E5=87=BA=E5=BA=93=E5=8D=95=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=B3=9B=E5=BE=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugin/operate/im/OtherOutSubmitToFwOp.java | 2 +- .../plugin/operate/sys/SupplierAuditPushFwOp.java | 1 - lc123/cloud/app/plugin/trd/FWImpl.java | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/lc123/cloud/app/plugin/operate/im/OtherOutSubmitToFwOp.java b/lc123/cloud/app/plugin/operate/im/OtherOutSubmitToFwOp.java index fd0360e..f077687 100644 --- a/lc123/cloud/app/plugin/operate/im/OtherOutSubmitToFwOp.java +++ b/lc123/cloud/app/plugin/operate/im/OtherOutSubmitToFwOp.java @@ -22,7 +22,7 @@ public class OtherOutSubmitToFwOp extends AbstractOperationServicePlugIn { List successPkIds = operationResult.getSuccessPkIds(); for (Object successPkId : successPkIds) { DynamicObject bill = BusinessDataServiceHelper.loadSingle(successPkId, "im_otheroutbill"); - DynamicObject tqq9_biztype = bill.getDynamicObject("tqq9_biztype"); + DynamicObject tqq9_biztype = bill.getDynamicObject("billtype"); if(tqq9_biztype != null){ //样品 礼品 拍照 展会 四类不推泛微 String biztypenumber = tqq9_biztype.getString("number"); diff --git a/lc123/cloud/app/plugin/operate/sys/SupplierAuditPushFwOp.java b/lc123/cloud/app/plugin/operate/sys/SupplierAuditPushFwOp.java index ba79956..9a0e8d9 100644 --- a/lc123/cloud/app/plugin/operate/sys/SupplierAuditPushFwOp.java +++ b/lc123/cloud/app/plugin/operate/sys/SupplierAuditPushFwOp.java @@ -40,7 +40,6 @@ public class SupplierAuditPushFwOp extends AbstractOperationServicePlugIn { SaveServiceHelper.save(new DynamicObject[]{dataEntity}); } } - break; } } diff --git a/lc123/cloud/app/plugin/trd/FWImpl.java b/lc123/cloud/app/plugin/trd/FWImpl.java index d36d91e..c741f89 100644 --- a/lc123/cloud/app/plugin/trd/FWImpl.java +++ b/lc123/cloud/app/plugin/trd/FWImpl.java @@ -519,6 +519,20 @@ public class FWImpl { mainTable.put("KDBillType", "bd_supplier"); mainTable.put("ywgz", ywgz); + JSONArray fjArr = new JSONArray(); + List> attachments = AttachmentServiceHelper.getAttachments("bd_supplier", bill.getPkValue(), "tqq9_attachmentpanelap"); + for (Map attachment : attachments) { + String filePath = (String) attachment.get("url"); + String fileName = (String) attachment.get("name"); + byte[] bytes = HttpUtil.downloadBytes(filePath); + String str = "base64:" + cn.hutool.core.codec.Base64.encode(bytes); + JSONObject fj = new JSONObject(); + fj.put("content", str); + fj.put("name", fileName); + fjArr.add(fj); + } + mainTable.put("htfj", fjArr); + FWRestfulUtils fwRestfulUtils = new FWRestfulUtils(); return fwRestfulUtils.pushBaseData(mainTable, cjr, gysbh, "bd_supplier", recordsArr1, recordsArr2); }