资金计划科目优化

This commit is contained in:
李贵强 2025-04-18 17:53:21 +08:00
parent 422181dec0
commit 1a9d784e84
1 changed files with 5 additions and 4 deletions

View File

@ -29,12 +29,12 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme
DynamicObject[] dataEntities = e.getDataEntities();
for (DynamicObject bill : dataEntities) {
bill = BusinessDataServiceHelper.loadSingle(bill.getPkValue(),"cas_recbill");
DynamicObject planClass = bill.getDynamicObject("shjh_planclass");
if (null == planClass) {
// DynamicObject planClass = bill.getDynamicObject("shjh_planclass");
// if (null == planClass) {
//根据配置表携带资金计划科目
bill.set("shjh_planclass", xdMembersubject(bill));
SaveServiceHelper.save(new DynamicObject[]{bill});
}
// }
}
}
@ -44,6 +44,7 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme
Date currentDate = new Date();
QFilter qFilter = new QFilter("shjh_biztype", QCP.equals, "B"); // 业务类型:收款
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_enddate", QCP.large_equals, currentDate));
@ -311,7 +312,7 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme
Long id = recBill.getLong(recField);
if (id == 0L) {
return true; // 单据字段信息不匹配
return false; // 单据字段信息不匹配
}
for (DynamicObject object : dynamicObjectCollection) {