fix:补充反参运输时效场景反参
- AreaName 区域名称
This commit is contained in:
parent
d8aba5f7a9
commit
ed3b7940c8
@ -49,4 +49,9 @@ public class TransportWarningSceneDto
|
|||||||
/// 区域Id(单一)
|
/// 区域Id(单一)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int? AreaId { get; set; }
|
public int? AreaId { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 区域id对应的名称
|
||||||
|
/// </summary>
|
||||||
|
public string? AreaName { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@ -86,7 +86,8 @@ public class TransportWarningService : ApplicationService
|
|||||||
LeavePort = x.LeavePort,
|
LeavePort = x.LeavePort,
|
||||||
ProductCode = x.ProductCode,
|
ProductCode = x.ProductCode,
|
||||||
Months = x.Months,
|
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());
|
return new UnifyResultDto<List<TransportWarningSceneDto>>(true, map.ToList());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user