# RoomRevenueByReportDTO.java

    package cloud.wconnect.workperformance.pojo.dto.monthlyreport.parsereport;

    import cloud.wconnect.commonlib.annotation.validator.DigitsInteger;
    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Length;

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

    /**
     * 从报告中解析出来的RoomRevenue数据
     *
     * @author lichen
     * @date 2023/9/6
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public class RoomRevenueByReportDTO {

        /**
         * 分类名称
         */
        @NotBlank(message = "The categoryName cannot be blank")
        @Length(max = 255, message = "The categoryName is limited 255 characters")
        private String categoryName;

        /**
         * 上一年
         */
        @DigitsInteger(integer = 10, message = "The lastYear is wrong format")
        private BigDecimal lastYear;

        /**
         * 预算
         */
        @DigitsInteger(integer = 10, message = "The budget is wrong format")
        private BigDecimal budget;

        /**
         * 实际
         */
        @DigitsInteger(integer = 10, message = "The actual is wrong format")
        private BigDecimal actual;

    }