package com.ruoyi.system.domain;

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.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.GeneratedValue;

/**
 * 抽成分成对象 commission_rates
 *
 * @author ruoyi
 * @date 2025-12-18
 */
@Data
@TableName(value = "commission_rates")
@EqualsAndHashCode(callSuper = false)
public class CommissionRates
{
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @GeneratedValue
    /** id */
    private Long id;

    /** 用户id */
    @Excel(name = "userId")
    private Long userId;

    /**开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效时间")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止时间")
    private Date endDate;

    /** 分成比例 */
    @Excel(name = "分成比例")
    private String rate;

    /**
     * 营业额
     */
    private Integer turnover;

    /**
     * 是否已经处理抽成返还
     */
    private Boolean handled;

    /**
     * 处理返还时间
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date handledTime;

    //删除状态
    private Boolean deleted;

    private String remark;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate()
    {
        return startDate;
    }
    public void setEndDate(Date endDate)
    {
        this.endDate = endDate;
    }

    public Date getEndDate()
    {
        return endDate;
    }
    public void setRate(String rate)
    {
        this.rate = rate;
    }

    public String getRate()
    {
        return rate;
    }

}
