# SvaDepCategoryRecommendHourTotalDTO.java

    package cloud.wconnect.workperformance.pojo.dto.sva.hoursstatistics;

    import cloud.wconnect.commonlib.annotation.validator.DigitsCustom;
    import lombok.Data;

    import jakarta.validation.constraints.*;
    import java.math.BigDecimal;

    /**
     * DTO: 部门分类推荐时数总和
     *
     * @author zc
     * @date 2023/6/28
     */
    @Data
    public class SvaDepCategoryRecommendHourTotalDTO {

        /**
         * 部门分类ID
         */
        @NotNull(message = "The departmentCategoryId cannot be null")
        private Integer departmentCategoryId;

        /**
         * 起始日期
         */
        @NotNull(message = "The fromDate cannot be null")
        private Long fromDate;

        /**
         * 结束日期
         */
        @NotNull(message = "The toDate cannot be null")
        private Long toDate;

        /**
         * Recommended Hours weekly total
         */
        @NotNull(message = "The recommendHoursTotal cannot be null")
        @DigitsCustom(integer = 8, message = "The recommendHoursTotal is wrong format")
        @DecimalMin(value = "0", message = "The recommendHoursTotal must greater than or equal to 0")
        private BigDecimal recommendHoursTotal;

    }