package com.yiqi.settlement.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yiqi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.yiqi.common.core.domain.BaseEntity;
import lombok.Data;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * 门店结算费率配置对象 settlement_factory_rate
 *
 * @author ruoyi
 * @date 2024-09-03
 */
@ApiModel("门店结算费率配置")
@TableName("settlement_factory_rate")
@Data
public class SettlementFactoryRate extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    @TableId(type = IdType.AUTO)

    private Long id;

    /**
     * 工厂ID
     */
    @Excel(name = "工厂ID")
    @ApiModelProperty("工厂ID")

    private Long factoryId;

    /**
     * 材料费率
     */
    @Excel(name = "材料费率")
    @ApiModelProperty("材料费率")
    private BigDecimal materialRate;

    /**
     * 系统管理费率
     */
    @Excel(name = "系统管理费率")
    @ApiModelProperty("系统管理费率")
    private BigDecimal managementRate;

    /**
     * 押金费率
     */
    @Excel(name = "押金费率")
    @ApiModelProperty("押金费率")
    private BigDecimal depositRate;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("开始时间")
    private Date startDate;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty("结束时间")
    private Date endDate;


}
