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_day_work_hours
 *
 * @author ruoyi
 * @date 2025-05-12
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class PayDayWorkHoursBo 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 deptId;

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

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

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

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

    /**
     * 日工年月
     */
    @NotBlank(message = "日工年月不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dwYearMonth;

    /**
     * 备注
     */
   // @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String note;


}
