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.
haoliang-net/src/CncModels/Dto/Production/DailySummaryResponse.cs

19 lines
584 B
C#

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;
}
}