package com.ruoyi.oa.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;
import java.util.Date;



/**
 * 休假管理视图对象 sys_oa_holiday
 *
 * @author liuzongkun999
 * @date 2025-02-20
 */
@Data
@ExcelIgnoreUnannotated
public class SysOaHolidayVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ExcelProperty(value = "主键id")
    private Long holidayId;

    /**
     * 0正常1周日2节假日3调休
     */
    @ExcelProperty(value = "0正常1周日2节假日3调休")
    private Integer type;

    /**
     * 假期日期
     */
    @ExcelProperty(value = "假期日期")
    private Date holidayTime;

    /**
     * 假期名称（如果是周日，值为休息日）
     */
    @ExcelProperty(value = "假期名称", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "如=果是周日，值为休息日")
    private String name;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;


}
