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

This commit is contained in:
xuhaihui 2025-10-11 17:44:13 +08:00
parent adac5e85c8
commit e333e87276
1 changed files with 1 additions and 4 deletions

View File

@ -97,11 +97,8 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn {
if (processName != null && !processName.isEmpty()) {
// 存在工序时按照工序+成本项+二级分类去重
uniqueKey = "PROCESS_" + processName + "_" + (costType != null ? costType.toString() : "") + "_" + (secType != null ? secType.toString() : "");
} else if (costCompanyName != null && !costCompanyName.isEmpty()) {
// 存在成本中心时按照成本中心+成本项+二级分类去重
uniqueKey = "COSTCENTER_" + costCompanyName + "_" + (costType != null ? costType.toString() : "") + "_" + (secType != null ? secType.toString() : "");
} else {
// 如果没有工序也没有成本中心则按照成本项+二级分类去重
// 如果没有工序则按照成本项+二级分类去重
uniqueKey = "NONE_" + (costType != null ? costType.toString() : "") + "_" + (secType != null ? secType.toString() : "");
}