肿瘤评估标准-Id匹配合并去重bug

This commit is contained in:
2025-02-08 15:58:12 +08:00
parent 670a754eb2
commit 8f6e2e342a
2 changed files with 14 additions and 3 deletions
@@ -300,6 +300,17 @@ public static class ExcelExportHelper
{
public Guid Id { get; set; }
public string Name { get; set; }
public override bool Equals(object obj)
{
if (obj is not ColumItem other) return false;
return Id == other.Id && Name == other.Name;
}
public override int GetHashCode()
{
return HashCode.Combine(Id, Name);
}
}
public List<string> ColumnIdList => ColumnIdNameList == null ? new List<string>() : ColumnIdNameList.Select(t => t.Id.ToString()).ToList();