From 4de5577200ee41126f6e840366fa00be3c73a709 Mon Sep 17 00:00:00 2001 From: yuxueliang0813 <407010292@qq.com> Date: Sat, 30 Nov 2024 16:04:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81bip=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E5=A6=82=E6=9E=9C=E6=98=AF=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=EF=BC=8C=E4=B8=8D=E6=8E=A8=E9=80=81=EF=BC=9B?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=9A=E8=AE=A1=E7=BC=96=E5=8F=B7=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E7=82=B9=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repc/recon/opplugin/YongyouBIPOperation.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java b/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java index 5895e60..011fbb7 100644 --- a/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java +++ b/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java @@ -90,6 +90,11 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen //反审核之前,调用bip接口,如果接口成功则更改标记后继续反审核业务 String eok = e.getOperationKey(); if("unaudit".equals(eok)){ + String contextUrl = System.getProperty("domain.contextUrl"); + //如果是测试环境的路径就不触发推送bip + if(contextUrl != null && contextUrl.startsWith("http://isctest")){ + return; + } DynamicObject[] dos = e.getDataEntities(); DynamicObject prinfo = null; boolean isBipSuccess = false; @@ -133,6 +138,11 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen //audit审核 syncbip手动同步 两种情况进入如下代码 String eok = e.getOperationKey(); if("audit".equals(eok) || "syncbip".equals(eok)){ + String contextUrl = System.getProperty("domain.contextUrl"); + //如果是测试环境的路径就不触发推送bip + if(contextUrl != null && contextUrl.startsWith("http://isctest")){ + return; + } DynamicObject[] dos = e.getDataEntities(); DynamicObject prinfo = null; boolean isBipSuccess = false; @@ -334,7 +344,8 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen //集团内部关联公司:22020105\应付账款\往来单位\内部单位(关联方) //如果费用登记中用户选择了会计科目,则使用该字段编号,否则还使用集团内外 yxl 20241116 if(isnotext && payrequestinfo.getDynamicObject("qeug_accountview")!=null){ - items.put("pk_subjcode",payrequestinfo.getDynamicObject("qeug_accountview").getString("number")); + String accountview = payrequestinfo.getDynamicObject("qeug_accountview").getString("number"); + items.put("pk_subjcode",accountview.replace(".","")); }else{ String suptype = getSupplierType(supplierid); if("DB01".equals(suptype)){