fix: 1.信保额度申请提交效验
This commit is contained in:
parent
bafd2a9eaa
commit
54984abdfa
@ -34,13 +34,15 @@ public class CsrCreditSubmitLineValidator extends AbstractValidator {
|
|||||||
if (!customer.containsProperty("yem_customer")) {
|
if (!customer.containsProperty("yem_customer")) {
|
||||||
customer = BusinessDataServiceHelper.loadSingleFromCache(customer.getPkValue(), customer.getDynamicObjectType().getName());
|
customer = BusinessDataServiceHelper.loadSingleFromCache(customer.getPkValue(), customer.getDynamicObjectType().getName());
|
||||||
}
|
}
|
||||||
QFilter qFilter = new QFilter("yem_customer.yem_customer", QCP.equals, customer.getString("yem_customer"));
|
QFilter qFilter = new QFilter("billstatus", QCP.in, new String[]{"B", "C"});
|
||||||
// QFilter qFilter = new QFilter("yem_customer", QCP.equals, customer.getPkValue());
|
// QFilter qFilter = new QFilter("yem_customer", QCP.equals, customer.getPkValue());
|
||||||
// qFilter.and(new QFilter("org", QCP.equals, org.getPkValue()));
|
// qFilter.and(new QFilter("org", QCP.equals, org.getPkValue()));
|
||||||
// qFilter.and(new QFilter("yem_bizdate", QCP.large_than, yearBegin));
|
// qFilter.and(new QFilter("yem_bizdate", QCP.large_than, yearBegin));
|
||||||
// qFilter.and(new QFilter("yem_bizdate", QCP.less_equals, yearLast));
|
// qFilter.and(new QFilter("yem_bizdate", QCP.less_equals, yearLast));
|
||||||
qFilter.and(new QFilter("billstatus", QCP.in, new String[]{"B", "C"}));
|
String yemCustomer = customer.getString("yem_customer");
|
||||||
qFilter.and(new QFilter("yem_payment.id", QCP.equals, method.getLong("id")));
|
if (!"".equals(yemCustomer)) {
|
||||||
|
qFilter.and(new QFilter("yem_customer.yem_customer", QCP.equals, yemCustomer));
|
||||||
|
}qFilter.and(new QFilter("yem_payment.id", QCP.equals, method.getLong("id")));
|
||||||
if ("信用证".contains(method.getString("name"))) {
|
if ("信用证".contains(method.getString("name"))) {
|
||||||
qFilter.and(new QFilter("yem_swiftcode", QCP.equals, swiftcode));
|
qFilter.and(new QFilter("yem_swiftcode", QCP.equals, swiftcode));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user