You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
603 B
C#

9 months ago
using EntrustSettle.Model.Models;
using System;
9 months ago
namespace EntrustSettle.Model.Dtos
{
/// <summary>
/// 订单详情Dto
/// </summary>
9 months ago
public class OrderDto : Order
{
/// <summary>
/// 业务类型名称
/// </summary>
public string BusinessTypeName => BusinessType switch
{
1 => "港杂费",
2 => "堆存费",
_ => ""
};
9 months ago
/// <summary>
/// 当前业务状态名称
/// </summary>
public string StatusName => Enum.GetName(typeof(OrderStatusEnum), Status);
9 months ago
}
}