# ExpenseCategoryByReportDTO.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;

    /**
     * 从报告中解析出来的：EXPENSES（花费）区域 数据
     *
     * @author lichen
     * @date 2023/9/6
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public class ExpenseCategoryByReportDTO {

        /**
         * 分类名称
         */
        @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 varBdgtMtd;

        /**
         * 年差别值
         */
        @DigitsInteger(integer = 10, message = "The lastYear is wrong format")
        private BigDecimal varBdgtYtd;

    }