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.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 日工工时时间关联业务对象 pay_dw_hours_contrast
 *
 * @author ruoyi
 * @date 2025-05-12
 */

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

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

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

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

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

    /**
     * 时长
     */
    @NotNull(message = "时长不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal hours;

    /**
     * 业务员
     */
    @NotBlank(message = "业务员不能为空", groups = { AddGroup.class, EditGroup.class })
    private String salesman;

    /**
     * 是否帮工 (0:否 1:是）
     */
    @NotNull(message = "是否帮工 (0:否 1:是）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isHelper;


}
