package com.ho.business.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class EarningsCalculateSub implements Serializable {
    /**
     * 与elec_template id关联
     */
    private Integer pid;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @ExcelProperty
    private String beginTime;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @ExcelProperty
    private String endTime;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型")
    @ExcelProperty
    @Length(max = 10,message = "类型不能超过10个字符")
    private String type;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    @ExcelProperty
    @Length(max = 10,message = "价格不能超过10位数")
    private BigDecimal price;

    @ApiModelProperty(value = "折扣")
    private BigDecimal discount;

    @ApiModelProperty(value = "费率类型")
    private Integer rateType;
}
