# HotelKpiSettingCalculationFactorSettingDTO.java

    package cloud.wconnect.workperformance.pojo.dto.hotelkpi.old.setting;

    import cloud.wconnect.commonlib.pojo.dto.jsonview.Views;
    import com.fasterxml.jackson.annotation.JsonView;
    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotNull;

    /**
     * DTO: Hotel KPI Setting Calculation Factor Setting
     *
     * @author zc
     * @date 2024/06/26
     */
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public class HotelKpiSettingCalculationFactorSettingDTO {

        /**
         * 分类(1:恒定 2:累加 3:动态 4:独立 5:递减剩余)
         */
        @JsonView(Views.GeneralView.class)
        @NotNull(message = "The category cannot be null")
        @Range(min = 1, max = 5, message = "The category must be between [1:Constant 2:Accumulation 3:Dynamic 4:Independent 5:Diminishing Surplus]")
        private Integer category;

        /**
         * 配置内容 json
         */
        @JsonView(Views.GeneralView.class)
        private String settingValue;
    }