package yangtz.cs.liu.campus.domain.teacher;

import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import com.core.domain.OurBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class TeacherJy extends OurBaseEntity {
    private static final long serialVersionUID = 1L;

    @Excel(name="设备id")
    private  Long id;

    //设备id
    @Excel(name="设备id")
    private  Long equipmentId;

    //自编码
    @Excel(name = "自编码")
    private String encode;

    //设备名称
    @Excel(name = "设备名称")
    private String equipmentName;

    //型号
    @Excel(name = "型号")
    private String model;

    //借用日期
    @Excel(name = "借用日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date borrowTime;

    //借用人
    @Excel(name = "借用人")
    private String borrowBy;


    private  Long borrowByid;

    //用途
    @Excel(name = "用途")
    private String purpose;

    //借用期限
    @Excel(name = "借用期限")
    private int deadline;

    //归还状态（1已归还，0未归还）
    @Excel(name = "归还状态", readConverterExp = "1=已归还,0=未归还", combo = {"已归还","未归还"})
    private String returnState;

}
