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/4/7 9:53
 */
@Data
public class BusAttendanceQueryTwoWeekReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 3193787736889938829L;

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

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

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

    /**
     * 工种
     */
    private String typeOfWork;

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

}
