资金计划科目优化
This commit is contained in:
parent
422181dec0
commit
1a9d784e84
|
|
@ -29,12 +29,12 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme
|
||||||
DynamicObject[] dataEntities = e.getDataEntities();
|
DynamicObject[] dataEntities = e.getDataEntities();
|
||||||
for (DynamicObject bill : dataEntities) {
|
for (DynamicObject bill : dataEntities) {
|
||||||
bill = BusinessDataServiceHelper.loadSingle(bill.getPkValue(),"cas_recbill");
|
bill = BusinessDataServiceHelper.loadSingle(bill.getPkValue(),"cas_recbill");
|
||||||
DynamicObject planClass = bill.getDynamicObject("shjh_planclass");
|
// DynamicObject planClass = bill.getDynamicObject("shjh_planclass");
|
||||||
if (null == planClass) {
|
// if (null == planClass) {
|
||||||
//根据配置表携带资金计划科目
|
//根据配置表携带资金计划科目
|
||||||
bill.set("shjh_planclass", xdMembersubject(bill));
|
bill.set("shjh_planclass", xdMembersubject(bill));
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -44,6 +44,7 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme
|
||||||
Date currentDate = new Date();
|
Date currentDate = new Date();
|
||||||
QFilter qFilter = new QFilter("shjh_biztype", QCP.equals, "B"); // 业务类型:收款
|
QFilter qFilter = new QFilter("shjh_biztype", QCP.equals, "B"); // 业务类型:收款
|
||||||
qFilter.and(new QFilter("status", QCP.equals, "C")); // 审核状态
|
qFilter.and(new QFilter("status", QCP.equals, "C")); // 审核状态
|
||||||
|
qFilter.and(new QFilter("enable",QCP.equals,"1"));//启用状态
|
||||||
qFilter.and(new QFilter("shjh_begindate", QCP.less_equals, currentDate));
|
qFilter.and(new QFilter("shjh_begindate", QCP.less_equals, currentDate));
|
||||||
qFilter.and(new QFilter("shjh_enddate", QCP.large_equals, currentDate));
|
qFilter.and(new QFilter("shjh_enddate", QCP.large_equals, currentDate));
|
||||||
|
|
||||||
|
|
@ -311,7 +312,7 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme
|
||||||
|
|
||||||
Long id = recBill.getLong(recField);
|
Long id = recBill.getLong(recField);
|
||||||
if (id == 0L) {
|
if (id == 0L) {
|
||||||
return true; // 单据字段信息,不匹配
|
return false; // 单据字段信息,不匹配
|
||||||
}
|
}
|
||||||
|
|
||||||
for (DynamicObject object : dynamicObjectCollection) {
|
for (DynamicObject object : dynamicObjectCollection) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue