package com.skr.mdm.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ProjectName: mdm_new
 * @Package: com.skr.mdm.pojo.dto
 * @ClassName: OaLeaveDTO
 * @Author: Tty
 * @Description: OA- 请假 申请消息体
 * @Date: 2021/6/9 11:17
 * @Version: 1.0
 */
@Data
@ApiModel("OA- 请假 申请消息体")
public class OaLeaveDTO implements Serializable {
	private static final long serialVersionUID = 7709714527678456369L;

	@ApiModelProperty("待审批用户id 修改:字段无效")
	private List<Integer> userIdList;

	@ApiModelProperty(value = "OA策略 修改时:此字段有效")
	private Integer id;

	@ApiModelProperty(value = "待审批用户id",hidden = true)
	private Integer userId;

	@ApiModelProperty("请假类型 0:无 1: 事假  2:病假 3: 年假 4:产假 5:产检假 6:陪产假: 7:其他")
	private Integer leaveType;

	@ApiModelProperty("请假开始时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

	private Date startTime;

	@ApiModelProperty("请假结束时间")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	
	private Date endTime;

	@ApiModelProperty("事由")
	private String note;

	@ApiModelProperty("策略消息体")
	private List<OaLeaveStrategyDTO> strategyList;
}
