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.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.Date;
import java.util.Date;

/**
 * null
 * @author yanwenfu
 * @create 2024-07-02
 */

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

	private static final long serialVersionUID =  7621635660780352707L;

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

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

	/** 生成年 */
   	@TableField(value = "F_GenerateYear")
	private Integer generateYear;

	/** 生成月 */
   	@TableField(value = "F_GenerateMonth")
	private Integer generateMonth;

	/** 生成日(刷新日) */
   	@TableField(value = "F_GenerateDay")
	private Integer generateDay;

	/** 补卡总次数 */
   	@TableField(value = "F_TotalNum")
	private Integer totalNum;

	/** 补卡次数 */
   	@TableField(value = "F_RepairNum")
	private Integer repairNum;

    /** 补卡记录(结果id英文逗号分隔) */
	@TableField(value = "F_RepairRecord")
	private String repairRecord;

    /** 过期日期 */
	@TableField(value = "F_ExpireDate")
	private Date expireDate;

	public AttendanceRepair(String groupId, String userId, Integer generateYear, Integer generateMonth, Integer generateDay, Integer totalNum, Date expireDate) {
		super.setId(FtbUtil.getId());
		this.groupId = groupId;
		this.userId = userId;
		this.generateYear = generateYear;
		this.generateMonth = generateMonth;
		this.generateDay = generateDay;
		this.totalNum = totalNum;
		this.repairNum = totalNum;
		this.expireDate = expireDate;
	}
}
