/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.attence.rulespectime.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springblade.core.mp.base.BaseEntity;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-04-12
 */
@Data
@TableName("attence_rule_spec_time")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "RuleSpecTime对象", description = "RuleSpecTime对象")
public class RuleSpecTime extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 特殊日期
	 */
	@ApiModelProperty(value = "特殊日期")
	private LocalDate date;
	/**
	 * 是否必须：0-不用打卡  1-必须打卡
	 */
	@ApiModelProperty(value = "是否必须：0-不用打卡  1-必须打卡")
	private Integer isMust;
	/**
	 * 事由
	 */
	@ApiModelProperty(value = "事由")
	private String reason;
	/**
	 * 必须打卡时的开始打卡时间
	 */
	@JsonFormat(pattern = "HH:mm")
	@ApiModelProperty(value = "必须打卡时的开始打卡时间")
	private LocalTime beginTime;
	/**
	 * 必须打卡时的结束打卡时间
	 */
	@JsonFormat(pattern = "HH:mm")

	@ApiModelProperty(value = "必须打卡时的结束打卡时间")
	private LocalTime endTime;
	/**
	 * 关联的打卡规则id
	 */
	@ApiModelProperty(value = "关联的打卡规则id")
	private Long ruleId;


}
