清账单的下推状态更新优化

This commit is contained in:
yuxueliang0813 2025-07-25 14:19:03 +08:00
parent ac7252b791
commit cdef70a598
1 changed files with 7 additions and 5 deletions

View File

@ -372,6 +372,8 @@ public class ClearAccountBillOperation extends AbstractOperationServicePlugIn im
if (!QueryServiceHelper.exists(entityName, qFilter.toArray())) {
//新增一个清账明细单
detailinfo = newDetailBill(prinfo, userinfo);
//更新清账单下推明细单结果-已下推
DB.update(DBRoute.of("fi"), updatePushStatus, new Object[]{"A", prinfo.getPkValue()});
//发送清账明细单的OA待办
JhzjUtils.handleOA(detailinfo, "0", "0");
receivers.clear();
@ -379,8 +381,7 @@ public class ClearAccountBillOperation extends AbstractOperationServicePlugIn im
String pcurl = JhzjUtils.getBillPCURL(detailinfo);
JhzjUtils.sendEmail("请登录资金系统操作清账明细单", detailinfo.getString("billno") +
"<br> 详情页面 <a href='"+pcurl+"' target='_blank'>"+pcurl+"</a>", receivers, detailinfo);
//更新清账单下推明细单结果
DB.update(DBRoute.of("fi"), updatePushStatus, new Object[]{"A", prinfo.getPkValue()});
}
}else{
//根据客户公司是否可用找到对应的被通知人员可能多个
@ -389,7 +390,7 @@ public class ClearAccountBillOperation extends AbstractOperationServicePlugIn im
qFilter.and("shjh_org", QCP.equals, prinfo.getDynamicObject("org").getLong("id"));
pzbs = BusinessDataServiceHelper.load(pzbName, "id", qFilter.toArray(), "modifytime desc");
if (pzbs.length == 0) {
//更新清账单下推明细单结果
//更新清账单下推明细单结果-未下推
DB.update(DBRoute.of("fi"), updatePushStatus, new Object[]{"B", prinfo.getPkValue()});
if(!"save".equals(eok)){
addErrorInfo(prinfo,"根据结构性清账客户映射表未找到对应通知人,无法下推清账明细单");
@ -406,6 +407,8 @@ public class ClearAccountBillOperation extends AbstractOperationServicePlugIn im
if (!QueryServiceHelper.exists(entityName, qFilter.toArray())) {
//新增一个清账明细单
detailinfo = newDetailBill(prinfo, userinfo);
//更新清账单下推明细单结果-已下推
DB.update(DBRoute.of("fi"), updatePushStatus, new Object[]{"A", prinfo.getPkValue()});
//发送清账明细单的OA待办
JhzjUtils.handleOA(detailinfo, "0", "0");
receivers.clear();
@ -413,8 +416,7 @@ public class ClearAccountBillOperation extends AbstractOperationServicePlugIn im
String pcurl = JhzjUtils.getBillPCURL(detailinfo);
JhzjUtils.sendEmail("请登录资金系统操作清账明细单", detailinfo.getString("billno") +
"<br> 详情页面 <a href='"+pcurl+"' target='_blank'>"+pcurl+"</a>", receivers, detailinfo);
//更新清账单下推明细单结果
DB.update(DBRoute.of("fi"), updatePushStatus, new Object[]{"A", prinfo.getPkValue()});
}
}
}