package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分配计数器对象 duty_assign_counter
 *
 * @author ruoyi
 * @date 2024-12-19
 */
@Data
public class DutyAssignCounter extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 配置ID */
    @Excel(name = "配置ID")
    private Long configId;

    /** 上次分配的用户ID */
    @Excel(name = "上次分配用户ID")
    private Long lastAssignedUserId;

    /** 分配次数 */
    @Excel(name = "分配次数")
    private Integer assignCount;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 配置名称（用于显示，不存储到数据库） */
    private String configName;

    /** 上次分配用户名称（用于显示，不存储到数据库） */
    private String lastAssignedUserName;

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

    public Long getId() 
    {
        return id;
    }

    public void setConfigId(Long configId) 
    {
        this.configId = configId;
    }

    public Long getConfigId() 
    {
        return configId;
    }

    public void setLastAssignedUserId(Long lastAssignedUserId) 
    {
        this.lastAssignedUserId = lastAssignedUserId;
    }

    public Long getLastAssignedUserId() 
    {
        return lastAssignedUserId;
    }

    public void setAssignCount(Integer assignCount) 
    {
        this.assignCount = assignCount;
    }

    public Integer getAssignCount() 
    {
        return assignCount;
    }

    public void setUpdateTime(Date updateTime) 
    {
        this.updateTime = updateTime;
    }

    public Date getUpdateTime() 
    {
        return updateTime;
    }

    public void setConfigName(String configName) 
    {
        this.configName = configName;
    }

    public String getConfigName() 
    {
        return configName;
    }

    public void setLastAssignedUserName(String lastAssignedUserName) 
    {
        this.lastAssignedUserName = lastAssignedUserName;
    }

    public String getLastAssignedUserName() 
    {
        return lastAssignedUserName;
    }
}