package com.xunhong.erp.turbo.biz.domain.entity;

import com.alibaba.cola.domain.Entity;
import com.alibaba.cola.dto.DTO;
import com.xunhong.erp.turbo.api.biz.dto.common.ExpenseCost;
import com.xunhong.erp.turbo.api.biz.dto.common.ExpenseProvision;
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
@Entity
@EqualsAndHashCode(callSuper = true)
public class ExpenseRecord extends DTO {

    /**
     * 记录ID
     */
    private Long expenseRecordId;

    /**
     * 记录日期（YYYY-MM-DD）
     */
    private LocalDate recordDate;

	/**
	 * 计提车次数量
	 */
	private Integer totalVehicleCount;

    /**
     * 计提总金额
     */
    private BigDecimal totalProvision;

    /**
     * 花销总额
     */
    private BigDecimal totalExpense;

    /**
     * 日常利润
     */
    private BigDecimal dailyProfit;

	/**
	 * 花销计提明细
	 */
	private List<ExpenseProvision> expenseProvisionList;

	/**
	 * 花销费用明细
	 */
	private List<ExpenseCost> expenseCostList;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;

}

