# ImportHistoryAndForecastDTO.java

    package cloud.wconnect.workperformance.pojo.dto.schedule;

    import cloud.wconnect.workperformance.pojo.group.Addition;
    import lombok.Data;

    import jakarta.validation.constraints.NotNull;
    import org.springframework.web.multipart.MultipartFile;

    /**
     * DTO：Import History And Forecast
     *
     * @author yyt
     * 2023/7/4
     */
    @Data
    public class ImportHistoryAndForecastDTO {

        /**
         * 开始日期时间戳
         */
        @NotNull(message = "the startDate must not be null", groups = Addition.class)
        private Long startDate;

        /**
         * 结束日期时间戳
         */
        @NotNull(message = "the toDate must not be null", groups = Addition.class)
        private Long toDate;

        /**
         * 来源
         */
        @NotNull(message = "the source must not be null", groups = {Addition.class})
        private String source;

        /**
         * 报告文件
         */
        @NotNull(message = "the file must not be null", groups = {Addition.class})
        private MultipartFile file;

    }