package com.xunhong.erp.turbo.api.biz.dto.vo;

import com.alibaba.cola.dto.DTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xunhong.erp.turbo.api.biz.dto.common.ExpenseCost;
import com.xunhong.erp.turbo.api.biz.dto.common.ExpenseProvision;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author shenyifei
 */
@Data
@Schema(title = "花销统计记录")
@EqualsAndHashCode(callSuper = true)
public class ExpenseRecordVO extends DTO {

    /**
     * 记录ID
     */
    @Schema(title = "记录ID", type = "string", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long expenseRecordId;

    /**
     * 记录日期（YYYY-MM-DD）
     */
    @Schema(title = "记录日期（YYYY-MM-DD）")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate recordDate;

	/**
	 * 计提车次数量
	 */
	@Schema(title = "计提车次数量")
	private Integer totalVehicleCount;

    /**
     * 计提总金额
     */
    @Schema(title = "计提总金额")
    private BigDecimal totalProvision;

    /**
     * 花销总额
     */
    @Schema(title = "花销总额")
    private BigDecimal totalExpense;

    /**
     * 日常利润
     */
    @Schema(title = "日常利润")
    private BigDecimal dailyProfit;

	@Schema(title = "花销计提明细")
	private List<ExpenseProvision> expenseProvisionList;

	@Schema(title = "花销费用明细")
	private List<ExpenseCost> expenseCostList;

    /**
     * 创建时间
     */
    @Schema(title = "创建时间")
    private LocalDateTime createdAt;

}

