using Dlhis.Entity.Canteen.Enums; using Dlhis.ExcelHelper; using Kurisu.AspNetCore.DataAccess.Dto; using Kurisu.AspNetCore.Utils.Extensions; using Newtonsoft.Json; namespace Dlhis.Canteen.Order.Response; public class ShiftAndBusinessPlaceAnalysisResponse { /// /// 消费总金额 /// public decimal Amount { get; set; } /// /// 消费人数 /// public int UserCount { get; set; } /// /// 消费次数 /// public int CostCount { get; set; } /// /// 分页数据 /// public Pagination Pagination { get; set; } } [Excel("ShiftAndBusinessPlaceAnalysis")] public class ShiftAndBusinessPlaceAnalysisItemResponse : IExcelExportable { /// /// 消费额 /// [JsonIgnore] public decimal CurrentAmount { get; set; } /// /// 消费额 /// [Excel("消费额")] public string Amount => Math.Abs(CurrentAmount).ToString("F2"); /// /// 营业点 /// [Excel("营业点")] public string BusinessPlaceName { get; set; } /// /// 餐次 /// public ShiftEnumType? ShiftType { get; set; } /// /// 餐次 /// [Excel("餐次")] public string ShiftTypeDesc => ShiftType?.GetDescription(); /// /// 消费人数 /// [Excel("消费人数")] public int UserCount { get; set; } /// /// 消费次数 /// [Excel("消费次数")] public int CostCount { get; set; } }