package cn.iocoder.yudao.module.attendance.controller.admin.leave.vo;

import cn.iocoder.yudao.module.infra.api.file.dto.FileDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 请假信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AttendanceLeaveRespVO {

    @Schema(description = "请假表单主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "11893")
    private Long id;

    @Schema(description = "uuid", example = "9396")
    private String leaveId;

    @Schema(description = "请假人id", example = "25553")
    private Long employeeId;

    @Schema(description = "请假人uuid", example = "9213")
    private String employeeUuid;

    @Schema(description = "请假员工姓名", example = "王五")
    @ExcelProperty("请假人")
    private String employeeName;

    @Schema(description = "用户账号id", example = "20160")
    private Long userId;

    @Schema(description = "用户账号uuid", example = "27340")
    private String userUuid;

    @Schema(description = "部门id", example = "5849")
    private Long deptId;

    @Schema(description = "部门uuid", example = "864")
    private String deptUuid;

    @Schema(description = "部门名称", example = "财务部")
    @ExcelProperty("部门")
    private String deptName;

    @Schema(description = "员工职位")
    @ExcelProperty("职位")
    private String position;

    @Schema(description = "请假员工手机号")
    @ExcelProperty("手机号")
    private String employeePhone;

    @Schema(description = "请假类型", example = "1")
    @ExcelProperty("请假类型")
    private String leaveType;

    @Schema(description = "开始日期")
    @ExcelProperty("开始日期")
    private String startDate;

    @Schema(description = "具体时间，精确到上下午，am上午 pm下午")
    private String startTime;

    @Schema(description = "结束日期")
    @ExcelProperty("结束日期")
    private String endDate;

    @Schema(description = "具体时间，精确到上下午，am上午 pm下午")
    private String endTime;

    @Schema(description = "请假天数")
    @ExcelProperty("请假天数")
    private String day;

    @Schema(description = "请假原因", example = "不香")
    private String reason;

    @Schema(description = "备注")
    private String remarks;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "数据来源，0流程添加、1手动添加")
    private String infoSource;

    @Schema(description = "创建人员工id", example = "22995")
    private Long creatorEmployeeId;

    @Schema(description = "创建人员工姓名", example = "张三")
    @ExcelProperty("创建人")
    private String creatorEmployeeName;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "租户编号", example = "1")
    private Long tenantId;

    @Schema(description = "附件列表")
    private List<FileDTO> fileList;

    @Schema(description = "附件id列表")
    private List<Long> fileIdList;
}