package org.dromara.project.domain.dto.attendance;

import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @author lcj
 * @date 2025/3/26 9:47
 */
@Data
public class BusAttendanceQueryReq implements Serializable {

    @Serial
    private static final long serialVersionUID = -7188085233824968862L;

    /**
     * 人员姓名
     */
    private String userName;

    /**
     * 项目id
     */
    @NotNull(message = "项目id不能为空")
    private Long projectId;

    /**
     * 班组id
     */
    private Long teamId;

    /**
     * 打卡状态(1正常,2迟到,3早退,4缺勤,5补卡)
     */
    private String clockStatus;

    /**
     * 打卡日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date clockDate;

}
