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)){