package jnpf.entity.attendance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jnpf.base.entity.SuperBaseEntity;
import jnpf.util.FtbUtil;
import lombok.*;

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

/**
 * 出勤规则变更
 * @author yanwenfu 
 * @create 2026-05-20 
 */
@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName ( value ="ftb_attendance_daily_rule_change" )
@Builder
@AllArgsConstructor
public class DailyRuleChange extends SuperBaseEntity.SuperCUDBaseEntity<String> implements Serializable {

	private static final long serialVersionUID =  5750485520731810904L;

	/** 考勤组id */
   	@TableField(value = "F_GroupId")
	private String groupId;

	/** 用户id */
   	@TableField(value = "F_UserId")
	private String userId;

	/** 日期 */
   	@TableField(value = "F_Day")
	private Date day;

	public DailyRuleChange(String groupId, String userId, Date day, String tenantId) {
		super.setId(FtbUtil.getId());
		this.groupId = groupId;
		this.userId = userId;
		this.day = day;
		super.setTenantId(tenantId);
	}
}
