admin/src/Oms.Application/Dtos/Orders/OrderWorkplaceStatsOutput.cs
2026-07-17 14:17:00 +08:00

63 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Oms.Application.Dtos.Orders;
/// <summary>
/// 工作台订单统计概览。
/// </summary>
public class OrderWorkplaceStatsOutput
{
/// <summary>
/// 全部订单数量(不含已删除)。
/// </summary>
public int Total { get; set; }
/// <summary>
/// 按 OrderStatus 分组的数量。
/// </summary>
public Dictionary<string, int> Counts { get; set; } = new(StringComparer.OrdinalIgnoreCase);
/// <summary>
/// 今日新增订单(按创建时间,不含已删除)。
/// </summary>
public int TodayCreated { get; set; }
/// <summary>
/// 昨日新增订单(按创建时间,不含已删除)。
/// </summary>
public int YesterdayCreated { get; set; }
/// <summary>
/// 较昨日新增百分比;昨日为 0 且今日有单时为 100,双方均为 0 时为 null。
/// </summary>
public decimal? DayOverDayGrowthPercent { get; set; }
/// <summary>
/// 待发货数量。
/// </summary>
public int PendingShip { get; set; }
/// <summary>
/// 已发货数量(待上网 + 运输中 + 派送成功/失败)。
/// </summary>
public int Shipped { get; set; }
/// <summary>
/// 待上网数量。
/// </summary>
public int PendingOnline { get; set; }
/// <summary>
/// 问题件数量。
/// </summary>
public int Problematic { get; set; }
/// <summary>
/// 店铺数量。
/// </summary>
public int StoreCount { get; set; }
/// <summary>
/// 店铺订单待处理数量(履约状态 pending)。
/// </summary>
public int StoreOrderPending { get; set; }
}