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 org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;



/**
 * 项目排产视图对象 oa_report_schedule
 *
 * @author ruoyi
 * @date 2025-07-15
 */
@Data
@ExcelIgnoreUnannotated
public class OaReportScheduleVo {

    private static final long serialVersionUID = 1L;

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

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

    /**
     * 排产名称
     */
    @ExcelProperty(value = "排产名称")
    private String scheduleName;

    /**
     * 排产类型（1常规，2特殊，便于扩展）
     */
    @ExcelProperty(value = "排产类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=常规，2特殊，便于扩展")
    private Long type;

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

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

    /**
     * 排产数量
     */
    @ExcelProperty(value = "排产数量")
    private Long amount;

    /**
     * 负责人
     */
    @ExcelProperty(value = "负责人")
    private String header;

    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    private String contactPhone;

    /**
     * 发货联动状态（0未导入，1已导入）
     */
    @ExcelProperty(value = "发货联动状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=未导入，1已导入")
    private Long deliveryStatus;

    /**
     * 关联发货记录ID
     */
    @ExcelProperty(value = "关联发货记录ID")
    private Long deliveryId;

    /**
     * 导入发货时间
     */
    @ExcelProperty(value = "导入发货时间")
    private Date deliveryTime;

    /**
     * OSS附件ID列表，多个ID用逗号分隔
     */
    @ExcelProperty(value = "OSS附件ID列表，多个ID用逗号分隔")
    private String accessory;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sort;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态")
    private Long status;

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


}
