package com.ruoyi.pay.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 考勤业务对象 pay_attendance
 *
 * @author ruoyi
 * @date 2025-05-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class PayAttendanceBo extends BaseEntity {

    /**
     * 主键
     */
   // @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 租户id
     */
    @NotNull(message = "租户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long tenantId;

    /**
     * 员工id
     */
    @NotNull(message = "员工id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long employeeId;

    /**
     * 员工姓名
     */
    @NotBlank(message = "员工姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String empName;

    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptName;

    /**
     * 部门id
     */
    @NotNull(message = "部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 上午开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   // @NotNull(message = "上午开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date amStartTime;

    /**
     * 上午结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   // @NotNull(message = "上午结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date amEndTime;

    /**
     * 下午开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //@NotNull(message = "下午开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date pmStartTime;

    /**
     * 下午结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
   // @NotNull(message = "下午结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date pmEndTime;

    /**
     * 考勤日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "考勤日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date kaoqinDate;

    /**
     * 考勤年份月份 (yyyy-MM)
     */
    @NotBlank(message = "考勤年份月份 (yyyy-MM)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String kaoqinYearMonth;

    /**
     * 考勤机 (0:综合办 1:网机 2：围栏 3:手动添加)
     */
   // @NotBlank(message = "考勤机 (0:综合办 1:网机 2：围栏 3:手动添加)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String kaoqinjiNum;


}
