package com.ruoyi.oa.domain.vo;

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 com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.oa.domain.SysOaAttendance;
import com.ruoyi.oa.domain.SysOaProject;
import lombok.Data;


/**
 * 人员考勤视图对象 sys_oa_attendance
 *
 * @author hdka
 * @date 2024-11-05
 */
@Data
@ExcelIgnoreUnannotated
public class SysOaAttendanceVo extends SysOaAttendance {

    private static final long serialVersionUID = 1L;

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

    /**
     * 员工id
     */
    @ExcelProperty(value = "员工id")
    private Long userId;

    /**
     * 签到日
     */
    @ExcelProperty(value = "签到日")
    private Long attendanceDay;

    /**
     * 项目id
     */
    @ExcelProperty(value = "项目id")
    private Long projectId;

    /**
     * 时长（天）1|0.5
     */
    @ExcelProperty(value = "时长", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "天=")
    private Double dayLength;

    /**
     * 时长（小时）
     */
    @ExcelProperty(value = "时长", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "小=时")
    private Double hour;

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

    private SysUser sysUser;

    private SysOaProjectVo sysOaProjectVo;

    private String color;

    private Long count;

    // 单个工作时间
    private Double workTimes;

    private String projectName;

    // 小时计单个工作时间
    private Double hourWorkTimes;


    private Double overTime;

    // 请假天数
    private Long absenceDays;

    private Long tripDays;

}
