package com.ruoyi.staff.dto;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import jakarta.validation.constraints.NotNull;
|
import java.time.LocalDateTime;
|
|
@Data
|
public class PerformanceShiftAddDto {
|
|
@NotNull(message = "请选择班次")
|
@Schema(description = "班次")
|
private Integer personalAttendanceLocationConfigId;
|
|
@NotNull(message = "请选择员工")
|
@Schema(description = "员工id")
|
private String staffOnJobId;
|
|
@NotNull(message = "请选择周次")
|
@Schema(description = "开始周次")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime startWeek;
|
|
@NotNull(message = "请选择周次")
|
@Schema(description = "结束周次")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private LocalDateTime endWeek;
|
}
|