package com.klp.domain.bo; import lombok.Data; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import com.fasterxml.jackson.annotation.JsonFormat; import org.springframework.format.annotation.DateTimeFormat; import java.util.Date; import java.util.List; @Data public class BatchUpdateScheduleBo { @NotEmpty(message = "员工ID列表不能为空") private List userIds; @NotNull(message = "日期不能为空") @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd") private Date workDate; @NotNull(message = "班次ID不能为空") private Long shiftId; private String shiftName; }