package jnpf.entity.attendance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 考勤消息通知
 * 
 * @author shitou
 * @email shitou@niujiekeji.com
 * @date 2024-08-08 10:49:41
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("ftb_attendance_notice")
public class AttendanceNoticeEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId("F_ID")
	private String id;
	/**
	 * 通知类型
	 */
	@TableField(value = "F_Type")
	private Integer type;
	/**
	 * 标题
	 */
	@TableField(value = "F_Title")
	private String title;
	/**
	 * 数据json
	 */
	@TableField(value = "F_DataJson")
	private String dataJson;
	/**
	 * 是否需要确认(0-否  1-是)
	 */
	@TableField(value = "F_IsConfirm")
	private Integer isConfirm;
	/**
	 * 确认列表({"用户ID":确认状态(0未确认 1已确认)})
	 */
	@TableField(value = "F_ConfirmList")
	private String confirmList;
	/**
	 * 创建时间
	 */
	@TableField(value = "F_CreatorTime")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date creatorTime;
	/**
	 * 创建用户
	 */
	@TableField(value = "F_CreatorUserId")
	private String creatorUserId;
	/**
	 * 租户id
	 */
	@TableField(value = "F_TenantId")
	private String tenantId;
}
