优化企业成本核算表单插件逻辑

This commit is contained in:
xuhaihui 2025-10-11 16:51:39 +08:00
parent 4088d77e2b
commit f6fe9b62e7
1 changed files with 2 additions and 2 deletions

View File

@ -101,8 +101,8 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn {
// 存在成本中心时按照成本中心+成本项+二级分类去重
uniqueKey = "COSTCENTER_" + costCompanyName + "_" + (costType != null ? costType.toString() : "") + "_" + (secType != null ? secType.toString() : "");
} else {
// 如果既没有工序也没有成本中心不进行汇总使用唯一ID
uniqueKey = "NONE_" + rptAssistBalanceGx.getString("id");
// 如果既没有工序也没有成本中心按照成本项+二级分类去重
uniqueKey = "NONE_" + (costType != null ? costType.toString() : "") + "_" + (secType != null ? secType.toString() : "");
}
DynamicObject existingEntry = summaryMap.get(uniqueKey);