From 6d7975611d2731f105e531d5f19e6eb33ba870ee Mon Sep 17 00:00:00 2001 From: ljw Date: Fri, 13 Sep 2024 17:49:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B4=B7=E8=AE=B0=E5=8D=95=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E6=9B=B4=E6=94=B9=E4=B8=BA=E9=9B=86=E5=9B=A2=E5=AE=A2?= =?UTF-8?q?=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wm/im/debcrednotenew/op/DebCredNewSubmitOp.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/yem/wm/im/debcrednotenew/op/DebCredNewSubmitOp.java b/src/main/java/com/yem/wm/im/debcrednotenew/op/DebCredNewSubmitOp.java index 75a17c95..7691aed5 100644 --- a/src/main/java/com/yem/wm/im/debcrednotenew/op/DebCredNewSubmitOp.java +++ b/src/main/java/com/yem/wm/im/debcrednotenew/op/DebCredNewSubmitOp.java @@ -46,13 +46,13 @@ public class DebCredNewSubmitOp extends AbstractOperationServicePlugIn { temp = BusinessDataServiceHelper.loadSingle(temp.getPkValue(), temp.getDynamicObjectType().getName()); //借贷业务类型 DynamicObject yem_credittype = temp.getDynamicObject("yem_credittype"); - //客户 - DynamicObject yem_customer = temp.getDynamicObject("yem_customer"); + //集团客户 + DynamicObject yem_customer = temp.getDynamicObject("yem_groupcusfields"); //产品类型 DynamicObject yem_bd_products = temp.getDynamicObject("yem_bd_products"); QFilter qFilter1 = new QFilter("billstatus", QCP.equals, "C"); qFilter1.and(new QFilter("yem_credittype.id", QCP.equals, yem_credittype.getLong("id"))); - qFilter1.and(new QFilter("yem_customer.id", QCP.equals, yem_customer.getLong("id"))); + qFilter1.and(new QFilter("yem_groupcusfields.id", QCP.equals, yem_customer.getLong("id"))); //借/贷类型 qFilter1.and(new QFilter("yem_debcredtype", QCP.equals, temp.getString("yem_debcredtype"))); qFilter1.and(new QFilter("yem_bd_products.id", QCP.equals, yem_bd_products.getLong("id"))); @@ -66,8 +66,6 @@ public class DebCredNewSubmitOp extends AbstractOperationServicePlugIn { } //组织 DynamicObject org = temp.getDynamicObject("org"); - //集团客户 - DynamicObject yem_groupcustomers = temp.getDynamicObject("yem_groupcusfields"); String products = ""; if (yem_bd_products != null) { String number = yem_bd_products.getString("number"); @@ -79,10 +77,10 @@ public class DebCredNewSubmitOp extends AbstractOperationServicePlugIn { products = "TLJ"; } } - if (org != null && yem_customer != null && yem_groupcustomers != null && yem_credittype != null && products != null) { + if (org != null && yem_customer != null && yem_credittype != null && products != null) { QFilter qFilter = new QFilter("billstatus", QCP.equals, "C");// qFilter.and(new QFilter("org.id", QCP.equals, org.getLong("id"))); - qFilter.and(new QFilter("yem_customer.id", QCP.equals, yem_groupcustomers.getLong("id"))); + qFilter.and(new QFilter("yem_customer.id", QCP.equals, yem_customer.getLong("id"))); qFilter.and(new QFilter("yem_bd_products.number", QCP.equals, products)); qFilter.and(new QFilter("yem_spcapitalpool_a.yem_creditype.id", QCP.equals, yem_credittype.getLong("id"))); qFilter.and(new QFilter("yem_spcapitalpool_a.yem_debcredtype", QCP.equals, temp.getString("yem_debcredtype")));