From a74b0e68764e8ec6be0ca646a16e403ce5f6775b Mon Sep 17 00:00:00 2001 From: yuxueliang0813 <407010292@qq.com> Date: Mon, 30 Dec 2024 18:25:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E6=AC=BE=E7=94=B3=E8=AF=B7=E5=8D=95?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E4=BE=9B=E5=BA=94=E5=95=86=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repc/recon/opplugin/YongyouBIPOperation.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java b/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java index 74d8760..9bd3263 100644 --- a/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java +++ b/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java @@ -218,8 +218,18 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen ap_recaccount = payrequestinfo.getString("receiveno"); payData.put("pk_psndoc","");//非个人业务 不传 } - String supplierNum = payrequestinfo.getDynamicObject("receiveunit").getString("number"); - long supplierid = payrequestinfo.getDynamicObject("receiveunit").getLong("id"); + //关于供应商的编号和ID,需要根据费用登记和付款申请单区别获取 + String supplierNum = null; + long supplierid = 0l; + if(isnotext){ + supplierNum = payrequestinfo.getDynamicObject("receiveunit").getString("number"); + supplierid = payrequestinfo.getDynamicObject("receiveunit").getLong("id"); + }else{ + //付款申请单-收款单位是多类别基础资料 multypereceiveunit + supplierNum = payrequestinfo.getDynamicObject("multypereceiveunit").getString("number"); + supplierid = payrequestinfo.getDynamicObject("multypereceiveunit").getLong("id"); + } + payData.put("customer",supplierNum);//客户编码 即使是供应商也传入到该字段 payData.put("pk_dept",companyDept[1]);//部门编码(通过公司主体明细表找部门编码)