25 lines
689 B
C#
25 lines
689 B
C#
using Dlhis.Canteen.Order.Dto;
|
|
using Kurisu.AspNetCore.DataAccess.Dto;
|
|
using Kurisu.AspNetCore.Utils.Converters;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Dlhis.Canteen.Order.Response;
|
|
|
|
public class BalanceRecordAnalysisShiftAmountResponse
|
|
{
|
|
public decimal Amount { get; set; }
|
|
public Pagination<BalanceRecordAnalysisShiftPageResponse> Pagination { get; set; }
|
|
}
|
|
|
|
public class BalanceRecordAnalysisShiftPageResponse
|
|
{
|
|
[JsonConverter(typeof(ToDateJsonConverter))]
|
|
public DateTime Date { get; set; }
|
|
|
|
public List<ShiftSummaryDto<decimal>> Shifts { get; set; }
|
|
|
|
/// <summary>
|
|
/// 当天总额
|
|
/// </summary>
|
|
public decimal DateAmount => Shifts.Sum(x => x.Value);
|
|
} |