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); }