package com.ruoyi.oa.domain.vo;

import java.util.Date;
import java.util.List;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.oa.domain.SysOaClaim;
import com.ruoyi.oa.domain.SysOaFile;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * 差旅费报销视图对象 sys_oa_claim
 *
 * @author ruoyi
 * @date 2025-02-21
 */
@Data
@ExcelIgnoreUnannotated
public class SysOaClaimVo extends SysOaClaim {

    private static final long serialVersionUID = 1L;

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

    /**
     * 报销人
     */
    @ExcelProperty(value = "报销人")
    private Long userId;

    /**
     * 票据文件id列表
     */
    @ExcelProperty(value = "票据文件id列表")
    private String fileIds;

    /**
     * 报销缘由/备注
     */
    @ExcelProperty(value = "报销缘由/备注")
    private String remark;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "开始时间")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "结束时间")
    private Date endTime;

    /**
     * 出差天数
     */
    @ExcelProperty(value = "出差天数")
    private Long tripDays;

    /**
     * 报销金额
     */
    @ExcelProperty(value = "报销金额")
    private Double cost;

    /**
     * 票据总数
     */
    @ExcelProperty(value = "票据总数")
    private Long detailNumber;

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

    /**
     * 关联流程id
     */
    @ExcelProperty(value = "关联流程id")
    private String procInsId;

    /**
     * 报销时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ExcelProperty(value = "报销时间")
    private Date completedTime;

    /**
     * 报销细节
     */
    private List<SysOaClaimDetailVo> detailList;

    /**
     * 文件列表
     */
    private List<SysOaFile> fileList;

    /**
     * 任务状态
     */
    private Long status;

    /**
     * 关联项目
     */
    private String projectName;
    /**
     * 出差地点
     */
    private String address;

}
