# TaImportReportDTO.java

    package cloud.wconnect.finance.pojo.dto.ta.report;

    import cloud.wconnect.commonlib.pojo.dto.group.Addition;
    import cloud.wconnect.commonlib.pojo.dto.group.Edition;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;
    import org.springframework.web.multipart.MultipartFile;

    import jakarta.validation.constraints.NotNull;

    /**
     * DTO：TA 导入报告
     *
     * @author zc
     * @date 2023/10/11
     */
    @Data
    public class TaImportReportDTO {

        /**
         * 数据日期
         */
        @NotNull(message = "The theDate cannot be null", groups = {Addition.class})
        private Long theDate;

        /**
         * 类型（1：Opera，2：Other，3：TA）
         */
        @NotNull(message = "The type cannot be null", groups = {Addition.class, Edition.class})
        @Range(min = 1, max = 3, message = "The type must be in [1: Opera, 2: Other, 3: TA]", groups = {Addition.class, Edition.class})
        private Integer type;

        /**
         * 报告类型 (1：CreditCard；2：OTA；3：Portal)
         */
        @NotNull(message = "The reportType cannot be null", groups = {Addition.class})
        @Range(min = 1, max = 3, message = "The reportType must be in [1: CreditCard; 2: OTA; 3: Portal]", groups = {Addition.class})
        private Integer reportType;

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

        public static final int TYPE_OPERA = 1;

        public static final int TYPE_OTHER = 2;
    }