package jnpf.entity.attendance;

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

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

/**
 * 加班余额记录[不存休,仅记录]
 * @author yanwenfu 
 * @create 2025-10-03 
 */

@Getter
@Setter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName ( value ="ftb_attendance_enable_balance" )
public class AttendanceEnableBalance extends SuperBaseEntity.SuperCUDBaseEntity<String> implements Serializable {

	private static final long serialVersionUID =  1115377435113592131L;

	/** 考勤组 */
   	@TableField(value = "F_RuleId")
	private String ruleId;

	/** 加班类型: 1=工作日, 2=公休日, 3=节假日 */
   	@TableField(value = "F_OvertimeType")
	private Integer overtimeType;

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

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

	/** 余额(小时) */
   	@TableField(value = "F_Balance")
	private BigDecimal balance;

	/**
	 * 节日名称 多个使用@分割
	 */
	@TableField("F_FestivalStr")
	private String festivalStr;

	@Builder
	public AttendanceEnableBalance(String id, String ruleId, Integer overtimeType, String userId, Date day, BigDecimal balance, String festivalStr) {
		super.setId(id);
		this.ruleId = ruleId;
		this.overtimeType = overtimeType;
		this.userId = userId;
		this.day = day;
		this.balance = balance;
		this.festivalStr = festivalStr;
	}
}
