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")));