package cn.wisenergy.model.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Authotr:陈奇
 * @QQ1799796883
 */
@Data
@ApiModel(value="WorkTimeOrderDto", description="工时填报详细类")
public class WorkTimeOrderDto {

    @ApiModelProperty(name = "workId",value = "主键id")
    @TableId(value = "work_id", type = IdType.AUTO)
    private Integer workId;

    @ApiModelProperty(name = "userId",value = "用户id")
    private Integer userId;

    @ApiModelProperty(name = "userName", value = "用户名")
    private String userName;

    @ApiModelProperty(name = "type",value = "1：项目，2：商机，3：请假，4：调休，5：外部商务、技术交流  6：内部培训、技术准备、管理   7：其他非项目/商机工作")
    private Integer type;

    @ApiModelProperty(name = "status",value = "工单审核状态 1：已填报，2：已审批，3：被驳回  4:重新提交  5：自动审核")
    private Integer status;

    @ApiModelProperty(name = "projectId",value = "项目id")
    private Integer projectId;

    @ApiModelProperty(name = "projectName",value = "项目名称")
    private String projectName;

    @ApiModelProperty(name = "projectManagerName",value = "项目经理")
    private String managerName;

    @ApiModelProperty(name = "workTime",value = "工时（整数）")
    private Integer workTime;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "workDay",value = "工单日期")
    private Date workDay;

    @ApiModelProperty(name = "des",value = "工作简述")
    private String des;

    @ApiModelProperty(name = "reason",value = "驳回理由")
    private String reason;

    @ApiModelProperty(name = "typeName",value = "项目类型名")
    private String typeName;

    @ApiModelProperty(name = "isOvertime", value = "0:正常工时，1：加班")
    private Integer isOvertime;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "rejectTime",value = "驳回时间")
    private Date rejectTime;

}
