diff --git a/main/java/shkd/repc/resm/opplugin/PushOASupplierOPPlugin.java b/main/java/shkd/repc/resm/opplugin/PushOASupplierOPPlugin.java index 4500c1c..727291a 100644 --- a/main/java/shkd/repc/resm/opplugin/PushOASupplierOPPlugin.java +++ b/main/java/shkd/repc/resm/opplugin/PushOASupplierOPPlugin.java @@ -106,7 +106,12 @@ public class PushOASupplierOPPlugin extends AbstractOperationServicePlugIn { customerBody.put("createTime", createtime);// "创建时间:例如2024-06-02 17:27:10", customerBody.put("updateTime", updatetime);//"更新时间:例如2024-06-02 17:27:10", customerBody.put("def1", "采购供应商");//"客商类别:默认租赁客户", -// customerBody.put("RESSYS", "ISC");//todo"最后更新来源系统:默认ISC", + String property = System.getProperty("domain.contextUrl"); + //测试环境 + if (property != null && property.contains("test")) { + customerBody.put("RESSYS", "ISC");//todo"最后更新来源系统:默认ISC", + } + JSONArray custBankaccMapBody = new JSONArray(); //银行信息 diff --git a/main/java/shkd/todotask/todoZyTaskServiceHandler.java b/main/java/shkd/todotask/todoZyTaskServiceHandler.java index dfe91e4..b6820a4 100644 --- a/main/java/shkd/todotask/todoZyTaskServiceHandler.java +++ b/main/java/shkd/todotask/todoZyTaskServiceHandler.java @@ -89,7 +89,7 @@ public class todoZyTaskServiceHandler extends AbstractMessageServiceHandler { //https://newoa.dobechina.com String property = System.getProperty("domain.contextUrl"); //测试环境 - if ("http://isctest.dobechina.com:8022/ierp".equals(property)) { + if (property != null && property.contains("test")) { url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + url; h5url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + h5url; }else { @@ -333,7 +333,7 @@ public class todoZyTaskServiceHandler extends AbstractMessageServiceHandler { //https://newoa.dobechina.com String property = System.getProperty("domain.contextUrl"); //测试环境 - if ("http://isctest.dobechina.com:8022/ierp".equals(property)) { + if (property != null && property.contains("test")) { url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + url; h5url = "http://172.31.254.240:9090/seeyon/isc.do?method=ssoISC&toUrl=" + h5url; }else {