namespace CncModels.Dto.Production
{
    /// <summary>
    /// 日汇总统计
    /// </summary>
    public class DailySummaryResponse
    {
        public int TotalQuantity { get; set; }
        public int MachineCount { get; set; }
        public int NormalCount { get; set; }
        public int OfflineCount { get; set; }

        // 前端兼容字段
        public int activeMachineCount => MachineCount;
        public decimal totalCuttingTime { get; set; }
        public decimal avgQuantityPerMachine => MachineCount > 0 ? (decimal)TotalQuantity / MachineCount : 0;
    }
}
