Compare commits

...

2 Commits

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);