fix:补充反参运输时效场景反参

- AreaName 区域名称
This commit is contained in:
hardstylewyl 2025-03-19 17:52:21 +08:00
parent d8aba5f7a9
commit ed3b7940c8
2 changed files with 7 additions and 1 deletions

View File

@ -49,4 +49,9 @@ public class TransportWarningSceneDto
/// 区域Id(单一)
/// </summary>
public int? AreaId { get; set; }
/// <summary>
/// 区域id对应的名称
/// </summary>
public string? AreaName { get; set; }
}

View File

@ -86,7 +86,8 @@ public class TransportWarningService : ApplicationService
LeavePort = x.LeavePort,
ProductCode = x.ProductCode,
Months = x.Months,
AreaId = x.AreaId
AreaId = x.AreaId,
AreaName = x.AreaId.HasValue ? areaNameDict?.GetValueOrDefault(x.AreaId.Value) : null
});
return new UnifyResultDto<List<TransportWarningSceneDto>>(true, map.ToList());