80 lines
1.7 KiB
C#
80 lines
1.7 KiB
C#
using Dlhis.Entity.Canteen.Enums;
|
|
using Kurisu.AspNetCore.Utils.Extensions;
|
|
using Kurisu.Core.DataAccess.Dto;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Dlhis.Canteen.Order.Response;
|
|
|
|
public class BalanceRecordUserPageResponse
|
|
{
|
|
public long Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 流水号
|
|
/// </summary>
|
|
public string No { get; set; }
|
|
|
|
/// <summary>
|
|
/// 来源
|
|
/// </summary>
|
|
public BalanceRecordSourceEnumType Source { get; set; }
|
|
|
|
public string SourceDesc => Source.GetDescription();
|
|
|
|
/// <summary>
|
|
/// 金额
|
|
/// </summary>
|
|
[JsonIgnore]
|
|
public decimal CurrentAmount { get; set; }
|
|
|
|
/// <summary>
|
|
/// 金额
|
|
/// </summary>
|
|
public string Amount => CurrentAmount.ToString("f2");
|
|
|
|
/// <summary>
|
|
/// 营业点
|
|
/// </summary>
|
|
public string BusinessPlaceName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 餐次
|
|
/// </summary>
|
|
public ShiftEnumType? ShiftType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 餐次
|
|
/// </summary>
|
|
public string ShiftTypeDesc => ShiftType?.GetDescription();
|
|
|
|
/// <summary>
|
|
/// 消费时间
|
|
/// </summary>
|
|
public DateTime CostDateTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 消费应用类型
|
|
/// </summary>
|
|
public CanteenApplicaitonTypeEnumType ApplicationType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 消费应用类型
|
|
/// </summary>
|
|
public string ApplicationTypeDesc => ApplicationType.GetDescription();
|
|
}
|
|
|
|
|
|
public class BalanceRecordUserResultResponse
|
|
{
|
|
[JsonIgnore]
|
|
public decimal CurrentMonthSum { get; set; }
|
|
|
|
/// <summary>
|
|
/// 当前月份总和
|
|
/// </summary>
|
|
public string MonthSum => CurrentMonthSum.ToString("f2");
|
|
|
|
|
|
public Pagination<BalanceRecordUserPageResponse> Items { get; set; }
|
|
}
|