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]);//部门编码(通过公司主体明细表找部门编码)