package com.ruoyi.education.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学期信息对象 edu_semester
 * 
 * @author ruoyi
 * @date 2024-09-26
 */
public class EduSemester extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学期ID */
    private Long semesterId;

    /** 学期编码，例如 2024-2025-1 */
    @Excel(name = "学期编码")
    private String semesterCode;

    /** 学期名称 */
    @Excel(name = "学期名称")
    private String semesterName;

    /** 教学开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "教学开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 教学结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "教学结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 统一选课开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "选课开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date enrollStartTime;

    /** 统一选课结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "选课结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date enrollEndTime;

    /** 状态（0草稿 1进行中 2已归档） */
    @Excel(name = "状态", readConverterExp = "0=草稿,1=进行中,2=已归档")
    private String status;

    public void setSemesterId(Long semesterId) 
    {
        this.semesterId = semesterId;
    }

    public Long getSemesterId() 
    {
        return semesterId;
    }
    public void setSemesterCode(String semesterCode) 
    {
        this.semesterCode = semesterCode;
    }

    public String getSemesterCode() 
    {
        return semesterCode;
    }
    public void setSemesterName(String semesterName) 
    {
        this.semesterName = semesterName;
    }

    public String getSemesterName() 
    {
        return semesterName;
    }
    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 setEnrollStartTime(Date enrollStartTime) 
    {
        this.enrollStartTime = enrollStartTime;
    }

    public Date getEnrollStartTime() 
    {
        return enrollStartTime;
    }
    public void setEnrollEndTime(Date enrollEndTime) 
    {
        this.enrollEndTime = enrollEndTime;
    }

    public Date getEnrollEndTime() 
    {
        return enrollEndTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("semesterId", getSemesterId())
            .append("semesterCode", getSemesterCode())
            .append("semesterName", getSemesterName())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("enrollStartTime", getEnrollStartTime())
            .append("enrollEndTime", getEnrollEndTime())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}