package com.jeeplus.finance.projectRecords.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("cw_project_plan_details")
public class CwProjectPlanDetails extends BaseEntity {

    //任务阶段
    @Excel(name = "任务阶段",width = 25,orderNum = "0")
    private String taskPhase;

    //计划开始时间
    @Excel(name = "计划开始时间",width = 25,orderNum = "1")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date planStartDate;

    //计划结束时间
    @Excel(name = "计划结束时间",width = 25,orderNum = "2")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date planEndDate;

    //提醒人
    private String warnUser;

    //完成人
    private String achiever;

    //计划表id
    private String planId;

    @TableField(exist = false)
    @Excel(name = "提醒人",width = 25,orderNum = "3")
    private String warnName;

    @TableField(exist = false)
    @Excel(name = "完成人",width = 25,orderNum = "4")
    private String achieverName;
    @TableField(exist = false)
    private String projectId;
    @TableField(exist = false)
    private String projectName;
}
