diff --git a/src/main/java/com/yem/wm/es/storagetrans/form/StorageTransEdit.java b/src/main/java/com/yem/wm/es/storagetrans/form/StorageTransEdit.java index c50d55cb..5d7eefc1 100644 --- a/src/main/java/com/yem/wm/es/storagetrans/form/StorageTransEdit.java +++ b/src/main/java/com/yem/wm/es/storagetrans/form/StorageTransEdit.java @@ -1287,9 +1287,9 @@ public class StorageTransEdit extends AbstractBillPlugIn implements BeforeF7Sele String name = dataEntity.getDataEntityType().getName(); DynamicObjectCollection materialinfo = dataEntity.getDynamicObjectCollection("yem_es_materialinfo"); BigDecimal sum = BigDecimal.ZERO; - BigDecimal allonPush = BigDecimal.ZERO; -// boolean allonPush = true; + boolean allonPush = true; for (DynamicObject dynamicObject : materialinfo) { + BigDecimal adstamount = dynamicObject.getBigDecimal("yem_adstamount"); // 销售出库金额-提交 BigDecimal saamtpriceclause; if ("yem_es_declaredocx".equals(name)) { @@ -1301,18 +1301,13 @@ public class StorageTransEdit extends AbstractBillPlugIn implements BeforeF7Sele } BigDecimal amt = adstamount.subtract(saamtpriceclause); - BigDecimal yemExportmat = dynamicObject.getBigDecimal("yem_exportmat"); - if (yemExportmat.compareTo(BigDecimal.ZERO) > 0) { - allonPush = allonPush.add(yemExportmat); + if (amt.compareTo(BigDecimal.ZERO) != 0) { + allonPush = false; } sum = sum.add(amt); dynamicObject.set("yem_exportmat", amt); } dataEntity.set("yem_exportmatsum", sum); - if (allonPush.compareTo(BigDecimal.ZERO) == 0) { - dataEntity.set("yem_allonpush", true); - }else { - dataEntity.set("yem_allonpush", false); - } + dataEntity.set("yem_allonpush", allonPush); } } diff --git a/src/main/java/kd/cosmic/Application.java b/src/main/java/kd/cosmic/Application.java index b30a4f27..da9708ed 100644 --- a/src/main/java/kd/cosmic/Application.java +++ b/src/main/java/kd/cosmic/Application.java @@ -17,17 +17,17 @@ public class Application { cosmic.setWebPath("E:/Cosmic/Comics_YXZG/YXZG-server/webapp"); ////152 - cosmic.setClusterNumber("yxzg-topview-dev"); - cosmic.setTenantNumber("yxzg-topview-dev"); - cosmic.setServerIP("10.64.112.152"); - cosmic.setFileServerPathIPAndPort("", ""); - cosmic.setConfigUrl("10.64.112.152:2181", "zookeeper", "Cosmic@5092"); +// cosmic.setClusterNumber("yxzg-topview-dev"); +// cosmic.setTenantNumber("yxzg-topview-dev"); +// cosmic.setServerIP("10.64.112.152"); +// cosmic.setFileServerPathIPAndPort("", ""); +// cosmic.setConfigUrl("10.64.112.152:2181", "zookeeper", "Cosmic@5092"); System.setProperty("mq.debug.queue.tag", "wrxtest"); ////134 -// cosmic.setClusterNumber("yxzg-prod"); -// cosmic.setTenantNumber("yxzg-prod"); -// cosmic.setServerIP("10.64.111.134"); -// cosmic.setConfigUrl("10.64.111.134:2181","zookeeper","d@f*g:SGVsbG8==U4HRwjlqTOp0p9b60T+T8D2fQ8ThQgJLu/qgfLyLgknPa2RwYXNzd29yZA=="); + cosmic.setClusterNumber("yxzg-prod"); + cosmic.setTenantNumber("yxzg-prod"); + cosmic.setServerIP("10.64.111.134"); + cosmic.setConfigUrl("10.64.111.134:2181","zookeeper","d@f*g:SGVsbG8==U4HRwjlqTOp0p9b60T+T8D2fQ8ThQgJLu/qgfLyLgknPa2RwYXNzd29yZA=="); cosmic.setStartWithQing(false); cosmic.start();