保存带出资金计划科目-业务日期

This commit is contained in:
李贵强 2025-04-21 15:18:15 +08:00
parent 53950f5809
commit 575aa39092
1 changed files with 3 additions and 3 deletions

View File

@ -41,12 +41,12 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme
private DynamicObject xdMembersubject(DynamicObject bill) {
// 收款单系统自动根据配置表(shjh_pay_account)带出资金计划科目
Date currentDate = new Date();
Date bizDate = bill.getDate("bizdate");
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));
qFilter.and(new QFilter("shjh_begindate", QCP.less_equals, bizDate));
qFilter.and(new QFilter("shjh_enddate", QCP.large_equals, bizDate));
// 加载配置数据并按优先级排序