admin/src/Oms.Application/Dtos/Orders/OrderWorkplaceStatsOutput.cs
zzh 78e06d01b9 feat: 工作台扩展代发/拣货统计与业务趋势接口
补充 Fulfill/Pickup 工作台统计 DTO 与查询实现,并扩展订单工作台聚合输出。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 10:59:10 +08:00

78 lines
2.0 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 PendingPayment { get; set; }
/// <summary>
/// 问题件数量。
/// </summary>
public int Problematic { get; set; }
/// <summary>
/// 理赔件数量。
/// </summary>
public int Claimed { get; set; }
/// <summary>
/// 店铺数量。
/// </summary>
public int StoreCount { get; set; }
/// <summary>
/// 店铺订单待处理数量(履约状态 pending)。
/// </summary>
public int StoreOrderPending { get; set; }
/// <summary>
/// 代发订单统计(仓内履约)。
/// </summary>
public FulfillWorkplaceStatsOutput Fulfill { get; set; } = new();
/// <summary>
/// 揽收订单统计。
/// </summary>
public PickupWorkplaceStatsOutput Pickup { get; set; } = new();
}